/* ============================================================
   A.KUMAR — Portfolio 2026
   Theme: "Timeline Defence" — TVA-inspired dark green + gold
   ============================================================ */

:root {
    --bg: #080c09;              /* tva night */
    --bg-alt: #0b120d;          /* deep green */
    --card: #10180f;            /* case-file card */
    --card-hover: #152013;
    --line: rgba(212, 175, 55, 0.16);
    --text: #efe9d8;            /* cream */
    --muted: #a8a78f;           /* aged paper */
    --gold: #d4af37;            /* tva gold */
    --gold-soft: #e8c15a;
    --amber: #e8963c;           /* crt amber */
    --green: #3f9f6e;
    --green-dim: #1d5c3d;
    --grad: linear-gradient(90deg, #d4af37, #e8963c);
    --radius: 14px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    --font-poster: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: var(--font-body);
    background:
        radial-gradient(900px 500px at 50% -10%, rgba(63, 159, 110, 0.10), transparent 60%),
        var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

::selection { background: rgba(212, 175, 55, 0.4); }

a { color: inherit; }

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-poster); font-weight: 400; letter-spacing: 2px; }

.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ================= SCROLL PROGRESS ================= */

#progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: var(--grad);
    z-index: 2000;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

/* ================= NAV ================= */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(8, 12, 9, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); }

.nav-inner {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 2px;
    text-decoration: none;
}

.brand-accent { color: var(--gold); }

.brand-dim { color: var(--muted); font-size: 0.75rem; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover { color: var(--gold-soft); }

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 2px;
    background: var(--grad);
    transition: width 0.25s ease;
}

.nav-links a:hover::after { width: 100%; }

.nav-cta {
    padding: 8px 20px;
    border: 1px solid var(--gold);
    border-radius: 4px;
    color: var(--gold) !important;
    font-family: var(--font-mono);
    font-size: 0.82rem !important;
    letter-spacing: 1px;
}

.nav-cta::after { display: none; }

.nav-cta:hover { background: rgba(212, 175, 55, 0.12); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= HERO ================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}

/* faint concentric time-rings, like a closed time-door */
.time-door {
    position: absolute;
    border: 1px solid rgba(212, 175, 55, 0.10);
    border-radius: 50%;
    pointer-events: none;
}

.door-1 {
    width: 900px; height: 900px;
    top: 50%; right: -14%;
    transform: translateY(-50%);
    box-shadow: inset 0 0 80px rgba(212, 175, 55, 0.05);
    animation: doorSpin 60s linear infinite;
}

.door-1::before, .door-1::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(63, 159, 110, 0.12);
    border-radius: 50%;
}

.door-1::before { inset: 120px; }
.door-1::after { inset: 240px; border-style: dashed; border-color: rgba(212, 175, 55, 0.08); }

@keyframes doorSpin { to { transform: translateY(-50%) rotate(360deg); } }

.grid-overlay {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
    pointer-events: none;
}

.hero-grid {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
    position: relative;
}

.file-stamp {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 6px 14px;
    margin-bottom: 1.2rem;
    background: rgba(212, 175, 55, 0.06);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.12);
}

.hero-text h1 {
    font-size: clamp(4rem, 10vw, 7.5rem);
    line-height: 0.92;
    color: var(--text);
    text-shadow:
        3px 3px 0 rgba(63, 159, 110, 0.55),
        6px 6px 0 rgba(232, 150, 60, 0.18);
    animation: glitchShift 7s infinite;
}

@keyframes glitchShift {
    0%, 92%, 100% { transform: translate(0); }
    93% { transform: translate(-2px, 1px); }
    95% { transform: translate(2px, -1px); }
    97% { transform: translate(-1px, 0); }
}

.hero-role {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 2.3vw, 1.35rem);
    margin: 1.1rem 0 1.2rem;
    color: var(--muted);
}

.typed { color: var(--gold-soft); font-weight: 600; }

.cursor { color: var(--gold); animation: blink 1s step-end infinite; }

@keyframes blink { 50% { opacity: 0; } }

.hero-sub { color: var(--muted); max-width: 34rem; font-size: 1rem; }

