/* ═══════════════════════════════════════════════
   MANJU MUKESH DANNINA — PORTFOLIO DESIGN SYSTEM
   "Clean Light Minimal" — Apple / Linear inspired
   Airy whitespace · single indigo accent · crisp sans
   ═══════════════════════════════════════════════ */

/* ── CSS CUSTOM PROPERTIES ──
   NOTE: legacy variable names are preserved but remapped
   to the light palette so every reference stays coherent. */
:root {
    color-scheme: light;

    /* Surfaces */
    --bg-void: #ffffff;
    --bg-deep: #fbfbfd;
    --bg-surface: #f6f7f9;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --bg-glass: rgba(15, 23, 42, 0.02);
    --bg-glass-hover: rgba(15, 23, 42, 0.04);
    --surface-2: #f1f2f6;

    /* Semantic surfaces (theme-switchable) */
    --surface: #ffffff;
    --surface-translucent: rgba(255, 255, 255, 0.72);
    --surface-menu: rgba(255, 255, 255, 0.97);
    --surface-badge: rgba(255, 255, 255, 0.9);
    --surface-chat: rgba(255, 255, 255, 0.85);
    --canvas-bg: #ffffff;

    /* Typography colors */
    --text-100: #0b0d17;
    --text-200: #3c4257;
    --text-300: #6b7280;
    --text-400: #a2a8b4;

    /* Accent palette — single indigo family */
    --accent: #4f46e5;
    --accent-2: #7c3aed;
    --accent-cyan: #4f46e5;            /* legacy name → indigo */
    --accent-cyan-dim: rgba(79, 70, 229, 0.08);
    --accent-cyan-glow: rgba(79, 70, 229, 0.16);
    --accent-violet: #7c3aed;
    --accent-violet-dim: rgba(124, 58, 237, 0.08);
    --accent-gold: #d97706;
    --accent-gold-dim: rgba(217, 119, 6, 0.10);
    --accent-green: #10b981;

    /* Gradients */
    --gradient-text: linear-gradient(120deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-accent: linear-gradient(120deg, #4f46e5, #6d28d9);
    --gradient-card: linear-gradient(135deg, rgba(79, 70, 229, 0.04), rgba(124, 58, 237, 0.02), transparent);
    --gradient-border: linear-gradient(135deg, rgba(79, 70, 229, 0.25), rgba(124, 58, 237, 0.15));

    /* Borders */
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.12);
    --border-hover: rgba(79, 70, 229, 0.4);

    /* Shadows & soft glows */
    --glow-sm: 0 6px 20px rgba(79, 70, 229, 0.12);
    --glow-md: 0 12px 40px rgba(79, 70, 229, 0.12);
    --glow-lg: 0 20px 60px rgba(79, 70, 229, 0.14);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.05);
    --shadow-card-hover: 0 16px 48px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.05);

    /* Typography */
    --ff-display: 'Inter', sans-serif;
    --ff-body: 'Inter', sans-serif;
    --ff-mono: 'JetBrains Mono', 'Space Mono', monospace;

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 0.2s var(--ease);
    --t-smooth: 0.4s var(--ease);
    --t-slow: 0.7s var(--ease-out-expo);

    /* Radius */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 26px;
    --r-full: 9999px;
}

/* ═══════════════════════════════════════════════
   DARK THEME OVERRIDES — refined professional dark
   ═══════════════════════════════════════════════ */
:root[data-theme="dark"] {
    color-scheme: dark;

    --bg-void: #0a0e17;
    --bg-deep: #0d121e;
    --bg-surface: #121826;
    --bg-elevated: #151b2b;
    --bg-card: #141a2b;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.05);
    --surface-2: #1b2234;

    --surface: #141a2b;
    --surface-translucent: rgba(10, 14, 23, 0.72);
    --surface-menu: rgba(10, 14, 23, 0.97);
    --surface-badge: rgba(21, 27, 43, 0.88);
    --surface-chat: rgba(14, 19, 32, 0.9);
    --canvas-bg: #0a0e17;

    --text-100: #f2f5fc;
    --text-200: #c3cad8;
    --text-300: #8b93a5;
    --text-400: #5b6474;

    /* Lighter indigo reads better on dark while keeping brand identity */
    --accent: #818cf8;
    --accent-2: #a78bfa;
    --accent-cyan: #818cf8;
    --accent-cyan-dim: rgba(129, 140, 248, 0.14);
    --accent-cyan-glow: rgba(129, 140, 248, 0.22);
    --accent-violet: #a78bfa;
    --accent-violet-dim: rgba(167, 139, 250, 0.14);
    --accent-gold: #fbbf24;
    --accent-gold-dim: rgba(251, 191, 36, 0.14);
    --accent-green: #34d399;

    --gradient-text: linear-gradient(120deg, #818cf8 0%, #c4b5fd 100%);
    --gradient-accent: linear-gradient(120deg, #6366f1, #8b5cf6);
    --gradient-card: linear-gradient(135deg, rgba(129, 140, 248, 0.06), rgba(167, 139, 250, 0.03), transparent);
    --gradient-border: linear-gradient(135deg, rgba(129, 140, 248, 0.3), rgba(167, 139, 250, 0.18));

    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --border-hover: rgba(129, 140, 248, 0.5);

    --glow-sm: 0 6px 24px rgba(129, 140, 248, 0.18);
    --glow-md: 0 12px 44px rgba(129, 140, 248, 0.18);
    --glow-lg: 0 20px 64px rgba(129, 140, 248, 0.2);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-card-hover: 0 20px 56px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ═══════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--ff-body);
    background: var(--bg-void);
    color: var(--text-200);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.011em;
    transition: background-color var(--t-smooth), color var(--t-smooth);
}

::selection {
    background: var(--accent);
    color: #ffffff;
}

/* Themed global scrollbar */
html { scrollbar-width: thin; scrollbar-color: rgba(79, 70, 229, 0.3) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb {
    background: rgba(79, 70, 229, 0.28);
    border-radius: 10px;
    border: 3px solid var(--bg-surface);
}
::-webkit-scrollbar-thumb:hover { background: rgba(79, 70, 229, 0.5); }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: var(--ff-body); cursor: pointer; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

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

/* ═══════════════════════════════════════════════
   GRAIN / NOISE OVERLAY — disabled for light theme
   ═══════════════════════════════════════════════ */
.grain-overlay { display: none; }

/* ═══════════════════════════════════════════════
   GEOMETRIC GRID BACKGROUND (canvas)
   ═══════════════════════════════════════════════ */
.geo-grid {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

#geo-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

/* ═══════════════════════════════════════════════
   GRADIENT MESH BACKGROUND — soft light tints
   ═══════════════════════════════════════════════ */
.gradient-mesh {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.mesh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: orbFloat 20s ease-in-out infinite;
}

.mesh-orb--1 {
    width: 620px; height: 620px;
    top: -18%; left: -12%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.10), transparent 70%);
    animation-delay: 0s;
}

.mesh-orb--2 {
    width: 520px; height: 520px;
    top: 45%; right: -18%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08), transparent 70%);
    animation-delay: -7s;
    animation-duration: 25s;
}

