/* ================================================
   CSS CUSTOM PROPERTIES
   ================================================ */
:root {
    /* Dark section palette -- metallic gradient */
    --bg-dark-start: #070f2b;
    --bg-dark-mid: #0d1b3e;
    --bg-dark-end: #1b2a47;

    /* White section palette */
    --bg-white: #f0f4f8;
    --bg-white-end: #e4eaf2;

    /* Accent colors */
    --accent-gold: #d4a373;
    --accent-cyan: #00e5ff;
    --accent-cyan-dim: rgba(0, 229, 255, 0.15);
    --accent-cyan-glow: rgba(0, 229, 255, 0.3);

    /* Text colors */
    --text-on-dark: rgba(255, 255, 255, 0.85);
    --text-on-dark-muted: rgba(255, 255, 255, 0.55);
    --text-on-white: #1a1a2e;
    --text-on-white-muted: #4a4a6a;

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --section-padding: 120px;

    /* Transitions */
    --transition-base: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 0.2s ease;
}

/* ================================================
   BASE RESET
   ================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark-start);
    color: var(--text-on-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ================================================
   FLUID BACKGROUND CANVAS (global WebGL)
   ================================================ */
#fluid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ================================================
   CONTAINER
   ================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 3;
}

/* ================================================
   METALLIC ALTERNATING SECTION BACKGROUNDS
   ================================================ */

/* Dark sections -- metallic gradient with subtle noise texture */
.hero-section,
.experience-section,
.publications-section,
.resume-section,
.contact-section {
    background:
        linear-gradient(165deg,
            var(--bg-dark-start) 0%,
            var(--bg-dark-mid) 40%,
            var(--bg-dark-end) 100%);
    color: var(--text-on-dark);
    position: relative;
}

/* Metallic sheen overlay on dark sections */
.experience-section::after,
.publications-section::after,
.resume-section::after,
.contact-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.01) 0%,
            rgba(255, 255, 255, 0.03) 30%,
            rgba(255, 255, 255, 0.0) 60%,
            rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
    z-index: 0;
}

/* White sections -- Vanta.js WAVES background */
.about-section,
.skills-section,
.achievements-section,
.certifications-section {
    background: #dce4ef;
    color: var(--text-on-white);
    position: relative;
}

/* Subtle frosty sheen on white sections */
.about-section::after,
.skills-section::after,
.achievements-section::after,
.certifications-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    z-index: 0;
}

.about-section .title-text,
.skills-section .title-text,
.achievements-section .title-text,
.certifications-section .title-text {
    color: var(--text-on-white);
}

.about-section .title-text::after,
.skills-section .title-text::after,
.achievements-section .title-text::after,
.certifications-section .title-text::after {
    background: linear-gradient(90deg, var(--accent-cyan) 0%, transparent 100%);
}

/* ================================================
   SPOTLIGHT PILL NAVBAR
   ================================================ */
.navbar {
    --spotlight-x: 0px;
    --ambience-x: 60px;
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    max-width: 94vw;
    height: 48px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
    border-radius: 50px;
    background: rgba(8, 14, 36, 0.55);
    backdrop-filter: blur(28px) saturate(1.6);
    -webkit-backdrop-filter: blur(28px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom-color: rgba(255, 255, 255, 0.04);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(0, 229, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
}

.navbar.scrolled {
    background: rgba(7, 15, 43, 0.8);
    border-color: rgba(0, 229, 255, 0.08);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 229, 255, 0.03);
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    margin-right: 8px;
    flex-shrink: 0;
    z-index: 10;
}

.logo-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 8px;
    transition: all var(--transition-base);
    text-decoration: none;
}

.logo-ring:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 2px;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0;
    z-index: 10;
    position: relative;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 8px 9px;
    border-radius: 20px;
    transition: color 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.85);
}

/* Remove the old underline -- the ambience glow replaces it */
.nav-link::after {
    display: none;
}

.nav-link.active {
    color: #ffffff;
    font-weight: 600;
}

/* --- Spotlight Lighting Layers --- */

