/* =============================================
   DR. DAYA SAGAR GUPTA — COMPLETE STYLESHEET
   3D · Glassmorphism · Premium Academic Design
   ============================================= */

/* Google Fonts are loaded in HTML */

:root {
    --bg:        #ffffff;
    --bg-light:  #ffffff;
    --card-bg:   #ffffff;
    --blue:      #2563eb;
    --blue-light:#3b82f6;
    --cyan:      #0891b2;
    --amber:     #f59e0b;
    --green:     #10b981;
    --text:      #1f2937;
    --text-muted:#6b7280;
    --border:    #e5e7eb;
    --glow:      0 0 40px rgba(37, 99, 235, 0.08);
    --glass:     rgba(255,255,255,0.6);
    --glass-border: rgba(229,231,235,0.8);

    --font-display: 'Syne', sans-serif;
    --font-body:    'DM Sans', sans-serif;

    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --radius: 12px;
    --radius-sm: 8px;
    --max-w: 1200px;
    --announcement-h: 0px; /* set at runtime by script.js to the announcement bar's live height */
}

/* RESET */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* =============================================
   THREE.JS CANVAS
   ============================================= */
#hero-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* =============================================
   PLATFORM SIDEBAR
   ============================================= */
.platform-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 12px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-left: none;
    border-radius: 0 8px 8px 0;
    color: var(--text-muted);
    font-size: 11px;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all 0.3s var(--ease-smooth);
    backdrop-filter: none;
    overflow: hidden;
    max-width: 42px;
    white-space: nowrap;
}

.sidebar-link svg {
    width: 18px; height: 18px;
    flex-shrink: 0;
    transition: color 0.3s;
}

.sidebar-link span {
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s var(--ease-smooth);
}

.sidebar-link:hover {
    max-width: 160px;
    color: var(--white);
    background: var(--blue);
    border-color: var(--blue);
}

.sidebar-link:hover span {
    opacity: 1;
    transform: translateX(0);
}

/* =============================================
   HEADER
   ============================================= */
.header {
    position: fixed;
    top: 0; width: 100%;
    z-index: 9999;
    background: #ffffff;
    backdrop-filter: none;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s var(--ease-smooth);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.header.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.navbar { padding: 16px 0; }

.nav-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px 0 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Responsive: remove sidebar offset when sidebar becomes bottom bar */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }
}

.logo {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
}
.logo-icon { color: var(--blue); font-size: 20px; }

.nav-links-desktop {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.25s;
    letter-spacing: 0.01em;
}
.nav-link:hover, .nav-link.active-link {
    color: var(--blue);
    background: #ffffff;
}

/* Dropdown */
.nav-item { position: relative; }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
    list-style: none;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s var(--ease-smooth);
    backdrop-filter: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--text-muted);
    border-radius: 4px;
    font-family: var(--font-display);
    font-weight: 500;
    transition: all 0.2s;
}
.dropdown-link:hover {
    color: var(--blue);
    background: #ffffff;
}

/* =============================================
   ANNOUNCEMENT BAR
   Sits fixed directly under the header (JS positions
   it via --announcement-h / top offset) so it never
   overlaps the nav or gets clipped by it.
   Transparent/frosted-glass panel; the single message
   inside is swapped by script.js on a timer, sliding
   in from the right and fading out in place.
   ============================================= */
.announcement-bar {
    position: fixed;
    left: 0;
    right: 0;
    top: 0; /* overridden inline by script.js to sit just under the header */
    z-index: 9998; /* below header (9999), above page content */
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.45s var(--ease-smooth), opacity 0.35s ease;
}
.announcement-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
}
.announcement-bar.is-hidden {
    display: none;
}

.announcement-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 11px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Small "live" indicator — plain CSS, no emoji */
.announcement-dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue);
    display: block;
    animation: announcementPulse 2.2s ease-in-out infinite;
}
@keyframes announcementPulse {
    0%, 100% { opacity: 1;   transform: scale(1);    box-shadow: 0 0 0 0 rgba(37,99,235,0.35); }
    50%      { opacity: 0.65; transform: scale(1.3); box-shadow: 0 0 0 6px rgba(37,99,235,0); }
}

/* Viewport that holds exactly one message at a time;
   script.js swaps its content and toggles .is-active */
.announcement-viewport {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    transition: height 0.35s var(--ease-smooth);
}

/* Outer item = the enter (from right) / vanish (fade in place) animation.
   Always a single line — never wraps. */
.announcement-item {
    display: flex;
    align-items: center;
    justify-content: center; /* content that fits stays centered */
    width: 100%;
    overflow: hidden;
    opacity: 0;
    transform: translateX(48px);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}
.announcement-item.is-active {
    opacity: 1;
    transform: translateX(0);
}
/* Vanish in place (no leftward exit) before the next message enters from the right */
.announcement-item.is-fading {
    opacity: 0;
    transform: translateX(0);
    transition: opacity 0.5s ease;
}
/* When the message is too wide for the screen, script.js switches this
   to left-aligned and scrolls .announcement-item-inner right→left so the
   hidden tail becomes visible instead of wrapping to a second line. */
.announcement-item.is-marquee {
    justify-content: flex-start;
}

/* Inner content — the part that actually holds the text; always a single,
   non-wrapping line. script.js animates THIS element's transform for the
   marquee scroll, kept separate from the outer enter/vanish transform. */
.announcement-item-inner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.5;
    letter-spacing: 0.01em;
    will-change: transform;
}

.announcement-item-inner strong {
    color: var(--blue);
    font-weight: 700;
}

.announcement-tag {
    display: inline-block;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 100px;
    padding: 2px 11px;
    font-family: var(--font-display);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--blue);
    white-space: nowrap;
}

.announcement-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--blue);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(37, 99, 235, 0.35);
    transition: text-decoration-color 0.2s, color 0.2s;
}
.announcement-link:hover { text-decoration-color: var(--blue); color: var(--blue-light); }
.announcement-link span { transition: transform 0.2s; display: inline-block; }
.announcement-link:hover span { transform: translateX(3px); }

.announcement-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-muted);
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.announcement-close:hover { background: rgba(15, 23, 42, 0.12); color: var(--text); transform: scale(1.08); }

