/* ===========================================================================
   Prof. Karthikeyan S. — Cyber-Academic Modern Design System
   Identity: DNA Cryptography, IoT Security, Cloud Security & Applied AI
   Typography: 'Outfit' (Headings), 'Plus Jakarta Sans' (Body), 'Space Grotesk' (Tech Accents)
   Colorway: Midnight Obsidian (#0b0f19), Electric Cobalt (#2563eb), Cyber Cyan (#06b6d4)
   Kinetic: Custom Interactive Cursor Follower + Dynamic Card Spotlight Motion
   =========================================================================== */

:root {
    /* Brand Colors — Cyber & Academic Executive Palette */
    --ink: #0b0f19;                 /* Midnight Obsidian: Hero, dark accents, active states */
    --ink-subtle: #131b2e;          /* Rich Navy Obsidian: Container contrast */
    --primary: #2563eb;             /* Electric Cobalt Blue: Primary brand & action */
    --primary-hover: #1d4ed8;       /* Deep Cobalt */
    --primary-light: #eff6ff;       /* Soft Cobalt Tint */
    --accent-cyan: #06b6d4;         /* Cyber Cyan: Cryptography, telemetry, signal glow */
    --accent-cyan-light: #ecfeff;   /* Soft Cyan Tint */
    --accent-emerald: #10b981;      /* DNA Mint / Verified indicator */
    --accent-purple: #8b5cf6;       /* Machine Intelligence / Deep Learning accent */
    --paper: #f8fafc;               /* Crisp Slate Canvas body background */
    --white: #ffffff;               /* Pure white card surfaces */
    --text: #0f172a;                /* Deep Obsidian Text for sharp high-contrast readability */
    --muted: #64748b;               /* Slate Gray: Metadata & descriptions */
    --line: #e2e8f0;                /* Crisp divider & card border */
    --line-glow: rgba(37, 99, 235, 0.25);

    /* Typography Hierarchy */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Space Grotesk', -apple-system, BlinkMacSystemFont, monospace, sans-serif;

    /* Sizing & Radius */
    --container-max: 1160px;
    --nav-height: 70px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-pill: 9999px;

    /* Elevation & Shadows */
    --shadow-sm: 0 1px 3px rgba(11, 15, 25, 0.05);
    --shadow-md: 0 4px 16px rgba(11, 15, 25, 0.06);
    --shadow-lg: 0 12px 36px rgba(11, 15, 25, 0.09);
    --shadow-glow: 0 0 24px rgba(37, 99, 235, 0.2);

    /* Legacy compatibility for Vault */
    --bg-dark: var(--ink);
    --bg-card: var(--white);
    --text-primary: var(--text);
    --text-secondary: var(--muted);
    --accent-primary: var(--primary);
    --accent-secondary: var(--accent-cyan);
    --teal: var(--primary);
    --teal-d: var(--primary-hover);
    --teal-l: var(--primary-light);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: var(--line);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--paper);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* -------------------------------------------------- Interactive Cursor Motion */
@media (hover: hover) and (pointer: fine) {
    .cursor-dot {
        position: fixed;
        top: 0;
        left: 0;
        width: 8px;
        height: 8px;
        background: var(--primary);
        border-radius: 50%;
        pointer-events: none;
        z-index: 99999;
        transform: translate(-50%, -50%);
        transition: opacity 0.2s ease, transform 0.1s ease;
        box-shadow: 0 0 10px rgba(37, 99, 235, 0.6);
    }

    .cursor-ring {
        position: fixed;
        top: 0;
        left: 0;
        width: 36px;
        height: 36px;
        border: 1.5px solid rgba(37, 99, 235, 0.4);
        background: rgba(37, 99, 235, 0.03);
        border-radius: 50%;
        pointer-events: none;
        z-index: 99998;
        transform: translate(-50%, -50%);
        transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
        will-change: transform;
    }

    .cursor-ring.cursor-active {
        width: 58px;
        height: 58px;
        border-color: var(--accent-cyan);
        background: rgba(6, 182, 212, 0.12);
        box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    }
}

/* ---------------------------------------------------- Dynamic Card Spotlight */
.spotlight-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(450px circle at var(--mouse-x, -200px) var(--mouse-y, -200px), rgba(37, 99, 235, 0.08), transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    z-index: 1;
}

