:root {
    --neon-green: #00ff9d;
    --neon-blue: #00e5ff;
    --gold: #ffcc00;
    --accent-red: #ff4b2b;
    --bg-dark: #07090e;
    --bg-card: rgba(16, 20, 28, 0.75);
    --border-glass: rgba(255, 255, 255, 0.09);
    --border-highlight: rgba(0, 255, 157, 0.35);
    --text-main: #e6edf3;
    --text-muted: #94a3b8;
    
    /* Syntax highlighting colors */
    --syn-ann: #79c0ff;
    --syn-key: #ff7b72;
    --syn-type: #ffa657;
    --syn-meth: #d2a8ff;
    --syn-str: #a5d6ff;
    --syn-comm: #6e7681;
}

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

[id] {
    scroll-margin-top: 90px;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    width: 100%;
    line-height: 1.6;
    background-image: radial-gradient(circle at 2px 2px, rgba(0, 255, 157, 0.04) 1px, transparent 0);
    background-size: 36px 36px;
    -webkit-text-size-adjust: 100%;
}

img, svg, canvas {
    max-width: 100%;
    height: auto;
}

/* CURSOR GLOW EFFECT */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 255, 157, 0.07) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: opacity 0.3s ease;
}

@media (hover: none) {
    .cursor-glow {
        display: none;
    }
}

/* HEADER & NAVIGATION */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 14px 5%;
    background: rgba(7, 9, 14, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    color: var(--neon-green);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 2px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-green);
    animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-menu a {
    text-decoration: none;
    color: #cbd5e1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    transition: all 0.25s ease;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 20px;
    letter-spacing: 1px;
}

.nav-menu a:hover {
    color: var(--neon-green);
    border-color: rgba(0, 255, 157, 0.3);
    background: rgba(0, 255, 157, 0.06);
}

.nav-menu a.active {
    color: var(--neon-green);
    border-color: var(--neon-green);
    background: rgba(0, 255, 157, 0.12);
    box-shadow: 0 0 12px rgba(0, 255, 157, 0.15);
}

.nav-menu a.nav-resume-btn {
    border-color: rgba(0, 255, 157, 0.45);
    background: rgba(0, 255, 157, 0.08);
    color: var(--neon-green);
    font-weight: 700;
}

.nav-menu a.nav-resume-btn:hover {
    background: rgba(0, 255, 157, 0.18);
    box-shadow: 0 0 14px rgba(0, 255, 157, 0.25);
}

/* MAIN CONTENT & SECTIONS */
main {
    position: relative;
    z-index: 1;
    width: 100%;
}

.section-container {
    padding: 40px clamp(16px, 8vw, 10%);
    max-width: 1240px;
    margin: 0 auto;
}

.section-title {
    color: var(--neon-green);
    text-align: center;
    margin: 60px 0 25px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(1.4rem, 4vw, 2rem);
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-title::before,
.section-title::after {
    content: "";
    height: 1px;
    width: 40px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 157, 0.4));
}

.section-title::after {
    background: linear-gradient(90deg, rgba(0, 255, 157, 0.4), transparent);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 130px 10% 60px;
}

.glitch-name {
    font-size: clamp(2.6rem, 8vw, 5.5rem);
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0px rgba(0, 229, 255, 0.7);
    margin-bottom: 8px;
}

.subtitle {
    letter-spacing: 3.5px;
    color: var(--neon-green);
    margin-bottom: 24px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(0.85rem, 2vw, 1.15rem);
    font-weight: 600;
}

/* INTERACTIVE TERMINAL WORKBENCH */
.terminal-workbench {
    width: 100%;
    max-width: 680px;
    margin: 15px 0 25px;
}

.terminal {
    background: #0b0e14;
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 12px;
    width: 100%;
    text-align: left;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    box-shadow: 0 14px 40px rgba(0, 229, 255, 0.12);
    overflow: hidden;
}

.terminal-bar {
    background: #141820;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 10px;
    flex-wrap: wrap;
}

