/* ================================================================
   SanaUllah — CS Portfolio CSS  (Premium v3 — Ultra Redesign)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Fira+Code:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ================================================================
   DESIGN TOKENS
   ================================================================ */
:root {
    --bg:           #05080f;
    --bg-alt:       #080c14;
    --surface:      #0d1220;
    --surface2:     #111827;
    --surface3:     #1a2235;
    --border:       #1e2a3d;
    --border-hover: #2a3a52;
    --border-active:#3d5a80;

    /* Accent palette */
    --accent:       #4f9eff;
    --accent-light: #7ab8ff;
    --accent-dim:   rgba(79,158,255,0.1);
    --accent-glow:  rgba(79,158,255,0.3);
    --purple:       #b06eff;
    --purple-dim:   rgba(176,110,255,0.1);
    --green:        #34d399;
    --green-dim:    rgba(52,211,153,0.1);
    --orange:       #fb923c;
    --pink:         #f472b6;

    /* Text */
    --text:         #f0f6ff;
    --text-soft:    #c8d8f0;
    --text-muted:   #7a90b0;
    --text-dim:     #3d4f66;

    /* Radii */
    --radius-sm:    6px;
    --radius:       12px;
    --radius-lg:    16px;
    --radius-xl:    24px;

    --transition:   0.22s ease;
    --font:         'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --mono:         'Fira Code', ui-monospace, monospace;

    /* Glow effects */
    --glow-blue:    0 0 40px rgba(79,158,255,0.25), 0 0 80px rgba(79,158,255,0.1);
    --glow-purple:  0 0 40px rgba(176,110,255,0.2), 0 0 80px rgba(176,110,255,0.08);
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }
img { display: block; max-width: 100%; height: auto; }

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 2rem;
}

.accent  { color: var(--accent); }
.green   { color: var(--green); }
.purple  { color: var(--purple); }

/* ================================================================
   READING PROGRESS BAR
   ================================================================ */
#progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--purple), var(--accent), var(--green));
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px var(--accent), 0 0 24px rgba(79,158,255,0.4);
}

/* ================================================================
   CURSOR SPOTLIGHT
   ================================================================ */
#cursor-spotlight {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79,158,255,0.04) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* ================================================================
   SELECTION
   ================================================================ */
::selection { background: rgba(79,158,255,0.25); color: var(--text); }

/* ================================================================
   CUSTOM SCROLLBAR
   ================================================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ================================================================
   NOISE TEXTURE OVERLAY
   ================================================================ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 999;
    opacity: 0.4;
}

/* ================================================================
   NAVBAR
   ================================================================ */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s ease;
    padding: 1.25rem 0;
}

#navbar.scrolled {
    background: rgba(5, 8, 15, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-logo {
    font-family: var(--mono);
    font-size: 1.05rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.3px;
    white-space: nowrap;
    position: relative;
    padding: 0.25rem 0;
    transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.85; }

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

.nav-item {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
}

.nav-item:hover {
    color: var(--text);
    background: rgba(255,255,255,0.05);
}

.nav-item.active {
    color: var(--accent);
    background: var(--accent-dim);
}

/* Nav item active indicator line */
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    border-radius: 2px;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.nav-item:hover::after,
.nav-item.active::after {
    transform: translateX(-50%) scaleX(1);
}

.btn-resume {
    border: 1px solid rgba(79,158,255,0.4) !important;
    color: var(--accent) !important;
    margin-left: 0.5rem;
    background: rgba(79,158,255,0.06) !important;
}
.btn-resume::after { display: none !important; }
.btn-resume:hover {
    background: rgba(79,158,255,0.15) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 16px var(--accent-glow);
    color: var(--accent-light) !important;
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.4rem;
    z-index: 1100;
}
.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text-soft);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   SECTIONS
   ================================================================ */
.section { padding: 120px 0; }

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    position: relative;
}
.section-alt::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(79,158,255,0.02) 0%, transparent 50%, rgba(176,110,255,0.02) 100%);
    pointer-events: none;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: -1px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    color: var(--text);
    background: linear-gradient(135deg, var(--text) 60%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::before,
.section-title::after {
    content: '';
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--border-active));
}
.section-title::after {
    background: linear-gradient(270deg, transparent, var(--purple), var(--border-active));
}

