/* ============================================
   THE FANTASY BOND - STYLES
   ============================================ */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: rgba(20, 20, 30, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;
    --accent: #e63946;
    --accent-glow: rgba(230, 57, 70, 0.4);
    --accent-secondary: #f77f00;
    --accent-tertiary: #06d6a0;
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.06);

    /* Custom S-curve easing for smooth animations */
    --ease-s-curve: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0f;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-word {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: #ffffff;
    opacity: 0;
    white-space: nowrap;
}

.preloader.slide-up {
    animation: slideUp 0.6s ease-in forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(-100%);
    }
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 17px;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   PARALLAX BACKGROUND
   ============================================ */
.parallax-bg {
    position: fixed;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: -2;
    pointer-events: none;
}

.parallax-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.25) saturate(0.5);
    transform: scale(1.1);
}

.parallax-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        var(--bg-primary) 0%,
        rgba(10, 10, 15, 0.8) 15%,
        rgba(10, 10, 15, 0.6) 50%,
        rgba(10, 10, 15, 0.8) 85%,
        var(--bg-primary) 100%
    );
    z-index: -1;
    pointer-events: none;
}

/* Animated Canvas Background */
#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    touch-action: none;
}

/* Gradient Orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
    /* Prevent repaint issues on mobile */
    will-change: transform;
    contain: layout style paint;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(247, 127, 0, 0.2) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 214, 160, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

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

/* Glassmorphism Base */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
}

/* ============================================
   LAYOUT
   ============================================ */
.wrapper {
    max-width: 740px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ============================================
   HEADER WITH GLASSMORPHISM
   ============================================ */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid var(--border-glass);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.talk-meta {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 500;
}

.talk-duration {
    font-variant-numeric: tabular-nums;
    color: var(--text-secondary);
    font-size: 13px;
    padding: 6px 14px;
    background: var(--glass-bg);
    border-radius: 100px;
    border: 1px solid var(--border-glass);
}

/* Progress Bar */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary), var(--accent-tertiary));
    width: 0%;
    transition: width 0.1s ease-out;
    z-index: 101;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 50%);
    opacity: 0.15;
    filter: blur(100px);
    pointer-events: none;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
}

.speaker {
    display: flex;
    align-items: center;
    gap: 20px;
}

.speaker-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    position: relative;
    box-shadow: 0 0 30px var(--accent-glow);
}

.speaker-avatar::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent), var(--accent-secondary), var(--accent-tertiary), var(--accent));
    opacity: 0.5;
    animation: rotate 4s linear infinite;
    z-index: -1;
}

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

.speaker-info {
    font-size: 14px;
}

.speaker-name {
    font-weight: 500;
    color: var(--text-primary);
}

.speaker-title {
    color: var(--text-secondary);
}

/* ============================================
   SECTION STRUCTURE
   ============================================ */
section {
    padding: 80px 0;
    position: relative;
    border-bottom: 1px solid var(--border-glass);
}

section:last-child {
    border-bottom: none;
}

.section-marker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding: 8px 16px;
    background: var(--glass-bg);
    border-radius: 100px;
    border: 1px solid var(--border-glass);
}

.section-marker::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
}

.section-marker span {
    color: var(--accent);
    font-weight: 600;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 500;
    margin-bottom: 28px;
    line-height: 1.3;
    color: var(--text-primary);
}

.section-content {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.section-content p {
    margin-bottom: 1.5em;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   STORY HOOK WITH GLASSMORPHISM
   ============================================ */
.story-hook {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(230, 57, 70, 0.2);
    padding: 32px 36px;
    margin: 36px 0;
    font-style: italic;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.story-hook::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 80px;
    font-family: 'Playfair Display', serif;
    color: var(--accent);
    opacity: 0.2;
    line-height: 1;
}

.story-hook-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 16px;
    font-style: normal;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(230, 57, 70, 0.15);
    border-radius: 6px;
}

/* ============================================
   SPEAKER NOTES
   ============================================ */
.speaker-notes {
    background: linear-gradient(135deg, rgba(6, 214, 160, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(6, 214, 160, 0.15);
    border-radius: 12px;
    padding: 24px;
    margin: 28px 0;
    font-size: 14px;
    position: relative;
}

.speaker-notes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-tertiary), transparent);
    border-radius: 12px 0 0 12px;
}

.speaker-notes-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-tertiary);
    margin-bottom: 16px;
    font-weight: 600;
}

.speaker-notes-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-tertiary);
    border-radius: 50%;
}

.speaker-notes p {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.speaker-notes p:last-child {
    margin-bottom: 0;
}

/* ============================================
   STAT CALLOUT
   ============================================ */
.stat-callout {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 32px 0;
    padding: 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.stat-callout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--accent-secondary));
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 400;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    position: relative;
}

.stat-text {
    color: var(--text-secondary);
    font-size: 1rem;
    flex: 1;
}

/* ============================================
   RESEARCH CARDS WITH GLASSMORPHISM & HOVER EFFECTS
   ============================================ */
.research-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 32px;
    margin: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.research-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--border-glass-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(230, 57, 70, 0.15);
}

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

.research-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.researcher {
    font-weight: 500;
    color: var(--text-primary);
}

.research-institution {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.research-year {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--glass-bg);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--border-glass);
}

