/* ==========================================================================
   2026 Premium Redesign - Indian Research Foundation
   Theme: Deep Space Glassmorphism & Cyber-Academic
   Fonts: Outfit (Display) & Plus Jakarta Sans (Body)
   ========================================================================== */

:root {
    /* Core Colors (Adapted for Dark Premium Theme) */
    --bg-deep: #050B14;
    --bg-surface: #0A1128;

    --saffron-neon: #7DD3FC;
    --saffron-glow: #38BDF8;
    --green-cyber: #60A5FA;
    --blue-electric: #2A75FF;

    --text-primary: #FFFFFF;
    --text-mutated: #A1A9C3;

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.12);

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Gradients */
    --grad-saffron: linear-gradient(135deg, var(--saffron-neon) 0%, #E0F2FE 100%);
    --grad-cyber: linear-gradient(135deg, var(--green-cyber) 0%, var(--blue-electric) 100%);

    /* Legacy Hero Colors */
    --clr-primary-red: #87CEFA;
    --clr-primary-red-hover: #4682B4;
    --clr-charcoal: #0F0F14;
    --clr-soft-grey: #8A8A98;
    --clr-white: #FFFFFF;
    --clr-gradient: linear-gradient(135deg, #87CEFA, #ADD8E6);
    --font-primary: 'Poppins', sans-serif;
    --transition-fast: 0.15s ease-out;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);

    /* Shadows */
    --glow-saffron: 0 0 20px rgba(125, 211, 252, 0.45);
    --glow-blue: 0 0 30px rgba(42, 117, 255, 0.2);
    --shadow-deep: 0 20px 40px rgba(0, 0, 0, 0.5);
    --shadow-cta-primary: 0 0 16px rgba(255, 255, 255, 0.24);
    --shadow-cta-primary-hover: 0 0 22px rgba(255, 255, 255, 0.3);
    --shadow-cta-secondary: 0 0 10px rgba(173, 216, 230, 0.12);

    /* Spacing Rhythm */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-section-desktop: 5rem;
    --space-section-tablet: 3.5rem;
    --space-section-mobile: 2rem;

    /* Effect Intensity Controls */
    --hero-glow-blur: 56px;
    --hero-glow-opacity: 0.45;
    --node-copy-contrast: #C9D5EE;

    /* Transitions */
    --trans-fast: 0.2s cubic-bezier(0.1, 0.7, 0.1, 1);
    --trans-smooth: 0.4s cubic-bezier(0.1, 0.7, 0.1, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body.dark-theme {
    background-color: var(--bg-deep);
    color: var(--text-mutated);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

.text-saffron-neon {
    background: var(--grad-saffron);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--glow-saffron);
}

.text-center {
    text-align: center;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--trans-fast);
}

ul {
    list-style: none;
}

/* Global Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.section-padding {
    padding: var(--space-section-desktop) 0;
}

/* Keep core content sections on a single spacing rhythm */
#services,
#research,
#process,
#publications,
#about,
#contact {
    padding-top: var(--space-section-desktop);
    padding-bottom: var(--space-section-desktop);
}

/* Background Animated Blobs */
.blob-bg {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(42, 117, 255, 0.15) 0%, rgba(5, 11, 20, 0) 70%);
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(173, 216, 230, 0.1) 0%, rgba(5, 11, 20, 0) 70%);
    bottom: 20%;
    right: -5%;
    animation-delay: -5s;
}

.blob-3 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.05) 0%, rgba(5, 11, 20, 0) 70%);
    top: 40%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* --- GLASS NAVBAR --- */
.glass-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--trans-smooth);
    border-bottom: 1px solid transparent;
}

.glass-navbar.scrolled {
    background: rgba(5, 11, 20, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: white;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.brand-text {
    display: flex;
    flex-direction: column;
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.txt-primary {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1;
}

.txt-accent {
    color: var(--saffron-neon);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    background: var(--glass-bg);
    padding: 0.5rem 2rem;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-mutated);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a span {
    color: var(--saffron-neon);
    margin-right: 4px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(-5px);
    display: inline-block;
    transition: var(--trans-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover span,
.nav-links a.active span {
    opacity: 1;
    transform: translateY(0);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-glow {
    background: var(--text-primary);
    border: none;
    color: var(--bg-deep);
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: var(--shadow-cta-primary);
    transition: var(--trans-fast);
}

.btn-glow i {
    color: var(--bg-deep);
    transition: var(--trans-fast);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    transition: 0.5s;
}

/* --- CYBER BUTTONS --- */
.btn-cyber-primary {
    background: var(--text-primary);
    color: var(--bg-deep);
    border: none;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-cta-primary);
    transition: var(--trans-fast);
    text-align: center;
    animation: none;
}

.btn-cyber-outline {
    background: rgba(173, 216, 230, 0.05);
    color: var(--text-primary);
    border: 2px solid var(--saffron-neon);
    padding: 1rem 2rem;
    border-radius: 100px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--trans-fast);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-cta-secondary);
}

.btn-cyber-outline:hover {
    background: rgba(42, 117, 255, 0.08);
    border-color: var(--green-cyber);
    border-width: 2px;
    box-shadow: 0 0 16px rgba(42, 117, 255, 0.28);
    transform: translateY(-2px);
    color: var(--green-cyber);
}

.btn-cyber-primary:hover,
.btn-primary:hover,
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-cta-primary-hover);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--trans-fast);
}

.menu-toggle i {
    transition: transform var(--trans-fast);
    pointer-events: none;
}