/* Section number decoration */
.section-title .section-num {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--accent);
    opacity: 0.6;
    font-weight: 400;
    vertical-align: middle;
}

/* ================================================================
   HERO
   ================================================================ */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 7rem 2rem 6rem;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79,158,255,0.08) 0%, transparent 60%),
                radial-gradient(ellipse 60% 40% at 80% 80%, rgba(176,110,255,0.06) 0%, transparent 60%);
}

/* Dot grid */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(79,158,255,0.06) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.6rem;
    max-width: 760px;
    width: 100%;
    animation: heroFadeIn 1s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

    /* Avatar */
    .hero-avatar-wrap {
        position: relative;
        width: 220px; height: 220px;
        flex-shrink: 0;
    }

    #hero-avatar {
        width: 220px; height: 220px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid rgba(79,158,255,0.6);
        position: relative;
        z-index: 2;
        box-shadow: 0 0 0 8px rgba(79,158,255,0.1),
                    0 0 80px rgba(79,158,255,0.3),
                    0 0 160px rgba(79,158,255,0.15);
        transition: box-shadow 0.5s ease, transform 0.5s ease;
    }
#hero-avatar:hover {
    box-shadow: 0 0 0 8px rgba(79,158,255,0.14),
                0 0 80px rgba(79,158,255,0.4),
                0 0 160px rgba(79,158,255,0.15);
    transform: scale(1.03);
}

.avatar-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px dashed rgba(79,158,255,0.3);
    animation: spin 20s linear infinite;
    z-index: 1;
}

.avatar-ring-2 {
    position: absolute;
    inset: -22px;
    border-radius: 50%;
    border: 1px dashed rgba(176,110,255,0.18);
    animation: spin 35s linear infinite reverse;
    z-index: 1;
}

.avatar-ring-3 {
    position: absolute;
    inset: -36px;
    border-radius: 50%;
    border: 1px solid rgba(79,158,255,0.06);
    animation: spin 55s linear infinite;
    z-index: 1;
}

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

/* Hero text */
.hero-text { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }

.hero-greeting {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: var(--mono);
}

.hero-name {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1.0;
    background: linear-gradient(135deg, #ffffff 0%, #c8e4ff 35%, var(--accent) 70%, var(--purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(79,158,255,0.2));
}

.hero-typed-wrap {
    font-family: var(--mono);
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    color: var(--accent);
    min-height: 2em;
    padding: 0.4rem 1.1rem;
    background: linear-gradient(135deg, rgba(79,158,255,0.08) 0%, rgba(176,110,255,0.06) 100%);
    border: 1px solid rgba(79,158,255,0.2);
    border-radius: 100px;
    display: inline-block;
    position: relative;
    box-shadow: 0 0 20px rgba(79,158,255,0.08);
}

.cursor {
    display: inline-block;
    font-weight: 300;
    color: var(--accent);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    font-weight: 400;
}

/* CTA buttons */
.hero-cta {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.78rem 1.75rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    border: none;
    text-decoration: none;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #3d8bef 100%);
    color: #050810;
    box-shadow: 0 4px 24px rgba(79,158,255,0.35), 0 0 0 1px rgba(79,158,255,0.2);
}
.btn-primary::before {
    content:'';
    position:absolute;
    inset:0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
    pointer-events:none;
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 36px rgba(79,158,255,0.5), 0 0 0 1px rgba(79,158,255,0.4);
    color: #050810;
}

.btn-outline {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-hover);
    color: var(--text-soft);
    backdrop-filter: blur(8px);
}
.btn-outline:hover {
    border-color: rgba(79,158,255,0.5);
    color: var(--accent);
    background: rgba(79,158,255,0.08);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(79,158,255,0.15);
}

/* Social icons */
.hero-socials {
    display: flex;
    gap: 0.7rem;
    margin-top: 0.35rem;
}