.mesh-orb--3 {
    width: 420px; height: 420px;
    bottom: -12%; left: 28%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.06), transparent 70%);
    animation-delay: -14s;
    animation-duration: 30s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 40px) scale(0.95); }
    75% { transform: translate(30px, 20px) scale(1.05); }
}

/* ═══════════════════════════════════════════════
   PAGE LOADER
   ═══════════════════════════════════════════════ */
.loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-void);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader__inner { text-align: center; }

.loader__rings {
    position: relative;
    width: 80px; height: 80px;
    margin: 0 auto 24px;
}

.loader__ring {
    position: absolute;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: loaderSpin 2s linear infinite;
}

.loader__ring:nth-child(1) {
    width: 80px; height: 80px;
    top: 0; left: 0;
    border-top-color: var(--accent);
    animation-duration: 1.5s;
}

.loader__ring:nth-child(2) {
    width: 60px; height: 60px;
    top: 10px; left: 10px;
    border-right-color: var(--accent-2);
    animation-duration: 2s;
    animation-direction: reverse;
}

.loader__ring:nth-child(3) {
    width: 40px; height: 40px;
    top: 20px; left: 20px;
    border-bottom-color: #38bdf8;
    animation-duration: 1s;
}

@keyframes loaderSpin { to { transform: rotate(360deg); } }

.loader__text {
    font-family: var(--ff-display);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    margin-bottom: 20px;
}

.loader__text span {
    display: inline-block;
    opacity: 0;
    animation: loaderLetter 0.5s ease forwards;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader__text span:nth-child(1) { animation-delay: 0.05s; }
.loader__text span:nth-child(2) { animation-delay: 0.1s; }
.loader__text span:nth-child(3) { animation-delay: 0.15s; }
.loader__text span:nth-child(4) { animation-delay: 0.2s; }
.loader__text span:nth-child(5) { animation-delay: 0.25s; }
.loader__text span:nth-child(6) { animation-delay: 0.3s; }
.loader__text span:nth-child(7) { animation-delay: 0.35s; }
.loader__text span:nth-child(8) { animation-delay: 0.4s; }
.loader__text span:nth-child(9) { animation-delay: 0.45s; }
.loader__text span:nth-child(10) { animation-delay: 0.5s; }
.loader__text span:nth-child(11) { animation-delay: 0.55s; }
.loader__text span:nth-child(12) { animation-delay: 0.6s; }

@keyframes loaderLetter {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.loader__bar {
    width: 200px;
    height: 3px;
    background: var(--surface-2);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.loader__bar-fill {
    height: 100%;
    background: var(--gradient-accent);
    animation: loaderBar 1.5s ease-in-out forwards;
    border-radius: 3px;
}

@keyframes loaderBar {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ═══════════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════════ */
.cursor {
    position: fixed;
    width: 9px; height: 9px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

.cursor.hover {
    width: 40px; height: 40px;
    background: rgba(79, 70, 229, 0.10);
    border: 1px solid var(--accent);
}

.cursor-trail {
    position: fixed;
    width: 34px; height: 34px;
    border: 1.5px solid rgba(79, 70, 229, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99997;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.cursor-trail.hover {
    width: 60px; height: 60px;
    border-color: rgba(124, 58, 237, 0.35);
}

/* ═══════════════════════════════════════════════
   SCROLL PROGRESS
   ═══════════════════════════════════════════════ */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: var(--gradient-accent);
    z-index: 10000;
    width: 0%;
    transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 22px 0;
    transition: all var(--t-smooth);
}

.nav.scrolled {
    background: var(--surface-translucent);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    box-shadow: 0 1px 30px rgba(15, 23, 42, 0.05);
}

.nav__container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform var(--t-fast);
}

.nav__logo:hover { transform: scale(1.04); }

.nav__logo-icon {
    color: var(--accent);
    display: flex;
    border-radius: var(--r-sm);
    overflow: hidden;
}

.nav__logo-text {
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    color: var(--text-100);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 5px;
    position: relative;
}

.nav__link {
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-300);
    border-radius: var(--r-full);
    transition: color var(--t-fast);
    position: relative;
    z-index: 1;
}

.nav__link:hover { color: var(--text-100); }
.nav__link.active { color: var(--accent); }

.nav__indicator {
    position: absolute;
    height: calc(100% - 10px);
    top: 5px;
    border-radius: var(--r-full);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.35s var(--ease);
    z-index: 0;
}

/* Right-side controls group */
.nav__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme toggle */
.theme-toggle {
    position: relative;
    width: 42px; height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-200);
    cursor: pointer;
    overflow: hidden;
    transition: all var(--t-fast);
}

.theme-toggle:hover {
    border-color: var(--border-hover);
    color: var(--accent);
    transform: translateY(-1px);
}

.theme-toggle svg {
    position: absolute;
    transition: opacity var(--t-smooth), transform var(--t-smooth);
}

/* Light mode → show moon (click to go dark). Dark mode → show sun. */
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.4); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }

:root[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.4); }