.menu-toggle:hover {
    border-color: rgba(125, 211, 252, 0.55);
    box-shadow: 0 0 20px rgba(125, 211, 252, 0.2);
    transform: translateY(-1px);
}

.menu-toggle.active {
    border-color: rgba(96, 165, 250, 0.65);
    background: rgba(10, 17, 40, 0.95);
}

.menu-toggle.active i {
    transform: rotate(90deg);
}

/* --- LEGACY BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 60px;
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.1, 0.7, 0.1, 1);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn i {
    font-size: 20px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
    height: 60px;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-deep);
    border: none;
    animation: none;
    box-shadow: var(--shadow-cta-primary);
}

.btn-outline {
    background: rgba(173, 216, 230, 0.05);
    border-color: var(--saffron-neon);
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-cta-secondary);
}

.btn-outline:hover {
    background-color: rgba(42, 117, 255, 0.08);
    border-color: var(--green-cyber);
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(42, 117, 255, 0.28);
}

.btn-glow {
    box-shadow: var(--shadow-cta-primary);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-btn:hover {
    background: rgba(42, 117, 255, 0.1);
    border-color: var(--green-cyber);
}

/* --- HERO SECTION (Legacy Style) --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--clr-charcoal);
    color: var(--clr-white);
    padding-top: 80px;
    overflow: hidden;
    z-index: 10;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 15, 20, 0.4) 0%, rgba(15, 15, 20, 0.8) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--clr-white);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 18px);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(135, 206, 250, 0.1);
    border: 1px solid rgba(135, 206, 250, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    color: var(--clr-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(135, 206, 250, 0.15);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--clr-primary-red);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--clr-primary-red);
    animation: pulseLegacy 2s infinite;
}

@keyframes pulseLegacy {
    0% {
        box-shadow: 0 0 0 0 rgba(135, 206, 250, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(135, 206, 250, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(135, 206, 250, 0);
    }
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #ADD8E6, #87CEFA);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 3px 8px rgba(135, 206, 250, 0.2);
}

/* Glowing Orbs */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(var(--hero-glow-blur));
    z-index: 1;
    pointer-events: none;
    opacity: var(--hero-glow-opacity);
}

.hero-glow.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(135, 206, 250, 0.24);
    top: -100px;
    left: -100px;
    animation: floatLegacy 8s ease-in-out infinite alternate;
}

.hero-glow.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(173, 216, 230, 0.15);
    bottom: -50px;
    right: -50px;
    animation: floatLegacy 10s ease-in-out infinite alternate-reverse;
}

@keyframes floatLegacy {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 30px);
    }
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.5), 0 0 50px rgba(173, 216, 230, 0.3);
    }

    100% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.scroll-text {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-mutated);
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--saffron-neon);
    animation: scrollDrop 2s infinite ease-in-out;
}

@keyframes scrollDrop {
    0% {
        top: -100%;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 100%;
    }
}

/* --- COMMON PANELS AND HEADINGS --- */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: var(--space-xl);
    transition: var(--trans-smooth);
}

.glass-panel:hover {
    border-color: rgba(173, 216, 230, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(173, 216, 230, 0.1);
}

.cyber-subtitle {
    color: var(--green-cyber);
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.cyber-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-heading {
    text-align: left;
    margin-bottom: var(--space-2xl);
    max-width: 800px;
    margin-left: 0;
    margin-right: 0;
}

.workflow-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading.text-center {
    text-align: left;
}

.section-desc {
    color: var(--text-mutated);
    font-size: 1.1rem;
}

/* --- BENTO METRICS --- */
.bento-section {
    position: relative;
    z-index: 10;
    margin-top: -5rem;
}

.bento-grid-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 160px);
    gap: 1.5rem;
}