.hero-socials a {
    width: 42px; height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    border: 1px solid var(--border-hover);
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(8px);
}
.hero-socials a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-4px) scale(1.1);
    background: var(--accent-dim);
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* Social icon color variations */
.hero-socials a:nth-child(1):hover { border-color: var(--text-soft); color: var(--text-soft); background: rgba(255,255,255,0.06); box-shadow: 0 6px 20px rgba(255,255,255,0.1); }
.hero-socials a:nth-child(2):hover { border-color: #0a66c2; color: #4f9eff; background: rgba(79,158,255,0.08); }
.hero-socials a:nth-child(3):hover { border-color: var(--text-soft); color: var(--text-soft); background: rgba(255,255,255,0.05); }
.hero-socials a:nth-child(4):hover { border-color: var(--pink); color: var(--pink); background: rgba(244,114,182,0.08); box-shadow: 0 6px 20px rgba(244,114,182,0.2); }

/* Scroll chevron */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-dim);
    font-size: 1rem;
    animation: floatDown 2.5s ease-in-out infinite;
    z-index: 1;
    transition: color var(--transition);
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
}
.scroll-indicator:hover { color: var(--accent); border-color: var(--accent); }

@keyframes floatDown {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
    50%       { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ================================================================
   ABOUT
   ================================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: var(--text);
    letter-spacing: -0.6px;
    line-height: 1.2;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.15rem;
    line-height: 1.9;
    font-size: 0.975rem;
}

.about-text blockquote {
    position: relative;
    border-left: 2px solid var(--accent);
    padding: 1.1rem 1.4rem;
    margin: 1.75rem 0;
    background: linear-gradient(135deg, rgba(79,158,255,0.07) 0%, rgba(176,110,255,0.04) 100%);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.7;
    box-shadow: inset 0 0 24px rgba(79,158,255,0.04);
}
.about-text blockquote::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 0.8rem;
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.25rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--surface);
    border: 1px solid var(--border-hover);
    border-radius: 100px;
    padding: 0.32rem 0.95rem;
    font-size: 0.79rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.22s ease;
}
.badge:hover {
    border-color: var(--accent);
    color: var(--text-soft);
    background: var(--accent-dim);
    transform: translateY(-2px);
}
.badge i { color: var(--accent); font-size: 0.72rem; }

/* Stat cards */
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    position: sticky;
    top: 100px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top center, rgba(79,158,255,0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.stat-card:hover {
    border-color: rgba(79,158,255,0.35);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(79,158,255,0.15);
}
.stat-card:hover::before { opacity: 1; }
.stat-card:hover::after  { transform: scaleX(1); }

.stat-num {
    display: block;
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    font-family: var(--mono);
    letter-spacing: -1px;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* ================================================================
   SKILLS
   ================================================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.15rem;
}

.skill-category {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.6rem 1.4rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.skill-category::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, rgba(79,158,255,0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.skill-category:hover {
    border-color: var(--border-active);
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.skill-category:hover::before { transform: scaleX(1); }
.skill-category:hover::after  { opacity: 1; }

.skill-category h4 {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    z-index: 1;
}
.skill-category h4 i { color: var(--accent); font-size: 0.82rem; }

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    position: relative;
    z-index: 1;
}

.skill-tags span {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.75rem;
    font-family: var(--mono);
    font-size: 0.76rem;
    color: var(--text-muted);
    transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
    cursor: default;
}
.skill-tags span:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 12px rgba(79,158,255,0.2);
}

/* ================================================================
   PROJECTS
   ================================================================ */
.year-group { margin-bottom: 4rem; }

.year-label {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-bottom: 2rem;
}
.year-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-hover), transparent);
}
.year-label span {
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    background: linear-gradient(135deg, rgba(79,158,255,0.12), rgba(176,110,255,0.08));
    border: 1px solid rgba(79,158,255,0.25);
    padding: 0.3rem 1rem;
    border-radius: 100px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.35rem;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 0 1px rgba(79,158,255,0);
    transition: box-shadow 0.3s ease;
    pointer-events: none;
    z-index: 3;
}

.project-card:hover {
    border-color: rgba(79,158,255,0.35);
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 60px rgba(79,158,255,0.14), 0 4px 16px rgba(0,0,0,0.5);
}
.project-card:hover::after {
    box-shadow: inset 0 0 0 1px rgba(79,158,255,0.2);
}

.project-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--surface2);
}

.project-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.project-card:hover .project-img-wrap img { transform: scale(1.08); }

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5,8,15,0.88) 0%, rgba(79,158,255,0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}
.project-card:hover .project-overlay { opacity: 1; }