.research-finding {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.7;
}

/* ============================================
   STAGE TIMELINE
   ============================================ */
.stage {
    padding-left: 0;
    margin: 36px 0;
    position: relative;
}

.stage-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.stage-number {
    width: 48px;
    height: 48px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    position: relative;
    transition: all 0.3s ease;
}

.stage-number::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0.3;
}

.stage:hover .stage-number {
    box-shadow: 0 0 30px var(--accent-glow);
    transform: scale(1.1);
}

.stage-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
}

.stage-content {
    color: var(--text-secondary);
    padding-left: 68px;
}

/* ============================================
   SOLUTION GRID WITH 3D TILT EFFECT
   ============================================ */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 36px 0;
}

.solution {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.solution::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(230, 57, 70, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 16px;
}

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

.solution:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-6px) rotateX(2deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.solution-number {
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.solution-title {
    font-weight: 500;
    font-size: 1.05rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.solution-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ============================================
   PULL QUOTE
   ============================================ */
.pull-quote {
    text-align: center;
    padding: 60px 40px;
    margin: 50px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.pull-quote::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 120px;
    font-family: 'Playfair Display', serif;
    color: var(--accent);
    opacity: 0.1;
    line-height: 1;
}

.pull-quote::after {
    content: '"';
    position: absolute;
    bottom: -40px;
    right: 30px;
    font-size: 120px;
    font-family: 'Playfair Display', serif;
    color: var(--accent);
    opacity: 0.1;
    line-height: 1;
}

.pull-quote-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.pull-quote-author {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.pull-quote-author:before {
    content: '— ';
}

/* ============================================
   CLOSING SECTION
   ============================================ */
.closing {
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.closing::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 50%);
    opacity: 0.2;
    filter: blur(80px);
    pointer-events: none;
}

.closing-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.closing-text {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    padding: 50px 0;
    text-align: center;
    position: relative;
}

.credits {
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 30px;
    padding: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
}

.credits-row {
    padding: 6px 0;
}

.credits-row strong {
    color: var(--accent);
    font-weight: 500;
}

.references {
    font-size: 12px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.references strong {
    color: var(--text-secondary);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    header, footer, .orb, #canvas-bg, .progress-bar, .entry-overlay, .parallax-bg, .parallax-overlay {
        display: none !important;
    }
    section {
        page-break-inside: avoid;
        opacity: 1 !important;
        transform: none !important;
    }
    body {
        background: white;
        color: black;
    }
}

/* ============================================
   MOBILE STYLES
   ============================================ */
@media (max-width: 768px) {
    /* Completely disable canvas on mobile to prevent touch/scroll issues */
    #canvas-bg {
        display: none !important;
    }

    /* Static orbs on mobile - no animation, no movement, just visual */
    .orb {
        animation: none !important;
        will-change: auto !important;
        contain: normal !important;
        transform: none !important;
    }

    /* Ensure cards are clickable on mobile */
    .research-card,
    .stage,
    .solution,
    .story-hook,
    .stat-callout,
    .pull-quote {
        touch-action: auto !important;
        pointer-events: auto !important;
        position: relative;
        z-index: 1;
    }

    /* Ensure text within cards is selectable and clickable */
    .research-card *,
    .stage *,
    .solution * {
        pointer-events: auto;
    }

    .entry-image {
        width: 70vmin;
        height: 70vmin;
    }

    .entry-title {
        font-size: 1.8rem;
    }

    .entry-decoration {
        display: none;
    }

    .entry-skip {
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .stat-callout {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .pull-quote {
        padding: 40px 24px;
    }

    .research-card,
    .solution {
        padding: 24px;
    }

    .stage-content {
        padding-left: 0;
        padding-top: 12px;
    }

    .stage-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .stage-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Fix header overlap on mobile */
    header {
        padding: 12px 0;
    }

    .header-inner {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .talk-meta {
        font-size: 10px;
    }

    .talk-duration {
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .wrapper {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .pull-quote-text {
        font-size: 1.2rem;
    }
}

/* ============================================
   TEXT SELECTION
   ============================================ */
::selection {
    background: rgba(230, 57, 70, 0.3);
    color: var(--text-primary);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

/* Initial hidden state for animated elements */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.7s var(--ease-s-curve),
                transform 0.7s var(--ease-s-curve);
}

/* Staggered animation delays */
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }
.animate-on-scroll.delay-6 { transition-delay: 0.6s; }

/* Visible state - triggered by JS */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Special animations from different directions */
.animate-on-scroll.from-left {
    transform: translateX(-40px) scale(0.97);
}

.animate-on-scroll.from-right {
    transform: translateX(40px) scale(0.97);
}

.animate-on-scroll.scale-up {
    transform: scale(0.9);
}

.animate-on-scroll.from-left.is-visible,
.animate-on-scroll.from-right.is-visible {
    transform: translateX(0) scale(1);
}

.animate-on-scroll.scale-up.is-visible {
    transform: scale(1);
}

/* Pop animation for cards with bounce effect */
.animate-pop {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.5s var(--ease-s-curve),
                transform 0.5s var(--ease-s-curve);
}

.animate-pop.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Gentle float animation for stat numbers */
@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-float-in {
    animation: floatUp 0.8s var(--ease-s-curve) forwards;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-glass-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}