.hero-sub strong { color: var(--text); }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.7rem; }

.btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--grad);
    color: #221a05;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.22);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(212, 175, 55, 0.38); }

.btn-ghost {
    border: 1px solid var(--line);
    color: var(--text);
    background: transparent;
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-3px); }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--green);
    background: rgba(63, 159, 110, 0.08);
    border: 1px solid rgba(63, 159, 110, 0.35);
    padding: 6px 14px;
    border-radius: 999px;
    margin-top: 1.6rem;
}

.pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(63, 159, 110, 0.5); }
    50% { box-shadow: 0 0 0 7px rgba(63, 159, 110, 0); }
}

.hero-social { display: flex; gap: 0.8rem; margin-top: 1.4rem; }

.hero-social a {
    width: 42px; height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    transition: all 0.25s;
}

.hero-social a:hover {
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.15);
}

/* ================= CRT CONSOLE (TVA monitor) ================= */

.hero-visual { display: flex; justify-content: center; }

.terminal {
    width: 100%;
    max-width: 470px;
    position: relative;
    background: #0c1408;
    border: 2px solid #24301b;
    outline: 1px solid rgba(212, 175, 55, 0.35);
    outline-offset: 3px;
    border-radius: 18px;
    box-shadow: var(--shadow), 0 0 70px rgba(232, 150, 60, 0.08);
    overflow: hidden;
    transform: rotate(1.5deg);
    transition: transform 0.4s;
}

.terminal:hover { transform: rotate(0deg) scale(1.02); }

.terminal::after {           /* crt glass glare */
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(120% 60% at 50% 0%, rgba(232, 197, 122, 0.09), transparent 55%);
    pointer-events: none;
}

.scanlines {
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.16) 0px, rgba(0, 0, 0, 0.16) 1px,
        transparent 1px, transparent 4px
    );
    pointer-events: none;
    animation: crtFlicker 6s infinite;
}

@keyframes crtFlicker {
    0%, 97%, 100% { opacity: 1; }
    98% { opacity: 0.75; }
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0.75rem 1rem;
    background: #131c0d;
    border-bottom: 1px solid #24301b;
}

.t-dot { width: 11px; height: 11px; border-radius: 50%; }
.t-dot.red { background: #c05a3a; }
.t-dot.yellow { background: #d4af37; }
.t-dot.green { background: #3f9f6e; }

.terminal-title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 1px;
    color: var(--muted);
}

.t-clock {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--amber);
    margin-left: 0.7rem;
}

.terminal-body {
    position: relative;
    padding: 1.2rem 1.3rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 2;
    color: var(--amber);
}

.t-prompt { color: var(--gold); font-weight: 600; }

.t-out { color: #e8b96a; padding-left: 1.1rem; text-shadow: 0 0 8px rgba(232, 150, 60, 0.35); }

.t-hl { color: #b8e0a0; }

.t-blink { animation: blink 1s step-end infinite; color: var(--gold); }

/* ================= SECTIONS ================= */

.section { padding: 5.5rem 1.5rem; max-width: 1150px; margin: 0 auto; }

.section-alt {
    max-width: none;
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-alt > * { max-width: 1150px; margin-left: auto; margin-right: auto; }

.section-head { text-align: center; margin-bottom: 3rem; }

.section-kicker {
    font-family: var(--font-mono);
    color: var(--gold);
    font-size: 0.78rem;
    letter-spacing: 2.5px;
    margin-bottom: 0.6rem;
}

.section-head h2 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    color: var(--text);
}

.section-sub { color: var(--muted); margin-top: 0.8rem; max-width: 54rem; margin-inline: auto; font-size: 0.95rem; }

/* ================= ABOUT ================= */

.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
}

.about-photo { position: relative; display: flex; justify-content: center; }

.about-photo img {
    width: 260px; height: 260px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #24301b;
    position: relative;
    z-index: 1;
    filter: sepia(0.18) saturate(0.9);
}

.about-photo-ring {     /* time-door halo */
    position: absolute;
    inset: -14px; margin: auto;
    width: 288px; height: 288px;
    border-radius: 50%;
    border: 2px dashed rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 26px rgba(212, 175, 55, 0.15);
    animation: spin 24s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.about-body p { color: var(--muted); margin-bottom: 1.1rem; }

.about-body strong { color: var(--text); }

.fact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
    margin: 1.6rem 0 1.8rem;
}

.fact {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fact-k {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
}

.fact-v { font-weight: 600; font-size: 0.95rem; }

/* ================= EDUCATION (case files) ================= */

.edu-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 820px;
    margin: 0 auto;
}

.edu-card {
    display: flex;
    gap: 1.4rem;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 1.5rem 1.7rem;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.edu-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 16px 40px rgba(212, 175, 55, 0.08);
}

.edu-badge {
    flex-shrink: 0;
    width: 62px; height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
}

.edu-body h3 { font-family: var(--font-body); font-weight: 600; letter-spacing: 0.3px; font-size: 1.03rem; }

.edu-school { color: var(--muted); font-size: 0.92rem; margin: 0.25rem 0 0.7rem; }

.edu-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--gold-soft);
}