.spotlight-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.3);
}

.spotlight-card:hover::before {
    opacity: 1;
}

.spotlight-card > * {
    position: relative;
    z-index: 2;
}

/* ----------------------------------------------------------- Layout Helpers */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5.5rem 0;
    position: relative;
}

section:nth-child(even) {
    background-color: var(--white);
}

section:nth-child(odd) {
    background-color: var(--paper);
}

/* Section Headings */
.section-header {
    margin-bottom: 3.25rem;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 0.6rem;
}

.section-kicker-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-cyan);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.35rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 52px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
    margin-top: 0.75rem;
    border-radius: var(--radius-pill);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--muted);
    margin-top: 0.85rem;
    max-width: 700px;
}

/* ------------------------------------------------------------------ Navbar */
#navbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(11, 15, 25, 0.06);
    background: #ffffff;
}

.nav-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

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

.nav-brand-pill {
    width: 9px;
    height: 9px;
    background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    padding: 0.4rem 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
    transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-vault-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.85rem;
    background: var(--primary-light);
    color: var(--primary) !important;
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: var(--radius-pill);
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    transition: all 0.2s ease;
}

.nav-vault-btn:hover {
    background: var(--primary);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Nav Social Icon Cluster */
.nav-socials {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.nav-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-pill);
    color: var(--muted);
    border: 1px solid var(--line);
    background: #ffffff;
    transition: all 0.2s ease;
}

.nav-icon-link:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    background: var(--primary-light);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

.nav-icon-link svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

/* ------------------------------------------------------------ Hero Section */
.hero-scholarly {
    background-color: var(--ink);
    color: #ffffff;
    padding: 5.5rem 0 3.75rem;
    position: relative;
    overflow: hidden;
}

/* Kinetic Ambient Radial Glow */
.hero-scholarly::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(6, 182, 212, 0.08) 45%, rgba(11, 15, 25, 0) 70%);
    pointer-events: none;
    transition: transform 0.2s ease-out;
}

.hero-scholarly::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(11, 15, 25, 0) 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.18);
    color: #93c5fd;
    border: 1px solid rgba(147, 197, 253, 0.3);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
}

.hero-kicker-pulse {
    width: 7px;
    height: 7px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: radarPulse 2s infinite ease-in-out;
}

@keyframes radarPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.6; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 0.6rem;
    letter-spacing: -0.03em;
}

.hero-title .title-accent {
    background: linear-gradient(135deg, #60a5fa, #38bdf8, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-role {
    font-size: 1.2rem;
    font-weight: 600;
    color: #93c5fd;
    margin-bottom: 0.4rem;
}

.hero-affiliation {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.hero-bio {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
    max-width: 620px;
}

.hero-bio strong {
    color: #ffffff;
    font-weight: 600;
}

.hero-location-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.hero-location-bar svg {
    width: 16px;
    height: 16px;
    fill: var(--accent-cyan);
    flex-shrink: 0;
}

.hero-cta-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* Hero Portrait Frame */
.hero-portrait-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-portrait-frame {
    position: relative;
    width: 230px;
    height: 230px;
    margin-bottom: 1.5rem;
}

.hero-portrait-frame::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px dashed rgba(6, 182, 212, 0.45);
    animation: rotateOrb 45s linear infinite;
    pointer-events: none;
}

@keyframes rotateOrb {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(37, 99, 235, 0.25);
}

.hero-contact-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.35rem;
    width: 100%;
    max-width: 300px;
    text-align: left;
}

