/* ========================================
   DESIGN TOKENS
   ======================================== */

:root {
    --bg: #0A192F;
    --bg-elevated: #0d2137;
    --card: #112240;
    --surface: rgba(17, 34, 64, 0.92);
    --surface-hover: rgba(23, 42, 77, 0.96);
    --border: rgba(0, 212, 255, 0.2);
    --border-strong: rgba(0, 212, 255, 0.45);

    --text: #ffffff;
    --text-muted: #a8b2d1;
    --text-dim: #8892b0;

    --accent: #00D4FF;
    --accent-cyan: #00D4FF;
    --accent-soft: #66E5FF;
    --accent-cyan-soft: #66E5FF;
    --accent-2: #0099CC;
    --accent-warm: #fbbf24;

    --gradient: linear-gradient(135deg, #00D4FF 0%, #66E5FF 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(0, 153, 204, 0.08));

    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 48px rgba(0, 212, 255, 0.18);
    --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 212, 255, 0.12), 0 0 40px rgba(0, 212, 255, 0.1);

    --font-display: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 50% at 15% 20%, rgba(0, 212, 255, 0.08), transparent 55%),
        radial-gradient(ellipse 55% 45% at 85% 15%, rgba(0, 153, 204, 0.06), transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 85%, rgba(0, 212, 255, 0.05), transparent 55%),
        radial-gradient(ellipse 30% 25% at 70% 60%, rgba(0, 212, 255, 0.04), transparent 50%),
        linear-gradient(180deg, #0A192F 0%, #0A192F 50%, #0d2137 100%);
}

.bg-mesh::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 20px 30px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 60px 70px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 130px 80px, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1px 1px at 90px 10px, rgba(200, 220, 255, 0.8), transparent),
        radial-gradient(2px 2px at 50px 50px, rgba(255, 255, 255, 0.95), transparent),
        radial-gradient(1px 1px at 170px 120px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 220px 40px, rgba(186, 230, 253, 0.75), transparent),
        radial-gradient(1px 1px at 280px 160px, rgba(255, 255, 255, 0.7), transparent);
    background-repeat: repeat;
    background-size: 300px 300px;
    animation: twinkle 4s ease-in-out infinite, drift-stars-slow 70s linear infinite;
    opacity: 0.7;
}

.bg-mesh::after {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(1px 1px at 10px 10px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 40px 25px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 75px 55px, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1px 1px at 110px 15px, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(1px 1px at 155px 90px, rgba(200, 220, 255, 0.45), transparent);
    background-repeat: repeat;
    background-size: 180px 180px;
    animation: drift-stars 45s linear infinite;
    opacity: 0.45;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.95; }
}

@keyframes drift-stars-slow {
    from { transform: translate(0, 0); }
    to { transform: translate(-300px, -200px); }
}

@keyframes drift-stars {
    from { transform: translate(0, 0); }
    to { transform: translate(-180px, -280px); }
}

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

.scroll-reveal {
    opacity: 0;
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.scroll-reveal.reveal-left {
    transform: translateX(-56px);
}

.scroll-reveal.reveal-right {
    transform: translateX(56px);
}

.scroll-reveal.reveal-up {
    transform: translateY(48px);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

.scroll-reveal.delay-1 { transition-delay: 0.08s; }
.scroll-reveal.delay-2 { transition-delay: 0.16s; }
.scroll-reveal.delay-3 { transition-delay: 0.24s; }
.scroll-reveal.delay-4 { transition-delay: 0.32s; }
.scroll-reveal.delay-5 { transition-delay: 0.4s; }

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

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none !important;
        transition: none;
    }
}

div, section, header, footer, nav, article {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-header {
    margin-bottom: 3rem;
}

.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-header h2,
.featured-projects h2,
.skills-preview h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: transparent;
    border-bottom: none;
}

.navbar .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.04em;
    flex-shrink: 0;
    justify-self: start;
    opacity: 0.78;
    transition: opacity 0.2s ease;
}