/* Burger */
.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}

.nav__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-100);
    border-radius: 2px;
    transition: all var(--t-fast);
    transform-origin: center;
}

.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0; right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--surface-menu);
    backdrop-filter: blur(24px);
    z-index: 1050;
    border-left: 1px solid var(--border);
    box-shadow: -20px 0 60px rgba(15, 23, 42, 0.08);
    transition: right var(--t-smooth);
}

.mobile-menu.open { right: 0; }

.mobile-menu__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 40px;
    gap: 8px;
}

.mobile-menu__link {
    font-family: var(--ff-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-200);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    transition: all var(--t-fast);
}

.mobile-menu__link:hover {
    color: var(--accent);
    padding-left: 12px;
}

/* ═══════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════ */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 140px 28px 90px;
    display: flex;
    align-items: center;
    gap: 64px;
    width: 100%;
}

.hero__content { flex: 1; min-width: 0; }

/* Hero floating SVG decorations */
.hero__float { position: absolute; pointer-events: none; z-index: 0; opacity: 0.7; }
.hero__float--1 { top: 15%; right: 8%; animation: floatSlow 15s ease-in-out infinite; }
.hero__float--2 { top: 70%; left: 5%; animation: floatSlow 18s ease-in-out infinite reverse; }
.hero__float--3 { bottom: 15%; right: 20%; animation: floatSlow 12s ease-in-out infinite; animation-delay: -4s; }

@keyframes floatSlow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(15px, -20px) rotate(5deg); }
    50% { transform: translate(-10px, 15px) rotate(-3deg); }
    75% { transform: translate(20px, 10px) rotate(4deg); }
}

/* Badge */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px 8px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-200);
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.hero__badge-dot {
    width: 8px; height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

/* Pre-title */
.hero__pre-title {
    font-family: var(--ff-body);
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 500;
    color: var(--text-300);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

/* Main title */
.hero__title { margin-bottom: 26px; }

.hero__title-line { display: block; overflow: hidden; }

.hero__title-word {
    display: inline-block;
    font-family: var(--ff-display);
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.045em;
    color: var(--text-100);
    position: relative;
}

.hero__title-word--accent {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 6s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Hero description */
.hero__description {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: var(--text-300);
    max-width: 560px;
    margin-bottom: 22px;
    line-height: 1.75;
}

.hero__description strong { color: var(--text-100); font-weight: 600; }

/* Typewriter */
.hero__typewriter { margin-bottom: 34px; font-size: 1.05rem; }
.hero__type-prefix { color: var(--text-300); }
.hero__type-text { color: var(--accent); font-weight: 600; }
.hero__type-cursor { color: var(--accent); animation: blink 1s step-end infinite; }

@keyframes blink { 50% { opacity: 0; } }

/* Actions */
.hero__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--r-full);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all var(--t-smooth);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--gradient-accent);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.25);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.35);
}

.hero__socials { display: flex; gap: 10px; }

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-300);
    box-shadow: var(--shadow-sm);
    transition: all var(--t-fast);
}

.social-link:hover {
    border-color: var(--border-hover);
    color: var(--accent);
    background: var(--accent-cyan-dim);
    transform: translateY(-2px);
}

/* Stats */
.hero__stats {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}

.hero__stat { text-align: center; }

.hero__stat-num {
    display: block;
    font-family: var(--ff-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__stat-suffix {
    font-family: var(--ff-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.hero__stat-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 3px;
    font-weight: 500;
}

.hero__stat-sep { width: 1px; height: 40px; background: var(--border-strong); }

/* Hero visual */
.hero__visual { flex: 0 0 380px; position: relative; }

.hero__photo-wrapper {
    position: relative;
    width: 330px;
    height: 330px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.hero__photo-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 360px; height: 360px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(79, 70, 229, 0.16), rgba(124, 58, 237, 0.08), transparent 70%);
    filter: blur(34px);
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

.hero__photo {
    width: 100%; height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--surface);
    box-shadow: var(--shadow-card-hover), 0 0 0 1px var(--border);
    position: relative;
    z-index: 2;
}

.hero__photo-img { width: 100%; height: 100%; object-fit: cover; }

/* Orbit rings */
.hero__orbit {
    position: absolute;
    top: 50%; left: 50%;
    width: 390px; height: 390px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(79, 70, 229, 0.14);
    border-radius: 50%;
    animation: orbitSpin 20s linear infinite;
    z-index: 1;
}

.hero__orbit--2 {
    width: 450px; height: 450px;
    border-color: rgba(124, 58, 237, 0.10);
    animation-duration: 30s;
    animation-direction: reverse;
}

.hero__orbit-dot {
    position: absolute;
    top: -4px; left: 50%;
    width: 9px; height: 9px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.5);
}

.hero__orbit-dot--2 {
    background: var(--accent-2);
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.5);
}