.hero-contact-badge p {
    font-size: 0.85rem;
    color: #e2e8f0;
    margin-bottom: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.hero-contact-badge a {
    color: #38bdf8;
    font-weight: 500;
}

.hero-contact-badge a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* Stat Bar Strip */
.hero-stat-strip {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.hero-stat-card {
    text-align: center;
    padding: 0.85rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease;
}

.hero-stat-card:hover {
    transform: translateY(-2px);
}

.hero-stat-card:last-child {
    border-right: none;
}

.hero-stat-num {
    font-family: var(--font-mono);
    font-size: 2.3rem;
    font-weight: 700;
    color: #38bdf8;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 500;
}

/* ------------------------------------------------------------------ Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.78rem 1.45rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    white-space: nowrap;
}

.btn-primary, .btn-teal {
    background: linear-gradient(135deg, var(--primary), #1d4ed8);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover, .btn-teal:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp svg {
    width: 17px;
    height: 17px;
    fill: #ffffff;
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--text) !important;
    border: 1px solid var(--line);
}

.btn-secondary:hover {
    background-color: var(--paper);
    border-color: var(--primary);
    color: var(--primary) !important;
}

/* ------------------------------------------------------------ About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 3rem;
    align-items: start;
}

.about-prose {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}

.about-prose p {
    margin-bottom: 1.25rem;
}

.about-prose strong {
    color: var(--ink);
    font-weight: 600;
}

/* Featured Book Card */
.featured-book-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

.featured-book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
}

.featured-book-kicker {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
}

.featured-book-body {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.featured-book-cover {
    width: 85px;
    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(11, 15, 25, 0.15);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.featured-book-cover:hover {
    transform: scale(1.05);
}

.featured-book-info h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.featured-book-info p {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.btn-amazon {
    background: #FF9900;
    color: #111111 !important;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-amazon:hover {
    background: #e68a00;
}

/* --------------------------------------------------------- Research Domains */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.research-card {
    padding: 2.25rem;
    border-top: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
}

.research-card-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.research-card-icon-wrap svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.research-card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.research-card-desc {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-pill {
    background: var(--paper);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 0.25rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tag-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Research Callout Banner */
.callout-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 100%);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 1.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.callout-content h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.callout-content p {
    font-size: 0.95rem;
    color: var(--muted);
}

/* ----------------------------------------------------- Publications Section */
.pub-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* Filter Pills */
.pub-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pub-pill-btn {
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 0.45rem 1.15rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.pub-pill-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.pub-pill-btn.active {
    background: var(--ink);
    color: #ffffff;
    border-color: var(--ink);
    box-shadow: 0 4px 12px rgba(11, 15, 25, 0.2);
}

.pub-pill-count {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    opacity: 0.85;
}

/* Search Box */
.pub-search-box {
    position: relative;
    min-width: 270px;
}

.pub-search-box input {
    width: 100%;
    padding: 0.55rem 1rem 0.55rem 2.3rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.88rem;
    background: #ffffff;
    color: var(--text);
    outline: none;
    transition: all 0.2s ease;
}

.pub-search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.pub-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    fill: var(--muted);
    pointer-events: none;
}

/* Publication List Container */
.pub-list {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* Publication List Item */
.pub-item {
    display: grid;
    grid-template-columns: 85px 1fr;
    gap: 1.5rem;
    padding: 1.6rem 2rem;
    border-bottom: 1px solid var(--line);
    transition: background-color 0.15s ease;
    align-items: start;
}

.pub-item:last-child {
    border-bottom: none;
}

.pub-item:hover {
    background-color: var(--paper);
}

.pub-year-col {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
    padding-top: 0.1rem;
}

.pub-content-col {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pub-item-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.45;
}

.pub-item-title a {
    color: var(--text);
    text-decoration: none;
}

.pub-item-title a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.pub-item-authors {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.5;
}

.pub-item-authors strong,
.pub-item-authors .author-highlight {
    color: var(--primary);
    font-weight: 700;
}

.pub-item-venue {
    font-size: 0.88rem;
    font-style: italic;
    color: var(--muted);
    line-height: 1.5;
}

.pub-item-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.4rem;
}

.pub-badge {
    display: inline-block;
    padding: 0.22rem 0.65rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pub-badge--journal    { background: #eff6ff; color: #1d4ed8; border: 1px solid rgba(29, 78, 216, 0.2); }
.pub-badge--conference { background: #fef3c7; color: #b45309; border: 1px solid rgba(180, 83, 9, 0.2); }
.pub-badge--chapter    { background: #ede9fe; color: #6d28d9; border: 1px solid rgba(109, 40, 217, 0.2); }
.pub-badge--book       { background: #fee2e2; color: #b91c1c; border: 1px solid rgba(185, 28, 28, 0.2); }
.pub-badge--patent     { background: #dcfce7; color: #15803d; border: 1px solid rgba(21, 128, 61, 0.2); }
.pub-badge--fdp        { background: #fae8ff; color: #86198f; border: 1px solid rgba(134, 25, 143, 0.2); }

.pub-doi-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: var(--radius-sm);
    padding: 0.22rem 0.65rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pub-doi-btn:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ------------------------------------------------- Teaching & Courses Section */
.teaching-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.teaching-block h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.course-chips-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.course-chip {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 0.45rem 1.05rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.course-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.teaching-quote-box {
    background: #ffffff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
}

.teaching-quote {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.teaching-statement-details summary {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    margin-bottom: 0.75rem;
}

.teaching-statement-details p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ---------------------------------------------------- Mentored Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.project-card {
    padding: 1.75rem;
}

.project-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.project-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    flex-shrink: 0;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.project-desc {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ------------------------------------------------- Academic Background Timeline */
.timeline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.timeline-column h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.timeline {
    position: relative;
    border-left: 2px solid var(--line);
    padding-left: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -2.35rem;
    top: 0.25rem;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px var(--line), 0 0 8px rgba(37, 99, 235, 0.4);
}

.timeline-period {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.45rem;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.timeline-institution {
    font-size: 0.92rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.timeline-note {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ------------------------------------------------ Professional Memberships */
.memberships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.membership-card {
    padding: 1.6rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.membership-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 4px;
}

.membership-info h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.membership-info p {
    font-size: 0.82rem;
    color: var(--muted);
}

.membership-id {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-sm);
    margin-top: 0.35rem;
}

/* -------------------------------------------------- Certifications & FDPs */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    padding: 1.6rem;
    display: flex;
    gap: 1.25rem;
    align-items: start;
}

.cert-icon {
    font-size: 1.85rem;
    flex-shrink: 0;
}

.cert-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cert-tag {
    align-self: flex-start;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--primary-light);
    color: var(--primary);
}

.cert-body h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}

.cert-body p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

/* -------------------------------------------------------- Contact & Footer */
section.contact-section,
#contact.contact-section {
    background-color: var(--ink) !important;
    color: #ffffff !important;
    padding: 5.5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

section.contact-section::before,
#contact.contact-section::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(11, 15, 25, 0) 70%);
    pointer-events: none;
}

section.contact-section .section-title,
#contact .section-title {
    color: #ffffff !important;
}

section.contact-section .section-subtitle,
#contact .section-subtitle {
    color: #cbd5e1 !important;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2.5rem;
    position: relative;
    z-index: 2;
}

.contact-card-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 2.25rem;
}

.contact-card-box h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.contact-entry-list {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.contact-entry {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-entry-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.25);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-entry-icon svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.contact-entry-text p {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.contact-entry-text a,
.contact-entry-text span {
    font-size: 1rem;
    color: #f1f5f9;
    font-weight: 500;
}

.contact-entry-text a:hover {
    color: #38bdf8;
}

.contact-profiles-box h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.contact-profiles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.profile-link-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.profile-link-btn:hover {
    background: rgba(37, 99, 235, 0.35);
    border-color: #60a5fa;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.profile-link-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 0 1.5rem;
    margin-top: 4rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.88rem;
    position: relative;
    z-index: 2;
}

.site-footer a {
    color: #38bdf8;
    font-weight: 600;
}

/* ----------------------------------------------------- Floating Action Hub */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 999;
}

.floating-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.floating-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.floating-btn svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

/* --------------------------------------------------- Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------------------- Responsive Breakpoints */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .hero-portrait-col {
        order: -1;
    }

    .hero-kicker,
    .hero-location-bar,
    .hero-cta-cluster {
        justify-content: center;
    }

    .hero-bio {
        margin: 0 auto 1.5rem;
    }

    .about-grid,
    .teaching-grid,
    .timeline-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu.open .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--line);
        padding: 1.5rem;
        box-shadow: 0 10px 24px rgba(11, 15, 25, 0.1);
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.45rem;
    }

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

    .pub-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1.25rem 1rem;
    }

    .pub-year-col {
        font-size: 1rem;
    }

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

    .pub-search-box {
        width: 100%;
    }

    .callout-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-profiles-grid {
        grid-template-columns: 1fr;
    }

    .hero-stat-strip {
        grid-template-columns: 1fr 1fr;
    }

    .hero-stat-card {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}