.bento-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-alpha {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.stat-beta {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.stat-gamma {
    grid-column: 3 / 5;
    grid-row: 1 / 3;
    background: linear-gradient(135deg, rgba(173, 216, 230, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.stat-delta {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.bento-icon {
    font-size: 2.5rem;
    color: var(--saffron-neon);
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.bento-icon-bg {
    font-size: 10rem;
    color: rgba(173, 216, 230, 0.05);
    position: absolute;
    right: -2rem;
    bottom: -2rem;
}

.bento-content h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.bento-content p {
    color: var(--text-mutated);
    font-size: 0.95rem;
    font-weight: 500;
}

.stat-large h3 {
    font-size: 5rem;
    background: var(--grad-saffron);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-large p {
    font-size: 1.2rem;
    max-width: 200px;
    color: var(--text-primary);
}

/* --- SERVICES NEO-TRACK --- */
.services-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.neo-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: var(--space-xl) var(--space-lg);
    transition: transform 0.3s cubic-bezier(0.1, 0.7, 0.1, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    z-index: 1;
    overflow: hidden;
}

.neo-card:hover {
    transform: scale(0.98);
    border-color: rgba(42, 117, 255, 0.5);
    box-shadow: inset 0 0 30px rgba(42, 117, 255, 0.15), 0 8px 15px rgba(0, 0, 0, 0.3);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(42, 117, 255, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: var(--trans-smooth);
    z-index: -1;
}

.neo-card:hover .card-glow {
    opacity: 1;
}

.icon-hexagon {
    width: 60px;
    height: 60px;
    background: rgba(42, 117, 255, 0.1);
    border: 1px solid rgba(42, 117, 255, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--green-cyber);
    margin-bottom: 2rem;
    transform: rotate(45deg);
}

.icon-hexagon i {
    transform: rotate(-45deg);
}

.neo-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.neo-card p {
    color: var(--text-mutated);
    margin-bottom: var(--space-lg);
    font-size: 0.95rem;
}

.neo-link {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.neo-link i {
    color: var(--green-cyber);
    transition: var(--trans-fast);
}

.neo-link:hover i {
    transform: translateX(5px);
}

/* --- PUBLICATION EDITORIAL TRACK --- */
.pub-editorial .container {
    position: relative;
}

.pub-heading {
    margin-bottom: 1.4rem;
}

.pub-editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

.pub-editorial-card {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    padding: 2rem 1.7rem;
    border-radius: 24px;
    border: 1px solid rgba(150, 186, 255, 0.25);
    background:
        linear-gradient(165deg, rgba(15, 25, 52, 0.95) 0%, rgba(10, 17, 40, 0.92) 60%, rgba(6, 13, 29, 0.97) 100%);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.36);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
    animation: pubFloat 7.2s ease-in-out infinite;
}

.pub-editorial-card:nth-child(2) {
    animation-delay: 0.45s;
}

.pub-editorial-card:nth-child(3) {
    animation-delay: 0.9s;
}

.pub-editorial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #7dd3fc 0%, #60a5fa 50%, #2a75ff 100%);
}

.pub-orb {
    position: absolute;
    top: -110px;
    right: -90px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.26) 0%, rgba(96, 165, 250, 0.05) 45%, transparent 70%);
    animation: pubPulse 6.8s ease-in-out infinite;
    pointer-events: none;
}

.pub-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.pub-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    border: 1px solid rgba(125, 211, 252, 0.32);
    background: rgba(96, 165, 250, 0.12);
    color: var(--text-primary);
    font-size: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.pub-meta {
    font-family: var(--font-display);
    font-size: 0.74rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #c9d5ee;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.28);
    background: rgba(125, 211, 252, 0.08);
}

.pub-editorial-card h4 {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.3px;
    margin-bottom: 0.85rem;
    color: var(--text-primary);
}

.pub-editorial-card p {
    color: var(--node-copy-contrast);
    font-size: 0.98rem;
    line-height: 1.72;
    margin-bottom: 1.6rem;
    max-width: 30ch;
}

.pub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pub-link i {
    color: var(--saffron-neon);
    transition: transform var(--trans-fast);
}

.pub-editorial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(125, 211, 252, 0.42);
    box-shadow: 0 26px 46px rgba(1, 4, 14, 0.55), 0 0 0 1px rgba(125, 211, 252, 0.16) inset;
}

.pub-editorial-card:hover .pub-link i {
    transform: translateX(6px);
}

.pub-editorial-card:hover .pub-orb {
    opacity: 0.95;
}

@keyframes pubFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes pubPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.65;
    }

    50% {
        transform: scale(1.12);
        opacity: 0.92;
    }
}

/* --- RESEARCH VECTORS --- */
.vector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.vector-cell {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.vector-cell:hover {
    border-color: var(--blue-electric);
    box-shadow: var(--glow-blue);
}

.cell-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cell-head i {
    font-size: 2.5rem;
    color: var(--text-primary);
}

.cell-head h3 {
    font-size: 1.5rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags span {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    background: rgba(173, 216, 230, 0.07);
    border-radius: 6px;
    border: 1px solid rgba(173, 216, 230, 0.2);
    font-weight: 600;
    color: var(--saffron-neon);
    transition: var(--trans-fast);
}

.tags span:hover {
    background: rgba(173, 216, 230, 0.15);
    border-color: var(--saffron-neon);
}

.highlight-cell {
    grid-column: auto;
    background: var(--glass-bg);
}

/* --- WORKFLOW TIMELINE --- */
.cyber-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: var(--space-lg) 0;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    z-index: 0;
}

.timeline-node {
    position: relative;
    z-index: 1;
    width: 22%;
    text-align: center;
}

.node-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto var(--space-lg);
    background: var(--bg-deep);
    border: 2px solid var(--green-cyber);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--green-cyber);
    box-shadow: 0 0 15px rgba(42, 117, 255, 0.35);
}

.node-content {
    padding: var(--space-md);
    text-align: left;
}

.node-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.node-content p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--node-copy-contrast);
}

/* --- PUBS BENTO --- */
.pub-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.pub-item {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.pub-item:hover {
    border-color: var(--saffron-neon);
    box-shadow: 0 0 25px rgba(173, 216, 230, 0.15);
    transform: translateY(-3px);
}

.pub-item i {
    font-size: 3.5rem;
    color: var(--blue-electric);
}

.pub-item h4 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

/* --- ABOUT IMMERSIVE --- */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.lab-img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block;
    filter: brightness(0.8) contrast(1.1);
}