@media (max-width: 768px) {
    .announcement-inner { padding: 10px 14px; gap: 9px; }
    .announcement-item-inner { font-size: 12px; gap: 7px; }
    .announcement-tag { font-size: 9.5px; padding: 2px 9px; }
    .announcement-link { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .announcement-item { transition: opacity 0.4s ease; transform: none !important; }
    .announcement-item-inner { transition: none !important; transform: none !important; }
}

/* =============================================
   MOBILE NAV — body-level overlay
   Nothing can clip this — it's on body directly
   ============================================= */
.mobile-nav-overlay {
    display: none; /* hidden by default — shown via JS class */
    position: fixed;
    inset: 0;                 /* covers entire viewport */
    z-index: 99999;           /* above absolutely everything */
    pointer-events: none;
}

.mobile-nav-overlay.open {
    display: block;
    pointer-events: auto;
}

/* Backdrop (tap to close) */
.mobile-nav-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* The actual slide-down panel */
.mobile-nav-panel {
    position: absolute;
    top: 61px;          /* just below the header */
    left: 0;
    right: 0;
    bottom: 62px;       /* just above the bottom tab bar */
    background: #ffffff; /* solid white */
    border-bottom: 1px solid var(--border);
    overflow-y: auto;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
    /* custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--blue) transparent;
}

.mobile-nav-overlay.open .mobile-nav-panel {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-list {
    list-style: none;
    padding: 12px 0 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
    letter-spacing: -0.2px;
}
.mobile-nav-link:hover,
.mobile-nav-link:active {
    background: #ffffff;
    color: var(--blue);
    padding-left: 28px;
}

.mnav-icon {
    font-size: 18px;
    width: 26px;
    text-align: center;
    flex-shrink: 0;
}

/* Sub-links (Research children) */
.mobile-nav-sub {
    list-style: none;
    background: #ffffff;
    border-top: 1px solid var(--border);
}
.mobile-nav-sub-link {
    display: block;
    padding: 11px 20px 11px 56px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    color: var(--blue);
    border-bottom: 1px solid rgba(229,231,235,0.5);
    transition: all 0.2s;
}
.mobile-nav-sub-link:hover {
    background: #ffffff;
    color: var(--blue);
}

/* Social links row at bottom of panel */
.mobile-nav-footer {
    display: flex;
    gap: 10px;
    padding: 20px 24px;
    border-top: 1px solid rgba(59,130,246,0.15);
    flex-wrap: wrap;
    margin-top: 8px;
}
.mnav-social {
    padding: 7px 16px;
    background: rgba(37,99,235,0.1);
    border: 1px solid rgba(37,99,235,0.25);
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--blue-light);
    transition: all 0.2s;
}
.mnav-social:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}
.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* =============================================
   HERO — FULL SCREEN BACKGROUND IMAGE
   ============================================= */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    background: #ffffff;
}

/* Background image layer — confined to a right-side panel so it
   never sits behind the name/heading/description on the left */
.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: 46%;
    height: 100%;
    z-index: 1;
    background: #ffffff;
}
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    will-change: transform;
}
/* Overlay 1 — almost transparent for image visibility */
.hero-overlay-base {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
}
/* Overlay 2 — fades the panel's own left edge into the white page,
   keeps the rest of the photo fully visible */
.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.85) 8%,
        rgba(255, 255, 255, 0.4) 18%,
        rgba(255, 255, 255, 0.1) 30%,
        transparent 45%,
        transparent 100%
    );
}
/* Overlay 3 — minimal bottom fade to white page */
.hero-overlay-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 60%,
        rgba(255, 255, 255, 0.2) 85%,
        rgba(255, 255, 255, 0.6) 100%
    );
}

/* Inner wrapper — content locked to left side */
.hero-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: calc(110px + var(--announcement-h)) 48px 80px 80px;
    transition: padding-top 0.3s var(--ease-smooth);
    /* Content on left, image on right */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 0 0 50%;
    max-width: 560px;
    position: relative;
    z-index: 3;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(37,99,235,0.08);
    border: 1px solid rgba(37,99,235,0.25);
    border-radius: 100px;
    font-size: 12px;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--blue);
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--text);
    margin-bottom: 6px;
    white-space: normal;
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--blue-light), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-role {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-style: normal;
}

.hero-description {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}
.stat-item { display: flex; flex-direction: column; }
.stat-num {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
}
.stat-label { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.stat-divider { width: 1px; height: 32px; background: var(--border); }

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--blue);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37,99,235,0.2);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.btn-secondary {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text);
    backdrop-filter: none;
}
.btn-secondary:hover {
    background: #ffffff;
    border-color: var(--blue);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--blue-light);
    padding: 12px 24px;
}
.btn-outline:hover {
    background: rgba(59,130,246,0.08);
    border-color: var(--blue-light);
}

/* =============================================
   HERO PHOTO PANEL
   ============================================= */
.hero-3d-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s 0.4s var(--ease-smooth) both;
}

.hero-photo-frame {
    position: relative;
    width: 380px;
    height: 420px;
}

/* Animated glow rings */
.photo-glow-ring {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px solid rgba(37,99,235,0.3);
    animation: ringPulse 4s ease-in-out infinite;
}
.photo-glow-ring.ring2 {
    inset: -40px;
    border-color: rgba(6,182,212,0.15);
    animation-delay: 1.5s;
}
@keyframes ringPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.04); }
}

/* Photo wrapper — clipped to a soft rounded shape */
.photo-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 36px;
    overflow: hidden;
    border: 1.5px solid rgba(59,130,246,0.15);
    box-shadow:
        0 0 0 6px rgba(255,255,255,0.8),
        0 10px 30px rgba(0,0,0,0.1),
        0 0 40px rgba(37,99,235,0.1);
    position: relative;
    background: #ffffff;
    backdrop-filter: none;
}

/* Minimal overlay on photo for blending */
.photo-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 70%,
        rgba(255,255,255,0.3) 100%
    );
    pointer-events: none;
    border-radius: 36px;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.6s var(--ease-smooth);
}
.hero-photo-frame:hover .hero-photo {
    transform: scale(1.04);
}

/* Fallback icon if no image */
.photo-wrapper.photo-fallback .hero-photo { display: none; }
.photo-fallback-icon {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    opacity: 0.15;
}
.photo-wrapper.photo-fallback .photo-fallback-icon { display: flex; }

/* Floating badges */
.photo-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: rgba(5, 13, 26, 0.88);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    backdrop-filter: blur(16px);
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.badge-top {
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--cyan);
    border-color: rgba(6,182,212,0.3);
    animation: floatBadge 3s ease-in-out infinite;
}
.badge-bottom {
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--blue-light);
    border-color: rgba(59,130,246,0.3);
    animation: floatBadge 3s ease-in-out infinite reverse;
}
@keyframes floatBadge {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(-5px); }
}

.badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    animation: dotBlink 2s ease-in-out infinite;
}
@keyframes dotBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* Floating emoji icons around photo */
.photo-floater {
    position: absolute;
    font-size: 26px;
    filter: drop-shadow(0 0 12px rgba(37,99,235,0.6));
    animation: floatIcon 4s ease-in-out infinite;
}
.floater-1 { top: 20%;  left: -48px; animation-delay: 0s; }
.floater-2 { top: 60%;  right: -46px; animation-delay: 1.2s; }
.floater-3 { bottom: 12%; left: -42px; animation-delay: 2.4s; }

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33%       { transform: translateY(-10px) rotate(8deg); }
    66%       { transform: translateY(6px) rotate(-5deg); }
}

/* =============================================
   SCROLL INDICATOR
   ============================================= */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.6;
    z-index: 3;
}
.scroll-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, transparent, #2563eb);
}
.scroll-indicator span {
    font-size: 9px;
    font-family: var(--font-display);
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--cyan));
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); transform-origin: top; }
    50%       { opacity: 1;   transform: scaleY(1); }
}
.scroll-indicator span {
    font-size: 10px;
    font-family: var(--font-display);
    letter-spacing: 0.1em;
    color: var(--muted);
}

/* =============================================
   SECTION BASE
   ============================================= */
.section {
    position: relative;
    padding: 60px 0;
    /* z-index removed — was creating stacking contexts that trapped the nav menu */
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px 0 80px;
}

/* Responsive container: remove sidebar offset on mobile/tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }
}
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-eyebrow {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* =============================================
   RESEARCH SECTION
   ============================================= */
.research-section {
    background: #ffffff;
    padding: 40px 0;
}

.research-list-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 900px;
    margin: 0 auto;
}

.research-item-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.2s var(--ease-smooth);
}

.research-item-compact:hover {
    border-color: var(--blue);
    background: #f9fafb;
}

.research-item-compact.featured {
    border-color: var(--blue);
    background: #f0f9ff;
}

.research-item-compact.featured:hover {
    background: #e0f2fe;
}

.research-icon-compact {
    font-size: 20px;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.research-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}

.research-content h4 {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.research-tags-inline {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.badge-tiny {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cyan);
    background: rgba(6,182,212,0.12);
    border: 1px solid rgba(6,182,212,0.3);
    padding: 1px 5px;
    border-radius: 100px;
    white-space: nowrap;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.research-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 14px;
    backdrop-filter: none;
    overflow: hidden;
    transition: all 0.3s var(--ease-smooth);
    cursor: default;
    transform-style: preserve-3d;
}

.research-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37,99,235,0.03), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.research-card:hover {
    transform: translateY(-3px);
    border-color: var(--blue);
    box-shadow: 0 4px 12px rgba(37,99,235,0.1);
}
.research-card:hover::before { opacity: 1; }

.research-card.featured {
    border-color: var(--blue);
    background: #ffffff;
}
.research-card.featured:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 16px rgba(37,99,235,0.15);
}

.featured-badge {
    position: absolute;
    top: 12px; right: 12px;
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
    background: rgba(6,182,212,0.12);
    border: 1px solid rgba(6,182,212,0.3);
    padding: 2px 8px;
    border-radius: 100px;
}

/* Card shine effect */
.card-shine {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,0.04) 0%, transparent 60%);
    pointer-events: none;
    transition: opacity 0.3s;
    opacity: 0;
}
.research-card:hover .card-shine { opacity: 1; }

.research-card-icon { font-size: 32px; margin-bottom: 10px; display: block; }

.research-card h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}
.research-card p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 10px;
}
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.card-tags span {
    font-size: 9.5px;
    font-family: var(--font-display);
    font-weight: 500;
    padding: 2px 6px;
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: 100px;
    color: var(--blue);
}

/* =============================================
   PROJECTS TABLE
   ============================================= */
.projects-section {
    background: #ffffff;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    backdrop-filter: none;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table thead {
    background: #ffffff;
}

.data-table th {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 14px 16px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tbody tr {
    background: #ffffff;
    transition: background 0.2s;
}
.data-table tbody tr:hover { background: #ffffff; }

.row-num {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--muted);
    font-size: 12px;
}
.highlight-val {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--amber);
}
.role-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.role-badge.pi {
    background: rgba(37,99,235,0.15);
    border: 1px solid rgba(37,99,235,0.35);
    color: var(--blue-light);
}

/* =============================================
   PUBLICATIONS
   ============================================= */
.publications-section {
    background: #ffffff;
}

.pub-filter-bar {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.pub-filter {
    padding: 8px 16px;
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text-muted);
    transition: all 0.25s;
}
.pub-filter:hover { color: var(--text); border-color: var(--blue); }
.pub-filter.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #ffffff;
}

.pub-year-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid var(--border);
}
.pub-year-label {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}
.pub-year-select {
    padding: 7px 30px 7px 14px;
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    background: #ffffff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%236b7280'/></svg>") no-repeat right 12px center;
    border: 1px solid var(--border);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.25s;
}
.pub-year-select:hover, .pub-year-select:focus {
    border-color: var(--blue);
    outline: none;
}

.pub-empty-state {
    text-align: center;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 14px;
    padding: 24px 0 8px;
}

.publications-list { display: flex; flex-direction: column; gap: 12px; }

.pub-card {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 20px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    backdrop-filter: none;
    transition: all 0.3s var(--ease-smooth);
    align-items: start;
}
.pub-card:hover {
    border-color: var(--blue);
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(37,99,235,0.1);
}
.pub-card.hidden { display: none; }

.pub-year {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: #18cbe2;
    line-height: 1;
    padding-top: 2px;
}

.pub-badges { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }

.pub-badge {
    font-family: var(--font-display);
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: 0.04em;
}
.pub-badge.journal    { background: rgba(37,99,235,0.15); border:1px solid rgba(37,99,235,0.3); color: #93c5fd; }
.pub-badge.conference { background: rgba(16,185,129,0.12); border:1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.pub-badge.survey     { background: rgba(245,158,11,0.12); border:1px solid rgba(245,158,11,0.3); color: #fcd34d; }
.pub-badge.peer       { background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1); color: var(--muted); }
.pub-badge.impact     { background: rgba(239,68,68,0.12); border:1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.pub-badge.cited      { background: rgba(168,85,247,0.12); border:1px solid rgba(168,85,247,0.3); color: #c4b5fd; }
.pub-badge.chapter    { background: rgba(20,184,166,0.12); border:1px solid rgba(20,184,166,0.3); color: #5eead4; }

.pub-group-heading {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 36px 0 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-family: var(--font-display, inherit);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
}
.pub-group-heading:first-child { margin-top: 0; }
.pub-group-heading.hidden { display: none; }
.pub-group-count { font-weight: 400; text-transform: none; letter-spacing: normal; color: var(--muted); font-size: 13px; }

.pub-title {
    font-family: var(--font-display);
    font-size: 15.5px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}
.pub-authors { font-size: 13.5px; color: var(--muted); margin-bottom: 4px; }
.pub-venue   { font-size: 12.5px; color: #5a7ba0; font-style: italic; }

.pub-more { text-align: center; margin-top: 36px; }

/* =============================================
   STUDENTS — SCHOLARS TABLE
   ============================================= */
.students-section {
    background: linear-gradient(180deg, transparent, rgba(10,22,40,0.7));
}

/* ---- Summary stats row ---- */
.scholars-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 40px;
    padding: 20px 32px;
    background: rgba(37,99,235,0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.sch-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sch-stat-num {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}
.sch-stat-label {
    font-size: 12px;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.sch-stat-div {
    width: 1px;
    height: 44px;
    background: var(--border);
}

/* ---- Table wrapper — enables horizontal scroll on small screens ---- */
.scholars-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    background: rgba(10, 22, 40, 0.5);
    backdrop-filter: blur(16px);
    -webkit-overflow-scrolling: touch;
    /* subtle scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: var(--blue) transparent;
}
.scholars-table-wrapper::-webkit-scrollbar { height: 5px; }
.scholars-table-wrapper::-webkit-scrollbar-track { background: transparent; }
.scholars-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--blue);
    border-radius: 10px;
}

/* ---- Table base ---- */
.scholars-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    min-width: 920px;
}

/* ---- Header ---- */
.scholars-table thead tr {
    background: linear-gradient(90deg, rgba(37,99,235,0.15), rgba(6,182,212,0.08));
    border-bottom: 1px solid rgba(59,130,246,0.25);
}
.scholars-table th {
    padding: 18px 20px;
    text-align: left;
    font-family: var(--font-display);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
    white-space: nowrap;
}
.scholars-table th.col-sr      { width: 56px;  text-align: center; }
.scholars-table th.col-photo   { width: 100px; text-align: center; }
.scholars-table th.col-name    { width: 190px; }
.scholars-table th.col-topic   { min-width: 240px; }
.scholars-table th.col-college { width: 150px; }
.scholars-table th.col-status  { width: 155px; }
.scholars-table th.col-year    { width: 75px;  text-align: center; }

/* ---- Body rows ---- */
.scholar-row {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s var(--ease-smooth);
}
.scholar-row:last-child { border-bottom: none; }
.scholar-row:nth-child(even) {
    background: rgba(255,255,255,0.022);
}
.scholar-row:hover {
    background: rgba(37,99,235,0.08);
}

.scholars-table td {
    padding: 18px 20px;
    vertical-align: middle;
    color: #c4d4e8;
}

/* Sr. number */
.col-sr { text-align: center; }
.sr-num {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.22);
}

/* ---- Photo cell ---- */
.col-photo { text-align: center; padding: 12px 14px; }

.scholar-photo-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 2.5px solid rgba(59,130,246,0.35);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.1), 0 6px 20px rgba(0,0,0,0.4);
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    background: linear-gradient(135deg, rgba(37,99,235,0.18), rgba(6,182,212,0.12));
    flex-shrink: 0;
}
.scholar-row:hover .scholar-photo-wrap {
    border-color: var(--blue-light);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.25), 0 8px 28px rgba(37,99,235,0.3);
    transform: scale(1.1);
}

.scholar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Fallback: shown when image errors or missing */
.scholar-img-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: linear-gradient(135deg, rgba(37,99,235,0.22), rgba(6,182,212,0.16));
}
.scholar-img-fallback svg {
    width: 26px; height: 26px;
    color: rgba(148,163,184,0.65);
    stroke: rgba(148,163,184,0.65);
}
.scholar-img-fallback span {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 800;
    color: var(--blue-light);
    letter-spacing: 0.05em;
    line-height: 1;
}

/* Name */
.col-name { padding-left: 16px; }
.scholar-name {
    font-family: var(--font-display);
    font-size: 15.5px;
    font-weight: 700;
    color: var(--white);
    display: block;
    line-height: 1.3;
}

/* Research topic */
.col-topic { padding-right: 20px; }
.topic-text {
    font-size: 14px;
    color: #8ba5c5;
    line-height: 1.55;
    display: block;
}

/* Status badge */
.col-status { white-space: nowrap; }
.scholar-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.scholar-badge.submitted {
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.35);
    color: #6ee7b7;
}
.scholar-badge.pursuing {
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.28);
    color: #93c5fd;
}

/* Year */
.col-year {
    text-align: center;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

/* College */
.col-college { white-space: nowrap; }
.college-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--amber);
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.22);
    border-radius: 7px;
    padding: 4px 12px;
    white-space: nowrap;
}

/* ---- Note below table ---- */
.scholars-note {
    margin-top: 18px;
    font-size: 12.5px;
    color: var(--muted);
    text-align: center;
    line-height: 1.6;
}
.scholars-note code {
    background: rgba(37,99,235,0.12);
    border: 1px solid rgba(37,99,235,0.25);
    border-radius: 5px;
    padding: 1px 7px;
    font-size: 12px;
    color: var(--cyan);
    font-family: 'Courier New', monospace;
}

/* =============================================
   TIMELINE (EXPERIENCE)
   ============================================= */
.experience-section {
    background: linear-gradient(180deg, var(--navy-mid), var(--navy));
}

.timeline {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 1px;
    height: calc(100% - 40px);
    background: linear-gradient(to bottom, var(--blue), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-dot {
    position: absolute;
    left: -38px;
    top: 8px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--navy-mid);
    border: 2px solid var(--muted);
    transition: all 0.3s;
}
.timeline-dot.active {
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.2), 0 0 20px rgba(37,99,235,0.5);
}

.timeline-line {
    position: absolute;
    left: -32px;
    top: 22px;
    width: 1px;
    height: calc(100% + 26px);
    background: var(--border);
}

.timeline-card {
    background: var(--navy-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 28px 32px;
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}
.timeline-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--blue), var(--cyan));
    opacity: 0;
    transition: opacity 0.3s;
}
.timeline-item:hover .timeline-card { border-color: var(--border); transform: translateX(4px); }
.timeline-item:hover .timeline-card::before { opacity: 1; }
.timeline-item:hover .timeline-dot { border-color: var(--blue-light); transform: scale(1.3); }

.timeline-period {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--cyan);
    margin-bottom: 10px;
}
.active-tag {
    background: rgba(6,182,212,0.1);
    border: 1px solid rgba(6,182,212,0.3);
    padding: 2px 10px;
    border-radius: 100px;
}