@keyframes orbitSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Floating chips */
.hero__chip {
    position: absolute;
    z-index: 3;
    padding: 9px 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-200);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: var(--shadow-card);
}

.hero__chip--1 { top: 10%; right: -15%; animation: chipFloat1 6s ease-in-out infinite; }
.hero__chip--2 { bottom: 25%; left: -18%; animation: chipFloat2 7s ease-in-out infinite; }
.hero__chip--3 { bottom: 5%; right: -10%; animation: chipFloat3 5s ease-in-out infinite; }

@keyframes chipFloat1 { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes chipFloat2 { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(-2deg); } }
@keyframes chipFloat3 { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-15px) rotate(3deg); } }

/* Scroll cue */
.hero__scroll-cue {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-400);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ═══════════════════════════════════════════════
   SECTIONS BASE
   ═══════════════════════════════════════════════ */
.section {
    position: relative;
    z-index: 1;
    padding: 130px 0;
}

.section--alt {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section__header { text-align: center; margin-bottom: 72px; }

.section__num {
    font-family: var(--ff-mono);
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 14px;
    font-weight: 600;
}

.section__title {
    font-family: var(--ff-display);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 14px;
    color: var(--text-100);
}

.section__subtitle {
    color: var(--text-300);
    font-size: 1.02rem;
    max-width: 520px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════ */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: start;
    margin-bottom: 90px;
}

/* Code block */
.about__code {
    background: #0d1117;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.about__code-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: #161b22;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.about__code-dots { display: flex; gap: 7px; }

.about__code-dots span { width: 11px; height: 11px; border-radius: 50%; }
.about__code-dots span:nth-child(1) { background: #ff5f57; }
.about__code-dots span:nth-child(2) { background: #febc2e; }
.about__code-dots span:nth-child(3) { background: #28c840; }

.about__code-file {
    font-family: var(--ff-mono);
    font-size: 0.75rem;
    color: #6e7681;
}

.about__code-body {
    padding: 22px;
    font-family: var(--ff-mono);
    font-size: 0.8rem;
    line-height: 1.85;
    color: #c9d1d9;
    overflow-x: auto;
}

.about__code-body .ck { color: #ff7b72; }
.about__code-body .cf { color: #d2a8ff; }
.about__code-body .cv { color: #79c0ff; }
.about__code-body .cs { color: #a5d6ff; }

/* About text */
.about__text { padding-top: 8px; }

.about__heading {
    font-family: var(--ff-display);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--text-100);
}

.about__text p {
    color: var(--text-300);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about__text p strong { color: var(--text-100); font-weight: 600; }

.about__highlights {
    display: flex;
    gap: 14px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.about__highlight {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--t-fast);
}

.about__highlight:hover {
    border-color: var(--border-hover);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--glow-sm);
}

.about__highlight-icon { font-size: 1.15rem; }

/* Journey */
.journey__title {
    font-family: var(--ff-display);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 36px;
    color: var(--text-100);
}

.journey__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.journey__card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 30px;
    box-shadow: var(--shadow-card);
    transition: all var(--t-smooth);
    overflow: hidden;
}

.journey__card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity var(--t-smooth);
}

.journey__card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.journey__card:hover::before { opacity: 1; }

.journey__card-accent {
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--t-smooth);
}

.journey__card:hover .journey__card-accent { opacity: 1; }

.journey__card-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.journey__card-year {
    font-family: var(--ff-mono);
    font-size: 0.76rem;
    color: var(--accent);
    letter-spacing: 0.03em;
    font-weight: 500;
}

.journey__card-badge {
    padding: 3px 11px;
    background: var(--accent-cyan-dim);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: var(--r-full);
    font-size: 0.68rem;
    color: var(--accent);
    font-weight: 600;
}

.journey__card-title {
    position: relative;
    font-family: var(--ff-display);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-100);
    margin-bottom: 6px;
}

.journey__card-org {
    position: relative;
    font-size: 0.85rem;
    color: var(--text-300);
    margin-bottom: 10px;
    font-weight: 500;
}

.journey__card-desc {
    position: relative;
    font-size: 0.85rem;
    color: var(--text-300);
    line-height: 1.7;
    margin-bottom: 16px;
}

.journey__card-tags {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.journey__card-tags span {
    padding: 4px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-size: 0.72rem;
    color: var(--text-200);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════
   PROJECTS SECTION
   ═══════════════════════════════════════════════ */
.projects__grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 44px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--t-smooth);
    position: relative;
}

.project::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity var(--t-smooth);
    pointer-events: none;
    z-index: 0;
}

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

.project:hover::before { opacity: 1; }

/* Alternate project layout — reversed */
.project:nth-child(even) { direction: rtl; }
.project:nth-child(even) > * { direction: ltr; }

.project__image {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    background: var(--bg-surface);
}

.project__image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.project:hover .project__image img { transform: scale(1.04); }

.project__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.04), transparent);
    pointer-events: none;
}