.nav-brand:hover {
    opacity: 1;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.2rem;
    margin: 0;
    padding: 0.35rem 0.45rem;
    justify-self: center;
    grid-column: 2;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(17, 34, 64, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.nav-menu a {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: color 0.2s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, opacity 0.2s ease;
}

.nav-menu a:hover {
    color: #ffffff;
}

.nav-menu a.active {
    color: #ffffff;
    background: rgba(0, 212, 255, 0.24);
    border: 1px solid rgba(102, 229, 255, 0.45);
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.35);
    opacity: 1;
}

.nav-resume {
    flex-shrink: 0;
    justify-self: end;
    grid-column: 3;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    justify-self: end;
    grid-column: 3;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, #00D4FF, #00A8CC);
    color: #0A192F;
    box-shadow: 0 8px 28px rgba(0, 212, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: var(--accent);
    color: var(--accent-soft);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border-color: var(--border);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: rgba(148, 163, 184, 0.3);
}

.btn-resume {
    background: rgba(17, 34, 64, 0.45);
    color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0.78;
}

.btn-resume:hover {
    opacity: 1;
    background: rgba(17, 34, 64, 0.55);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

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

.hero {
    padding: 5rem 0 6rem;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    overflow: visible;
}

.hero > .container {
    padding-top: clamp(9rem, 18vw, 11rem);
}

.hero::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent 70%);
    border-radius: 50%;
    top: -120px;
    left: -120px;
    animation: nebula-float 16s ease-in-out infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(0, 153, 204, 0.1), transparent 70%);
    border-radius: 50%;
    bottom: -80px;
    right: -60px;
    animation: nebula-float 20s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes nebula-float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.85; }
    50% { transform: translate(45px, -35px) scale(1.1); opacity: 1; }
}

.hero-panel {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 3vw, 2rem);
    justify-items: center;
    text-align: center;
    overflow: visible;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    background: var(--card);
    border: 1px solid rgba(0, 212, 255, 0.28);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 720px;
}

.hero-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 6%;
    right: 6%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.7), transparent);
    z-index: 4;
}

.hero-callout {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    max-width: 100%;
    margin-bottom: 0.85rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    font-size: clamp(0.78rem, 1.6vw, 0.92rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.45);
    box-shadow:
        0 0 24px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-callout-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.85);
    animation: callout-pulse 1.8s ease-in-out infinite;
}

@keyframes callout-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(0.88); }
}

.hero-callout-text {
    line-height: 1.35;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.65rem;
    margin-bottom: 1.1rem;
}

.hero-proof-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-cyan-soft);
}

.hero-proof-item::before {
    content: '✓';
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 6vw, 4.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 1.75rem;
    line-height: 1.8;
}

.hero-description p {
    margin: 0 0 1rem;
}

.hero-description p:last-child {
    margin-bottom: 0;
}

.hero-description strong {
    color: var(--text);
    font-weight: 600;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--accent-soft);
    transition: var(--transition);
}

.badge:hover {
    background: rgba(0, 212, 255, 0.14);
    border-color: rgba(0, 212, 255, 0.5);
    color: #ffffff;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}

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

.hero-visual-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.hero-quick-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    width: 100%;
}

.quick-action-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(12px);
}

.quick-action-btn svg {
    width: 18px;
    height: 18px;
}