.tech-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--bg-deep) 0%, transparent 50%);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.cyber-badge {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: rgba(5, 11, 20, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 12px;
}

.glitch-text {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    display: block;
    background: var(--grad-saffron);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-data .terminal-box {
    background: #0D162B;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 2rem;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.terminal-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    background: #FF5F56;
}

.terminal-header span:nth-child(2) {
    background: #FFBD2E;
}

.terminal-header span:nth-child(3) {
    background: #27C93F;
    margin-right: 1.5rem;
}

.terminal-header div {
    font-family: monospace;
    font-size: 0.8rem;
    color: #5C677D;
}

.terminal-body {
    padding: 1.5rem;
    font-family: monospace;
    font-size: 0.95rem;
    color: var(--text-mutated);
}

.terminal-body code {
    display: block;
    color: var(--green-cyber);
    margin-bottom: 0.5rem;
}

.terminal-body p {
    margin-top: 1.5rem;
    font-family: var(--font-body);
}

/* --- CONTACT TERMINAL --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.input-matrix {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.cyber-input {
    position: relative;
    margin-bottom: var(--space-md);
}

.full-width {
    grid-column: 1 / -1;
}

.cyber-input input,
.cyber-input select,
.cyber-input textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: var(--space-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--trans-fast);
}

.cyber-input textarea {
    resize: vertical;
}

/* Custom Select Styling */
.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.select-arrow {
    position: absolute;
    right: var(--space-md);
    color: var(--text-mutated);
    pointer-events: none;
    font-size: 1.2rem;
    transition: var(--trans-fast);
}

.cyber-input select:focus~.select-arrow {
    color: var(--saffron-neon);
    transform: rotate(180deg);
}

.cyber-input select option {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    padding: 1rem;
}

.cyber-input label {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    color: var(--text-mutated);
    pointer-events: none;
    transition: var(--trans-fast);
    font-size: 0.9rem;
}

.cyber-input input:focus,
.cyber-input input:not(:placeholder-shown),
.cyber-input textarea:focus,
.cyber-input textarea:not(:placeholder-shown),
.cyber-input select:focus,
.cyber-input select:valid {
    border-color: var(--saffron-neon);
    background: rgba(173, 216, 230, 0.05);
}

.cyber-input input:focus~label,
.cyber-input input:not(:placeholder-shown)~label,
.cyber-input textarea:focus~label,
.cyber-input textarea:not(:placeholder-shown)~label,
.cyber-input select:valid~label,
.cyber-input select:focus~label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: 0.75rem;
    background: var(--bg-surface);
    padding: 0 0.4rem;
    color: var(--saffron-neon);
    border-radius: 4px;
}

.cyber-input select {
    appearance: none;
}

.w-100 {
    width: 100%;
}

.map-target {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.target-crosshair {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(42, 117, 255, 0.3);
    background: linear-gradient(90deg, transparent 49%, rgba(42, 117, 255, 0.1) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(42, 117, 255, 0.1) 50%, transparent 51%);
}

.coord-data {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.coord-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-display);
    font-weight: 500;
}

.coord-item i {
    font-size: 1.5rem;
    color: var(--text-mutated);
}

/* --- FOOTER --- */
.cyber-footer {
    position: relative;
    border-top: 1px solid var(--glass-border);
    padding: 5rem 0 2rem;
    background: #02050A;
}

.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin: 1rem 0 0.5rem;
}

.footer-brand-logo {
    margin-bottom: 1.25rem;
    text-decoration: none;
}

.footer-logo {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    overflow: hidden;
}

