/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
    /* Palette */
    --bg-deep: #050816;
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1629;
    --bg-card: #111d35;
    --bg-card-hover: #162040;
    --bg-elevated: #192245;

    --glass-bg: rgba(15, 22, 41, 0.65);
    --glass-border: rgba(99, 102, 241, 0.12);
    --glass-shine: rgba(255, 255, 255, 0.03);

    --text-white: #f8fafc;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dim: #475569;

    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-lighter: #a5b4fc;
    --accent-glow: rgba(99, 102, 241, 0.35);
    --accent-subtle: rgba(99, 102, 241, 0.08);
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --purple: #a78bfa;
    --emerald: #34d399;

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(99, 102, 241, 0.25);

    /* Typography */
    --font: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;

    /* Layout */
    --max-w: 1140px;
    --nav-h: 72px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast: 0.18s;
    --t-base: 0.3s;
    --t-slow: 0.5s;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-padding-top: var(--nav-h);
}

body {
    font-family: var(--font);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

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

/* =============================================
   ANIMATED BACKGROUND
   ============================================= */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Subtle dot grid */
.bg-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(99, 102, 241, 0.06) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Gradient orbs */
.bg-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 800px at 15% 5%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 600px 600px at 85% 30%, rgba(59, 130, 246, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 500px 500px at 50% 75%, rgba(167, 139, 250, 0.05) 0%, transparent 60%);
    animation: orbFloat 20s ease-in-out infinite alternate;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 15px) scale(1.05); }
    100% { transform: translate(10px, -10px) scale(0.98); }
}

/* =============================================
   UTILITY
   ============================================= */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
}

.section {
    padding: 110px 0;
    position: relative;
    z-index: 1;
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 14px;
}

.section-eyebrow i {
    font-size: 0.7rem;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.15;
    color: var(--text-white);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-top: 14px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.section-bar {
    width: 52px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), var(--blue));
    margin: 22px auto 0;
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    z-index: 1000;
    background: rgba(5, 8, 22, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid transparent;
    transition: background var(--t-base) var(--ease),
                border-color var(--t-base) var(--ease),
                box-shadow var(--t-base) var(--ease);
}

.navbar.scrolled {
    background: rgba(5, 8, 22, 0.92);
    border-bottom-color: var(--border);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Brand */
.nav-brand {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 3px;
}

.nav-brand .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-left: 2px;
    box-shadow: 0 0 12px var(--accent-glow);
    animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--accent-glow); }
    50% { opacity: 0.5; box-shadow: 0 0 6px var(--accent-glow); }
}

/* Nav Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: color var(--t-fast) var(--ease),
                background var(--t-fast) var(--ease);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.04);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
}

/* CTA */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 14px;
    padding: 9px 24px;
    background: var(--accent);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    box-shadow: 0 0 20px var(--accent-glow);
    transition: all var(--t-base) var(--ease);
}

.nav-cta:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 0 35px var(--accent-glow), 0 6px 20px rgba(99, 102, 241, 0.25);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    z-index: 1100;
}

.nav-hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: all var(--t-base) var(--ease);
    transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Overlay */
.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--t-base) var(--ease);
}

.nav-backdrop.show {
    display: block;
    opacity: 1;
}

/* =============================================
   HERO
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 28px 100px;
    position: relative;
    z-index: 1;
}

.hero-inner {
    max-width: 760px;
}

/* Availability badge */
.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 22px;
    background: var(--accent-subtle);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-lighter);
    margin-bottom: 32px;
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
    animation: dotPulse 2s ease-in-out infinite;
}

/* Hero Heading */
.hero h1 {
    font-size: clamp(2.6rem, 6.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -2px;
    color: var(--text-white);
    margin-bottom: 24px;
}

.hero .accent-line {
    display: block;
    background: linear-gradient(135deg, var(--accent) 0%, var(--blue) 40%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1.05rem, 2vw, 1.18rem);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 580px;
    margin: 0 auto 44px;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 34px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--t-base) var(--ease);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--t-fast) var(--ease);
}

.btn:hover::after {
    opacity: 1;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 30px var(--accent-glow), 0 2px 8px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 0 50px var(--accent-glow), 0 12px 30px rgba(99, 102, 241, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: rgba(99, 102, 241, 0.06);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn i {
    font-size: 0.9rem;
}

/* =============================================
   STATS STRIP
   ============================================= */
.stats-strip {
    position: relative;
    z-index: 1;
    margin-top: -50px;
    padding: 0 28px;
    margin-bottom: 30px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.stat-cell {
    padding: 38px 28px;
    text-align: center;
    position: relative;
    transition: background var(--t-base) var(--ease);
}

.stat-cell:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border);
}

.stat-cell:hover {
    background: rgba(99, 102, 241, 0.04);
}

.stat-num {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-text {
    font-size: 0.86rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* =============================================
   PROJECT CARDS
   ============================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 34px;
    position: relative;
    overflow: hidden;
    transition: all var(--t-slow) var(--ease);
}

/* Top accent bar */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--blue), var(--purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-slow) var(--ease);
}

/* Glow effect */
.project-card::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--t-slow) var(--ease);
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), 0 0 50px rgba(99, 102, 241, 0.08);
    background: var(--bg-card);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover::after {
    opacity: 1;
}

/* Span full width for 3rd card */
.project-card.full-width {
    grid-column: 1 / -1;
}

/* Card internals */
.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--accent-subtle);
    border: 1px solid rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent-light);
    transition: all var(--t-base) var(--ease);
}