/* ================= EXPERIENCE (the timeline) ================= */

.exp-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    max-width: 860px;
    margin: 0 auto;
    padding-left: 2.2rem;
}

.exp-list::before {     /* the glowing timeline spine */
    content: '';
    position: absolute;
    left: 9px; top: 18px; bottom: 18px;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--gold) 8%, rgba(63, 159, 110, 0.8) 55%, transparent 100%);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
}

.exp-card {
    position: relative;
    display: flex;
    gap: 1.5rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.7rem 1.8rem;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.exp-card::before {     /* timeline node */
    content: '◈';
    position: absolute;
    left: -2.2rem; top: 1.6rem;
    color: var(--gold);
    font-size: 0.9rem;
    background: var(--bg);
    padding: 2px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
}

.exp-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: var(--shadow);
}

.exp-logo.grad-bg {
    flex-shrink: 0;
    width: 64px; height: 64px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad);
    color: #221a05;
    font-family: var(--font-poster);
    font-size: 1.35rem;
    letter-spacing: 1px;
}

.exp-body { flex: 1; }

.exp-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.7rem;
}

.exp-org {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.4px;
    font-size: 1.14rem;
}

.exp-role { color: var(--muted); font-size: 0.95rem; margin-top: 0.15rem; }

.exp-role em { color: var(--gold-soft); font-style: normal; }

.exp-when {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--amber);
    white-space: nowrap;
}

.exp-points { padding-left: 1.1rem; color: var(--muted); font-size: 0.93rem; }

.exp-points li { margin-bottom: 0.45rem; }

.exp-points strong { color: var(--text); }

.tl-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

.tl-tags span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 4px 11px;
    border-radius: 3px;
    background: rgba(212, 175, 55, 0.07);
    border: 1px solid rgba(212, 175, 55, 0.28);
    color: var(--gold-soft);
}

/* ================= PROJECTS (archive cards) ================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: var(--shadow);
}

.project-card.featured { border-color: rgba(212, 175, 55, 0.45); }

.project-banner {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(300px 120px at 50% 0%, rgba(212, 175, 55, 0.10), transparent 70%),
        #0c1209;
    border-bottom: 1px solid #24301b;
}

.project-banner img {
    max-height: 84px;
    max-width: 70%;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5)) sepia(0.15);
    transition: transform 0.3s;
}

.project-card:hover .project-banner img { transform: scale(1.08); }

.project-content {
    padding: 1.4rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
}

.project-content h3 {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.2px;
    font-size: 1.03rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-flag {
    font-size: 0.66rem;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    color: #221a05;
    background: var(--grad);
    padding: 2px 9px;
    border-radius: 3px;
    font-weight: 700;
}

.project-content p { color: var(--muted); font-size: 0.89rem; flex: 1; }

.project-actions { display: flex; gap: 0.7rem; margin-top: 0.4rem; }

.pbtn {
    flex: 1;
    text-align: center;
    padding: 9px 14px;
    border-radius: 4px;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    font-family: var(--font-mono);
    letter-spacing: 0.8px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.pbtn-git {
    background: rgba(168, 167, 143, 0.08);
    border: 1px solid var(--line);
    color: var(--text);
}

.pbtn-git:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }

.pbtn-live { background: var(--grad); color: #221a05; }

.pbtn-live:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3); }

/* ================= SKILLS (tool registry) ================= */