.overlay-btn {
    background: var(--accent);
    color: #050810;
    border-radius: 100px;
    padding: 0.55rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    transform: translateY(12px);
    opacity: 0;
    box-shadow: 0 4px 20px rgba(79,158,255,0.4);
}
.project-card:hover .overlay-btn {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1) 0.05s;
}
.overlay-btn:hover {
    background: var(--accent-light);
    color: #050810;
    transform: scale(1.06);
    box-shadow: 0 6px 28px rgba(79,158,255,0.5);
}

.project-info {
    padding: 1.35rem 1.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.project-info h3 {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.project-info p {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.7rem;
    border-top: 1px solid var(--border);
}

.project-tags span {
    font-size: 0.7rem;
    font-family: var(--mono);
    background: linear-gradient(135deg, rgba(79,158,255,0.1), rgba(176,110,255,0.08));
    color: var(--accent);
    border-radius: 100px;
    padding: 0.2rem 0.65rem;
    border: 1px solid rgba(79,158,255,0.2);
    letter-spacing: 0.02em;
    font-weight: 500;
}

/* ================================================================
   EXPERIENCE SNAKE LAYOUT
   ================================================================ */
.exp-snake {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem; /* Tighter layout */
}

.exp-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.exp-row-reverse {
    direction: rtl; /* For visual order, but we'll flip card body back */
}
.exp-row-reverse .exp-card {
    direction: ltr;
}

.exp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
    z-index: 2;
}

.exp-card:hover {
    border-color: rgba(79,158,255,0.4);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(79,158,255,0.15);
}

.exp-card-thumb {
    width: 100%;
    height: 140px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-alt);
    border: 1px solid var(--border);
}

.exp-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.exp-card:hover .exp-card-thumb img {
    transform: scale(1.1);
}

.exp-thumb-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.exp-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.exp-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-soft);
}

.exp-company {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

/* Expanding the active area to cover the text container, leaving images viewable */
.exp-company::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
}

.exp-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Connectors & Z-Pattern Snake */
.exp-row::before {
    content: '';
    position: absolute;
    top: 94px; /* Center of image assuming padding 24px + half of 140px thumb */
    left: var(--card-center, 16.66%);
    right: var(--card-center, 16.66%);
    height: 8px; /* Thicker */
    background: var(--accent);
    z-index: 1;
    border-radius: 8px;
    box-shadow: 0 0 16px rgba(79, 158, 255, 0.4); /* Softer glow */
}

/* Loop down to next row on the RIGHT (Standard direction rows: 1, 3) except last */
.exp-row:not(.exp-row-reverse):not(:last-child)::after {
    content: '';
    position: absolute;
    top: 94px;
    right: calc(var(--card-center, 16.66%) - 140px);
    width: 140px;
    bottom: calc(-3rem - 94px - 8px); /* Account for 3rem gap + 8px thickness perfectly */
    border: 8px solid var(--accent);
    border-left: none; /* Open on the left */
    border-top-right-radius: 250px; /* Highly rounded curve */
    border-bottom-right-radius: 250px;
    z-index: 1;
    box-shadow: 16px 0 16px -6px rgba(79, 158, 255, 0.4);
}

/* Loop down to next row on the LEFT (Reverse direction rows: 2) except last */
.exp-row.exp-row-reverse:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 94px;
    left: calc(var(--card-center, 16.66%) - 140px);
    width: 140px;
    bottom: calc(-3rem - 94px - 8px);
    border: 8px solid var(--accent);
    border-right: none; /* Open on the right */
    border-top-left-radius: 250px;
    border-bottom-left-radius: 250px;
    z-index: 1;
    box-shadow: -16px 0 16px -6px rgba(79, 158, 255, 0.4);
}

.exp-connector {
    display: none !important; /* Hide to rely purely on flex gap for tight layout */
}