.quick-action-btn:hover {
    color: var(--accent-cyan);
    border-color: var(--border-strong);
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.section-anchor {
    scroll-margin-top: 88px;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.about-section.section-anchor,
.experience-section.section-anchor,
.skills-section.section-anchor,
.education-section.section-anchor {
    padding-top: 3rem;
}

.portfolio-section.section-anchor {
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.contact-section.section-anchor {
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.contact-form-wrapper h3,
.contact-info h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.info-item h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
}

.portfolio-filter {
    padding: 0 0 2rem;
    text-align: center;
}

.portfolio-filter .filter-buttons {
    justify-content: center;
}

.hero-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
}

.hero-card-inner {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid rgba(0, 212, 255, 0.25);
    box-shadow: var(--shadow-card);
}

.hero-waver {
    --waver-foot-overlap: 2px;
    position: absolute;
    top: 0;
    left: 50%;
    width: clamp(118px, 14vw, 158px);
    z-index: 6;
    pointer-events: auto;
    cursor: pointer;
    transform: translate(-50%, calc(-100% + var(--waver-foot-overlap)));
    transform-origin: center bottom;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
    animation: hero-waver-idle 4.5s ease-in-out infinite;
}

.hero-waver .aura-callout {
    --mouth-x: 50%;
    --mouth-y: 29%;
    position: absolute;
    left: var(--mouth-x);
    top: var(--mouth-y);
    z-index: 8;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    transform: scale(0.2);
    transform-origin: 0 0;
    transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.34, 1.5, 0.64, 1);
}

.hero-waver .aura-callout-tail,
.about-sitter .aura-callout-tail {
    position: absolute;
    left: -13px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 13px solid rgba(17, 34, 64, 0.95);
    transform: translateY(-50%);
    filter: drop-shadow(1px 0 0 rgba(0, 212, 255, 0.45));
    z-index: 2;
}

.hero-waver .aura-callout-text,
.about-sitter .aura-callout-text {
    position: relative;
    display: block;
    margin: 0;
    transform: translate(calc(-100% - 2px), calc(-100% + 16px));
    padding: 0.4rem 0.85rem 0.45rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.45);
    background: rgba(17, 34, 64, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(0, 212, 255, 0.15);
    font-family: var(--font-display);
    font-size: clamp(0.68rem, 1.6vw, 0.82rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--accent-soft);
    white-space: nowrap;
}

.hero-waver .aura-callout.visible,
.about-sitter .aura-callout.visible {
    opacity: 1;
    transform: scale(1);
    animation: aura-talk 0.38s ease-in-out infinite alternate;
}

.hero-waver.is-talking .waver-head {
    animation: mouth-talk 0.32s ease-in-out infinite alternate;
}

.about-sitter .aura-callout {
    --mouth-x: 50%;
    --mouth-y: 26%;
    position: absolute;
    left: var(--mouth-x);
    top: var(--mouth-y);
    z-index: 8;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    transform: scale(0.2);
    transform-origin: 0 0;
    transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.34, 1.5, 0.64, 1);
}

.about-sitter.is-talking .sitter-head {
    animation: mouth-talk 0.32s ease-in-out infinite alternate;
}

@keyframes aura-talk {
    from {
        transform: scale(0.96);
    }
    to {
        transform: scale(1.06);
    }
}

@keyframes mouth-talk {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(1px) scale(1.02); }
}

.waver-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    vertical-align: bottom;
}

.waver-arm-left {
    transform-origin: 36px 72px;
}

.waver-arm-right {
    transform-origin: 104px 72px;
    animation: hero-wave 1.1s ease-in-out infinite;
}

.waver-head {
    transform-origin: 70px 42px;
    animation: sitter-head-bob 4.5s ease-in-out infinite;
}

.hero-waver.is-dancing {
    animation: hero-waver-dance 0.85s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.hero-waver.is-dancing .waver-arm-left {
    animation: waver-arm-left-dance 0.42s ease-in-out infinite alternate-reverse;
}

.hero-waver.is-dancing .waver-arm-right {
    animation: hero-wave-dance 0.35s ease-in-out infinite alternate;
}

@keyframes hero-waver-idle {
    0%, 100% { transform: translate(-50%, calc(-100% + var(--waver-foot-overlap))); }
    50% { transform: translate(-50%, calc(-100% + var(--waver-foot-overlap) - 4px)); }
}

@keyframes hero-waver-dance {
    0%, 100% {
        transform: translate(-50%, calc(-100% + var(--waver-foot-overlap))) rotate(0deg) scale(1);
    }
    12% {
        transform: translate(-50%, calc(-100% + var(--waver-foot-overlap) - 16px)) rotate(-7deg) scale(1.03);
    }
    25% {
        transform: translate(-50%, calc(-100% + var(--waver-foot-overlap))) rotate(8deg) scale(0.98);
    }
    37% {
        transform: translate(-50%, calc(-100% + var(--waver-foot-overlap) - 20px)) rotate(-10deg) scale(1.04);
    }
    50% {
        transform: translate(-50%, calc(-100% + var(--waver-foot-overlap))) rotate(6deg) scale(1);
    }
    62% {
        transform: translate(-50%, calc(-100% + var(--waver-foot-overlap) - 14px)) rotate(-5deg) scale(1.02);
    }
    75% {
        transform: translate(-50%, calc(-100% + var(--waver-foot-overlap) + 2px)) rotate(9deg) scale(0.99);
    }
    87% {
        transform: translate(-50%, calc(-100% + var(--waver-foot-overlap) - 12px)) rotate(-4deg) scale(1.01);
    }
}

@keyframes hero-wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-16deg); }
    75% { transform: rotate(20deg); }
}