.terminal-dots {
    display: flex;
    gap: 7px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-tabs {
    display: flex;
    gap: 6px;
}

.term-tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-family: inherit;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.term-tab-btn.active {
    background: rgba(0, 255, 157, 0.12);
    color: var(--neon-green);
    border-color: rgba(0, 255, 157, 0.3);
}

/* TAB 1: CODE VIEW */
.terminal-code {
    padding: 18px 20px;
    font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    line-height: 1.65;
    overflow-x: auto;
}

.syn-ann { color: var(--syn-ann); }
.syn-key { color: var(--syn-key); font-weight: bold; }
.syn-type { color: var(--syn-type); }
.syn-meth { color: var(--syn-meth); }
.syn-str { color: var(--syn-str); }
.syn-comm { color: var(--syn-comm); font-style: italic; }

.indent-1 { padding-left: 18px; }
.indent-2 { padding-left: 36px; }
.indent-3 { padding-left: 54px; }

.typing-cursor {
    color: var(--neon-green);
    font-weight: 900;
    animation: blink 0.9s infinite;
}

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

/* TAB 1: INTERACTIVE CLI */
.terminal-cli {
    padding: 16px 20px;
    font-size: 0.84rem;
    display: block;
}

.cli-history {
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cli-entry {
    line-height: 1.5;
}

.cli-prompt-line {
    color: var(--neon-blue);
}

.cli-output {
    color: #e2e8f0;
    padding-left: 10px;
    white-space: pre-wrap;
    font-size: 0.8rem;
}

.cli-output.success { color: var(--neon-green); }
.cli-output.json { color: #a5d6ff; background: rgba(0,0,0,0.3); padding: 8px; border-radius: 6px; }
.cli-output.error { color: #ff7b72; }

.cli-input-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.cli-input-form:focus-within {
    border-color: rgba(0, 255, 157, 0.4);
    box-shadow: 0 0 12px rgba(0, 255, 157, 0.12);
}

.cli-input-prompt {
    color: var(--neon-green);
    font-weight: bold;
    white-space: nowrap;
}

.cli-input-field {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: inherit;
    font-size: 0.85rem;
    width: 100%;
}

.cli-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.cli-chip {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--neon-blue);
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cli-chip:hover {
    background: var(--neon-blue);
    color: #000;
}

/* CTA BUTTONS */
.cta-container {
    display: flex;
    gap: 14px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-hire {
    padding: 13px 32px;
    background: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 6px;
    color: #000;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.92rem;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-hire:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(255, 204, 0, 0.45);
    background: #ffd633;
}

.btn-cv {
    color: var(--neon-green);
    padding: 13px 28px;
    text-decoration: none;
    border: 2px solid var(--neon-green);
    transition: all 0.25s ease;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    font-size: 0.92rem;
    background: transparent;
    border-radius: 6px;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cv:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 22px rgba(0, 255, 157, 0.4);
    transform: translateY(-2px);
}

.btn-cv-secondary {
    color: var(--neon-blue);
    border-color: var(--neon-blue);
}

.btn-cv-secondary:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.4);
}

/* FILTER CONTROLS */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    color: #fff;
    border-color: rgba(0, 255, 157, 0.4);
}

.filter-btn.active {
    background: rgba(0, 255, 157, 0.12);
    color: var(--neon-green);
    border-color: var(--neon-green);
    box-shadow: 0 0 14px rgba(0, 255, 157, 0.15);
}

/* GRID & GLASS CARDS */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 24px;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 30px;
    border-radius: 14px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
}

.glass-card.filtered-out {
    display: none !important;
}

.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: 0.3s;
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.java-card:hover {
    border-color: var(--neon-green);
    box-shadow: 0 12px 30px rgba(0, 255, 157, 0.12);
}

.blue-card:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 12px 30px rgba(0, 229, 255, 0.12);
}

.gold-card:hover {
    border-color: var(--gold);
    box-shadow: 0 12px 30px rgba(255, 204, 0, 0.12);
}

.card-header-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.card-title {
    font-size: 1.35rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 700;
}

.card-body-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    flex-grow: 1;
}

/* BADGES & PILLS */
.badge {
    align-self: flex-start;
    display: inline-block;
    padding: 4px 11px;
    border-radius: 14px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    text-transform: uppercase;
}

.badge-java {
    background: rgba(0, 255, 157, 0.1);
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 157, 0.3);
}

