/* ==========================================================================
   Template: Course - Online Course Landing Page
   Version: 2.0.0
   Author: Outline Templates

   A modern, conversion-focused course landing page with curriculum accordion,
   instructor profiles, testimonials, and full dark mode support.
   ========================================================================== */

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */

:root {
    /* Primary Colors - Emerald */
    --color-primary: #059669;
    --color-primary-hover: #047857;
    --color-primary-light: #D1FAE5;
    --color-primary-dark: #065F46;
    --color-primary-glow: rgba(5, 150, 105, 0.3);

    /* Secondary Colors */
    --color-secondary: #0F172A;
    --color-secondary-light: #1E293B;

    /* Accent Colors */
    --color-accent: #F59E0B;
    --color-accent-light: #FEF3C7;
    --color-success: #10B981;
    --color-error: #EF4444;

    /* Neutral Colors - Light Mode */
    --color-text: #1E293B;
    --color-text-secondary: #475569;
    --color-text-muted: #64748B;
    --color-text-subtle: #94A3B8;

    /* Backgrounds - Light Mode */
    --color-background: #FFFFFF;
    --color-surface: #F8FAFC;
    --color-surface-elevated: #FFFFFF;
    --color-surface-muted: #F1F5F9;

    /* Borders */
    --color-border: #E2E8F0;
    --color-border-subtle: #F1F5F9;
    --color-border-strong: #CBD5E1;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Lexend', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

    /* Typography Scale */
    --text-hero: clamp(2.5rem, 6vw, 4rem);
    --text-display: clamp(2rem, 4vw, 3rem);
    --text-h1: clamp(1.75rem, 3vw, 2.5rem);
    --text-h2: clamp(1.5rem, 2.5vw, 2rem);
    --text-h3: clamp(1.25rem, 2vw, 1.5rem);
    --text-h4: clamp(1.125rem, 1.5vw, 1.25rem);
    --text-body: 1rem;
    --text-body-lg: 1.125rem;
    --text-small: 0.875rem;
    --text-xs: 0.75rem;

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 1.75;

    /* Spacing Scale (8px base) */
    --space-0: 0;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 40px var(--color-primary-glow);
    --shadow-glow-lg: 0 10px 40px var(--color-primary-glow);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-spring: 500ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 10;
    --z-sticky: 20;
    --z-fixed: 30;
    --z-overlay: 40;
    --z-modal: 50;
    --z-toast: 60;
    --z-max: 100;
}

/* ==========================================================================
   DARK MODE
   ========================================================================== */

[data-theme="dark"],
.dark {
    /* Primary Colors - Adjusted for dark mode */
    --color-primary: #10B981;
    --color-primary-hover: #059669;
    --color-primary-light: rgba(16, 185, 129, 0.15);
    --color-primary-dark: #34D399;
    --color-primary-glow: rgba(16, 185, 129, 0.25);

    /* Neutral Colors - Dark Mode */
    --color-text: #F8FAFC;
    --color-text-secondary: #E2E8F0;
    --color-text-muted: #94A3B8;
    --color-text-subtle: #64748B;

    /* Backgrounds - Dark Mode */
    --color-background: #0F172A;
    --color-surface: #1E293B;
    --color-surface-elevated: #334155;
    --color-surface-muted: #1E293B;

    /* Borders - Dark Mode */
    --color-border: #334155;
    --color-border-subtle: #1E293B;
    --color-border-strong: #475569;

    /* Shadows - Dark Mode */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-body);
    line-height: var(--leading-relaxed);
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography */
.font-display { font-family: var(--font-display); }
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--color-text);
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

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

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus,
.sr-only:active {
    position: fixed;
    top: var(--space-4);
    left: var(--space-4);
    z-index: var(--z-max);
    width: auto;
    height: auto;
    padding: var(--space-3) var(--space-4);
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    background: var(--color-primary);
    color: white;
    font-weight: var(--font-semibold);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

.container-narrow {
    max-width: 48rem;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    padding: var(--space-4) 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

.dark .navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.navbar-brand-icon {
    width: 2.25rem;
    height: 2.25rem;
    background: var(--color-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-brand-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
}

.navbar-brand-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: var(--font-bold);
    color: var(--color-text);
}

.navbar-nav {
    display: none;
    align-items: center;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .navbar-nav {
        display: flex;
    }
}

.navbar-link {
    font-size: var(--text-small);
    font-weight: var(--font-medium);
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.navbar-link:hover {
    color: var(--color-text);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--color-surface-muted);
    color: var(--color-text);
}

.theme-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Light mode - show moon, hide sun */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

/* Dark mode - show sun, hide moon */
.dark .theme-toggle .icon-sun { display: block; }
.dark .theme-toggle .icon-moon { display: none; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-sans);
    font-size: var(--text-body);
    font-weight: var(--font-semibold);
    line-height: var(--leading-none);
    text-align: center;
    white-space: nowrap;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-glow-lg);
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--color-surface-muted);
    color: var(--color-text);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--color-surface);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn-outline:hover:not(:disabled) {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-sm {
    padding: var(--space-2) var(--space-5);
    font-size: var(--text-small);
}

.btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-body-lg);
}