@keyframes hero-wave-dance {
    from { transform: rotate(-28deg); }
    to { transform: rotate(32deg); }
}

@keyframes waver-arm-left-dance {
    from { transform: rotate(8deg); }
    to { transform: rotate(-22deg); }
}

.hero-card-glow {
    position: absolute;
    inset: -1px;
    background: var(--gradient);
    opacity: 0.35;
    z-index: 0;
    filter: blur(40px);
}

.dance-music-player {
    position: fixed;
    width: 1px;
    height: 1px;
    left: -9999px;
    top: auto;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-panel-toolbar {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: -0.35rem 0 0.15rem;
    z-index: 8;
}

.dance-toggle {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.15rem;
    border: 2px solid rgba(0, 212, 255, 0.55);
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.1);
    backdrop-filter: blur(12px);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 0 22px rgba(0, 212, 255, 0.3);
    animation: dance-btn-glow 2.2s ease-in-out infinite alternate;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dance-toggle:hover {
    transform: scale(1.06);
    border-color: rgba(0, 212, 255, 0.85);
    background: rgba(0, 212, 255, 0.16);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 32px rgba(0, 212, 255, 0.45);
}

.dance-toggle[aria-pressed="true"] {
    color: #0A192F;
    border-color: #00D4FF;
    background: #00D4FF;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 0 36px rgba(0, 212, 255, 0.55);
}

.dance-toggle-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.dance-toggle-label {
    font-size: 1.05rem;
    line-height: 1;
}

@keyframes dance-btn-glow {
    from {
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.06) inset,
            0 0 16px rgba(0, 212, 255, 0.25);
    }
    to {
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.08) inset,
            0 0 28px rgba(0, 212, 255, 0.45);
    }
}