.badge-blue {
    background: rgba(0, 229, 255, 0.1);
    color: var(--neon-blue);
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.badge-gold {
    background: rgba(255, 204, 0, 0.1);
    color: var(--gold);
    border: 1px solid rgba(255, 204, 0, 0.3);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.skill-pill {
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    color: #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.76rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s ease;
}

.skill-pill:hover {
    border-color: var(--neon-green);
    color: #fff;
}

/* PROJECT ACTIONS */
.project-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-demo {
    background: rgba(0, 255, 157, 0.12);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 7px 14px;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.btn-demo:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 16px rgba(0, 255, 157, 0.4);
}

.btn-preview {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: var(--neon-blue);
    padding: 7px 14px;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-preview:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--neon-green);
    text-decoration: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 700;
    transition: gap 0.2s ease, color 0.2s ease;
    padding: 7px 10px;
}

.project-link:hover {
    color: #fff;
    gap: 10px;
}

/* INTERACTIVE PROJECT PREVIEW MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: #0f131a;
    border: 1px solid rgba(0, 255, 157, 0.3);
    border-radius: 14px;
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 255, 157, 0.1);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #141923;
}

.modal-title-wrap h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 4px;
}

.modal-title-wrap p {
    color: var(--neon-green);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #ff5f56;
}

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-section-title {
    color: var(--neon-blue);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.92rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.endpoint-table {
    width: 100%;
    border-collapse: collapse;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.endpoint-table th, .endpoint-table td {
    padding: 9px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.endpoint-table th {
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    font-weight: 600;
}

.endpoint-table td {
    color: #cbd5e1;
}

.http-method {
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.72rem;
}

.method-get { background: rgba(0, 255, 157, 0.15); color: var(--neon-green); }
.method-post { background: rgba(0, 229, 255, 0.15); color: var(--neon-blue); }
.method-put { background: rgba(255, 204, 0, 0.15); color: var(--gold); }
.method-delete { background: rgba(255, 75, 43, 0.15); color: var(--accent-red); }
.method-ws { background: rgba(210, 168, 255, 0.15); color: #d2a8ff; }

.arch-diagram-box {
    background: #090c10;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    color: #e2e8f0;
    line-height: 1.6;
}

.arch-diagram-step {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
}

.arch-badge {
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--neon-green);
    font-weight: bold;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-glass);
    background: #141923;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* RESUME MODAL CUSTOMIZATION */
.resume-modal-card {
    max-width: 950px;
    width: 92%;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.resume-modal-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border-radius: 4px;
}

.resume-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* FOOTER & CONTACT */
footer {
    padding: 70px 10% 40px;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 255, 157, 0.04), transparent);
    border-top: 1px solid var(--border-glass);
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.contact-group {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin: 25px 0 35px;
}

.contact-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.contact-link:hover {
    color: var(--neon-blue);
    border-color: rgba(0, 229, 255, 0.2);
    background: rgba(0, 229, 255, 0.05);
    transform: translateY(-2px);
}

.contact-link i {
    color: var(--neon-green);
    font-size: 1.3rem;
}

.footer-copy {
    color: #94a3b8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8rem;
    margin-top: 25px;
    letter-spacing: 0.5px;
}