/* 1. Mouse-following spotlight (radial glow on bottom) */
.nav-spotlight {
    pointer-events: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(120px circle at var(--spotlight-x) 100%,
            rgba(255, 255, 255, 0.12) 0%,
            transparent 60%);
    border-radius: 50px;
}

.navbar:hover .nav-spotlight {
    opacity: 1;
}

/* 2. Active-item ambience glow (bright line at bottom) */
.nav-ambience {
    pointer-events: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 2;
    background: radial-gradient(50px circle at var(--ambience-x) 0%,
            rgba(0, 229, 255, 0.9) 0%,
            rgba(0, 229, 255, 0.3) 40%,
            transparent 100%);
    border-radius: 0 0 50px 50px;
    filter: blur(0.5px);
}

/* 3. Subtle bottom border track */
.nav-border-track {
    pointer-events: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 0;
    border-radius: 0 0 50px 50px;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center;
}

.nav-toggle span:nth-child(1) {
    margin-bottom: 4px;
}

.nav-toggle span:nth-child(2) {
    margin-bottom: 4px;
    width: 12px;
    margin-left: auto;
    margin-right: auto;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 0 30px 0;
    background:
        linear-gradient(165deg,
            var(--bg-dark-start) 0%,
            var(--bg-dark-mid) 40%,
            var(--bg-dark-end) 100%) !important;
}

/* Massive Background Typography */
.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
    line-height: 0.85;
    user-select: none;
}

.hero-bg-text span {
    font-family: var(--font-display);
    font-size: 18vw;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;

    /* Frosted glass text -- subtle 3D depth */
    color: rgba(255, 255, 255, 0.06);
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.14);
    text-shadow:
        0 0 30px rgba(0, 229, 255, 0.06),
        0 2px 0 rgba(255, 255, 255, 0.04),
        0 4px 0 rgba(0, 0, 0, 0.15),
        0 6px 12px rgba(0, 0, 0, 0.25),
        0 0 80px rgba(0, 229, 255, 0.04);
    filter: drop-shadow(0 0 40px rgba(0, 229, 255, 0.05));
    mix-blend-mode: hard-light;
    paint-order: stroke fill;
}

/* Avatar Canvas Wrapper -- sits at the bottom border */
.avatar-canvas-wrapper {
    position: relative;
    width: 750px;
    height: 750px;
    z-index: 1;
    flex-shrink: 0;
    margin-bottom: -180px;
}

#avatar-depth-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#avatar-depth-container canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* Hero bottom overlay with tagline */
.hero-bottom-overlay {
    z-index: 10;
    text-align: center;
    padding: 0 20px;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-on-dark-muted);
    letter-spacing: 2px;
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
    opacity: 0.5;
    animation: fadeInUp 1s ease 1.5s forwards;
}

.scroll-indicator span {
    font-family: var(--font-display);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.4);
}

.mouse {
    width: 22px;
    height: 36px;
    border: 2px solid rgba(0, 229, 255, 0.3);
    border-radius: 14px;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

/* ================================================
   COMMON SECTION STYLES
   ================================================ */
.section {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 2;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.title-number {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent-cyan);
    opacity: 0.9;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
    }

    50% {
        text-shadow: 0 0 20px rgba(0, 229, 255, 0.6), 0 0 40px rgba(0, 229, 255, 0.2);
    }
}

.title-text {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 2px;
}

.title-text::after {
    content: '';
    display: inline-block;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold) 0%, transparent 100%);
    margin-left: 20px;
    vertical-align: middle;
}

/* ================================================
   GLASSMORPHISM CARD -- BASE (frosty, glassy)
   Dark section variant
   ================================================ */