.footer-links-col h4,
.footer-social h4 {
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.footer-links-col a {
    display: block;
    color: var(--text-mutated);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer-links-col a:hover {
    color: var(--green-cyber);
    transform: translateX(5px);
}

.social-grid {
    display: flex;
    gap: 1rem;
}

.social-grid a {
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.social-grid a:hover {
    background: var(--saffron-neon);
    border-color: var(--saffron-neon);
    color: var(--bg-deep);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(173, 216, 230, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* ==========================================================================
   ANIMATION SYSTEMS - Rich Micro-Interactions & Keyframes
   ========================================================================== */

/* --- 1. HERO ENTRANCE SEQUENCE --- */
@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(6px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes heroFadeScale {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-animate-badge {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-animate-title {
    animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-animate-desc {
    animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

.hero-animate-actions {
    animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both;
}

/* --- 2. PULSE DOT (Badge indicator) --- */
@keyframes pulseDot {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(42, 117, 255, 0.6);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(42, 117, 255, 0);
    }
}

.pulse-cyber {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--green-cyber);
    border-radius: 50%;
    margin-right: 8px;
    animation: pulseDot 2s infinite ease-in-out;
}

.model-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(42, 117, 255, 0.12);
    border: 1px solid rgba(42, 117, 255, 0.28);
    border-radius: 100px;
    padding: 0.6rem 1.2rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--green-cyber);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

/* --- 3. FLOATING CARD ANIMATION --- */
@keyframes floatCard {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

.bento-hero-stat1 {
    animation: floatCard 5s ease-in-out infinite;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS - MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1200px) {
    .cyber-title {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {

    /* Navbar */
    .menu-toggle {
        display: inline-flex;
        z-index: 100;
    }

    .nav-actions .btn-glow {
        display: none;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 1rem;
        width: calc(100% - 2rem);
        flex-direction: column;
        background: linear-gradient(180deg, rgba(10, 17, 40, 0.97) 0%, rgba(5, 11, 20, 0.98) 100%);
        backdrop-filter: blur(20px);
        padding: 1rem;
        gap: 0.45rem;
        border-radius: 20px;
        border: 1px solid var(--glass-border);
        transform: translateY(-16px) scale(0.98);
        opacity: 0;
        visibility: hidden;
        transition: var(--trans-smooth);
        text-align: left;
        z-index: 99;
        box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
    }

    .nav-links a {
        display: flex;
        align-items: center;
        padding: 0.85rem 1rem;
        border-radius: 12px;
        font-size: 0.95rem;
        letter-spacing: 0.8px;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(96, 165, 250, 0.14);
        color: var(--text-primary);
    }

    .nav-links.active {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
    }

    /* Grids & Layouts */
    .services-track {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-split,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: var(--space-section-tablet) 0;
    }

    #services,
    #research,
    #process,
    #publications,
    #about,
    #contact {
        padding-top: var(--space-section-tablet);
        padding-bottom: var(--space-section-tablet);
    }

    .cyber-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .services-track {
        grid-template-columns: 1fr;
    }

    .vector-grid {
        grid-template-columns: 1fr;
    }

    .highlight-cell {
        grid-column: auto;
    }

    /* Setup vertically stacked workflow timeline */
    .cyber-timeline {
        flex-direction: column;
        gap: 2rem;
        padding-left: 2rem;
    }

    .timeline-line {
        top: 0;
        left: 25px;
        /* Centers behind the 50px icon */
        width: 2px;
        height: 100%;
        background: linear-gradient(180deg, transparent, var(--glass-border), transparent);
    }

    .timeline-node {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: var(--space-sm);
        max-width: 360px;
    }

    .node-icon {
        margin: 0;
        flex-shrink: 0;
    }

    .node-content {
        padding: var(--space-md);
    }

    .node-content h4 {
        font-size: 1.25rem;
    }

    .node-content p {
        font-size: 1rem;
    }

    .prefooter-cta {
        margin: 0 1rem 4rem !important;
    }

    .prefooter-cta>div>div {
        flex-direction: column;
    }

    .pub-bento {
        grid-template-columns: 1fr;
    }

    .input-matrix {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .social-grid {
        justify-content: flex-start;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .glass-panel {
        padding: 1.5rem;
    }

    .pub-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 1rem;
    }
}

.bento-hero-stat2 {
    animation: floatCard 5s ease-in-out 1.5s infinite;
}

/* --- 4. NAVBAR LINK ANIMATED UNDERLINE --- */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-saffron);
    border-radius: 2px;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* --- 5. SERVICE CARD ENHANCED HOVER --- */
.neo-card {
    transition: transform 0.3s cubic-bezier(0.1, 0.7, 0.1, 1),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    will-change: transform;
}

.neo-card:hover {
    transform: scale(0.98);
    border-color: rgba(42, 117, 255, 0.5);
    box-shadow: inset 0 0 30px rgba(42, 117, 255, 0.15), 0 8px 15px rgba(0, 0, 0, 0.3);
}

.neo-card:hover .icon-hexagon {
    transform: scale(0.95);
    border-color: var(--saffron-neon);
    box-shadow: 0 0 25px var(--blue-electric), inset 0 0 10px rgba(42, 117, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.1, 0.7, 0.1, 1);
}

.neo-card:hover h4 {
    background: var(--grad-saffron);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

/* --- 6. TIMELINE NODE PULSE --- */
@keyframes timelinePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(42, 117, 255, 0.35);
    }

    50% {
        box-shadow: 0 0 0 9px rgba(42, 117, 255, 0);
    }
}

.node-icon {
    animation: timelinePulse 3s infinite ease-in-out;
    transition: transform 0.3s ease, background 0.3s ease;
}

.timeline-node:hover .node-icon {
    background: var(--blue-electric);
    color: var(--bg-deep);
    transform: scale(1.08);
    animation-play-state: paused;
}

.timeline-node:hover .node-content {
    border-color: rgba(42, 117, 255, 0.3);
    box-shadow: 0 10px 30px rgba(42, 117, 255, 0.12);
}

/* --- 7. PUBLICATION CARD SHIMMER --- */
.pub-item {
    position: relative;
    overflow: hidden;
}

.pub-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.035), transparent);
    transition: none;
    z-index: 1;
}

.pub-item:hover::before {
    animation: shimmerSlide 0.8s ease forwards;
}

@keyframes shimmerSlide {
    0% {
        left: -100%;
    }

    100% {
        left: 150%;
    }
}

.pub-item:hover i {
    transform: scale(1.1) rotate(-3deg);
    color: var(--saffron-neon);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 8. ABOUT SECTION SCAN LINE --- */
@keyframes scanMove {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}

.scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--green-cyber), transparent);
    opacity: 0.5;
    animation: scanMove 4s linear infinite;
    z-index: 2;
}

/* --- 9. CONTACT FORM INPUT FOCUS EFFECTS --- */
.cyber-input input:focus,
.cyber-input textarea:focus,
.cyber-input select:focus {
    box-shadow: 0 0 0 3px rgba(42, 117, 255, 0.2), 0 0 20px rgba(42, 117, 255, 0.12);
    transform: translateY(-1px);
}

/* --- 10. FOOTER LINK HOVER SLIDE --- */
.footer-links-col a {
    position: relative;
    padding-left: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links-col a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    color: var(--saffron-neon);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links-col a:hover {
    padding-left: 20px;
}

.footer-links-col a:hover::before {
    left: 0;
    opacity: 1;
}

/* --- 11. WHATSAPP BUTTON BOUNCE --- */
@keyframes whatsappBounce {

    0%,
    100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.15);
    }

    30% {
        transform: scale(0.95);
    }

    45% {
        transform: scale(1.05);
    }

    60% {
        transform: scale(1);
    }
}

.floating-whatsapp {
    animation: whatsappBounce 3s ease-in-out infinite;
    transition: box-shadow 0.3s ease !important;
}

.floating-whatsapp .whatsapp-icon {
    width: 34px;
    height: 34px;
    display: block;
}

.floating-whatsapp:hover {
    animation-play-state: paused;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5) !important;
}

/* --- 12. TAG HOVER GLOW --- */
.tags span {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.tags span:hover {
    background: rgba(42, 117, 255, 0.15);
    border-color: var(--blue-electric);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 117, 255, 0.15);
}

/* --- 13. CTA BUTTON SHIMMER --- */
@keyframes ctaShimmer {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 150%;
    }
}