.hero-panel > .dance-notes {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.dance-notes span {
    position: absolute;
    font-size: 1.25rem;
    color: var(--accent);
    opacity: 0;
}

.dance-notes span:nth-child(1) { top: 18%; left: 12%; }
.dance-notes span:nth-child(2) { top: 28%; right: 14%; }
.dance-notes span:nth-child(3) { top: 42%; left: 18%; }
.dance-notes span:nth-child(4) { top: 52%; right: 20%; }

.hero-panel.is-dancing {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: var(--shadow), 0 0 48px rgba(0, 212, 255, 0.2);
}

.hero-panel.is-dancing .hero-waver {
    animation: hero-waver-dance 0.85s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.hero-panel.is-dancing .waver-arm-left {
    animation: waver-arm-left-dance 0.42s ease-in-out infinite alternate-reverse;
}

.hero-panel.is-dancing .waver-arm-right {
    animation: hero-wave-dance 0.35s ease-in-out infinite alternate;
}

.hero-panel.is-dancing .dance-notes {
    opacity: 1;
}

.hero-panel.is-dancing .dance-notes span {
    animation: float-note 1.2s ease-in-out infinite;
}

.hero-panel.is-dancing .dance-notes span:nth-child(2) { animation-delay: 0.2s; }
.hero-panel.is-dancing .dance-notes span:nth-child(3) { animation-delay: 0.4s; }
.hero-panel.is-dancing .dance-notes span:nth-child(4) { animation-delay: 0.6s; }

.hero-panel.is-dancing .dance-toggle-icon {
    display: inline-block;
    animation: dance-btn-bounce 0.5s ease-in-out infinite alternate;
}

.hero-card.is-dancing .hero-card-glow {
    opacity: 0.65;
    animation: disco-glow 0.6s ease-in-out infinite alternate;
}

@keyframes sashank-dance {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    12% {
        transform: translateY(-14px) rotate(-7deg) scale(1.03);
    }
    25% {
        transform: translateY(2px) rotate(8deg) scale(0.98);
    }
    37% {
        transform: translateY(-18px) rotate(-10deg) scale(1.04);
    }
    50% {
        transform: translateY(0) rotate(6deg) scale(1);
    }
    62% {
        transform: translateY(-12px) rotate(-5deg) scale(1.02);
    }
    75% {
        transform: translateY(4px) rotate(9deg) scale(0.99);
    }
    87% {
        transform: translateY(-8px) rotate(-4deg) scale(1.01);
    }
}

@keyframes dancer-shadow {
    0%, 100% {
        transform: translateX(-50%) scaleX(1);
        opacity: 0.45;
    }
    25% {
        transform: translateX(-42%) scaleX(0.85);
        opacity: 0.35;
    }
    50% {
        transform: translateX(-58%) scaleX(1.1);
        opacity: 0.5;
    }
    75% {
        transform: translateX(-48%) scaleX(0.9);
        opacity: 0.38;
    }
}

@keyframes disco-glow {
    from {
        filter: blur(40px) hue-rotate(0deg);
    }
    to {
        filter: blur(48px) hue-rotate(55deg);
    }
}

@keyframes float-note {
    0%, 100% {
        opacity: 0;
        transform: translateY(8px) scale(0.8);
    }
    30%, 70% {
        opacity: 0.9;
    }
    50% {
        opacity: 1;
        transform: translateY(-18px) scale(1.1);
    }
}

@keyframes dance-btn-bounce {
    from { transform: translateY(0) rotate(-8deg); }
    to { transform: translateY(-3px) rotate(8deg); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-callout-dot {
        animation: none;
    }

    .dance-toggle {
        animation: none;
    }

    .hero-waver,
    .waver-arm-left,
    .waver-arm-right,
    .waver-head,
    .aura-callout.visible,
    .about-sitter .aura-callout.visible {
        animation: none !important;
    }

    .hero-waver {
        transform: translate(-50%, calc(-100% + var(--waver-foot-overlap)));
    }
}

.hero-card-footer {
    position: relative;
    z-index: 1;
    padding: 1.25rem 1.5rem;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    text-align: center;
}

.hero-card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 0.25rem;
}

.hero-card-value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.hero-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.hero-stat {
    text-align: right;
    flex-shrink: 0;
}

.hero-stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
}

/* ========================================
   PROJECTS
   ======================================== */

.featured-projects {
    padding: 5rem 0;
}

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

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    backdrop-filter: blur(12px);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    background: var(--surface-hover);
    box-shadow: var(--shadow-glow);
}

.project-card-featured {
    background: linear-gradient(160deg, rgba(0, 212, 255, 0.08), rgba(0, 153, 204, 0.05));
    border-color: rgba(0, 212, 255, 0.25);
}

.project-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.project-number {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dim);
}

.project-type {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-cyan);
}

.project-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.project-tags span {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.project-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--accent-cyan-soft);
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* ========================================
   SKILLS
   ======================================== */

.skills-preview {
    padding: 5rem 0;
}

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

.skill-category {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--border-strong);
    background: var(--surface-hover);
}

.skill-category h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

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

.skill-tag {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: var(--accent-soft);
    transition: var(--transition);
}

.skill-tag:hover {
    background: rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.4);
}

/* ========================================
   PAGE HEADER
   ======================================== */

.page-header {
    padding: 5rem 0 3rem;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

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

.about-section {
    padding: 2rem 0 4rem;
}

.about-stack {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}

.about-panel {
    position: relative;
    z-index: 1;
    padding: clamp(1.5rem, 2.5vw, 2.25rem);
    padding-top: clamp(4.5rem, 9vw, 5.75rem);
    background: var(--card);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
}

.about-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 6%;
    right: 6%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.65), transparent);
    z-index: 4;
}