.glass-card {
    background: linear-gradient(135deg,
            rgba(15, 25, 60, 0.5) 0%,
            rgba(20, 40, 80, 0.35) 50%,
            rgba(10, 30, 70, 0.4) 100%);
    backdrop-filter: blur(28px) saturate(1.4);
    -webkit-backdrop-filter: blur(28px) saturate(1.4);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-top-color: rgba(0, 229, 255, 0.15);
    border-radius: 20px;
    padding: 32px;
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

/* Frosty sheen overlay */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    border-radius: 20px 20px 0 0;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-6px) scale(1.01);
    background: linear-gradient(135deg,
            rgba(15, 30, 80, 0.6) 0%,
            rgba(0, 80, 160, 0.3) 50%,
            rgba(10, 40, 90, 0.5) 100%);
    border-color: rgba(0, 229, 255, 0.25);
    box-shadow:
        0 16px 56px rgba(0, 0, 0, 0.35),
        0 0 30px rgba(0, 229, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Interactive shimmer sweep on hover */
.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.04) 40%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.04) 60%,
            transparent 100%);
    transform: skewX(-25deg);
    transition: left 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 1;
}

.glass-card:hover::after {
    left: 130%;
}

.glass-card h3,
.glass-card h4,
.glass-card strong {
    color: #ffffff;
}

.glass-card p,
.glass-card span {
    color: var(--text-on-dark);
}

/* ================================================
   GLASSMORPHISM -- WHITE SECTION VARIANT
   Vivid blue-frosted cards that POP on light backgrounds
   ================================================ */
.about-section .glass-card,
.skills-section .glass-card,
.achievements-section .glass-card,
.certifications-section .glass-card {
    background: linear-gradient(145deg,
            rgba(180, 210, 255, 0.35) 0%,
            rgba(140, 190, 255, 0.2) 40%,
            rgba(200, 225, 255, 0.3) 100%);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border: 1px solid rgba(100, 160, 240, 0.25);
    border-top-color: rgba(0, 229, 255, 0.25);
    box-shadow:
        0 8px 40px rgba(20, 60, 140, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(100, 160, 240, 0.1);
}

.about-section .glass-card::before,
.skills-section .glass-card::before,
.achievements-section .glass-card::before,
.certifications-section .glass-card::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 100%);
}

.about-section .glass-card:hover,
.skills-section .glass-card:hover,
.achievements-section .glass-card:hover,
.certifications-section .glass-card:hover {
    transform: translateY(-6px) scale(1.01);
    background: linear-gradient(145deg,
            rgba(160, 200, 255, 0.45) 0%,
            rgba(120, 180, 255, 0.3) 40%,
            rgba(180, 215, 255, 0.4) 100%);
    border-color: rgba(0, 180, 255, 0.35);
    box-shadow:
        0 16px 56px rgba(20, 60, 140, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(0, 229, 255, 0.08),
        inset 0 2px 0 rgba(255, 255, 255, 0.7);
}

.about-section .glass-card h3,
.about-section .glass-card h4,
.about-section .glass-card strong,
.skills-section .glass-card h3,
.achievements-section .glass-card h3,
.certifications-section .glass-card h3 {
    color: var(--text-on-white);
}

.about-section .glass-card p,
.about-section .glass-card span,
.skills-section .glass-card p,
.skills-section .glass-card span,
.achievements-section .glass-card p,
.achievements-section .glass-card span,
.certifications-section .glass-card p,
.certifications-section .glass-card span {
    color: var(--text-on-white-muted);
}

/* ================================================
   ABOUT SECTION
   ================================================ */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-text p {
    margin-bottom: 16px;
}

.about-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 50, 0.08);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-on-white-muted);
}

.detail-item i {
    color: var(--accent-cyan);
    font-size: 0.85rem;
}

.about-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.badge-image {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.15));
}

.badge-info h4 {
    color: var(--text-on-white) !important;
}

.badge-info p {
    color: var(--text-on-white-muted);
}