.project__badges {
    position: absolute;
    top: 16px; left: 16px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.project__badge {
    padding: 5px 13px;
    background: var(--surface-badge);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-200);
    box-shadow: var(--shadow-sm);
}

.project__badge--featured { border-color: rgba(79, 70, 229, 0.3); color: var(--accent); }
.project__badge--ai { border-color: rgba(124, 58, 237, 0.3); color: var(--accent-2); }

.project__content {
    position: relative;
    z-index: 1;
    padding: 40px 40px 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project:nth-child(even) .project__content { padding: 40px 0 40px 40px; }

.project__type {
    font-family: var(--ff-mono);
    font-size: 0.72rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    margin-bottom: 10px;
    font-weight: 600;
}

.project__name {
    font-family: var(--ff-display);
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-100);
    margin-bottom: 14px;
    line-height: 1.15;
}

.project__desc {
    font-size: 0.92rem;
    color: var(--text-300);
    line-height: 1.7;
    margin-bottom: 18px;
}

.project__highlights { margin-bottom: 18px; }

.project__highlight {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.82rem;
    color: var(--text-200);
    margin-bottom: 8px;
    line-height: 1.6;
}

.project__highlight span:first-child { flex-shrink: 0; }

.project__stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.project__stack span {
    padding: 5px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-size: 0.72rem;
    color: var(--text-200);
    font-weight: 500;
    transition: all var(--t-fast);
}

.project__stack span:hover {
    background: var(--accent-cyan-dim);
    border-color: var(--border-hover);
    color: var(--accent);
}

.project__links { display: flex; gap: 12px; }

.project__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-100);
    transition: all var(--t-fast);
}

.project__link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-cyan-dim);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════
   SKILLS / SERVICES
   ═══════════════════════════════════════════════ */
.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 72px;
}

.service {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 34px 26px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all var(--t-smooth);
    position: relative;
    overflow: hidden;
}

.service::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform var(--t-smooth);
}

.service:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

.service:hover::after { transform: scaleX(1); }

.service__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px; height: 58px;
    background: var(--accent-cyan-dim);
    border: 1px solid rgba(79, 70, 229, 0.12);
    border-radius: var(--r-md);
    color: var(--accent);
    margin-bottom: 22px;
    transition: all var(--t-smooth);
}

.service:hover .service__icon {
    background: var(--gradient-accent);
    border-color: transparent;
    color: #ffffff;
    box-shadow: var(--glow-sm);
    transform: scale(1.08);
}

.service__name {
    font-family: var(--ff-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-100);
    margin-bottom: 10px;
}

.service__desc {
    font-size: 0.85rem;
    color: var(--text-300);
    line-height: 1.65;
}

/* Skills pills */
.skills__container, .skills__concepts, .certs, .achievements { margin-bottom: 60px; }

.skills__heading {
    font-family: var(--ff-display);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-100);
    margin-bottom: 28px;
    text-align: center;
}

.skills__pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.skill-pill, .concept-pill {
    padding: 10px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--t-fast);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.skill-pill:hover {
    border-color: var(--border-hover);
    color: var(--accent);
    background: var(--accent-cyan-dim);
    transform: translateY(-3px);
    box-shadow: var(--glow-sm);
}

.concept-pill:hover {
    border-color: rgba(124, 58, 237, 0.4);
    color: var(--accent-2);
    background: var(--accent-violet-dim);
    transform: translateY(-3px);
}

/* Certifications */
.certs__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.cert {
    display: flex;
    gap: 16px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    transition: all var(--t-smooth);
}

.cert:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.cert__icon {
    flex-shrink: 0;
    width: 46px; height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border-radius: var(--r-md);
    color: var(--cert-color, var(--accent));
}

.cert__body { min-width: 0; }

.cert__type {
    display: inline-block;
    padding: 3px 10px;
    margin-bottom: 8px;
    background: var(--accent-cyan-dim);
    border: 1px solid rgba(79, 70, 229, 0.18);
    border-radius: var(--r-full);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

.cert__body h4 {
    font-family: var(--ff-display);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-100);
    margin-bottom: 5px;
    line-height: 1.3;
}

.cert__body p { font-size: 0.8rem; color: var(--text-300); margin-bottom: 4px; }

.cert__body span {
    font-size: 0.74rem;
    color: var(--text-400);
    font-family: var(--ff-mono);
}

/* ── Internship certificate download button (journey card) ── */
.journey__card-cert {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    padding: 8px 16px;
    background: var(--accent-cyan-dim);
    border: 1px solid rgba(79, 70, 229, 0.22);
    border-radius: var(--r-full);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--accent);
    transition: all var(--t-fast);
}

.journey__card-cert:hover {
    background: var(--gradient-accent);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--glow-sm);
}

/* ═══════════════════════════════════════════════
   CERTIFICATION GALLERY (rich cards)
   ═══════════════════════════════════════════════ */
.certgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.certcard {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: all var(--t-smooth);
    overflow: hidden;
}

.certcard::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--brand, var(--accent));
    opacity: 0.85;
}

.certcard:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

.certcard__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.certcard__badge {
    position: relative;
    width: 64px; height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certcard__seal {
    color: var(--brand, var(--accent));
    opacity: 0.9;
}

.certcard__badge-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
}