/* ==========================================================================
   BADGES
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: var(--text-small);
    font-weight: var(--font-semibold);
}

.badge svg {
    width: 1rem;
    height: 1rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    padding: var(--space-32) 0 var(--space-20);
}

.hero-grid {
    display: grid;
    gap: var(--space-16);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content {
    max-width: 32rem;
}

.hero-badge {
    margin-bottom: var(--space-4);
}

.hero-title {
    font-size: var(--text-hero);
    margin-bottom: var(--space-6);
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: var(--text-body-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
    line-height: var(--leading-relaxed);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-small);
    color: var(--color-text-muted);
}

.hero-feature svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-primary);
}

.hero-video {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #A7F3D0 100%);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.dark .hero-video {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.hero-video-play {
    width: 4rem;
    height: 4rem;
    background: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    transition: all var(--transition-base);
}

.hero-video-play:hover {
    transform: scale(1.1);
}

.hero-video-play svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-primary);
    margin-left: 4px;
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */

.stats-section {
    padding: var(--space-12) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    text-align: center;
    padding: var(--space-4);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: var(--font-extrabold);
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-small);
    color: var(--color-text-muted);
}

/* ==========================================================================
   CURRICULUM SECTION
   ========================================================================== */

.curriculum-section {
    padding: var(--space-24) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-title {
    font-size: var(--text-h2);
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--text-body-lg);
    color: var(--color-text-secondary);
    max-width: 32rem;
    margin: 0 auto;
}

.curriculum-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.curriculum-item {
    padding: var(--space-5);
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.curriculum-item:hover {
    background: var(--color-primary-light);
}

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

.curriculum-info {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.curriculum-number {
    width: 2rem;
    height: 2rem;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-semibold);
    font-size: var(--text-small);
}

.curriculum-title {
    font-size: var(--text-body);
    font-weight: var(--font-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-1);
}

.curriculum-meta {
    font-size: var(--text-small);
    color: var(--color-text-muted);
}

.curriculum-toggle {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-text-subtle);
    transition: transform var(--transition-base);
}

.curriculum-item.open .curriculum-toggle {
    transform: rotate(180deg);
}

.curriculum-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.curriculum-item.open .curriculum-content {
    max-height: 500px;
}

.curriculum-lessons {
    padding-top: var(--space-4);
    padding-left: 3rem;
}

.curriculum-lesson {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    font-size: var(--text-small);
    color: var(--color-text-secondary);
}

.curriculum-lesson svg {
    width: 1rem;
    height: 1rem;
    color: var(--color-primary);
}

/* ==========================================================================
   INSTRUCTOR SECTION
   ========================================================================== */

.instructor-section {
    padding: var(--space-24) 0;
    background: var(--color-surface);
}

.instructor-card {
    padding: var(--space-8);
    background: var(--color-background);
    border-radius: var(--radius-2xl);
    text-align: center;
    max-width: 40rem;
    margin: 0 auto;
}

.instructor-avatar {
    width: 6rem;
    height: 6rem;
    margin: 0 auto var(--space-6);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-full);
    overflow: hidden;
}

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

.instructor-name {
    font-size: var(--text-h3);
    margin-bottom: var(--space-2);
}

.instructor-title {
    font-size: var(--text-small);
    font-weight: var(--font-medium);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.instructor-bio {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.instructor-socials {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
}

.instructor-social {
    color: var(--color-text-subtle);
    transition: color var(--transition-fast);
}

.instructor-social:hover {
    color: var(--color-text);
}

.instructor-social svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */

.testimonials-section {
    padding: var(--space-24) 0;
}

.testimonials-grid {
    display: grid;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    padding: var(--space-6);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

.testimonial-rating {
    display: flex;
    gap: var(--space-1);
    margin-bottom: var(--space-4);
}

.testimonial-rating svg {
    width: 1rem;
    height: 1rem;
    color: var(--color-accent);
}

.testimonial-content {
    font-size: var(--text-body);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.testimonial-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    background: var(--color-primary-light);
    overflow: hidden;
}

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

.testimonial-info h4 {
    font-size: var(--text-small);
    font-weight: var(--font-semibold);
    color: var(--color-text);
    margin-bottom: 0;
}

.testimonial-info p {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */

.pricing-section {
    padding: var(--space-24) 0;
}

.pricing-card {
    max-width: 28rem;
    margin: 0 auto;
    padding: var(--space-8);
    background: var(--color-background);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.pricing-original {
    font-size: var(--text-small);
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.pricing-amount {
    font-size: 3.5rem;
    font-weight: var(--font-extrabold);
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.pricing-period {
    font-size: var(--text-small);
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}

.pricing-features {
    text-align: left;
    margin-bottom: var(--space-8);
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    font-size: var(--text-body);
    color: var(--color-text-secondary);
}

.pricing-feature svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.pricing-cta {
    width: 100%;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    padding: var(--space-12) 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    align-items: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: var(--font-bold);
    color: var(--color-text);
}

.footer-links {
    display: flex;
    gap: var(--space-6);
}

.footer-link {
    font-size: var(--text-small);
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-text);
}

.footer-copyright {
    font-size: var(--text-small);
    color: var(--color-text-muted);
}

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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-surface-muted);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: var(--radius-full);
    border: 2px solid var(--color-surface-muted);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-border-strong);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) var(--color-surface-muted);
}

/* ==========================================================================
   SELECTION
   ========================================================================== */

::selection {
    background: var(--color-primary);
    color: white;
}

::-moz-selection {
    background: var(--color-primary);
    color: white;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .navbar,
    .theme-toggle,
    .btn {
        display: none !important;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
    }

    h1, h2, h3, h4 {
        page-break-after: avoid;
    }

    .curriculum-item,
    .testimonial-card {
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   PERFORMANCE
   ========================================================================== */

.hero,
.stats-section,
.curriculum-section,
.instructor-section,
.testimonials-section,
.pricing-section {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}