/* Response for Snake */
@media (max-width: 992px) {
    .exp-row { grid-template-columns: 1fr; }
    .exp-connector { display: none; }
    .exp-row-reverse { direction: ltr; }
    
    /* Fallback to single straight line on tablet and mobile */
    .exp-snake::before {
        content: '';
        position: absolute;
        top: 94px;
        bottom: 50px;
        left: 50%;
        width: 6px;
        background: var(--accent);
        transform: translateX(-50%);
        box-shadow: 0 0 12px rgba(79, 158, 255, 0.4);
        z-index: 1;
    }
    .exp-row::before, .exp-row::after {
        display: none !important;
    }
}

/* Mobile Performance & Smoothness Enhancements */
@media (max-width: 640px) {
    .exp-card, .project-card, .stat-card, .highlight-card, .cert-card, .about-text blockquote {
        box-shadow: none !important;
    }
    .exp-card:hover, .project-card:hover, .stat-card:hover, .highlight-card:hover, .cert-card:hover {
        transform: translateY(-2px) !important;
    }
    #navbar.scrolled {
        backdrop-filter: blur(10px) saturate(100%);
        -webkit-backdrop-filter: blur(10px) saturate(100%);
    }
}

/* ================================================================
   LIGHTBOX
   ================================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 15, 0.95);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 25px 80px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10001;
}

.lightbox-close:hover {
    background: var(--accent);
    transform: scale(1.1) rotate(90deg);
}

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

/* ================================================================
   CERTIFICATES
   ================================================================ */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.2rem;
}

.cert-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    cursor: default;
    position: relative;
}
.cert-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79,158,255,0.04) 0%, rgba(176,110,255,0.04) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.cert-card:hover {
    border-color: rgba(79,158,255,0.35);
    transform: translateY(-7px) scale(1.01);
    box-shadow: 0 16px 48px rgba(79,158,255,0.15);
}
.cert-card:hover::after { opacity: 1; }

.cert-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cert-card:hover img { transform: scale(1.07); }

.cert-label {
    padding: 0.75rem 1.1rem;
    font-size: 0.79rem;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,0.012);
    letter-spacing: 0.01em;
}

/* ================================================================
   HIGHLIGHTS
   ================================================================ */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.4rem;
}

.highlight-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
}
.highlight-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(52,211,153,0.03) 0%, rgba(79,158,255,0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}
.highlight-card:hover {
    border-color: rgba(52,211,153,0.35);
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 44px rgba(52,211,153,0.12), 0 4px 12px rgba(0,0,0,0.3);
}
.highlight-card:hover::after { opacity: 1; }

/* Single-image highlight */
.hl-imgs {
    position: relative;
    overflow: hidden;
    background: var(--bg);
    aspect-ratio: 16/9;
}

.hl-imgs img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.highlight-card:hover .hl-imgs img { transform: scale(1.05); }

/* ---- Highlight Carousel (2-image cards) ---- */
.hl-carousel {
    position: relative;
}

.hl-carousel .hl-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}
.hl-carousel .hl-slide.active {
    opacity: 1;
    position: relative;
    z-index: 2;
}

/* Carousel nav arrows */
.hl-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(5, 8, 15, 0.65);
    backdrop-filter: blur(8px);
    color: var(--text-soft);
    font-size: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.25s ease;
}
.hl-carousel-btn.hl-prev { left: 8px; }
.hl-carousel-btn.hl-next { right: 8px; }
.highlight-card:hover .hl-carousel-btn {
    opacity: 1;
}
.hl-carousel-btn:hover {
    background: rgba(52,211,153,0.3);
    border-color: var(--green);
    color: #fff;
    transform: translateY(-50%) scale(1.15);
}

/* Carousel dots */
.hl-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 6px;
}

.hl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.15);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}
.hl-dot.active {
    background: var(--green);
    border-color: var(--green);
    box-shadow: 0 0 8px rgba(52,211,153,0.6);
    transform: scale(1.2);
}
.hl-dot:hover:not(.active) {
    background: rgba(255,255,255,0.4);
    transform: scale(1.15);
}

.hl-info {
    padding: 0.95rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.hl-info h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-soft);
}

.hl-year {
    font-size: 0.7rem;
    color: var(--green);
    font-family: var(--mono);
    background: var(--green-dim);
    border: 1px solid rgba(52,211,153,0.25);
    border-radius: 100px;
    padding: 0.18rem 0.7rem;
    white-space: nowrap;
    font-weight: 500;
    transition: all 0.25s ease;
}
.highlight-card:hover .hl-year {
    background: rgba(52,211,153,0.15);
    border-color: rgba(52,211,153,0.4);
}