.about-sitter {
    position: absolute;
    top: 0;
    left: 50%;
    width: clamp(108px, 16vw, 148px);
    z-index: 5;
    pointer-events: auto;
    cursor: pointer;
    transform: translate(-50%, -54%);
    transform-origin: center 56%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    animation: sitter-idle 4.5s ease-in-out infinite;
}

.sitter-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.sitter-legs {
    transform-origin: 70px 118px;
    animation: sitter-leg-swing 3.2s ease-in-out infinite;
}

.sitter-head {
    transform-origin: 70px 40px;
    animation: sitter-head-bob 4.5s ease-in-out infinite;
}

.character-wrist {
    filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.12));
}

.character-hand {
    filter: drop-shadow(0 1px 1.5px rgba(15, 23, 42, 0.2));
}

.character-hand-wave {
    transform-origin: 118.75px 36px;
}

.sitter-arm-left {
    transform-origin: 38px 78px;
}

.sitter-arm-right {
    transform-origin: 102px 78px;
}

.about-sitter.is-dancing {
    animation: sitter-sit-bounce 0.5s ease-in-out infinite alternate;
}

.about-sitter.is-dancing .sitter-arm-left {
    animation: sitter-arm-left-dance 0.42s ease-in-out infinite alternate;
}

.about-sitter.is-dancing .sitter-arm-right {
    animation: sitter-arm-right-dance 0.42s ease-in-out infinite alternate-reverse;
}

.about-sitter.is-dancing .sitter-head {
    animation: sitter-head-dance 0.38s ease-in-out infinite alternate;
}

.about-sitter.is-dancing .sitter-legs {
    animation: sitter-leg-swing 0.55s ease-in-out infinite;
}

@keyframes sitter-sit-bounce {
    from { transform: translate(-50%, -54%); }
    to { transform: translate(-50%, calc(-54% - 5px)); }
}

@keyframes sitter-arm-left-dance {
    from { transform: rotate(10deg); }
    to { transform: rotate(-22deg); }
}

@keyframes sitter-arm-right-dance {
    from { transform: rotate(-10deg); }
    to { transform: rotate(22deg); }
}

@keyframes sitter-head-dance {
    from { transform: rotate(-3deg); }
    to { transform: rotate(4deg); }
}

@keyframes sitter-idle {
    0%, 100% { transform: translate(-50%, -54%); }
    50% { transform: translate(-50%, calc(-54% - 5px)); }
}

@keyframes sitter-head-bob {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(2deg); }
}

@keyframes sitter-leg-swing {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(3deg); }
}

@media (max-width: 768px) {
    .about-panel {
        padding-top: clamp(3.75rem, 12vw, 4.75rem);
    }

    .about-sitter {
        width: clamp(96px, 22vw, 120px);
        transform: translate(-50%, -52%);
    }

    @keyframes sitter-idle {
        0%, 100% { transform: translate(-50%, -52%); }
        50% { transform: translate(-50%, calc(-52% - 4px)); }
    }

    @keyframes sitter-sit-bounce {
        from { transform: translate(-50%, -52%); }
        to { transform: translate(-50%, calc(-52% - 4px)); }
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-sitter,
    .about-sitter .aura-callout.visible,
    .sitter-legs,
    .sitter-head,
    .sitter-arm-left,
    .sitter-arm-right {
        animation: none !important;
    }

    .about-sitter {
        transform: translate(-50%, -54%);
    }
}

.about-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1.02rem;
    line-height: 1.85;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 2rem;
}

.about-highlights .highlight-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 0;
    min-height: 7.25rem;
    padding: 1.1rem 0.9rem;
    text-align: left;
}