.timeline-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}
.timeline-org {
    font-size: 15px;
    color: var(--blue-light);
    margin-bottom: 4px;
    font-weight: 500;
}
.timeline-dates {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
}
.timeline-desc {
    font-size: 14px;
    color: #8ba5c5;
    line-height: 1.65;
    margin-bottom: 16px;
}
.timeline-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.timeline-tags span {
    font-size: 11px;
    font-family: var(--font-display);
    font-weight: 600;
    padding: 3px 10px;
    background: rgba(37,99,235,0.1);
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: 100px;
    color: var(--blue-light);
}

/* =============================================
   EDUCATION
   ============================================= */
.education-section {
    background: linear-gradient(180deg, transparent, var(--navy-mid));
}

.edu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.edu-card {
    background: var(--navy-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 32px 28px;
    backdrop-filter: blur(10px);
    transition: all 0.4s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}
.edu-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    transform: scaleX(0);
    transition: transform 0.4s var(--ease-smooth);
    transform-origin: left;
}
.edu-card:hover {
    transform: translateY(-6px);
    border-color: var(--border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), var(--glow);
}
.edu-card:hover::after { transform: scaleX(1); }

.edu-icon { font-size: 36px; margin-bottom: 18px; }
.edu-degree {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}
.edu-institution {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-light);
    margin-bottom: 4px;
}
.edu-year {
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 14px;
    font-family: var(--font-display);
    font-weight: 500;
}
.edu-thesis {
    font-size: 13.5px;
    color: #8ba5c5;
    line-height: 1.55;
    margin-bottom: 12px;
}
.edu-thesis em { color: var(--cyan); font-style: italic; }
.edu-specialization {
    font-size: 12px;
    color: var(--muted);
    font-style: italic;
}

/* =============================================
   ACHIEVEMENTS / CAROUSEL
   ============================================= */
.achievements-section {
    background: linear-gradient(180deg, var(--navy-mid), var(--navy));
}

.carousel-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 48px;
}

.carousel-track-wrapper {
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s var(--ease-smooth);
}

.carousel-slide {
    min-width: 100%;
    max-height: 480px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-mid);
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 480px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(5,13,26,0.85);
    border: 1px solid var(--border);
    color: var(--white);
    width: 48px; height: 48px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}
.carousel-btn:hover { background: var(--blue); border-color: var(--blue); }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--muted);
    cursor: pointer;
    transition: all 0.3s;
}
.dot.active {
    background: var(--blue-light);
    width: 24px;
    border-radius: 4px;
}

/* Fallback achievement cards */
.achievements-fallback {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ach-card {
    background: var(--navy-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--ease-smooth);
}
.ach-card:hover {
    transform: translateY(-6px);
    border-color: var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), var(--glow);
}
.ach-icon { font-size: 36px; margin-bottom: 14px; }
.ach-card h4 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.ach-card p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* =============================================
   CONTACT SECTION v2 — compact, clean
   ============================================= */

.contact-section {
    background: #ffffff;
}

.contact-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 820px;
    margin: 0 auto;
}

/* Card */
.contact-card-v2 {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 20px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(37,99,235,0.06);
    transition: transform 0.22s var(--ease-smooth), box-shadow 0.22s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.contact-card-v2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-smooth);
}

.contact-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37,99,235,0.12);
}
.contact-card-v2:hover::after { transform: scaleX(1); }

/* Icon */
.contact-v2-icon {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 10px;
}

/* Label (UPPERCASE small heading) */
.contact-v2-label {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Value text / email link */
.contact-v2-val {
    font-size: 0.78rem;
    color: var(--text);
    line-height: 1.6;
    font-weight: 500;
    display: block;
}
a.contact-v2-val {
    color: var(--blue);
    transition: color 0.2s;
}
a.contact-v2-val:hover { color: var(--cyan); }

/* Profile link pills */
.contact-v2-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
    margin-top: 2px;
}

.cv2-link {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.68rem;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.03em;
    border: 1px solid;
    transition: all 0.22s;
    display: inline-block;
}