/* ================================================================
   CONTACT
   ================================================================ */
.contact-sub {
    text-align: center;
    color: var(--text-muted);
    max-width: 520px;
    margin: -2.5rem auto 3rem;
    line-height: 1.8;
    font-size: 1rem;
}

.contact-grid { display: flex; justify-content: center; }

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 720px;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at bottom, rgba(79,158,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.contact-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    transform: scaleX(0);
    transition: transform 0.35s ease;
}

.contact-card i {
    font-size: 1.6rem;
    color: var(--accent);
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.contact-card:hover {
    border-color: rgba(79,158,255,0.35);
    color: var(--text-soft);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(79,158,255,0.14);
}
.contact-card:hover::before { opacity: 1; }
.contact-card:hover::after  { transform: scaleX(1); }
.contact-card:hover i { transform: scale(1.25) translateY(-2px); color: var(--accent-light); }

.resume-card {
    border-color: rgba(79,158,255,0.2);
    background: linear-gradient(135deg, rgba(79,158,255,0.05) 0%, rgba(176,110,255,0.04) 100%);
    grid-column: 1 / -1;
    padding: 1.5rem;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
}
.resume-card i { font-size: 1.4rem; color: var(--accent-light); }
.resume-card:hover { background: linear-gradient(135deg, rgba(79,158,255,0.12) 0%, rgba(176,110,255,0.08) 100%); }

/* ================================================================
   FOOTER
   ================================================================ */
#footer {
    background: var(--bg-alt);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 3rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 500px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--purple), transparent);
}

.footer-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.footer-copy {
    font-size: 0.73rem;
    color: var(--text-dim);
    font-family: var(--mono);
}

.footer-heart {
    color: #f87171;
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25%       { transform: scale(1.3); }
    50%       { transform: scale(1.1); }
}

/* ================================================================
   BACK TO TOP
   ================================================================ */
#back-to-top {
    position: fixed;
    bottom: 2.25rem;
    right: 2.25rem;
    width: 46px; height: 46px;
    border-radius: var(--radius);
    background: var(--surface2);
    border: 1px solid var(--border-hover);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    z-index: 999;
    backdrop-filter: blur(12px);
}
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
#back-to-top:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #050810;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 24px rgba(79,158,255,0.4);
}

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.projects-grid .project-card:nth-child(2) { transition-delay: 0.07s; }
.projects-grid .project-card:nth-child(3) { transition-delay: 0.14s; }
.projects-grid .project-card:nth-child(4) { transition-delay: 0.21s; }
.certs-grid .cert-card:nth-child(2) { transition-delay: 0.06s; }
.certs-grid .cert-card:nth-child(3) { transition-delay: 0.12s; }
.certs-grid .cert-card:nth-child(4) { transition-delay: 0.18s; }
.highlights-grid .highlight-card:nth-child(2) { transition-delay: 0.07s; }
.highlights-grid .highlight-card:nth-child(3) { transition-delay: 0.14s; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-stats { position: static; }
    .contact-cards { grid-template-columns: repeat(2, 1fr); }
    .resume-card { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(5, 8, 15, 0.97);
        backdrop-filter: blur(24px);
        padding: 1rem 1.25rem 1.5rem;
        border-bottom: 1px solid var(--border);
        gap: 0.2rem;
    }
    .nav-links.open { display: flex; }
    .nav-item { text-align: center; padding: 0.65rem; }

    .timeline::before { left: 10px; }
    .timeline-item { padding-left: 40px; }
    .timeline-dot { left: 2px; width: 14px; height: 14px; }
    .timeline-card::before { display: none; }
    .tl-header { flex-direction: column; gap: 0.5rem; }

    .section { padding: 85px 0; }
    .projects-grid { grid-template-columns: 1fr; }
    .certs-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
    .highlights-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr; }
    .hero-name { letter-spacing: -2px; }
}

@media (max-width: 520px) {
    .contact-cards { grid-template-columns: 1fr 1fr; }
    .resume-card { flex-direction: column; gap: 0.5rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .certs-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .stat-num { font-size: 2.2rem; }
}