.about-highlights .highlight-card strong {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.about-highlights .highlight-title {
    display: block;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.about-highlights .highlight-card-accent .highlight-title {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-highlights .highlight-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.about-highlights .highlight-card .highlight-card-detail {
    margin: auto 0 0;
    padding-top: 0.45rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    line-height: 1.45;
    color: var(--text-dim);
}

.highlight-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
}

.highlight-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.highlight-card span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.highlight-card .highlight-card-detail {
    margin: 0.4rem 0 0;
    font-size: 0.62rem;
    line-height: 1.35;
    color: var(--text-dim);
    font-weight: 400;
}

.highlight-card-wide {
    grid-column: span 2;
}

@media (max-width: 480px) {
    .highlight-card-wide {
        grid-column: span 1;
    }
}

.highlight-card-accent {
    border-color: rgba(0, 212, 255, 0.35);
    background: linear-gradient(160deg, rgba(0, 212, 255, 0.1), rgba(0, 153, 204, 0.06));
}

.highlight-card-accent strong {
    font-size: 1.25rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   EXPERIENCE TIMELINE
   ======================================== */

.experience-section {
    padding: 4rem 0;
}

.experience-section h2,
.skills-section h2,
.education-section h2,
.portfolio-section h2,
.contact-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.timeline {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    padding-left: 64px;
    margin-bottom: 2.5rem;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 46px;
    width: 2px;
    height: calc(100% - 46px + 2.5rem + 2px);
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    opacity: 0.4;
    z-index: 0;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 2px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid rgba(0, 212, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
    z-index: 1;
}

.timeline-marker-logo {
    width: 70%;
    height: 70%;
    object-fit: contain;
    display: block;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.08);
    box-shadow: 0 0 0 6px rgba(0, 212, 255, 0.12), 0 10px 24px rgba(0, 212, 255, 0.2);
}

.timeline-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--border-strong);
    background: var(--surface-hover);
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.timeline-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.timeline-sep {
    color: var(--text-dim);
    font-weight: 500;
}

.timeline-location {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.timeline-content p,
.timeline-content li {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.timeline-content ul {
    margin-top: 0.5rem;
    padding-left: 1.1rem;
}

.timeline-content li {
    margin-bottom: 0.35rem;
}

/* ========================================
   SKILLS DETAILED
   ======================================== */

.skills-section {
    padding: 4rem 0;
}

.skills-detailed {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-group {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.skill-group h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--accent);
}

.skills-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 0.65rem;
}

@media (max-width: 480px) {
    .skills-icon-grid {
        grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    }
}

.skill-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 0.5rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}

.skill-chip:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    background: rgba(0, 212, 255, 0.08);
    box-shadow: var(--shadow-glow);
}

.skill-chip-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.skill-chip-icon-wide {
    width: 40px;
}

.skill-chip-icon-dark {
    filter: invert(1) brightness(1.1);
}

.skill-chip span {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.25;
}

.skill-chip:hover span {
    color: var(--text);
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.skill-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 99px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 99px;
    animation: progressBar 1.2s ease-out;
}

@keyframes progressBar {
    from { width: 0 !important; }
}

.progress-95 { width: 95% !important; }
.progress-93 { width: 93% !important; }
.progress-92 { width: 92% !important; }
.progress-90 { width: 90% !important; }
.progress-88 { width: 88% !important; }
.progress-87 { width: 87% !important; }
.progress-85 { width: 85% !important; }
.progress-82 { width: 82% !important; }
.progress-80 { width: 80% !important; }

/* ========================================
   EDUCATION
   ======================================== */

.education-section {
    padding: 4rem 0 5rem;
}

.education-grid {
    max-width: 800px;
    margin: 0 auto;
}

.education-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.education-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.education-tassel-wrap {
    flex-shrink: 0;
    max-width: 110px;
    text-align: center;
}

.education-diploma-note {
    margin-bottom: 0.25rem;
    font-size: 0.68rem;
    line-height: 1.35;
    color: var(--text-dim);
    font-style: italic;
}

.education-diploma-note strong {
    font-style: normal;
    font-weight: 700;
    color: var(--accent);
}

.education-diploma-arrow {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1rem;
    line-height: 1;
    color: var(--accent);
    animation: arrow-bounce 1.6s ease-in-out infinite;
}

@keyframes arrow-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .education-diploma-arrow {
        animation: none;
    }
}

