/* Modern Terminal Theme Variables */
:root {
    --bg-black: #0d1117;
    --bg-darker: #010409;
    --bg-card: #161b22;
    --bg-elevated: #1c2128;
    --terminal-green: #39ff14;
    --terminal-green-dim: #2dd60e;
    --terminal-blue: #58a6ff;
    --terminal-cyan: #00f5ff;
    --terminal-purple: #bd93f9;
    --terminal-yellow: #ffd700;
    --terminal-red: #ff6b6b;
    --terminal-orange: #ff9500;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-dim: #6e7681;
    --border-color: #30363d;
    --border-bright: #484f58;
    --shadow-glow: rgba(57, 255, 20, 0.4);
    --shadow-glow-blue: rgba(88, 166, 255, 0.3);
    --gradient-primary: linear-gradient(135deg, #39ff14 0%, #00f5ff 100%);
    --gradient-card: linear-gradient(145deg, rgba(22, 27, 34, 0.8), rgba(28, 33, 40, 0.6));
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
    background: var(--bg-darker);
    background-image: 
        radial-gradient(at 0% 0%, rgba(57, 255, 20, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(88, 166, 255, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(189, 147, 249, 0.05) 0px, transparent 50%);
    color: var(--terminal-green);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Subtle Modern Screen Effects */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03),
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
    opacity: 0.3;
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(57, 255, 20, 0.01) 51%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 999;
    animation: scanline 10s linear infinite;
    opacity: 0.5;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* Modern Terminal Container */
.terminal-container {
    max-width: 1400px;
    margin: 30px auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 1px rgba(57, 255, 20, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

/* Modern Terminal Header */
.terminal-header {
    background: linear-gradient(to bottom, rgba(22, 27, 34, 0.95), rgba(13, 17, 23, 0.9));
    padding: 14px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-bright);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.terminal-buttons span {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.terminal-buttons span:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.btn-close {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.4);
}

.btn-minimize {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.btn-maximize {
    background: linear-gradient(135deg, #39ff14, #2dd60e);
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}

.terminal-title {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    flex-grow: 1;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Modern Terminal Body */
.terminal-body {
    padding: 30px;
    min-height: calc(100vh - 100px);
    background: var(--bg-black);
}

.terminal-content {
    font-size: 15px;
    line-height: 1.8;
    max-width: 1200px;
    margin: 0 auto;
}

/* Modern Boot Sequence */
.boot-sequence {
    margin-bottom: 30px;
}

.boot-line {
    color: var(--terminal-green);
    margin: 8px 0;
    opacity: 0;
    animation: fadeInSlide 0.5s forwards;
    font-size: 14px;
}

.boot-line:nth-child(1) { animation-delay: 0.2s; }
.boot-line:nth-child(2) { animation-delay: 0.5s; }
.boot-line:nth-child(3) { animation-delay: 0.8s; }
.boot-line:nth-child(4) { animation-delay: 1.2s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Modern ASCII Art with Gradient */
.ascii-art {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 8px;
    line-height: 1.2;
    margin: 30px 0;
    filter: drop-shadow(0 0 15px rgba(57, 255, 20, 0.3));
    overflow-x: auto;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(57, 255, 20, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(0, 245, 255, 0.4));
    }
}

/* Modern Navigation */
.nav-section {
    margin: 40px 0;
    padding: 25px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.commands {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    grid-auto-flow: row dense;
    gap: 12px;
    margin: 20px 0;
}

.cmd-btn {
    background: var(--gradient-card);
    color: var(--terminal-green);
    border: 1px solid var(--border-bright);
    padding: 12px 20px;
    cursor: pointer;
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cmd-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.2), transparent);
    transition: left 0.5s ease;
}

.cmd-btn:hover::before {
    left: 100%;
}

.cmd-btn:hover {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.15), rgba(0, 245, 255, 0.1));
    border-color: var(--terminal-green);
    box-shadow: 
        0 0 20px var(--shadow-glow),
        inset 0 0 20px rgba(57, 255, 20, 0.1);
    transform: translateY(-3px) scale(1.02);
}

.cmd-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.cmd-btn.active-btn {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.2), rgba(0, 245, 255, 0.15));
    border-color: var(--terminal-green);
    box-shadow: 
        0 0 25px var(--shadow-glow),
        inset 0 0 30px rgba(57, 255, 20, 0.15);
}

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(57, 255, 20, 0.4);
    transform: scale(0);
    animation: rippleAnimation 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnimation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Modern Prompt */
.prompt {
    color: var(--text-primary);
    margin: 20px 0 15px 0;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.user {
    color: var(--terminal-cyan);
    font-weight: 700;
}

.path {
    color: var(--terminal-yellow);
    font-weight: 700;
}

/* Sections */
.section {
    margin: 30px 0;
    opacity: 0;
    animation: fadeInSection 0.5s forwards;
}

.section.hidden {
    display: none;
}

.section.active {
    display: block;
}

@keyframes fadeInSection {
    to { opacity: 1; }
}

/* Modern Output */
.output {
    margin-left: 0;
}

.info-box {
    margin: 25px 0;
    padding: 30px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--terminal-green);
    border-radius: 12px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.info-box:hover {
    border-left-color: var(--terminal-cyan);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(57, 255, 20, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Modern Titles */
.section-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 1px;
    filter: drop-shadow(0 0 10px rgba(57, 255, 20, 0.3));
}

.subsection-title {
    color: var(--terminal-cyan);
    font-size: 16px;
    font-weight: 600;
    margin: 25px 0 15px 0;
    letter-spacing: 0.5px;
}

/* Success/Status with glow */
.success {
    color: var(--terminal-green);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.4);
}

.highlight {
    color: var(--terminal-yellow);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Modern Skills */
.skill-category {
    margin: 30px 0;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0;
}

.tag {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.1), rgba(0, 245, 255, 0.05));
    color: var(--terminal-green);
    padding: 8px 16px;
    border: 1px solid var(--border-bright);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.2), rgba(0, 245, 255, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tag:hover::before {
    opacity: 1;
}

.tag:hover {
    border-color: var(--terminal-green);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 4px 15px var(--shadow-glow),
        inset 0 0 20px rgba(57, 255, 20, 0.1);
    color: var(--text-primary);
}

/* Modern Experience & Projects */
.experience-item,
.project-item,
.education-item {
    margin: 30px 0;
    padding: 25px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.experience-item:hover,
.project-item:hover,
.education-item:hover {
    border-color: var(--border-bright);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.job-title,
.project-title,
.degree-title {
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 600;
    margin: 10px 0;
    letter-spacing: 0.3px;
}

.job-date,
.project-subtitle,
.education-details,
.education-date,
.university {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 8px 0;
}

.project-link {
    margin: 10px 0;
}

.project-link a {
    color: var(--terminal-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.project-link a:hover {
    background: rgba(88, 166, 255, 0.1);
    color: var(--terminal-green);
    box-shadow: 0 0 15px var(--shadow-glow-blue);
    transform: translateX(5px);
}

.achievement-list {
    list-style: none;
    margin: 15px 0;
}

.achievement-list li {
    color: var(--text-primary);
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.achievement-list li:before {
    content: "▸";
    color: var(--terminal-green);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.achievement-list li:hover:before {
    color: var(--terminal-cyan);
    transform: translateX(3px);
    filter: drop-shadow(0 0 8px rgba(57, 255, 20, 0.5));
}

.achievement-list li:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

/* Modern Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: row dense;
    gap: 16px;
    margin: 25px 0;
}

.contact-item {
    grid-column: span 4;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    padding: 18px 20px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-grid .contact-item:nth-child(4),
.contact-grid .contact-item:nth-child(5) {
    grid-column: span 6;
}

.contact-item:hover {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.08), rgba(0, 245, 255, 0.05));
    border-color: var(--border-bright);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateX(8px) translateY(-2px);
}

.contact-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 8px rgba(57, 255, 20, 0.3));
}

.contact-label {
    color: var(--terminal-cyan);
    min-width: 85px;
    font-weight: 500;
    font-size: 14px;
}

.contact-item a {
    color: var(--terminal-green);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}

.contact-item a:hover {
    color: var(--terminal-yellow);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* Resume CTA */
.resume-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0 25px 0;
}

.resume-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Put the resume command on its own full row (no lonely empty cells) */
.nav-resume {
    grid-column: 1 / -1;
}

.resume-hint {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.4;
}

.success-message {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0;
    font-size: 18px;
    font-weight: 600;
    filter: drop-shadow(0 0 15px rgba(57, 255, 20, 0.4));
}

/* Dynamic role */
.dynamic-role-line {
    margin-top: 8px;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.dynamic-role-label {
    color: var(--text-secondary);
}

.dynamic-role-text {
    color: var(--terminal-cyan);
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.35);
}

.dynamic-role-cursor {
    color: var(--terminal-green);
    animation: blink 0.9s step-end infinite;
}

/* Interactive terminal */
.command-input-section {
    margin-top: 40px;
}

.interactive-terminal {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: linear-gradient(165deg, rgba(12, 18, 26, 0.95), rgba(15, 22, 32, 0.9));
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.terminal-output {
    max-height: 180px;
    overflow-y: auto;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.terminal-line {
    color: var(--text-primary);
    font-size: 13px;
    margin: 0 0 8px;
    line-height: 1.5;
}

.terminal-line:last-child {
    margin-bottom: 0;
}

.terminal-form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
}

.terminal-prefix {
    white-space: nowrap;
    font-size: 13px;
}

.terminal-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--terminal-green);
    font-family: inherit;
    font-size: 13px;
    caret-color: var(--terminal-cyan);
}

.terminal-input::placeholder {
    color: var(--text-dim);
}

.terminal-command {
    color: var(--terminal-cyan);
}

.terminal-error {
    color: var(--terminal-red);
}

.terminal-muted {
    color: var(--text-secondary);
}

.cursor-blink {
    animation: blink 1s infinite;
}

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

/* Typewriter Effect */
.typing-text {
    border-right: 2px solid var(--terminal-green);
    margin: 0;
    letter-spacing: 0.02em;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: inline;
    animation: blink-caret 0.9s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--terminal-green); }
}

/* Theme palettes (cycled from command line) */
body[data-theme="cyber"] {
    --bg-black: #08120d;
    --bg-darker: #020a06;
    --bg-card: #0f1d17;
    --bg-elevated: #12261e;
    --terminal-green: #39ff14;
    --terminal-green-dim: #2dd60e;
    --terminal-cyan: #00f5ff;
    --terminal-yellow: #ffd700;
    --terminal-red: #ff6b6b;
    --gradient-primary: linear-gradient(135deg, #39ff14 0%, #00f5ff 100%);
}

body[data-theme="dracula"] {
    --bg-black: #0f0f1a;
    --bg-darker: #070711;
    --bg-card: #151526;
    --bg-elevated: #1b1b30;
    --terminal-green: #50fa7b;
    --terminal-green-dim: #3fe06a;
    --terminal-cyan: #8be9fd;
    --terminal-yellow: #f1fa8c;
    --terminal-red: #ff5555;
    --terminal-purple: #bd93f9;
    --gradient-primary: linear-gradient(135deg, #bd93f9 0%, #50fa7b 55%, #8be9fd 100%);
}

body[data-theme="tokyo"] {
    --bg-black: #0a0f1f;
    --bg-darker: #050818;
    --bg-card: #121a33;
    --bg-elevated: #172042;
    --terminal-green: #9ece6a;
    --terminal-green-dim: #7aa857;
    --terminal-cyan: #7dcfff;
    --terminal-yellow: #e0af68;
    --terminal-red: #f7768e;
    --terminal-purple: #bb9af7;
    --gradient-primary: linear-gradient(135deg, #7dcfff 0%, #bb9af7 55%, #9ece6a 100%);
}

body[data-theme="solarized"] {
    --bg-black: #002b36;
    --bg-darker: #001f27;
    --bg-card: #073642;
    --bg-elevated: #0b4654;
    --terminal-green: #2aa198;
    --terminal-green-dim: #1f7f78;
    --terminal-cyan: #268bd2;
    --terminal-yellow: #b58900;
    --terminal-red: #dc322f;
    --gradient-primary: linear-gradient(135deg, #268bd2 0%, #2aa198 60%, #b58900 100%);
}

body[data-theme="amber"] {
    --bg-black: #0b0803;
    --bg-darker: #060401;
    --bg-card: #151006;
    --bg-elevated: #1b1408;
    --terminal-green: #ffb000;
    --terminal-green-dim: #d98f00;
    --terminal-cyan: #ffd67a;
    --terminal-yellow: #ffcc33;
    --terminal-red: #ff5f57;
    --gradient-primary: linear-gradient(135deg, #ffb000 0%, #ffd67a 100%);
}

body[data-theme="ice"] {
    --bg-black: #07151d;
    --bg-darker: #040e14;
    --bg-card: #0f2430;
    --bg-elevated: #123041;
    --terminal-green: #7afcff;
    --terminal-green-dim: #42e5f5;
    --terminal-cyan: #b9f6ff;
    --terminal-yellow: #a5ffe7;
    --terminal-red: #ff6b6b;
    --gradient-primary: linear-gradient(135deg, #7afcff 0%, #b9f6ff 55%, #a5ffe7 100%);
}

body[data-theme="violet"] {
    --bg-black: #0c0717;
    --bg-darker: #070311;
    --bg-card: #171028;
    --bg-elevated: #1e1534;
    --terminal-green: #c7a3ff;
    --terminal-green-dim: #a882ff;
    --terminal-cyan: #ff79c6;
    --terminal-yellow: #ffe66d;
    --terminal-red: #ff6b6b;
    --gradient-primary: linear-gradient(135deg, #c7a3ff 0%, #ff79c6 55%, #ffe66d 100%);
}

body[data-theme="sunset"] {
    --bg-black: #120a10;
    --bg-darker: #08040a;
    --bg-card: #1f0f19;
    --bg-elevated: #2a1422;
    --terminal-green: #ff9500;
    --terminal-green-dim: #e07d00;
    --terminal-cyan: #ff6b6b;
    --terminal-yellow: #ffd166;
    --terminal-red: #ff3d71;
    --gradient-primary: linear-gradient(135deg, #ff3d71 0%, #ff9500 55%, #ffd166 100%);
}

body[data-theme="mint"] {
    --bg-black: #07120f;
    --bg-darker: #040a08;
    --bg-card: #0f1d18;
    --bg-elevated: #142822;
    --terminal-green: #2ee59d;
    --terminal-green-dim: #22c584;
    --terminal-cyan: #7bf1ff;
    --terminal-yellow: #d7ff8a;
    --terminal-red: #ff6b6b;
    --gradient-primary: linear-gradient(135deg, #2ee59d 0%, #7bf1ff 60%, #d7ff8a 100%);
}

body[data-theme="mono"] {
    --bg-black: #0b0b0b;
    --bg-darker: #060606;
    --bg-card: #121212;
    --bg-elevated: #181818;
    --terminal-green: #e6edf3;
    --terminal-green-dim: #b3bcc7;
    --terminal-cyan: #e6edf3;
    --terminal-yellow: #9da7b3;
    --terminal-red: #ff6b6b;
    --gradient-primary: linear-gradient(135deg, #e6edf3 0%, #9da7b3 100%);
    --shadow-glow: rgba(230, 237, 243, 0.25);
    --shadow-glow-blue: rgba(230, 237, 243, 0.18);
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminal-container {
        margin: 15px;
        border-radius: 12px;
    }

    .terminal-body {
        padding: 20px;
    }

    .ascii-art {
        font-size: 6px;
    }

    .commands {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .terminal-content {
        font-size: 13px;
    }

    .nav-section {
        padding: 20px;
    }

    .info-box {
        padding: 20px;
    }

    .section-title {
        font-size: 20px;
    }
}

@media (max-width: 900px) {
    .contact-item {
        grid-column: span 6;
    }

    .contact-grid .contact-item:nth-child(4),
    .contact-grid .contact-item:nth-child(5) {
        grid-column: span 6;
    }
}

@media (max-width: 600px) {
    .contact-item,
    .contact-grid .contact-item:nth-child(4),
    .contact-grid .contact-item:nth-child(5) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .ascii-art {
        font-size: 4px;
    }

    .section-title {
        font-size: 16px;
    }

    .terminal-title {
        font-size: 11px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.main-content.hidden {
    display: none;
}

/* Selection */
::selection {
    background: var(--terminal-green);
    color: var(--bg-black);
}

::-moz-selection {
    background: var(--terminal-green);
    color: var(--bg-black);
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--terminal-green-dim), var(--terminal-cyan));
    border-radius: 10px;
    border: 2px solid var(--bg-darker);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--terminal-green), var(--terminal-cyan));
    box-shadow: 0 0 15px var(--shadow-glow);
}