.skill-group-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--gold);
    margin: 2.2rem 0 1rem;
}

.icon-grid { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    width: 92px;
    padding: 0.9rem 0.4rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: transform 0.25s, border-color 0.25s;
}

.icon-item:hover { transform: translateY(-5px); border-color: rgba(212, 175, 55, 0.55); }

.icon-item img { width: 38px; height: 38px; }

.icon-item span { font-size: 0.75rem; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chips span {
    font-size: 0.83rem;
    padding: 5px 13px;
    border-radius: 3px;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--text);
    transition: color 0.2s, border-color 0.2s;
}

.chips span:hover { color: var(--gold-soft); border-color: var(--gold); }

.chips-lg span { font-size: 0.92rem; padding: 9px 18px; }

/* ================= SERVICES ================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}

.service-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-top: 3px solid var(--green-dim);
    border-radius: var(--radius);
    padding: 1.7rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.service-card:hover {
    transform: translateY(-6px);
    border-top-color: var(--gold);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.service-icon { font-size: 1.9rem; }

.service-card h3 { font-family: var(--font-body); font-weight: 600; letter-spacing: 0.3px; font-size: 1.02rem; }

.service-card p { color: var(--muted); font-size: 0.89rem; flex: 1; }

.service-stack {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--amber);
}

/* ================= CONTACT ================= */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}

.contact-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem 1.4rem;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: transform 0.25s, border-color 0.25s;
}

.contact-card:hover { transform: translateY(-5px); border-color: rgba(212, 175, 55, 0.55); }

.contact-icon { font-size: 1.7rem; }

.contact-k {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
}

.contact-v { font-size: 0.92rem; font-weight: 600; word-break: break-word; }

.contact-loc {
    text-align: center;
    color: var(--muted);
    margin-top: 2.5rem;
    font-size: 0.95rem;
}

/* ================= FOOTER ================= */

footer {
    text-align: center;
    padding: 3.5rem 1.5rem 1.6rem;
    border-top: 1px solid var(--line);
    background: var(--bg-alt);
}

.foot-brand {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--gold);
}

.foot-tag { color: var(--muted); font-size: 0.9rem; margin-top: 0.3rem; }

.foot-social {
    display: flex;
    justify-content: center;
    gap: 1.1rem;
    margin: 1.6rem 0;
}

.foot-social img {
    width: 38px; height: 38px;
    border-radius: 50%;
    transition: transform 0.25s;
}

.foot-social img:hover { transform: scale(1.15); }

.foot-clock {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    color: var(--amber);
}

.foot-copy {
    border-top: 1px solid var(--line);
    padding-top: 1.2rem;
    margin-top: 1.2rem;
    color: var(--muted);
    font-size: 0.85rem;
}

/* ================= SCROLL REVEAL ================= */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

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

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-sub { margin: 0 auto; }
    .hero-cta, .hero-social { justify-content: center; }
    .hero-visual { order: -1; }
    .terminal { transform: none; }
    .door-1 { right: -55%; opacity: 0.5; }
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .fact-grid { text-align: left; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
    .nav-links {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: rgba(8, 12, 9, 0.97);
        border-bottom: 1px solid var(--line);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .nav-links.open { max-height: 480px; }

    .nav-links a { padding: 1rem 1.5rem; width: 100%; }

    .nav-links a::after { display: none; }

    .nav-cta { border: none; border-radius: 0; }

    .nav-toggle { display: flex; }

    .hero { padding-top: 6.5rem; }

    .services-grid, .projects-grid { grid-template-columns: 1fr; }

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

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

    .section { padding: 4rem 1.2rem; }

    .edu-card, .exp-card { flex-direction: column; align-items: flex-start; }

    .exp-when { align-items: flex-start; }

    .exp-card::before { display: none; }

    .exp-list { padding-left: 0; }

    .exp-list::before { display: none; }
}