/* ================================================
   SKILLS SECTION
   ================================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.skill-category {
    text-align: center;
}

.category-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(60, 120, 200, 0.08));
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 16px;
    font-size: 1.6rem;
    color: var(--accent-cyan);
    transition: all var(--transition-base);
    animation: iconFloat 4s ease-in-out infinite;
}

.category-icon:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.2);
    border-color: var(--accent-cyan);
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.category-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.skill-tag {
    padding: 6px 14px;
    font-size: 0.82rem;
    border-radius: 20px;
    background: rgba(20, 60, 140, 0.04);
    border: 1px solid rgba(60, 120, 200, 0.15);
    color: var(--text-on-white-muted) !important;
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.25);
    color: var(--text-on-white) !important;
}

/* ================================================
   EXPERIENCE SECTION
   ================================================ */
.experience-timeline {
    position: relative;
    padding-left: 40px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-cyan) 0%, rgba(0, 229, 255, 0.05) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: -48px;
    top: 32px;
    width: 14px;
    height: 14px;
    background: var(--accent-cyan);
    border-radius: 50%;
    border: 3px solid var(--bg-dark-start);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.role-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #ffffff;
}

.timeline-date {
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
}

.organization {
    color: var(--text-on-dark-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.responsibilities li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-on-dark);
    list-style: none;
}

.responsibilities li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    opacity: 0.7;
}

.responsibilities li strong {
    color: #ffffff;
}

/* ================================================
   PROJECTS SECTION
   ================================================ */
.projects-slider-section {
    background: linear-gradient(180deg, #080d1e 0%, #0a0f28 50%, #080d1e 100%);
    position: relative;
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.project-card {
    background: rgba(10, 15, 40, 0.55) !important;
    border-color: rgba(0, 229, 255, 0.08) !important;
    backdrop-filter: blur(20px) saturate(1.3) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.3) !important;
}

.project-card:hover {
    background: rgba(10, 15, 40, 0.65) !important;
    border-color: rgba(0, 229, 255, 0.2) !important;
    transform: translateY(-8px);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 229, 255, 0.06) !important;
}

.project-card.featured {
    grid-column: span 2;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.project-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 255, 0.08);
    border-radius: 12px;
    font-size: 1.2rem;
    color: var(--accent-cyan);
}

.project-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.4rem;
    transition: color var(--transition-fast);
}

.project-links a:hover {
    color: var(--accent-cyan);
}

.published-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 20px;
    margin-bottom: 12px;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-on-dark);
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-tech span {
    padding: 4px 12px;
    font-size: 0.78rem;
    border-radius: 4px;
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan) !important;
}

.project-stats .stat {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-cyan) !important;
}

.project-stats .stat i {
    margin-right: 6px;
}

/* ================================================
   PUBLICATIONS SECTION
   ================================================ */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.publication-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.pub-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 255, 0.08);
    border-radius: 12px;
    font-size: 1.2rem;
    color: var(--accent-cyan);
}

.pub-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.pub-venue {
    font-size: 0.9rem;
    color: var(--accent-cyan) !important;
    margin-bottom: 4px;
}

.pub-venue i {
    margin-right: 6px;
}

.pub-note {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-on-dark-muted) !important;
}

/* ================================================
   ACHIEVEMENTS SECTION
   ================================================ */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.achievement-card {
    text-align: center;
    padding: 40px 24px;
}

.achievement-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(60, 120, 200, 0.08));
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 16px;
    font-size: 1.4rem;
    color: var(--accent-cyan);
    transition: all var(--transition-base);
}

.achievement-card:hover .achievement-icon {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
    border-color: var(--accent-cyan);
}

.achievement-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.achievement-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ================================================
   CERTIFICATIONS SECTION
   ================================================ */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.cert-card {
    padding: 28px;
    text-align: center;
}

.cert-status {
    display: inline-block;
    padding: 3px 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.cert-status.completed {
    background: rgba(0, 229, 255, 0.08);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 229, 255, 0.15);
}

.cert-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.cert-issuer {
    font-size: 0.9rem;
}

.cert-issuer i {
    margin-right: 6px;
    color: var(--accent-cyan);
}

/* ================================================
   RESUME SECTION
   ================================================ */
.resume-content {
    text-align: center;
}

.resume-header {
    margin-bottom: 30px;
}

.resume-header h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 8px;
}