.certcard__type {
    padding: 5px 12px;
    background: color-mix(in srgb, var(--brand, var(--accent)) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand, var(--accent)) 25%, transparent);
    border-radius: var(--r-full);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand, var(--accent));
    white-space: nowrap;
}

.certcard__title {
    font-family: var(--ff-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-100);
    line-height: 1.35;
    margin-bottom: 8px;
}

.certcard__issuer {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-200);
    margin-bottom: 4px;
}

.certcard__meta {
    font-family: var(--ff-mono);
    font-size: 0.72rem;
    color: var(--text-400);
    margin-bottom: 18px;
}

.certcard__actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    flex-wrap: wrap;
}

.certcard__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--r-full);
    font-size: 0.76rem;
    font-weight: 600;
    border: 1px solid var(--border-strong);
    color: var(--text-100);
    background: var(--bg-surface);
    transition: all var(--t-fast);
}

.certcard__btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-cyan-dim);
    transform: translateY(-1px);
}

.certcard__btn--download {
    background: var(--gradient-accent);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.certcard__btn--download:hover {
    color: #ffffff;
    background: var(--gradient-accent);
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.certcard__btn--view {
    background: var(--surface);
    color: var(--text-100);
}

.certcard__btn--view:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-cyan-dim);
}

@media (max-width: 1024px) {
    .certgrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .certgrid { grid-template-columns: 1fr; }
}

/* Internship card button row (View + Download) */
.journey__card-certs {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.journey__card-certs .journey__card-cert { margin-top: 0; }

.journey__card-cert--view {
    background: var(--surface);
    border-color: var(--border-strong);
    color: var(--text-100);
    cursor: pointer;
}

/* ═══════════════════════════════════════════════
   CERTIFICATE VIEWER (modal)
   ═══════════════════════════════════════════════ */
.cert-viewer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-smooth), visibility var(--t-smooth);
}

.cert-viewer.open { opacity: 1; visibility: visible; }

.cert-viewer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 12, 20, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.cert-viewer__panel {
    position: relative;
    width: min(960px, 100%);
    height: min(88vh, 900px);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: 0 40px 100px rgba(9, 12, 20, 0.4);
    overflow: hidden;
    transform: translateY(18px) scale(0.98);
    transition: transform var(--t-smooth);
}

.cert-viewer.open .cert-viewer__panel { transform: translateY(0) scale(1); }

.cert-viewer__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
    flex-shrink: 0;
}

.cert-viewer__title {
    font-family: var(--ff-display);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-100);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cert-viewer__tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cert-viewer__tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--r-full);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-100);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    transition: all var(--t-fast);
}

.cert-viewer__tool:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-cyan-dim);
    transform: translateY(-1px);
}

.cert-viewer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-300);
    cursor: pointer;
    transition: all var(--t-fast);
}

.cert-viewer__close:hover {
    color: var(--text-100);
    border-color: var(--border-strong);
    background: var(--bg-glass-hover);
}

.cert-viewer__stage {
    position: relative;
    flex: 1;
    background: #525659;
    min-height: 0;
}

.cert-viewer__stage iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.cert-viewer__fallback {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 30px;
    background: var(--bg-surface);
}

.cert-viewer__fallback p {
    font-family: var(--ff-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-100);
}

.cert-viewer__fallback span { font-size: 0.85rem; color: var(--text-300); }
.cert-viewer__fallback code {
    font-family: var(--ff-mono);
    font-size: 0.8rem;
    color: var(--accent);
    background: var(--accent-cyan-dim);
    padding: 2px 6px;
    border-radius: 6px;
}

.cert-viewer.show-fallback .cert-viewer__stage iframe { display: none; }
.cert-viewer.show-fallback .cert-viewer__fallback { display: flex; }

@media (max-width: 640px) {
    .cert-viewer { padding: 12px; }
    .cert-viewer__panel { height: 90vh; }
    .cert-viewer__tool span { display: none; }
    .cert-viewer__tool { padding: 8px; }
    .cert-viewer__title { font-size: 0.82rem; }
}

/* Achievements */
.achievements__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.achievement {
    text-align: center;
    padding: 32px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    transition: all var(--t-smooth);
}

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

.achievement__trophy { font-size: 2rem; margin-bottom: 14px; display: block; }

.achievement h4 {
    font-family: var(--ff-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-100);
    margin-bottom: 6px;
}

.achievement p { font-size: 0.82rem; color: var(--text-300); margin-bottom: 10px; }

.achievement__year {
    font-family: var(--ff-mono);
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.03em;
}

/* Marquee */
.marquee {
    overflow: hidden;
    padding: 26px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: 40px;
}

.marquee__track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}

.marquee__content {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 0 13px;
}

.marquee__content span {
    font-family: var(--ff-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-400);
    white-space: nowrap;
    transition: color var(--t-fast);
}

.marquee__content span:hover { color: var(--accent); }

.marquee__dot { color: rgba(79, 70, 229, 0.4) !important; font-size: 0.6rem !important; }

@keyframes marqueeScroll { to { transform: translateX(-50%); } }

/* ═══════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════ */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 52px;
    align-items: start;
}

.contact__card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 14px;
    transition: all var(--t-fast);
}

.contact__card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.contact__card-icon {
    flex-shrink: 0;
    width: 46px; height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-cyan-dim);
    border-radius: var(--r-md);
    color: var(--accent);
}

.contact__card strong {
    font-size: 0.9rem;
    color: var(--text-100);
    display: block;
    margin-bottom: 2px;
}