.btn-cyber-primary {
    position: relative;
    overflow: hidden;
}

.btn-cyber-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: none;
}

.btn-cyber-primary:hover::after,
.btn-primary:hover::after,
.btn-glow:hover::before {
    animation: ctaShimmer 1.2s ease-in-out 1;
}

/* --- 14. GPU-ACCELERATED WILL-CHANGE HINTS --- */
.bento-hero-card,
.neo-card,
.pub-item,
.vector-cell,
.timeline-node,
.social-grid a {
    will-change: transform;
}

/* --- VECTOR CELL HOVER --- */
.vector-cell {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.vector-cell:hover {
    transform: translateY(-6px);
}

/* --- SOCIAL ICON HOVER --- */
.social-grid a {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-grid a:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(42, 117, 255, 0.3);
}

/* --- TILT-READY CARDS --- */
.neo-card[data-tilt] {
    transform-style: preserve-3d;
    perspective: 800px;
}

/* --- TYPING CURSOR --- */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--saffron-neon);
    margin-left: 4px;
    vertical-align: text-bottom;
    animation: blinkCursor 0.8s step-end infinite;
}

@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* --- PREFOOTER CTA HOVER LIFT --- */
.prefooter-cta {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.prefooter-cta:hover {
    transform: translateY(-4px);
    border-color: rgba(42, 117, 255, 0.3);
    box-shadow: 0 20px 60px rgba(42, 117, 255, 0.12);
}

/* --- RESPONSIVE PROTOCOLS --- */
@media (max-width: 1200px) {
    .bento-hero-grid {
        grid-template-columns: 1.2fr 1fr 1fr;
    }
}

@media (max-width: 1024px) {

    /* Bento Hero Matrix - Tablet */
    .hero-bento-section {
        padding-top: 100px;
        height: auto;
    }

    .bento-hero-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto 300px 200px;
        height: auto;
        min-height: auto;
    }

    .bento-hero-main {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
        padding: 3rem;
    }

    .bento-hero-visual {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
    }

    .bento-hero-stat1 {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }

    .bento-hero-stat2 {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }

    /* Other Sections */
    .bento-grid-stats {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .stat-alpha,
    .stat-beta,
    .stat-delta {
        grid-column: span 1;
        grid-row: auto;
    }

    .stat-gamma {
        grid-column: span 2;
        grid-row: auto;
    }

    .services-track,
    .vector-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .highlight-cell {
        grid-column: auto;
    }

    .about-split,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    /* Navbar Mobile */
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 0.55rem);
        left: 0.75rem;
        width: calc(100% - 1.5rem);
        flex-direction: column;
        gap: 0.4rem;
        background: linear-gradient(180deg, rgba(10, 17, 40, 0.97) 0%, rgba(5, 11, 20, 0.98) 100%);
        border-radius: 16px;
        border: 1px solid var(--glass-border);
        padding: 0.85rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.8rem 0.9rem;
        border-bottom: none;
        border-radius: 10px;
    }

    .nav-links a::after {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-actions .btn-glow {
        display: none;
    }

    /* Bento Hero Matrix - Mobile */
    .hero-bento-section {
        padding-top: 80px;
    }

    .bento-hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto 250px auto auto;
        gap: 1rem;
    }

    .bento-hero-main {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        padding: 2rem;
    }

    .bento-hero-visual {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }

    .bento-hero-stat1 {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
        padding: 1.5rem;
    }

    .bento-hero-stat2 {
        grid-column: 1 / 2;
        grid-row: 4 / 5;
        padding: 1.5rem;
    }

    .hero-title-bento {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero-desc-bento {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .hero-search-bento {
        flex-direction: column;
        border-radius: 12px;
        padding: 1rem;
        gap: 1rem;
    }

    .hero-search-bento input {
        width: 100%;
        text-align: left;
        padding: 0.5rem 0;
    }

    .hero-search-bento .btn-cyber-primary {
        width: 100%;
        border-radius: 8px;
        justify-content: center;
    }

    .trust-icons {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }

    /* Other Sections Mobile */
    .hero-headline {
        font-size: 2.2rem;
    }

    .services-track,
    .vector-grid,
    .bento-grid-stats,
    .pub-bento {
        grid-template-columns: 1fr;
    }

    .about-visual {
        width: 100%;
        max-width: 100%;
    }

    .lab-img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

    .cyber-badge {
        left: 1rem;
        bottom: 1rem;
        padding: 1rem;
    }

    .stat-gamma {
        grid-column: 1 / -1;
    }

    .cyber-timeline {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-lg);
        padding-left: var(--space-lg);
    }

    .timeline-node {
        width: 100%;
        max-width: 360px;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: var(--space-sm);
    }

    .timeline-line {
        top: 0;
        left: 25px;
        width: 2px;
        height: 100%;
    }

    .node-icon {
        margin: 0;
        flex-shrink: 0;
    }

    .node-content {
        padding: var(--space-md);
    }

    .node-content h4 {
        font-size: 1.25rem;
    }

    .node-content p {
        font-size: 1rem;
    }

    .footer-columns {
        grid-template-columns: 1fr;
    }

    .input-matrix {
        grid-template-columns: 1fr;
    }

    .contact-form-side,
    .map-glass {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .bento-hero-main {
        padding: 1.5rem;
    }

    .lab-img {
        aspect-ratio: 4 / 3;
    }

    .hero-title-bento {
        font-size: 1.8rem;
    }

    .model-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
}

/* Add extra mobile styling */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .cyber-title {
        font-size: 1.8rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-cyber-primary,
    .btn-cyber-outline {
        width: 100%;
        text-align: center;
    }

    .section-padding {
        padding: var(--space-section-mobile) 0;
    }

    #services,
    #research,
    #process,
    #publications,
    #about,
    #contact {
        padding-top: var(--space-section-mobile);
        padding-bottom: var(--space-section-mobile);
    }

    .glass-panel {
        padding: 1.5rem;
    }
}