.education-diploma-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: var(--radius-sm);
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.12);
}

.education-diploma-link:hover {
    transform: scale(1.04);
    border-color: rgba(0, 212, 255, 0.45);
    box-shadow: 0 12px 28px rgba(0, 212, 255, 0.22);
}

.education-tassel {
    display: block;
    width: 52px;
    height: 52px;
}

.education-header-text h3 {
    margin-bottom: 0.35rem;
}

.education-header-text .education-date {
    margin-bottom: 0.35rem;
}

.education-item h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.education-school {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.education-date {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.education-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 0.5rem;
}

/* ========================================
   PORTFOLIO
   ======================================== */

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.25rem;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-soft);
    border-color: var(--border-strong);
}

.portfolio-section {
    padding: 2rem 0 5rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.portfolio-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-glow);
}

.portfolio-image {
    position: relative;
    height: 180px;
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

.image-placeholder {
    font-size: 3rem;
    opacity: 0.9;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 47, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1.25rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.portfolio-link:hover {
    background: var(--accent-cyan);
    color: #041018;
    border-color: var(--accent-cyan);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.portfolio-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-cyan);
    margin-bottom: 0.75rem;
}

.portfolio-description {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

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

.contact-section {
    padding: 2rem 0 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-form-wrapper,
.contact-info {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.contact-form-wrapper h2,
.contact-info h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--border-strong);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-message {
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.hidden-form-field {
    display: none;
}

.info-item {
    margin-bottom: 1.75rem;
}

.info-item h3 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
}

.info-item p,
.info-item a {
    color: var(--text);
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}

.info-item a:hover {
    color: var(--accent-cyan);
}

.social-section h3 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    transition: var(--transition);
}

.social-icon:hover {
    border-color: var(--border-strong);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

/* ========================================
   FAQ
   ======================================== */

.faq-section {
    padding: 4rem 0 5rem;
}

.faq-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
}

.faq-grid {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.faq-icon {
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 300;
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.75;
}

/* ========================================
   CTA & FOOTER
   ======================================== */

.cta {
    padding: 4rem 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: var(--gradient-subtle);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 2.5rem 3rem;
}

.cta h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

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

.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    background: rgba(10, 25, 47, 0.95);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-cyan);
}

#scrollToTopBtn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--accent-cyan);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

#scrollToTopBtn:hover {
    background: rgba(0, 212, 255, 0.12);
    transform: translateY(-2px);
}

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

@media (max-width: 1024px) {
    .hero > .container {
        padding-top: clamp(7.5rem, 22vw, 9rem);
    }

    .hero-waver {
        width: clamp(100px, 20vw, 130px);
    }

    .hero-waver .aura-callout-text,
    .about-sitter .aura-callout-text {
        font-size: 0.68rem;
    }

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

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        gap: 0.1rem;
        padding: 0.3rem 0.35rem;
    }

    .nav-menu a {
        font-size: 0.82rem;
        padding: 0.45rem 0.7rem;
    }
}

@media (max-width: 900px) {
    .navbar .container {
        grid-template-columns: auto 1fr auto;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: flex;
        position: fixed;
        top: 72px;
        left: 50%;
        right: auto;
        width: min(92vw, 360px);
        flex-direction: column;
        align-items: stretch;
        background: rgba(17, 34, 64, 0.96);
        backdrop-filter: blur(16px);
        padding: 0.5rem;
        gap: 0.25rem;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 20px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
        transform: translate(-50%, -120%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        grid-column: unset;
        justify-self: unset;
    }

    .nav-menu.active {
        transform: translate(-50%, 0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 0.85rem 1rem;
        text-align: center;
    }

    .nav-resume {
        display: none;
    }

    .hamburger {
        display: flex;
    }

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

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

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

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

    .about-highlights {
        grid-template-columns: repeat(5, minmax(120px, 1fr));
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

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

    .hero-buttons .btn {
        width: 100%;
    }
}

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

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

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