.resume-header p {
    color: var(--text-on-dark-muted);
    margin-bottom: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), #00b8d4);
    color: var(--bg-dark-start);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.35);
}

.resume-embed {
    position: relative;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.resume-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.resume-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 15, 43, 0.9);
}

.resume-fallback a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

/* ================================================
   CONTACT SECTION
   ================================================ */
.contact-content {
    display: grid;
    gap: 40px;
}

.contact-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-intro h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    transition: all var(--transition-base);
}

.contact-link i {
    font-size: 1.4rem;
    color: var(--accent-cyan);
    width: 40px;
    text-align: center;
}

.link-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-on-dark-muted) !important;
    display: block;
    margin-bottom: 2px;
}

.link-value {
    font-size: 0.95rem;
    color: var(--text-on-dark) !important;
}

.contact-link:hover .link-value {
    color: var(--accent-cyan) !important;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: var(--bg-dark-start);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-credit,
.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-on-dark-muted);
}

.footer-credit strong {
    color: var(--accent-cyan);
}

.footer-source {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-on-dark-muted);
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

.footer-source:hover {
    color: var(--accent-cyan);
}

/* ================================================
   SCROLL ANIMATIONS
   ================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1px;
    }

    .nav-link {
        padding: 8px 7px;
        font-size: 0.68rem;
    }

    .project-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    /* Mobile pill navbar */
    .navbar {
        width: 92%;
        padding: 0 16px 0 18px;
        top: 12px;
        height: 50px;
        border-radius: 25px;
    }

    .navbar.scrolled {
        width: 88%;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(7, 15, 43, 0.97);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        border-radius: 0;
        padding: 0;
        border: none;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: -1;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.4s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.08s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.12s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.16s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.20s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.24s;
    }

    .nav-links.active li:nth-child(6) {
        transition-delay: 0.28s;
    }

    .nav-links.active li:nth-child(7) {
        transition-delay: 0.32s;
    }

    .nav-links.active li:nth-child(8) {
        transition-delay: 0.36s;
    }

    .nav-links.active li:nth-child(9) {
        transition-delay: 0.40s;
    }

    .nav-link {
        font-size: 1rem;
        letter-spacing: 3px;
        padding: 14px 30px;
        color: rgba(255, 255, 255, 0.5);
    }

    .nav-link:hover {
        color: #ffffff;
    }

    .nav-link.active {
        color: #ffffff;
    }

    .nav-link.active::after {
        bottom: 4px;
        width: 30px;
    }

    /* Hero responsive */
    .avatar-canvas-wrapper {
        width: 480px;
        height: 480px;
        margin-bottom: -100px;
    }

    .hero-bg-text span {
        font-size: 22vw;
    }

    /* Content */
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-badge {
        order: -1;
    }

    .timeline-header {
        flex-direction: column;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .publication-card {
        flex-direction: column;
    }

    .resume-embed {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .title-text::after {
        display: none;
    }

    .skills-grid,
    .certifications-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        grid-template-columns: 1fr;
    }

    .avatar-canvas-wrapper {
        width: 380px;
        height: 380px;
        margin-bottom: -80px;
    }

    .hero-bg-text span {
        font-size: 26vw;
    }
}

/* ================================================
   FEATURED PROJECTS - VOYAGE SLIDER
   ================================================ */
.projects-slider-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: transparent;
}

.projects-slider-section {
    --slide-width: min(30vw, 380px);
    --slide-aspect: 3 / 4;
    --slide-transition-duration: 1200ms;
    --slide-transition-easing: cubic-bezier(0.2, 0.8, 0.1, 1);
}

.projects-slider-section .slider {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 10;
}

.slider--btn {
    --size: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 250ms ease;
    z-index: 999;
}

.slider--btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.slider--btn svg {
    width: 24px;
    height: 24px;
    stroke: #00e5ff;
    /* Electric Cyan accent */
}

.slides__wrapper {
    width: calc(3 * var(--slide-width));
    height: 100%;
    display: grid;
    place-items: center;
}