@media (max-width: 380px) {
    .bento-card {
        padding: 1rem;
    }

    .hero-badge {
        font-size: 0.75rem;
    }

    .stats-matrix {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 414px) {

    .container,
    .nav-container {
        padding: 0 0.75rem;
    }

    .nav-links {
        left: 0.5rem;
        width: calc(100% - 1rem);
        padding: 0.75rem 0.5rem;
        gap: 0.3rem;
    }

    .nav-links a {
        padding: 0.68rem 0.78rem;
        font-size: 0.84rem;
    }

    .txt-primary {
        font-size: 0.96rem;
    }

    .txt-accent {
        font-size: 0.66rem;
        letter-spacing: 0.6px;
    }

    .hero-section {
        padding-top: 72px;
        padding-bottom: 1.75rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(1.85rem, 8.2vw, 2.3rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: clamp(0.95rem, 3.8vw, 1.05rem);
        margin-bottom: 1.5rem;
    }

    .hero-badge {
        font-size: 0.66rem;
        padding: 0.3rem 0.7rem;
        gap: 0.35rem;
    }

    .hero-actions {
        gap: 0.65rem;
        padding: 0 0.25rem;
    }

    .hero-actions .btn {
        width: 100%;
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }

    .cyber-timeline {
        padding-left: 1.3rem;
        gap: 1.35rem;
    }

    .timeline-line {
        left: 21px;
    }

    .timeline-node {
        max-width: 100%;
        gap: 0.8rem;
    }

    .node-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .node-content {
        padding: 1rem;
    }

    .node-content h4 {
        font-size: 1.08rem;
    }

    .node-content p {
        font-size: 0.92rem;
        line-height: 1.45;
    }

    .floating-whatsapp {
        width: 52px !important;
        height: 52px !important;
        right: 12px !important;
        bottom: 12px !important;
    }

    .floating-whatsapp .whatsapp-icon {
        width: 28px;
        height: 28px;
    }

    .contact-form-side,
    .map-glass {
        padding: 1.2rem;
    }

    .cyber-input input,
    .cyber-input select,
    .cyber-input textarea {
        padding: 0.9rem 0.8rem;
        font-size: 16px;
    }

    .cyber-input label {
        top: 0.9rem;
        left: 0.8rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 390px) {
    .hero-title {
        font-size: clamp(1.72rem, 8vw, 2.15rem);
    }

    .hero-subtitle {
        font-size: 0.94rem;
    }

    .cyber-badge {
        left: 0.75rem;
        bottom: 0.75rem;
        padding: 0.85rem;
    }

    .glitch-text {
        font-size: 1.9rem;
    }

    .floating-whatsapp {
        width: 50px !important;
        height: 50px !important;
        right: 11px !important;
        bottom: 11px !important;
    }
}

@media (max-width: 375px) {
    .lab-img {
        aspect-ratio: 1 / 1.15;
    }

    .hero-title {
        font-size: clamp(1.62rem, 7.6vw, 2.05rem);
    }

    .hero-actions .btn {
        font-size: 0.9rem;
        padding: 0.8rem 0.95rem;
    }

    .node-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .node-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {

    .container,
    .nav-container {
        padding: 0 0.75rem;
    }

    .nav-links {
        left: 0.4rem;
        width: calc(100% - 0.8rem);
    }

    .txt-primary {
        font-size: 0.9rem;
    }

    .txt-accent {
        font-size: 0.62rem;
        letter-spacing: 0.45px;
    }

    .hero-title {
        font-size: clamp(1.52rem, 7.3vw, 1.95rem);
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-badge {
        font-size: 0.62rem;
        padding: 0.26rem 0.62rem;
    }

    .section-padding {
        padding: 1.5rem 0;
    }

    #services,
    #research,
    #process,
    #publications,
    #about,
    #contact {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .glass-panel {
        padding: 1.2rem;
    }

    .floating-whatsapp {
        width: 48px !important;
        height: 48px !important;
        right: 10px !important;
        bottom: 10px !important;
    }

    .floating-whatsapp .whatsapp-icon {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 320px) {
    .txt-primary {
        font-size: 0.84rem;
    }

    .txt-accent {
        font-size: 0.58rem;
        letter-spacing: 0.35px;
    }

    .hero-title {
        font-size: clamp(1.35rem, 7vw, 1.75rem);
    }

    .hero-subtitle {
        font-size: 0.84rem;
        line-height: 1.5;
    }

    .hero-actions .btn {
        font-size: 0.84rem;
    }

    .nav-links a {
        font-size: 0.78rem;
    }

    .node-content p {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .cyber-footer {
        padding: 3.25rem 0 calc(4.75rem + env(safe-area-inset-bottom, 0px));
    }

    .footer-columns {
        margin-bottom: 2.25rem;
        gap: 1.85rem;
    }

    .footer-brand h3 {
        font-size: 1.55rem;
        margin: 0.85rem 0 0.5rem;
    }

    .footer-brand p {
        max-width: 34ch;
        margin: 0;
        line-height: 1.55;
    }

    .footer-links-col h4,
    .footer-social h4 {
        margin-bottom: 0.85rem;
        font-size: 1rem;
    }

    .footer-links-col a {
        font-size: 0.95rem;
        margin-bottom: 0.55rem;
        padding: 0.2rem 0;
    }

    .footer-links-col a:hover {
        transform: none;
    }

    .social-grid {
        justify-content: flex-start;
        gap: 0.8rem;
    }

    .social-grid a {
        width: 42px;
        height: 42px;
        font-size: 1.05rem;
    }

    .footer-bottom {
        padding-top: 1.4rem;
        font-size: 0.82rem;
        line-height: 1.5;
    }
}

@media (max-width: 414px) {
    .cyber-footer {
        padding-top: 2.9rem;
        padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    }

    .footer-columns {
        gap: 1.55rem;
    }

    .footer-brand h3 {
        font-size: 1.4rem;
    }

    .footer-brand p,
    .footer-links-col a {
        font-size: 0.9rem;
    }

    .footer-bottom {
        font-size: 0.78rem;
    }
}

@media (max-width: 360px) {
    .cyber-footer {
        padding-top: 1.5rem;
        padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
    }

    .footer-columns {
        gap: 1.35rem;
        margin-bottom: 1.9rem;
    }

    .footer-logo {
        width: 44px;
        height: 44px;
    }

    .footer-brand h3 {
        font-size: 1.28rem;
    }

    .footer-links-col h4,
    .footer-social h4 {
        font-size: 0.95rem;
    }

    .footer-links-col a {
        margin-bottom: 0.45rem;
        font-size: 0.87rem;
    }

    .social-grid a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-bottom {
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   About the Founder Section
   ========================================================================== */

.founder-section {
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.founder-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.founder-image-wrapper {
    position: relative;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 20px;
}

.founder-badge {
    position: absolute;
    right: 1rem;
    left: auto;
    bottom: 1rem;
}

.font-visionary {
    font-size: 1.8rem;
}

.leadership-text {
    display: block;
    color: var(--saffron-neon);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

@media (min-width: 993px) {
    .founder-image-wrapper {
        height: 100%;
        min-height: 500px;
    }
}

.founder-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--saffron-glow) 0%, transparent 70%);
    filter: blur(60px);
    opacity: 0.4;
    animation: floatLegacy 6s ease-in-out infinite alternate;
    z-index: 0;
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    z-index: 1;
    position: relative;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6));
    transition: transform 0.6s cubic-bezier(0.1, 0.7, 0.1, 1);
}

.founder-image-wrapper:hover .founder-img {
    transform: scale(1.03);
}

.founder-name {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.founder-bio p {
    color: var(--text-mutated);
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.expertise-tags .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.expertise-tags .tags span {
    background: rgba(125, 211, 252, 0.08);
    border: 1px solid rgba(125, 211, 252, 0.25);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--saffron-neon);
    backdrop-filter: blur(5px);
    transition: var(--trans-fast);
}

.expertise-tags .tags span:hover {
    background: rgba(125, 211, 252, 0.2);
    border-color: var(--saffron-neon);
    transform: translateY(-3px);
    box-shadow: var(--glow-saffron);
}

.disclaimer-box {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    background: rgba(42, 117, 255, 0.05);
    border: 1px solid rgba(42, 117, 255, 0.2);
    padding: 1.5rem;
    border-radius: 15px;
    align-items: flex-start;
    transition: var(--trans-fast);
}

.disclaimer-box:hover {
    background: rgba(42, 117, 255, 0.08);
    border-color: rgba(42, 117, 255, 0.4);
}

.disclaimer-box i {
    font-size: 1.8rem;
    color: var(--blue-electric);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.disclaimer-box p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-mutated);
}

.disclaimer-box strong {
    color: var(--text-primary);
}

@media (max-width: 992px) {
    .founder-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .founder-image-wrapper {
        max-width: 500px;
        margin: 0 auto 2rem;
    }
}

@media (max-width: 768px) {
    .founder-name {
        font-size: 1.8rem;
    }

    .founder-bio p {
        font-size: 1rem;
    }

    .disclaimer-box {
        margin-top: 1.5rem;
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .founder-grid {
        gap: 1.5rem;
    }

    .founder-name {
        font-size: 1.5rem;
    }

    .founder-bio p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .founder-role {
        font-size: 0.9rem;
    }

    .expertise-tags .tags span {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .disclaimer-box {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .disclaimer-box i {
        font-size: 1.5rem;
    }

    .font-visionary {
        font-size: 1.3rem;
    }

    .leadership-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 1200px) {
    .pub-editorial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pub-editorial-card {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .pub-editorial-grid {
        grid-template-columns: 1fr;
    }

    .pub-editorial-card {
        min-height: 0;
        padding: 1.65rem 1.35rem;
        border-radius: 20px;
    }

    .pub-editorial-card h4 {
        font-size: 1.62rem;
    }

    .pub-editorial-card p {
        max-width: 100%;
        margin-bottom: 1.35rem;
    }
}

@media (max-width: 480px) {
    .pub-heading {
        margin-bottom: 1rem;
    }

    .pub-editorial-grid {
        gap: 0.9rem;
    }

    .pub-top {
        margin-bottom: 1.2rem;
    }

    .pub-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .pub-meta {
        font-size: 0.68rem;
        letter-spacing: 1.3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pub-editorial-card,
    .pub-orb {
        animation: none;
    }

    .pub-editorial-card,
    .pub-link i {
        transition: none;
    }
}