.contact__card p { font-size: 0.85rem; color: var(--text-300); }

.contact__socials { display: flex; gap: 10px; margin-top: 14px; }

/* Form */
.contact__form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 40px;
    box-shadow: var(--shadow-card);
}

.contact__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact__field { position: relative; margin-bottom: 22px; }

.contact__field input,
.contact__field textarea {
    width: 100%;
    padding: 16px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text-100);
    font-family: var(--ff-body);
    font-size: 0.9rem;
    transition: all var(--t-fast);
    outline: none;
}

.contact__field textarea { resize: vertical; min-height: 130px; }

.contact__field input:focus,
.contact__field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    background: var(--surface);
}

.contact__field label {
    position: absolute;
    top: 16px; left: 18px;
    color: var(--text-400);
    font-size: 0.9rem;
    pointer-events: none;
    transition: all var(--t-fast);
}

.contact__field input:focus + label,
.contact__field input:not(:placeholder-shown) + label,
.contact__field textarea:focus + label,
.contact__field textarea:not(:placeholder-shown) + label {
    top: -8px;
    left: 14px;
    font-size: 0.72rem;
    color: var(--accent);
    background: var(--surface);
    padding: 0 6px;
    font-weight: 500;
}

.btn--send { width: 100%; justify-content: center; padding: 16px; font-size: 1rem; }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 48px 0;
    background: var(--bg-surface);
}

.footer__inner { text-align: center; }

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--accent);
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform var(--t-fast);
}

.footer__logo:hover { transform: scale(1.05); }

.footer__text { color: var(--text-300); font-size: 0.85rem; margin-bottom: 6px; }
.footer__text strong { color: var(--text-100); }
.footer__copy { color: var(--text-400); font-size: 0.75rem; }

/* ═══════════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════════ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 102px;
    width: 46px; height: 46px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-300);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    box-shadow: var(--shadow-card);
    transition: all var(--t-smooth);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-cyan-dim);
}

/* ═══════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

.hero__content .reveal:nth-child(1) { transition-delay: 0.1s; }
.hero__content .reveal:nth-child(2) { transition-delay: 0.2s; }
.hero__content .reveal:nth-child(3) { transition-delay: 0.35s; }
.hero__content .reveal:nth-child(4) { transition-delay: 0.45s; }
.hero__content .reveal:nth-child(5) { transition-delay: 0.55s; }
.hero__content .reveal:nth-child(6) { transition-delay: 0.65s; }

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes rippleEffect { to { transform: scale(4); opacity: 0; } }

/* Card spotlight */
.card-spotlight {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__burger { display: flex; }
    .mobile-menu { display: block; }

    .hero__container {
        flex-direction: column;
        padding: 120px 24px 70px;
        gap: 48px;
    }

    .hero__visual { flex: unset; width: 100%; }

    .hero__photo-wrapper { width: 250px; height: 250px; }

    .hero__orbit { width: 290px; height: 290px; }
    .hero__orbit--2 { width: 350px; height: 350px; }

    .hero__chip--1 { right: -5%; }
    .hero__chip--2 { left: -5%; }
    .hero__chip--3 { right: -5%; }

    .hero__title-word { font-size: clamp(2.5rem, 10vw, 4rem); }

    .hero__stats { gap: 16px; }
    .hero__stat-sep { height: 30px; }

    .about__grid { grid-template-columns: 1fr; }
    .journey__grid { grid-template-columns: 1fr; }

    .project { grid-template-columns: 1fr; }
    .project:nth-child(even) { direction: ltr; }
    .project__content { padding: 28px !important; }
    .project__image { min-height: 240px; }

    .services__grid { grid-template-columns: 1fr; }
    .certs__grid { grid-template-columns: 1fr; }
    .achievements__grid { grid-template-columns: 1fr; }
    .contact__grid { grid-template-columns: 1fr; }
    .contact__form-row { grid-template-columns: 1fr; }

    .section { padding: 90px 0; }

    .hero__scroll-cue { display: none; }
    .cursor, .cursor-trail { display: none; }
}

@media (max-width: 480px) {
    .hero__title-word { font-size: clamp(2rem, 12vw, 3rem); }
    .hero__stats { flex-wrap: wrap; gap: 12px; }
    .hero__stat-num { font-size: 1.5rem; }
    .hero__actions { flex-direction: column; align-items: flex-start; }
    .contact__form { padding: 26px; }
}

/* ═══════════════════════════════════════════════
   UTILITY: keyframe for spin (form loading)
   ═══════════════════════════════════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════
   AI ASSISTANT — Launcher (FAB)
   ═══════════════════════════════════════════════ */
.ai-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.35), 0 4px 12px rgba(15, 23, 42, 0.1);
    transition: transform var(--t-smooth), box-shadow var(--t-smooth);
}

.ai-fab:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 40px rgba(79, 70, 229, 0.45), 0 4px 12px rgba(15, 23, 42, 0.12);
}

.ai-fab__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.4;
    z-index: -1;
    animation: aiPulse 2.5s ease-out infinite;
}

@keyframes aiPulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.8); opacity: 0; }
}

.ai-fab__icon-open,
.ai-fab__icon-close {
    position: absolute;
    transition: opacity var(--t-fast), transform var(--t-fast);
}

.ai-fab__icon-close { opacity: 0; transform: rotate(-90deg) scale(0.5); }

