@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;700&display=swap');

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

:root {
    --text-color: #0f0;
    --accent-color: #0bc;
}

body {
    font-family: 'Roboto Mono', monospace;
    background-color: #000;
    color: #ccc;
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1 {
    color: var(--text-color);
    font-size: 50px;
    letter-spacing: -5px;
    margin-bottom: 20px;
}

h2, span {
    color: var(--text-color);
}

h3 {
    margin-bottom: 10px;
}

ul {
    list-style-type: none;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0ff;
}

.resume {
    color: var(--text-color);
    text-decoration: none;
}

.resume:hover {
    color: #0ff;
}

li {
    font-size: 115%;
}

p {
    margin: 20px 0;
}

nav {
    width: 30%;
}

nav ul {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

nav ul li {
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

nav ul li:hover {
    color: #0ff;
}

.container {
    max-width: 1000px;
    margin: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
}

.wb-body {
    background: #111;
    padding: 20px;
}

.hidden {
    display: none;
}

/* Static cursor in h1 - always blinks */
.cursor {
    font-weight: 700;
    animation: 1s blink step-end infinite;
}

@keyframes blink {
    from, to {
        color: transparent;
    }
    50% {
        color: var(--text-color);
    }
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Terminal styling with CSS-based cursor */
.terminal {
    text-shadow: 0px 0px 2px rgba(255, 255, 255, 0.4);
    min-height: 200px;
    font-size: 16px;
    border: none;
    outline: none;
    color: inherit;
    width: 100%;
    position: relative;
}

/* Blinking cursor during typing - uses CSS pseudo-element */
.terminal.typing::after {
    content: '_';
    color: var(--text-color);
    animation: cursor-blink 0.7s step-end infinite;
    font-weight: bold;
}

@keyframes cursor-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Remove cursor when typing is complete */
.terminal.typing-complete::after {
    content: '';
    display: none;
}

.dollar:before {
    content: '$';
    color: #52a563;
}

/* ==================== */
/* RESPONSIVE / MOBILE  */
/* ==================== */

@media (max-width: 768px) {
    body {
        font-size: 18px;
    }
    
    h1 {
        font-size: 33px;
        letter-spacing: -2px;
    }
    
    h2 {
        font-size: 23px;
    }
    
    nav {
        width: 100%;
        margin-bottom: 20px;
    }
    
    nav ul {
        justify-content: space-between;
        gap: 10px;
    }
    
    nav ul li {
        font-size: 17px;
    }
    
    .terminal {
        font-size: 17px;
        min-height: 240px;
    }
    
    .terminal ul li {
        font-size: 100%;
    }
    
    .container {
        padding: 20px;
        justify-content: flex-start;
        padding-top: 60px;
    }
    
    /* WinBox modal fixes for mobile */
    .winbox {
        max-width: 95vw !important;
        max-height: 80vh !important;
    }
    
    .wb-body {
        padding: 15px;
        font-size: 17px;
    }
    
    .wb-body p {
        margin: 15px 0;
    }
    
    .wb-body ul li {
        font-size: 100%;
        margin-bottom: 8px;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    h1 {
        font-size: 29px;
        letter-spacing: -1px;
    }
    
    nav ul li {
        font-size: 15px;
    }
    
    .terminal {
        font-size: 16px;
    }
    
    .container {
        padding: 15px;
    }
}