/* ============================================================= */
/* RESPONSIVE DESIGN FOR MOBILE & TABLETS                       */
/* ============================================================= */
@media (max-width: 980px) {
    header {
        padding: 10px 4%;
        gap: 8px;
    }

    .hero {
        padding-top: 110px;
    }

    [id] {
        scroll-margin-top: 110px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 8px 4%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 6px;
        background: rgba(7, 9, 14, 0.96);
    }

    .logo {
        font-size: 1rem;
    }

    .nav-menu {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 4px;
        padding: 4px 0 2px;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-menu a {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.72rem;
        padding: 5px 10px;
    }

    .hero {
        padding: 115px 4% 40px;
        min-height: auto;
    }

    .section-container {
        padding: 30px 4%;
    }
}

@media (max-width: 600px) {
    .glitch-name {
        font-size: clamp(1.9rem, 8.5vw, 2.7rem);
        letter-spacing: 0.5px;
        word-break: break-word;
    }

    .subtitle {
        font-size: 0.78rem;
        letter-spacing: 1.5px;
        line-height: 1.45;
        padding: 0 4px;
    }

    .section-title {
        font-size: 1.35rem;
        margin: 45px 0 16px;
    }

    .section-title::before,
    .section-title::after {
        width: 20px;
    }

    .section-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    /* Terminal on mobile */
    .terminal-bar {
        padding: 8px 10px;
        gap: 6px;
    }

    .terminal-dots {
        display: none;
    }

    .terminal-tabs {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 4px;
        padding-bottom: 2px;
    }

    .terminal-tabs::-webkit-scrollbar {
        display: none;
    }

    .term-tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .terminal-code {
        padding: 12px 14px;
        font-size: 0.72rem;
        line-height: 1.55;
    }

    .indent-1 { padding-left: 10px; }
    .indent-2 { padding-left: 20px; }
    .indent-3 { padding-left: 30px; }

    /* CLI on mobile */
    .terminal-cli {
        padding: 12px 10px;
    }

    .cli-history {
        max-height: 170px;
        font-size: 0.75rem;
    }

    .cli-input-form {
        padding: 6px 10px;
    }

    .cli-input-field {
        font-size: 16px !important; /* CRITICAL: Prevents iOS Safari auto-zoom */
    }

    .cli-chips {
        gap: 4px;
    }

    .cli-chip {
        font-size: 0.68rem;
        padding: 3px 6px;
    }

    /* Concurrency Simulator on mobile */
    .terminal-concurrency {
        padding: 12px 10px;
    }

    .sim-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .sim-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .sim-mode-toggle {
        flex-direction: column;
        width: 100%;
    }

    .sim-mode-btn {
        width: 100%;
        justify-content: center;
        padding: 7px 10px;
        font-size: 0.72rem;
    }

    .sim-run-btn {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
    }

    .sim-dashboard {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .sim-stat-card {
        padding: 6px 8px;
    }

    .sim-stat-val {
        font-size: 0.92rem;
    }

    .sim-console {
        height: 120px;
        font-size: 0.7rem;
        padding: 8px 10px;
    }

    /* Cards, Grids & CTAs */
    .grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .glass-card {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .card-title {
        font-size: 1.18rem;
    }

    .card-body-text {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .filter-container {
        gap: 6px;
        margin-bottom: 20px;
    }

    .filter-btn {
        font-size: 0.74rem;
        padding: 6px 12px;
    }

    .cta-container {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .cta-container .btn-hire,
    .cta-container .btn-cv {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.88rem;
    }

    .project-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .project-actions .btn-demo,
    .project-actions .btn-preview,
    .project-actions .project-link {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 9px 14px;
        box-sizing: border-box;
    }

    /* Project Modal on Mobile */
    .modal-overlay {
        padding: 8px;
        align-items: flex-end;
    }

    .modal-card {
        max-height: 92vh;
        border-radius: 14px 14px 0 0;
        width: 100%;
    }

    .modal-header {
        padding: 14px 16px;
    }

    .modal-title-wrap h3 {
        font-size: 1.15rem;
    }

    .modal-body {
        padding: 16px 12px;
        gap: 16px;
    }

    .endpoint-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    .endpoint-table th, 
    .endpoint-table td {
        padding: 7px 9px;
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .endpoint-table td:last-child {
        white-space: normal;
        min-width: 170px;
    }

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

    .modal-footer {
        padding: 12px 16px;
        flex-direction: column;
        gap: 8px;
    }

    .modal-footer a,
    .modal-footer button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* Quick Contact on Mobile */
    .quick-contact-container {
        padding: 18px 14px;
        margin: 20px auto 30px;
    }

    .form-control,
    .form-textarea {
        font-size: 16px !important; /* Prevents auto-zoom on iOS */
    }

    .form-actions {
        flex-direction: column;
        gap: 8px;
    }

    .btn-send-msg,
    .btn-copy-email {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .contact-group {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .contact-link {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        font-size: 0.92rem;
        padding: 10px 14px;
    }

    footer {
        padding: 45px 5% 30px;
    }
}

/* ============================================================= */
/* TAB 4: CONCURRENCY LAB STYLES                                */
/* ============================================================= */
.terminal-concurrency {
    padding: 16px 18px;
    font-size: 0.82rem;
    display: none;
}

.sim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sim-tag {
    font-size: 0.68rem;
    color: var(--neon-green);
    letter-spacing: 1px;
    font-weight: 700;
}

.sim-heading {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
}

.sim-stock-badge {
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-glass);
    font-size: 0.75rem;
    color: #cbd5e1;
}

.stock-num {
    color: var(--neon-blue);
    font-weight: 700;
}

.sim-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.sim-mode-toggle {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.sim-mode-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.74rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sim-mode-btn:hover {
    color: #fff;
}

.sim-mode-btn.active {
    background: rgba(0, 255, 157, 0.15);
    border-color: var(--neon-green);
    color: var(--neon-green);
    font-weight: 700;
}

.sim-mode-btn.vulnerable.active {
    background: rgba(255, 75, 43, 0.15);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.sim-run-btn {
    background: var(--neon-blue);
    border: none;
    color: #000;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 7px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.sim-run-btn:hover {
    background: #4defff;
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
    transform: translateY(-1px);
}

.sim-run-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.sim-progress-wrap {
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.sim-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
    transition: width 0.1s linear;
}

.sim-dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

@media (max-width: 650px) {
    .sim-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sim-stat-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 10px;
    border-radius: 6px;
    text-align: center;
}

.sim-stat-label {
    display: block;
    font-size: 0.68rem;
    color: #94a3b8;
    margin-bottom: 2px;
}

.sim-stat-val {
    font-size: 1rem;
    font-weight: 800;
    font-family: ui-monospace, monospace;
}

.sim-stat-val.text-green { color: var(--neon-green); }
.sim-stat-val.text-red { color: var(--accent-red); }
.sim-stat-val.text-blue { color: var(--neon-blue); }

.sim-console {
    background: #06080d;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 10px 12px;
    height: 140px;
    overflow-y: auto;
    font-size: 0.74rem;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sim-console-line {
    white-space: pre-wrap;
}

.sim-console-line.text-green { color: var(--neon-green); }
.sim-console-line.text-red { color: #ff7b72; }
.sim-console-line.text-blue { color: var(--neon-blue); }
.sim-console-line.text-gold { color: var(--gold); }
.sim-console-line.text-muted { color: #64748b; }

/* VISUAL THREAD WORKER GRID IN SIMULATOR */
.sim-workers-panel {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.sim-workers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.sim-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.72rem;
    color: #94a3b8;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-box {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    display: inline-block;
}

.box-idle { background: rgba(255, 255, 255, 0.15); }
.box-acquired { background: var(--neon-green); box-shadow: 0 0 6px var(--neon-green); }
.box-waitlist { background: var(--neon-blue); box-shadow: 0 0 6px var(--neon-blue); }
.box-race { background: var(--accent-red); box-shadow: 0 0 6px var(--accent-red); }

.sim-worker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(28px, 1fr));
    gap: 4px;
}

.worker-node {
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-family: inherit;
    font-weight: 700;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    color: #64748b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.worker-node.node-acquired {
    background: rgba(0, 255, 157, 0.15);
    color: var(--neon-green);
    border-color: rgba(0, 255, 157, 0.6);
    box-shadow: 0 0 8px rgba(0, 255, 157, 0.3);
}

.worker-node.node-waitlist {
    background: rgba(0, 229, 255, 0.15);
    color: var(--neon-blue);
    border-color: rgba(0, 229, 255, 0.6);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.worker-node.node-race {
    background: rgba(255, 95, 86, 0.22);
    color: var(--accent-red);
    border-color: rgba(255, 95, 86, 0.8);
    box-shadow: 0 0 8px rgba(255, 95, 86, 0.4);
    animation: flashRace 0.35s ease;
}

@keyframes flashRace {
    0% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ============================================================= */
/* MODAL CODE SPOTLIGHTS                                        */
/* ============================================================= */
.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 10px;
}

.spotlight-card {
    background: #090c10;
    border: 1px solid var(--border-glass);
    padding: 12px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spotlight-card:hover {
    border-color: var(--neon-green);
    background: rgba(0, 255, 157, 0.04);
    transform: translateY(-2px);
}

.spotlight-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spotlight-name {
    color: #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 700;
}

.spotlight-desc {
    color: #94a3b8;
    font-size: 0.76rem;
    line-height: 1.4;
}

/* ============================================================= */
/* QUICK CONTACT & DIRECT COPY                                  */
/* ============================================================= */
.quick-contact-container {
    max-width: 640px;
    margin: 30px auto 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 24px 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: left;
}

.quick-contact-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-contact-subtitle {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 18px;
}

.quick-contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 580px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-control {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease;
    width: 100%;
}

.form-control:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.form-textarea {
    min-height: 85px;
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.btn-send-msg {
    background: var(--neon-blue);
    border: none;
    color: #000;
    font-weight: 800;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-send-msg:hover {
    background: #4defff;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
}

.btn-copy-email {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: #cbd5e1;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-copy-email:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
    background: rgba(0, 255, 157, 0.06);
}

/* -------------------------------------------------------------
   ACCESSIBILITY & REDUCED MOTION PREFERENCE
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .cursor-glow {
        display: none !important;
    }
}