.ai-fab.open .ai-fab__icon-open { opacity: 0; transform: rotate(90deg) scale(0.5); }
.ai-fab.open .ai-fab__icon-close { opacity: 1; transform: rotate(0) scale(1); }
.ai-fab.open .ai-fab__pulse { display: none; }

.ai-fab__badge {
    position: absolute;
    top: -2px; right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: var(--r-full);
    background: #ef4444;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-fast), opacity var(--t-fast);
}

.ai-fab__badge.hidden { transform: scale(0); opacity: 0; }

/* ═══════════════════════════════════════════════
   AI ASSISTANT — Chat Panel
   ═══════════════════════════════════════════════ */
.ai-chat {
    position: fixed;
    bottom: 104px;
    right: 30px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 560px;
    max-height: calc(100vh - 140px);
    background: var(--surface-chat);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18), 0 4px 16px rgba(15, 23, 42, 0.06);
    z-index: 1150;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity var(--t-smooth), transform var(--t-smooth), visibility var(--t-smooth);
}

.ai-chat.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header */
.ai-chat__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 16px 18px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(124, 58, 237, 0.04));
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.ai-chat__avatar {
    position: relative;
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.ai-chat__status-dot {
    position: absolute;
    bottom: 1px; right: 1px;
    width: 11px; height: 11px;
    background: var(--accent-green);
    border: 2px solid var(--surface);
    border-radius: 50%;
}

.ai-chat__ident { flex: 1; min-width: 0; line-height: 1.3; }

.ai-chat__ident strong {
    display: block;
    font-family: var(--ff-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-100);
}

.ai-chat__ident span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: var(--text-300);
}

.ai-chat__online-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse-dot 2s infinite;
}

.ai-chat__close {
    width: 34px; height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-300);
    transition: all var(--t-fast);
    flex-shrink: 0;
}

.ai-chat__close:hover {
    color: var(--text-100);
    border-color: var(--border-strong);
    background: rgba(15, 23, 42, 0.06);
}

/* Body / message list */
.ai-chat__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(79, 70, 229, 0.25) transparent;
}

.ai-chat__body::-webkit-scrollbar { width: 6px; }
.ai-chat__body::-webkit-scrollbar-thumb { background: rgba(79, 70, 229, 0.25); border-radius: 3px; }

.ai-msg {
    display: flex;
    gap: 9px;
    max-width: 88%;
    animation: aiMsgIn 0.35s var(--ease-out-expo) both;
}

@keyframes aiMsgIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.ai-msg__avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    color: #ffffff;
    margin-top: 2px;
}

.ai-msg__bubble {
    padding: 11px 14px;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-100);
}

.ai-msg--bot .ai-msg__bubble {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-top-left-radius: 4px;
}

.ai-msg--bot .ai-msg__bubble strong { color: var(--accent); font-weight: 600; }
.ai-msg--bot .ai-msg__bubble a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ai-msg--user { align-self: flex-end; flex-direction: row-reverse; }

.ai-msg--user .ai-msg__bubble {
    background: var(--gradient-accent);
    color: #ffffff;
    font-weight: 500;
    border-top-right-radius: 4px;
}

.ai-msg__bubble ul { margin: 6px 0 2px; padding-left: 18px; }
.ai-msg__bubble li { margin-bottom: 3px; }

/* Inline action buttons */
.ai-msg__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.ai-msg__action {
    padding: 6px 12px;
    background: var(--accent-cyan-dim);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: var(--r-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    cursor: pointer;
    transition: all var(--t-fast);
}

.ai-msg__action:hover {
    background: rgba(79, 70, 229, 0.14);
    border-color: var(--accent);
    transform: translateY(-1px);
}

/* Typing indicator */
.ai-typing { display: flex; gap: 9px; align-items: center; }

.ai-typing__bubble {
    display: flex;
    gap: 4px;
    padding: 13px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    border-top-left-radius: 4px;
}

.ai-typing__bubble span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
    animation: aiTyping 1.2s infinite ease-in-out;
}

.ai-typing__bubble span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing__bubble span:nth-child(3) { animation-delay: 0.4s; }

@keyframes aiTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-5px); opacity: 1; }
}

/* Suggestion chips */
.ai-chat__suggestions {
    display: flex;
    gap: 8px;
    padding: 8px 16px 4px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
}

.ai-chat__suggestions::-webkit-scrollbar { display: none; }

.ai-suggestion {
    white-space: nowrap;
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-200);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--t-fast);
    flex-shrink: 0;
}

.ai-suggestion:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-cyan-dim);
}

/* Input row */
.ai-chat__input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 8px;
    flex-shrink: 0;
}

.ai-chat__input input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    color: var(--text-100);
    font-family: var(--ff-body);
    font-size: 0.85rem;
    outline: none;
    transition: all var(--t-fast);
}

.ai-chat__input input:focus {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.ai-chat__send {
    width: 44px; height: 44px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--t-fast);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.ai-chat__send:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4); }
.ai-chat__send:active { transform: scale(0.95); }

.ai-chat__footer {
    text-align: center;
    font-size: 0.66rem;
    color: var(--text-400);
    padding: 0 16px 12px;
    letter-spacing: 0.02em;
}

/* Responsive assistant */
@media (max-width: 480px) {
    .ai-chat {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 92px;
        height: calc(100vh - 130px);
    }
    .ai-fab { bottom: 20px; right: 20px; }
    .back-to-top { bottom: 20px; right: 90px; }
}