/* LinkedIn — blue */
.cv2-link--linkedin {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}
.cv2-link--linkedin:hover { background: #2563eb; color: #fff; border-color: #2563eb; }

/* Google Scholar — red-orange */
.cv2-link--scholar {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}
.cv2-link--scholar:hover { background: #c2410c; color: #fff; border-color: #c2410c; }

/* ResearchGate — teal */
.cv2-link--rg {
    background: #f0fdfa;
    color: #0d9488;
    border-color: #99f6e4;
}
.cv2-link--rg:hover { background: #0d9488; color: #fff; border-color: #0d9488; }

/* ORCID — green */
.cv2-link--orcid {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}
.cv2-link--orcid:hover { background: #16a34a; color: #fff; border-color: #16a34a; }

/* Responsive */
@media (max-width: 700px) {
    .contact-grid-v2 {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--navy);
    border-top: 1px solid var(--border);
    padding: 32px 0;
    position: relative;
}
.footer .container { padding: 0 24px 0 80px; }

@media (max-width: 1024px) {
    .footer .container { padding: 0 32px; }
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
}
.footer-copy {
    font-size: 13px;
    color: var(--muted);
}
.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* =============================================
   RESPONSIVE — COMPLETE
   ============================================= */

/* ---- Tablet: 1024px ---- */
@media (max-width: 1024px) {
    /* Hero */
    .hero-inner {
        padding: calc(110px + var(--announcement-h)) 32px 80px 32px;
        gap: 32px;
    }
    .hero-content { max-width: 480px; }
    .hero-title { font-size: clamp(30px, 5vw, 50px); }
    .hero-overlay-gradient {
        background: linear-gradient(
            to right,
            rgba(255,255,255,1) 0%,
            rgba(255,255,255,0.85) 12%,
            rgba(255,255,255,0.4) 28%,
            rgba(255,255,255,0.1) 42%,
            transparent 55%
        );
    }
    /* Hide sidebar on tablet too — show as bottom bar or hide */
    .platform-sidebar {
        display: none;
    }
    /* Sections */
    .research-grid { grid-template-columns: repeat(2, 1fr); }
    .edu-grid { grid-template-columns: 1fr 1fr; }
    .achievements-fallback { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Mobile: 768px ---- */
@media (max-width: 768px) {

    /* ===================================================
       PLATFORM SIDEBAR → fixed bottom tab bar
       =================================================== */
    .platform-sidebar {
        display: flex;
        position: fixed;
        left: 0;
        top: auto;
        bottom: 0;
        right: 0;
        transform: none;
        z-index: 500;          /* BELOW the nav menu (z-index 9998) */

        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        width: 100%;
        gap: 0;
        padding: 0;

        background: rgba(5, 13, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border);
        box-shadow: 0 -4px 30px rgba(0,0,0,0.5);
        height: 62px;
    }

    .sidebar-link {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 8px 0;
        max-width: none;
        width: 25%;
        border: none;
        border-radius: 0;
        border-right: 1px solid rgba(255,255,255,0.06);
        font-size: 10px;
        background: transparent;
        white-space: nowrap;
        overflow: hidden;
        transition: background 0.2s;
    }
    .sidebar-link:last-child { border-right: none; }

    /* Always show label + icon */
    .sidebar-link span {
        opacity: 1;
        transform: none;
        font-size: 9px;
        font-weight: 600;
        letter-spacing: 0.03em;
        color: var(--muted);
    }
    .sidebar-link svg { width: 20px; height: 20px; color: var(--muted); }

    .sidebar-link:hover {
        max-width: none;
        background: rgba(37,99,235,0.18);
        border-color: transparent;
        color: var(--white);
    }
    .sidebar-link:hover span,
    .sidebar-link:hover svg { color: var(--white); }

    /* Push ALL page content up above the bottom bar */
    body { padding-bottom: 62px; }

    /* ===================================================
       TOP NAVIGATION — mobile
       =================================================== */
    .nav-toggle { display: flex; }
    /* Hide desktop nav on mobile */
    .nav-links-desktop { display: none; }
    /* Mobile overlay nav is controlled by JS .open class */

    /* ===================================================
       HERO — background image visible + content readable
       =================================================== */
    .hero { min-height: 100svh; }

    .hero-inner {
        padding: calc(90px + var(--announcement-h)) 20px 90px 20px;
        flex-direction: column;
        gap: 0;
    }
    .hero-content { max-width: 100%; }

    /* Text takes the full width on mobile, so the right-side photo
       panel is hidden to avoid any overlap with the heading/description */
    .hero-bg { display: none; }

    .hero-title {
        font-size: clamp(26px, 7vw, 40px);
        white-space: normal;
        letter-spacing: -0.8px;
    }
    .hero-badge { font-size: 11.5px; }
    .hero-description { font-size: 14.5px; max-width: 100%; }
    .hero-stats { gap: 14px; }
    .stat-num { font-size: 22px; }

    /* ===================================================
       SECTIONS & LAYOUT
       =================================================== */
    .footer .container { padding: 0 20px; }
    .section { padding: 60px 0; }

    /* Research */
    .research-grid { grid-template-columns: 1fr 1fr; gap: 14px; }

    /* Education */
    .edu-grid { grid-template-columns: 1fr 1fr; }

    /* Achievements */
    .achievements-fallback { grid-template-columns: 1fr 1fr; gap: 12px; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }

    /* Publications */
    .pub-card { grid-template-columns: 1fr; gap: 10px; }
    .pub-year { font-size: 13px; color: var(--muted); }

    /* Students table */
    .scholars-stats { gap: 20px; padding: 16px 24px; }
    .sch-stat-num { font-size: 26px; }
    .scholars-table { font-size: 13.5px; }
    .scholars-table th { padding: 14px 14px; font-size: 10.5px; }
    .scholars-table td { padding: 14px 14px; }
    .scholar-photo-wrap { width: 58px; height: 58px; }
    .scholar-img-fallback svg { width: 22px; height: 22px; }
    .scholar-img-fallback span { font-size: 10px; }
    .scholar-name { font-size: 14px; }
    .topic-text { font-size: 13px; }
    .college-text { font-size: 12px; padding: 3px 9px; }
    .scholar-badge { font-size: 10.5px; padding: 4px 11px; }

    /* Timeline */
    .timeline { padding-left: 24px; }

    /* Footer */
    .footer-inner { flex-direction: column; text-align: center; gap: 10px; }
    .footer-links { justify-content: center; }

    /* Projects table — make it scrollable */
    .table-wrapper { -webkit-overflow-scrolling: touch; }
    .data-table { min-width: 540px; }

    /* Contact grid v2 */
    .contact-grid-v2 { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

/* ---- Small Mobile: 480px ---- */
@media (max-width: 480px) {
    .hero-title { font-size: clamp(22px, 7vw, 34px); }
    .hero-buttons { flex-direction: column; gap: 10px; }
    .btn { width: 100%; justify-content: center; }
    .hero-stats { flex-wrap: wrap; gap: 12px; }
    .stat-divider { display: none; }
    .hero-description { font-size: 14px; max-width: 100%; }

    .research-grid { grid-template-columns: 1fr; }
    .edu-grid { grid-template-columns: 1fr; }
    .achievements-fallback { grid-template-columns: 1fr; }

    .scholars-stats { flex-wrap: wrap; gap: 14px; justify-content: center; }
    .sch-stat-div { display: none; }
    .scholars-table { font-size: 12.5px; min-width: 700px; }
    .scholars-table th { padding: 12px 10px; font-size: 10px; }
    .scholars-table td { padding: 12px 10px; }
    .scholar-photo-wrap { width: 50px; height: 50px; }
    .scholar-img-fallback svg { width: 18px; height: 18px; }
    .scholar-img-fallback span { font-size: 9px; }
    .scholar-name { font-size: 13px; }
    .topic-text { font-size: 12px; }
    .college-text { font-size: 11px; padding: 3px 8px; }
    .scholar-badge { font-size: 10px; padding: 3px 9px; }

    .pub-filter-bar { gap: 6px; }
    .pub-filter { padding: 6px 14px; font-size: 12px; }
    .pub-year-filter { margin-left: 0; padding-left: 0; border-left: none; width: 100%; justify-content: center; margin-top: 6px; }
    .section-title { letter-spacing: -0.8px; }
    .section { padding: 48px 0; }

    .sidebar-link { padding: 10px 0; height: 62px; }
    .sidebar-link svg { width: 22px; height: 22px; }
    .sidebar-link span { font-size: 9px; }
}

/* ---- Very small: 360px ---- */
@media (max-width: 360px) {
    .hero-title { font-size: 21px; }
    .sidebar-link span { display: none; }
    .sidebar-link { padding: 0; justify-content: center; }
    .sidebar-link svg { width: 24px; height: 24px; }
}

/* =============================================
   PHD SCHOLAR CARDS — 5 per row grid
   ============================================= */

/* Section background — white like all others */
.students-section {
    background: #ffffff;
}

/* 5-column responsive grid */
.phd-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}

/* Individual card */
.phd-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 12px rgba(37,99,235,0.06);
    transition: transform 0.22s var(--ease-smooth), box-shadow 0.22s var(--ease-smooth);
}

.phd-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(37,99,235,0.13);
}

/* Photo area — top centre */
.phd-card-photo-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 20px 0;
}

.phd-card-photo {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center center;
    border: 3px solid var(--border);
    background: #f3f4f6;
    display: block;
}

/* Fallback avatar when image is missing */
.phd-card-photo-fallback {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
    border: 3px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.phd-card-photo-fallback svg {
    width: 30px;
    height: 30px;
    color: var(--blue);
}

.phd-card-photo-fallback span {
    font-size: 10px;
    font-weight: 700;
    color: var(--blue);
    font-family: var(--font-display);
    letter-spacing: 0.04em;
}

/* Card body below the photo */
.phd-card-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    flex: 1;
}

/* Scholar name */
.phd-card-name {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

/* Research area */
.phd-card-area {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.45;
    flex: 1;
}

/* Footer: year + badge */
.phd-card-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-top: auto;
}

.phd-card-year {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--blue);
    letter-spacing: 0.04em;
    background: #eff6ff;
    padding: 2px 10px;
    border-radius: 20px;
}

/* Status badges */
.phd-card-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}

.phd-card-badge.pursuing {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #d1fae5;
}

.phd-card-badge.awarded {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* College name pill inside PhD card */
.phd-card-college {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--blue);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    padding: 2px 10px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Responsive breakpoints ---- */

/* 4 cards on medium screens */
@media (max-width: 1200px) {
    .phd-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 3 cards on tablets */
@media (max-width: 900px) {
    .phd-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 2 cards on small tablets */
@media (max-width: 600px) {
    .phd-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* 1 card on phones */
@media (max-width: 380px) {
    .phd-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   PROFESSIONAL EXPERIENCE — HORIZONTAL ZIGZAG
   ============================================= */

/* Outer row: all columns + zigzag connectors sit side by side */
.exp-zigzag {
    display: flex;
    align-items: center;          /* vertically centre the connector "spine" */
    gap: 0;
    margin-top: 48px;
    overflow-x: auto;             /* allow scroll on very small screens */
    padding-bottom: 8px;
}

/* Each card column occupies equal width */
.exp-col {
    flex: 1 1 0;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Above-the-line: card sits on top, stem goes down to the dot */
.exp-col--above {
    flex-direction: column;
}

/* Below-the-line: dot first, stem goes up, card at bottom */
.exp-col--below {
    flex-direction: column;
}

/* ---- Card ---- */
.exp-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 18px 18px;
    box-shadow: 0 2px 14px rgba(37,99,235,0.07);
    text-align: center;
    transition: transform 0.22s var(--ease-smooth), box-shadow 0.22s var(--ease-smooth);
    width: 100%;
}

.exp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(37,99,235,0.14);
}

.exp-card--active {
    border-color: var(--blue);
    box-shadow: 0 2px 20px rgba(37,99,235,0.13);
}

/* Period pill */
.exp-period {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 20px;
    background: #f3f4f6;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.exp-period--active {
    background: #eff6ff;
    color: var(--blue);
}

.exp-role {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.exp-org {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 3px;
}

.exp-dates {
    font-size: 0.70rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.exp-desc {
    font-size: 0.73rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.exp-tags span {
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 2px 9px;
    border-radius: 20px;
    background: #f0f4ff;
    color: var(--blue);
    border: 1px solid #dbeafe;
}

/* ---- Vertical stem (card ↔ dot) ---- */
.exp-stem {
    width: 2px;
    height: 36px;
    background: var(--border);
    flex-shrink: 0;
}

/* ---- Dot / node on the horizontal spine ---- */
.exp-node {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--border);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.exp-node--active {
    border-color: var(--blue);
    background: var(--blue);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}

/* ---- Zigzag SVG connector between columns ---- */
.exp-zz {
    flex: 0 0 80px;           /* fixed width for the zigzag bridge */
    height: 120px;            /* tall enough to arc above and below */
    flex-shrink: 0;
    position: relative;
    background: none;
}

/* We draw the zigzag with a pseudo-element using border tricks */
/* down-up: line goes from bottom-left (dot on left col) diagonally to top-right (dot on right col) */
.exp-zz--down-up::after,
.exp-zz--up-down::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: none;
}

/* Use inline SVG via CSS — cleaner approach */
.exp-zz--down-up {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 120' preserveAspectRatio='none'%3E%3Cpath d='M0 67 Q40 67 80 53' stroke='%23e5e7eb' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.exp-zz--up-down {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 120' preserveAspectRatio='none'%3E%3Cpath d='M0 53 Q40 53 80 67' stroke='%23e5e7eb' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

/* Stack vertically on mobile */
@media (max-width: 768px) {
    .exp-zigzag {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .exp-col,
    .exp-col--above,
    .exp-col--below {
        flex-direction: column;
        align-items: center;
        min-width: unset;
    }

    /* On mobile hide the stems/nodes/zigzag, show just cards with a simple left border */
    .exp-stem,
    .exp-node,
    .exp-zz {
        display: none;
    }

    .exp-card {
        margin: 10px 0;
        text-align: left;
        border-left: 4px solid var(--blue);
        border-radius: 10px;
    }

    .exp-card--active {
        border-left-color: var(--blue);
    }

    .exp-tags {
        justify-content: flex-start;
    }
}

/* =============================================
   EDUCATION CARDS v2 — B.Tech → M.Tech → PhD
   ============================================= */

.edu-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 12px;
    align-items: stretch;
}

/* Base card */
.edu-card-v2 {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 0 0 24px 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 18px rgba(37,99,235,0.07);
    transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth);
    position: relative;
}

.edu-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(37,99,235,0.14);
}

/* Coloured top accent bar */
.edu-v2-level-bar {
    height: 5px;
    width: 100%;
    border-radius: 18px 18px 0 0;
}

.edu-card-btech .edu-v2-level-bar  { background: linear-gradient(90deg, #10b981, #34d399); }
.edu-card-mtech .edu-v2-level-bar  { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.edu-card-phd   .edu-v2-level-bar  { background: linear-gradient(90deg, #2563eb, #60a5fa); }

/* Top row: emoji icon + level badge */
.edu-v2-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 0;
    margin-bottom: 14px;
}

.edu-v2-icon-wrap {
    font-size: 34px;
    line-height: 1;
}

.edu-v2-level-tag {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #d1fae5;
}

.edu-card-mtech .edu-v2-level-tag {
    background: #fffbeb;
    color: #d97706;
    border-color: #fde68a;
}

.edu-v2-level-tag--phd {
    background: #eff6ff !important;
    color: #2563eb !important;
    border-color: #bfdbfe !important;
}

/* Degree name — BIG & bold, the hero element */
.edu-v2-degree {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--text);
    padding: 0 22px;
    margin-bottom: 4px;
}

.edu-card-btech .edu-v2-degree { color: #059669; }
.edu-card-mtech .edu-v2-degree { color: #d97706; }
.edu-card-phd   .edu-v2-degree { color: #2563eb; }

/* Stream / discipline */
.edu-v2-stream {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    padding: 0 22px;
    margin-bottom: 14px;
    line-height: 1.3;
}

/* Divider line */
.edu-card-v2::before {
    content: '';
    display: block;
    height: 1px;
    background: var(--border);
    margin: 0 22px 14px;
}

/* Institution row with icon */
.edu-v2-institution {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
    padding: 0 22px;
    margin-bottom: 10px;
}

.edu-v2-inst-icon {
    width: 15px;
    height: 15px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Year pill */
.edu-v2-year-row {
    padding: 0 22px;
    margin-bottom: 14px;
}

.edu-v2-year-pill {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    background: #f9fafb;
    border: 1px solid var(--border);
    padding: 3px 11px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

/* Description / thesis */
.edu-v2-desc {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding: 0 22px;
    margin-bottom: 18px;
    flex: 1;
}

.edu-v2-desc em {
    color: var(--text);
    font-style: italic;
    font-weight: 500;
}

/* Specialization tags */
.edu-v2-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 22px;
    margin-top: auto;
}

.edu-v2-tags span {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 20px;
}

.edu-card-btech .edu-v2-tags span { background: #ecfdf5; color: #059669; border: 1px solid #d1fae5; }
.edu-card-mtech .edu-v2-tags span { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.edu-card-phd   .edu-v2-tags span { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }

/* Responsive */
@media (max-width: 900px) {
    .edu-grid-v2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
    .edu-grid-v2 { grid-template-columns: 1fr; }
    .edu-v2-degree { font-size: 1.6rem; }
}

/* =============================================
   EDUCATION CARDS — CLEAN (matches site style)
   ============================================= */

.edu-grid-clean {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 12px;
    align-items: stretch;
}

.edu-card-clean {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 2px 12px rgba(37,99,235,0.06);
    transition: transform 0.22s var(--ease-smooth), box-shadow 0.22s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

/* Subtle top blue line on hover — same pattern as phd-cards */
.edu-card-clean::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-smooth);
    border-radius: 14px 14px 0 0;
}

.edu-card-clean:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(37,99,235,0.13); }
.edu-card-clean:hover::after { transform: scaleX(1); }

/* Emoji icon */
.edu-clean-icon { font-size: 32px; margin-bottom: 16px; line-height: 1; }

/* Degree — bold, dark, prominent */
.edu-clean-degree {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 4px;
}

/* Stream / discipline */
.edu-clean-stream {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1.3;
}

/* Thin divider */
.edu-clean-institution {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

/* Year */
.edu-clean-year {
    font-size: 0.71rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    font-weight: 500;
}

/* Thesis / description */
.edu-clean-desc {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}

.edu-clean-desc em {
    color: var(--text);
    font-style: italic;
}

/* Tags — same style as exp-tags */
.edu-clean-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.edu-clean-tags span {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 20px;
    background: #f0f4ff;
    color: var(--blue);
    border: 1px solid #dbeafe;
}

@media (max-width: 900px) { .edu-grid-clean { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .edu-grid-clean { grid-template-columns: 1fr; } }

/* =============================================
   ACHIEVEMENTS — AUTO-SCROLL STRIP + CLEAN CARDS
   ============================================= */

/* Section background — white like all others */
.achievements-section { background: #ffffff; }

/* ---- Scrolling photo strip ---- */

/* Outer wrapper clips the overflow; edge fades via mask */
.ach-strip-outer {
    overflow: hidden;
    border-radius: 14px;
    margin-bottom: 30px;
    /* Fade edges left & right for a polished look */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* Track holds 10 slides (5 real + 5 clone) side by side */
.ach-strip-track {
    display: flex;
    gap: 16px;
    /* Each slide = 25% of outer width minus gap; 4 visible at once */
    width: max-content;
    animation: achScroll 15s linear infinite;
}

/* Pause on hover */
.ach-strip-outer:hover .ach-strip-track {
    animation-play-state: paused;
}

/* Each image tile */
.ach-strip-slide {
    flex: 0 0 auto;
    width: 180px;
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #f3f4f6;
    box-shadow: 0 2px 10px rgba(37,99,235,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ach-strip-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    transition: transform 0.4s var(--ease-smooth);
}

.ach-strip-slide:hover img { transform: scale(1.04); }

/* Keyframe: scroll the full first set (5 slides × (180px + 16px gap) = 980px) */
@keyframes achScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-5 * (180px + 16px))); }
}

/* ---- Achievement cards below ---- */

.ach-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ach-card-clean {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 22px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(37,99,235,0.06);
    transition: transform 0.22s var(--ease-smooth), box-shadow 0.22s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.ach-card-clean::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-smooth);
}

.ach-card-clean:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(37,99,235,0.13); }
.ach-card-clean:hover::after { transform: scaleX(1); }

.ach-card-icon { font-size: 34px; margin-bottom: 14px; line-height: 1; }

.ach-card-title {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.ach-card-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Responsive — slide shrinks but always shows full image */
@media (max-width: 900px) {
    .ach-cards-grid { grid-template-columns: 1fr 1fr; }
    .ach-strip-slide { width: 160px; height: 220px; }
    @keyframes achScroll {
        0%   { transform: translateX(0); }
        100% { transform: translateX(calc(-5 * (160px + 16px))); }
    }
}
@media (max-width: 580px) {
    .ach-cards-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    /* On small mobile: wider tiles, auto height so nothing is cropped */
    .ach-strip-slide {
        width: 140px;
        height: auto;
        min-height: 160px;
    }
    .ach-strip-slide img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    @keyframes achScroll {
        0%   { transform: translateX(0); }
        100% { transform: translateX(calc(-5 * (140px + 16px))); }
    }
}

/* =============================================
   MULTI-PAGE LAYOUT OFFSET
   Added when splitting single-page site into
   separate pages per nav item. Compensates for
   the fixed/sticky header on pages where the
   section is now the first element on the page.
   ============================================= */
.page-top-offset {
    padding-top: 96px;
}
@media (max-width: 1024px) {
    .page-top-offset {
        padding-top: 88px;
    }
}
@media (max-width: 768px) {
    .page-top-offset {
        padding-top: 80px;
    }
}