.project-card:hover .card-icon {
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 20px var(--accent-glow);
}

.card-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-subtle);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.3px;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 0.94rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 22px;
}

/* Tech badges */
.tech-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

.badge {
    padding: 5px 14px;
    font-size: 0.76rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all var(--t-base) var(--ease);
    letter-spacing: 0.2px;
}

.project-card:hover .badge {
    border-color: rgba(99, 102, 241, 0.18);
    color: var(--text-secondary);
    background: rgba(99, 102, 241, 0.05);
}

/* Card link */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
    padding: 10px 22px;
    border-radius: var(--radius-md);
    background: var(--accent-subtle);
    border: 1px solid rgba(99, 102, 241, 0.12);
    transition: all var(--t-base) var(--ease);
    position: relative;
    z-index: 2;
}

.card-link:hover {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateX(4px);
    color: var(--accent-light);
}

.card-link i {
    font-size: 0.8rem;
    transition: transform var(--t-fast) var(--ease);
}

.card-link:hover i {
    transform: translate(2px, -2px);
}

/* =============================================
   EDUCATION & CERTS
   ============================================= */
.edu-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Education card */
.edu-main {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 38px;
    position: relative;
    overflow: hidden;
    transition: all var(--t-base) var(--ease);
}

.edu-main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-slow) var(--ease);
}

.edu-main:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.edu-main:hover::after {
    transform: scaleX(1);
}

.edu-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--accent-subtle);
    border: 1px solid rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent-light);
    margin-bottom: 24px;
}

.edu-main h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.edu-school {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 4px;
}

.edu-year {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.edu-year i {
    font-size: 0.75rem;
}

.edu-note {
    padding: 16px 20px;
    background: rgba(99, 102, 241, 0.05);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Certifications */
.cert-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cert-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all var(--t-base) var(--ease);
}

.cert-item:hover {
    border-color: var(--border-hover);
    transform: translateX(8px);
    background: var(--bg-card);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cert-badge {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-md);
    background: var(--accent-subtle);
    border: 1px solid rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent-light);
    transition: all var(--t-base) var(--ease);
}

.cert-item:hover .cert-badge {
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 15px var(--accent-glow);
}

.cert-meta h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 3px;
}

.cert-meta span {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cert-meta span i {
    font-size: 0.7rem;
    color: var(--emerald);
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
    padding: 110px 0 70px;
    position: relative;
    z-index: 1;
}

.contact-wrap {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.contact-wrap h2 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.15;
    margin-bottom: 18px;
    color: var(--text-white);
}

.contact-wrap h2 .accent-line {
    display: block;
    background: linear-gradient(135deg, var(--accent), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-wrap > p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 44px;
    line-height: 1.7;
}

/* Social row */
.socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 70px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--t-base) var(--ease);
}

.social-btn i {
    font-size: 1.15rem;
    color: var(--accent);
    transition: color var(--t-fast) var(--ease);
}

.social-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-white);
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    background: var(--bg-card);
}

.social-btn:hover i {
    color: var(--accent-light);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    border-top: 1px solid var(--border);
    padding: 34px 28px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer p {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.footer a {
    color: var(--accent);
    font-weight: 500;
    transition: color var(--t-fast) var(--ease);
}

.footer a:hover {
    color: var(--accent-light);
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.stagger-up > * {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.stagger-up.in-view > *:nth-child(1) { transition-delay: 0.06s; }
.stagger-up.in-view > *:nth-child(2) { transition-delay: 0.14s; }
.stagger-up.in-view > *:nth-child(3) { transition-delay: 0.22s; }
.stagger-up.in-view > *:nth-child(4) { transition-delay: 0.30s; }

.stagger-up.in-view > * {
    opacity: 1;
    transform: translateY(0);
}

/* Hero entrance */
.hero-enter {
    opacity: 0;
    transform: translateY(30px);
    animation: heroIn 0.7s var(--ease) forwards;
}

.hero-enter:nth-child(1) { animation-delay: 0s; }
.hero-enter:nth-child(2) { animation-delay: 0.1s; }
.hero-enter:nth-child(3) { animation-delay: 0.2s; }
.hero-enter:nth-child(4) { animation-delay: 0.3s; }

@keyframes heroIn {
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 1024px) {
    .projects-grid {
        gap: 22px;
    }

    .edu-layout {
        gap: 24px;
    }
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100dvh;
        background: rgba(5, 8, 22, 0.97);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 6px;
        padding: 60px 32px;
        transition: right 0.4s var(--ease);
        z-index: 999;
        border-left: 1px solid var(--border);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 14px 18px;
        width: 100%;
        border-radius: var(--radius-md);
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 16px;
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .hero {
        min-height: auto;
        padding: 110px 20px 70px;
    }

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .stats-strip {
        margin-top: -25px;
    }

    .stats-row {
        grid-template-columns: 1fr;
        border-radius: var(--radius-lg);
    }

    .stat-cell {
        padding: 26px 20px;
    }

    .stat-cell:not(:last-child)::after {
        display: none;
    }

    .stat-cell:not(:last-child) {
        border-bottom: 1px solid var(--border);
    }

    .section {
        padding: 80px 0;
    }

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

    .project-card.full-width {
        grid-column: auto;
    }

    .edu-layout {
        grid-template-columns: 1fr;
    }

    .socials {
        flex-direction: column;
        align-items: stretch;
    }

    .social-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .project-card {
        padding: 26px;
    }

    .edu-main {
        padding: 28px;
    }

    .cert-item {
        padding: 20px;
        gap: 14px;
    }
}