.slides {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.slides>* {
    grid-area: 1 / -1;
}

/* -------------------- SLIDE MECHANICS --------------------- */
.slide {
    --slide-tx: 0px;
    --slide-ty: 0vh;
    --slide-tz: 0px;
    --slide-scale: 1;
    --slide-rotY: 0deg;

    width: var(--slide-width);
    aspect-ratio: var(--slide-aspect);
    perspective: 1000px;
    transform: perspective(1000px) translate3d(var(--slide-tx), var(--slide-ty), var(--slide-tz)) rotateY(var(--slide-rotY)) scale(var(--slide-scale));
    transition: transform var(--slide-transition-duration) var(--slide-transition-easing),
        opacity var(--slide-transition-duration) var(--slide-transition-easing);
}

.slide[data-current] {
    --slide-scale: 1.1;
    --slide-tz: 50px;
    --slide-tx: 0px;
    --slide-rotY: 0deg;
    opacity: 1;
    pointer-events: auto;
    z-index: 20;
}

.slide[data-next] {
    --slide-tx: calc(1 * var(--slide-width) * 1.15);
    --slide-rotY: -35deg;
    opacity: 0.6;
    z-index: 10;
}

.slide[data-previous] {
    --slide-tx: calc(-1 * var(--slide-width) * 1.15);
    --slide-rotY: 35deg;
    opacity: 0.6;
    z-index: 10;
}

.slide[data-hidden] {
    --slide-tx: 0px;
    --slide-tz: -200px;
    --slide-scale: 0.8;
    opacity: 0;
    z-index: 0;
}

/* -------------------- GLASS CARD CONTENT --------------------- */
.slide__inner {
    --rotX: 0;
    --rotY: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(var(--rotX)) rotateY(var(--rotY));
}

.projects-slider-section .glass-card {
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 30, 0.4);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.projects-slider-section .project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.projects-slider-section .project-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.projects-slider-section .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.projects-slider-section .project-tags span {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(0, 229, 255, 0.1);
    color: #00e5ff;
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 50px;
}

/* -------------------- BACKGROUND IMAGES --------------------- */


/* ================================================
   REDUCED MOTION
   ================================================ */
/* ================================================
   GSAP SCROLL-REVEAL CONTACT SECTION
   ================================================ */
.contact-section {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    position: relative;
}

.contact-container {
    width: 100%;
    padding: 0 2rem;
    background-color: transparent;
    color: #1a1a2e;
}

.contact-container .spacer {
    width: 100%;
    height: 30vh;
}

.contact-container .arch {
    display: flex;
    gap: 60px;
    justify-content: space-between;
    max-width: 1100px;
    margin-inline: auto;
    background-color: transparent;
}

.contact-container .arch__left {
    display: flex;
    flex-direction: column;
    min-width: 300px;
    background-color: transparent;
}

.contact-container .arch__info {
    max-width: 356px;
    height: 100vh;
    display: grid;
    place-items: center;
    background-color: transparent;
}

.contact-container h2.header {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.84px;
    margin-bottom: 12px;
    color: #0f172a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.contact-container p.desc {
    color: #334155;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    margin-block: 6px 28px;
    line-height: 1.5;
}

.contact-container a.link {
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 40px;
    display: flex;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    width: fit-content;
    align-items: center;
    transition: transform 0.2s ease, filter 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.contact-container a.link:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.contact-container .arch__right {
    flex-shrink: 1;
    height: 100vh;
    width: 100%;
    max-width: 540px;
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: transparent;
}

.contact-container .img-wrapper {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 400px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.contact-container .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .contact-container .arch {
        flex-direction: column;
        gap: 20px;
    }

    .contact-container .arch__left,
    .contact-container .arch__right {
        display: contents;
    }

    .contact-container .arch__right {
        height: auto;
        max-width: 100%;
    }

    .contact-container .arch__right .img-wrapper {
        position: static;
        transform: none;
        height: 360px;
        width: 100%;
        margin-bottom: 20px;
    }

    .contact-container .arch__info {
        height: auto;
        padding: 20px 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}