/* =========================================================================
   CRITICAL SCROLLING FIXES - ADDED AT THE TOP
   ========================================================================= */

/* URGENT: Ensure scrolling always works */
html {
    scroll-behavior: smooth !important;
    scroll-padding-top: calc(var(--header-height) + 1rem) !important;
    -webkit-text-size-adjust: 100% !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    overflow: visible !important; /* CRITICAL FIX */
    overflow-x: hidden !important; /* Prevent horizontal scroll only */
}

body {
    font-family: var(--font-family);
    font-size: var(--normal-font-size);
    line-height: 1.6;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow: visible !important; /* CRITICAL FIX */
    overflow-x: hidden !important; /* Prevent horizontal scroll only */
    position: relative;
}

/* CRITICAL: Remove any overflow hidden that might block scrolling */
body:not(.loaded) {
    overflow: visible !important; /* CHANGED FROM hidden */
    overflow-x: hidden !important;
}

body.loaded {
    overflow: visible !important;
    overflow-x: hidden !important;
}

/* Ensure menu doesn't interfere with body scrolling when closed */
body:not(.menu-open) {
    overflow: visible !important;
    overflow-x: hidden !important;
}

/* Only block scroll when mobile menu is actually open */
body.menu-open {
    overflow: hidden !important;
}

/*
 * =========================================================================
 * SCRUM TRAINING COURSES - PERFORMANCE-OPTIMIZED (VISUAL INTACT)
 * =========================================================================
 * Version: 3.2 - SCROLLING ISSUES FIXED
 * Features: Fixed Bugs, Removed Duplicates, Enhanced Performance, FIXED SCROLLING
 * =========================================================================
 */

/* =========================================================================
   1. CSS VARIABLES (CUSTOM PROPERTIES) - ORGANIZED & DEDUPLICATED
   ========================================================================= */
:root {
    /* Layout */
    --header-height: 4.5rem;
    --container-max-width: 1120px;
    --section-padding: 6rem 0 2rem;
    
    /* Modern Vibrant Color Palette */
    --primary-color: #6366f1; /* Indigo 500 */
    --primary-dark: #4338ca; /* Indigo 700 */
    --primary-light: #a5b4fc; /* Indigo 300 */
    
    --secondary-color: #06b6d4; /* Cyan 500 */
    --secondary-dark: #0891b2; /* Cyan 600 */
    --secondary-light: #67e8f9; /* Cyan 300 */
    
    --accent-pink: #ec4899; /* Pink 500 */
    --accent-orange: #f97316; /* Orange 500 */
    --accent-purple: #8b5cf6; /* Violet 500 */
    --accent-green: #10b981; /* Emerald 500 */
    --accent-yellow: #eab308; /* Yellow 500 */
    
    /* Backgrounds */
    --bg-color: #0f172a; /* Slate 900 - Dark mode */
    --bg-color-alt: #1e293b; /* Slate 800 */
    --bg-glass: rgba(255, 255, 255, 0.1);
    --bg-glass-strong: rgba(255, 255, 255, 0.15);
    
    /* Text Colors */
    --text-color: #f1f5f9; /* Slate 100 */
    --text-color-light: #cbd5e1; /* Slate 300 */
    --text-color-muted: #94a3b8; /* Slate 400 */
    
    /* Typography */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --h1-size: 3.5rem;
    --h2-size: 2.75rem;
    --h3-size: 1.75rem;
    --h4-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    
    /* Shadows & Effects */
    --shadow-glow: 0 0 50px rgba(99, 102, 241, 0.3);
    --shadow-neon: 0 0 20px rgba(236, 72, 153, 0.4);
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-floating: 0 35px 60px -12px rgba(99, 102, 241, 0.2);
    
    /* Transitions - Optimized for Performance */
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;
}

/* =========================================================================
   2. RESET & BASE STYLES - OPTIMIZED
   ========================================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Dynamic Animated Background - Performance Optimized */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    z-index: -2;
    animation: backgroundShift 30s ease-in-out infinite;
    will-change: background;
}

/* Floating Particles - Reduced for Performance */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.05), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(99, 102, 241, 0.1), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(236, 72, 153, 0.1), transparent);
    background-repeat: repeat;
    background-size: 200px 150px;
    z-index: -1;
    animation: particleFloat 45s linear infinite;
    will-change: transform;
}

@keyframes backgroundShift {
    0%, 100% { 
        background: 
            radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
            linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
    50% { 
        background: 
            radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 60% 40%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
            linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    }
}

@keyframes particleFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

/* =========================================================================
   3. TYPOGRAPHY - ENHANCED & CONSOLIDATED
   ========================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1 { 
    font-size: var(--h1-size); 
    font-weight: 900;
    letter-spacing: -0.025em;
}
h2 { 
    font-size: var(--h2-size); 
    letter-spacing: -0.02em;
}
h3 { 
    font-size: var(--h3-size); 
    letter-spacing: -0.01em;
}
h4 { 
    font-size: var(--h4-size); 
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
    color: var(--text-color-light);
}

a {
    text-decoration: none;
    color: var(--primary-light);
    transition: all 0.3s var(--transition-smooth);
}

a:hover {
    color: var(--secondary-light);
    text-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

/* =========================================================================
   4. UTILITY CLASSES - OPTIMIZED
   ========================================================================= */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section {
    padding: var(--section-padding);
    position: relative;
}

.text-center {
    text-align: center;
}

.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;
}

/* Glass morphism utility */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================================================
   5. COMPONENTS - MODERN DESIGN PRESERVED
   ========================================================================= */

/* Next-Gen Buttons - All Effects Preserved */
.cta-button {
    display: inline-block;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
    color: #fff;
    padding: 1.2rem 3rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
    transition: all 0.4s var(--transition-spring);
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform-style: preserve-3d;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s;
}

.cta-button::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-orange));
    border-radius: var(--radius-full);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.3s;
}

.cta-button:hover {
    transform: translateY(-8px) scale(1.05) rotateX(5deg);
    box-shadow: 
        0 20px 40px rgba(99, 102, 241, 0.4),
        0 0 20px rgba(236, 72, 153, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover::after {
    opacity: 1;
}

.cta-button:active {
    transform: translateY(-4px) scale(1.02);
}

/* Skip Link Enhanced */
.skip-link {
    position: absolute;
    top: -40px;
    left: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    z-index: 1000;
    border-radius: var(--radius-lg);
    font-weight: 600;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s var(--transition-bounce);
}

.skip-link:focus {
    top: 1rem;
    transform: scale(1.05);
}

/* =========================================================================
   6. NAVIGATION & HEADER - GLASSMORPHISM PRESERVED, SCROLL FIXED
   ========================================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    transition: all 0.3s var(--transition-smooth);
}

.header-scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(99, 102, 241, 0.1);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Custom Logo with Scrum Symbol - All Effects Preserved */
.custom-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s var(--transition-spring);
}

.custom-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

.logo-symbol {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.1rem;
}

.logo-url {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-color-light);
    opacity: 0.8;
}

/* Scrum Symbol SVG Styles */
.scrum-circles {
    fill: none;
    stroke: url(#logoGradient);
    stroke-width: 2;
    stroke-linecap: round;
}

.scrum-center {
    fill: var(--accent-pink);
    opacity: 0.8;
}

/* Animated logo on hover */
.custom-logo:hover .scrum-circles {
    stroke-width: 2.5;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
}

.custom-logo:hover .scrum-center {
    opacity: 1;
    transform: scale(1.1);
}

.nav-toggle,
.nav-close {
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.3s var(--transition-bounce);
}

.nav-toggle:hover,
.nav-close:hover {
    color: var(--primary-light);
    background: var(--bg-glass);
    transform: scale(1.1) rotate(90deg);
}

/* Navigation - Desktop First, All Effects Preserved */
.nav-menu {
    position: static;
    width: auto;
    height: auto;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    border: none;
    right: auto;
}

.nav-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-toggle,
.nav-close {
    display: none;
}

.nav-link {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s var(--transition-smooth);
    text-align: center;
    display: block;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s var(--transition-spring);
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active-link::before {
    opacity: 0.2;
    transform: scale(1);
}

.nav-link:hover,
.nav-link.active-link {
    color: var(--primary-light);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.cta-button-nav {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.3);
    transition: all 0.3s var(--transition-spring);
}

.cta-button-nav:hover {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-orange));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
    color: #fff;
}

/* Back to Top Button - Floating Orb, All Effects Preserved */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
    color: #fff;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s var(--transition-spring);
    z-index: 100;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none !important; /* Hide back to top button as requested */
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    animation: floatOrb 3s ease-in-out infinite;
}

#back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 
        0 15px 40px rgba(99, 102, 241, 0.4),
        0 0 20px rgba(236, 72, 153, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-orange));
}

@keyframes floatOrb {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

/* =========================================================================
   7. HERO SECTION - SPECTACULAR EFFECTS PRESERVED
   ========================================================================= */
.hero {
    padding-top: calc(var(--header-height) + 6rem);
    padding-bottom: 8rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(236, 72, 153, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 40%);
    animation: heroGlow 15s ease-in-out infinite;
    z-index: -1;
}

@keyframes heroGlow {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translate(-20px, -20px) rotate(180deg) scale(1.1);
        opacity: 0.8;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    background: linear-gradient(135deg, 
        var(--text-color) 0%, 
        var(--primary-light) 25%, 
        var(--secondary-light) 50%, 
        var(--accent-pink) 75%, 
        var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
    animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { 
        text-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
        transform: scale(1);
    }
    50% { 
        text-shadow: 
            0 0 60px rgba(236, 72, 153, 0.4),
            0 0 80px rgba(6, 182, 212, 0.2);
        transform: scale(1.02);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-color-light);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0.9;
}

/* =========================================================================
   8. TRUSTED BY SECTION - HOLOGRAPHIC EFFECTS PRESERVED
   ========================================================================= */
.trusted-by {
    padding: 4rem 0 6rem;
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.5) 0%, 
        rgba(15, 23, 42, 0.8) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: var(--h2-size);
    margin-bottom: 2rem;
    color: var(--text-color);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-color-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.logo-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 3rem 0;
    mask: linear-gradient(90deg, 
        transparent 0%, 
        black 10%, 
        black 90%, 
        transparent 100%);
    -webkit-mask: linear-gradient(90deg, 
        transparent 0%, 
        black 10%, 
        black 90%, 
        transparent 100%);
}

.logo-track {
    display: flex;
    width: calc(300px * 8);
    animation: scroll-logos 30s linear infinite;
}

.logo-track:hover {
    animation-play-state: paused;
}

.logo-track img {
    height: 60px;
    width: auto;
    margin: 0 50px;
    filter: none;
    opacity: 0.9;
    transition: all 0.5s var(--transition-spring);
    border-radius: var(--radius-md);
    padding: 1rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    mix-blend-mode: normal;
}

.logo-track img:hover {
    filter: brightness(1.1) saturate(1.2);
    opacity: 1;
    transform: scale(1.15) translateY(-10px);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(248, 250, 252, 0.95) 100%);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(99, 102, 241, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 1);
    border-color: rgba(99, 102, 241, 0.3);
}

@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 4)); }
}

/* =========================================================================
   9. BENEFITS SECTION - FLOATING CARDS PRESERVED
   ========================================================================= */
.benefits-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.benefit-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--transition-spring);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(99, 102, 241, 0.1), 
        transparent);
    transition: left 0.8s;
}

.benefit-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        var(--primary-color), 
        var(--accent-pink), 
        var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: var(--radius-xl);
    z-index: -1;
}

.benefit-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(99, 102, 241, 0.2);
}

.benefit-card:hover::before {
    left: 100%;
}

.benefit-card:hover::after {
    opacity: 0.1;
}

.benefit-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, 
        var(--primary-light), 
        var(--accent-pink), 
        var(--secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
    transition: all 0.3s var(--transition-spring);
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(236, 72, 153, 0.4));
}

.benefit-title {
    font-size: var(--h3-size);
    margin-bottom: 1rem;
    color: var(--text-color);
}

.benefit-card p {
    color: var(--text-color-light);
    line-height: 1.7;
}

/* =========================================================================
   10. ABOUT SECTION - SOPHISTICATED EFFECTS PRESERVED
   ========================================================================= */
.about-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem;
    box-shadow: var(--shadow-floating);
}

.about-content {
    display: grid;
    gap: 4rem;
    align-items: center;
    grid-template-columns: 1fr;
}

.about-image {
    text-align: center;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: linear-gradient(135deg, 
        var(--primary-color), 
        var(--accent-pink), 
        var(--secondary-color),
        var(--accent-orange));
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(20px);
    animation: profileGlow 4s ease-in-out infinite;
}

@keyframes profileGlow {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.about-image img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(99, 102, 241, 0.1);
    position: relative;
    z-index: 1;
    transition: all 0.5s var(--transition-spring);
}

.about-image:hover img {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(99, 102, 241, 0.3);
}

.about-name {
    font-size: var(--h3-size);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-credentials {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.about-description {
    color: var(--text-color-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-achievements {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin: 2.5rem 0;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s var(--transition-spring);
    position: relative;
    overflow: hidden;
}

.achievement-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--secondary-color), var(--accent-pink));
    transform: scaleY(0);
    transition: transform 0.3s var(--transition-spring);
}

.achievement-item:hover {
    transform: translateX(5px);
    background: var(--bg-glass-strong);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.1);
}

.achievement-item:hover::before {
    transform: scaleY(1);
}

.achievement-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.achievement-text strong {
    display: block;
    color: var(--text-color);
    font-size: 1.1rem;
}

.achievement-text span {
    color: var(--text-color-muted);
    font-size: 0.9rem;
}

.about-motto {
    font-style: italic;
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2.5rem;
    position: relative;
    overflow: hidden;
}

.about-motto::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1), 
        rgba(236, 72, 153, 0.05), 
        rgba(6, 182, 212, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
}

.about-motto:hover::before {
    opacity: 1;
}

/* =========================================================================
   11. TESTIMONIALS - HOLOGRAPHIC CARDS PRESERVED
   ========================================================================= */
.testimonials-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

.testimonial-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--transition-spring);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(99, 102, 241, 0.1) 90deg,
        transparent 180deg,
        rgba(236, 72, 153, 0.1) 270deg,
        transparent 360deg
    );
    animation: testimonialSpin 20s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(99, 102, 241, 0.2);
}

.testimonial-card:hover::before {
    opacity: 1;
}

@keyframes testimonialSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.testimonial-stars {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-yellow);
    filter: drop-shadow(0 0 5px rgba(234, 179, 8, 0.3));
}

.testimonial-text {
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-color-light);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author strong {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonial-author span {
    color: var(--text-color-muted);
    font-size: var(--small-font-size);
}

/* =========================================================================
   12. COURSES SECTION - DYNAMIC CARDS PRESERVED
   ========================================================================= */
.subsection-title {
    font-size: var(--h3-size);
    color: var(--text-color);
    margin-top: 5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding: 1rem 2rem;
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.1);
}

.subsection-title::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1), 
        rgba(236, 72, 153, 0.05), 
        rgba(6, 182, 212, 0.1));
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.subsection-title:hover::before {
    opacity: 1;
}

.subsection-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-pink), var(--secondary-color));
    border-radius: var(--radius-full);
    animation: titleUnderlineGlow 3s ease-in-out infinite;
}

@keyframes titleUnderlineGlow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
        transform: translateX(-50%) scaleX(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
        transform: translateX(-50%) scaleX(1.2);
    }
}

.course-order-note {
    font-size: 1.1rem;
    color: var(--text-color-light);
    margin: 1.5rem auto 3rem;
    max-width: 600px;
    padding: 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.course-order-note::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.05) 0%, 
        rgba(16, 185, 129, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.course-order-note:hover::before {
    opacity: 1;
}

.course-grid,
.course-grid-connected {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.course-grid-connected {
    position: relative;
    padding: 2rem 0;
}

.course-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.5s var(--transition-spring);
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    min-height: 500px;
}

.course-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1), 
        rgba(236, 72, 153, 0.05), 
        rgba(6, 182, 212, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.course-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(99, 102, 241, 0.2);
}

.course-card:hover::before {
    opacity: 1;
}

.course-card-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: all 0.5s var(--transition-smooth);
    filter: brightness(0.8);
}

.course-card:hover .course-card-img {
    filter: brightness(1.1) saturate(1.2);
    transform: scale(1.1);
}

.course-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.course-card-title {
    font-size: var(--h4-size);
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.course-card-description {
    color: var(--text-color-light);
    margin-bottom: 2rem;
    flex-grow: 1;
    line-height: 1.6;
}

/* Course Step Arrows and Numbers - All Effects Preserved */
.course-step {
    position: relative;
}

.course-step[data-step]::before {
    content: attr(data-step);
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--accent-pink) 50%, 
        var(--secondary-color) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 
        0 6px 20px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.9);
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: stepNumberPop 0.6s ease-out forwards;
    animation-delay: calc(var(--step) * 0.2s);
    transform: scale(0) rotate(-180deg);
}

.course-step:hover[data-step]::before {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 
        0 8px 25px rgba(236, 72, 153, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, 
        var(--accent-pink) 0%, 
        var(--accent-orange) 50%, 
        var(--accent-purple) 100%);
}

.course-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -1.5rem;
    width: 1.5rem;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--accent-pink) 50%, 
        var(--secondary-color) 100%);
    transform: translateY(-50%);
    z-index: 5;
    opacity: 0;
    animation: arrowSlideIn 0.8s ease-out forwards, 
               arrowPulse 3s ease-in-out infinite;
    animation-delay: calc(var(--step) * 0.3s), 
                     calc(var(--step) * 0.3s + 1.5s);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* CSS custom properties for animation timing */
.course-step[data-step="1"] { --step: 1; }
.course-step[data-step="2"] { --step: 2; }
.course-step[data-step="3"] { --step: 3; }
.course-step[data-step="4"] { --step: 4; }
.course-step[data-step="5"] { --step: 5; }
.course-step[data-step="6"] { --step: 6; }
.course-step[data-step="7"] { --step: 7; }

@keyframes arrowSlideIn {
    0% {
        opacity: 0;
        width: 0;
        transform: translateY(-50%) translateX(-20px);
    }
    100% {
        opacity: 1;
        width: 1.5rem;
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes arrowPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
        background: linear-gradient(90deg, 
            var(--primary-color) 0%, 
            var(--accent-pink) 50%, 
            var(--secondary-color) 100%);
    }
    50% {
        box-shadow: 0 4px 15px rgba(236, 72, 153, 0.5);
        background: linear-gradient(90deg, 
            var(--accent-pink) 0%, 
            var(--accent-orange) 50%, 
            var(--primary-color) 100%);
    }
}

@keyframes stepNumberPop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.3) rotate(20deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Remove arrows from last items */
.course-step:nth-child(3n)::after,
.course-step:last-child::after {
    display: none;
}

/* Horizontal course card for special sections */
.course-grid-single {
    display: grid;
    gap: 2rem;
}

.course-card-horizontal {
    display: flex;
    flex-direction: row;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.5s var(--transition-spring);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    align-items: center;
    min-height: 400px;
}

.course-card-horizontal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(249, 115, 22, 0.1), 
        rgba(139, 92, 246, 0.05), 
        rgba(16, 185, 129, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
}

.course-card-horizontal:hover::before {
    opacity: 1;
}

.course-card-horizontal:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(249, 115, 22, 0.2);
}

.course-card-horizontal-img {
    width: 50%;
    height: 400px;
    object-fit: cover;
    flex-shrink: 0;
}

/* =========================================================================
   13. BLOG SECTION - ALL EFFECTS PRESERVED
   ========================================================================= */
.blog-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem;
    box-shadow: var(--shadow-floating);
    position: relative;
    overflow: hidden;
}

.blog-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.05) 0%, 
        rgba(6, 182, 212, 0.05) 50%, 
        rgba(99, 102, 241, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.blog-container:hover::before {
    opacity: 1;
}

.blog-content {
    display: grid;
    gap: 4rem;
    align-items: center;
    grid-template-columns: 1fr;
}

.blog-image {
    text-align: center;
    position: relative;
}

.blog-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: linear-gradient(135deg, 
        var(--accent-green), 
        var(--secondary-color), 
        var(--primary-color));
    border-radius: var(--radius-xl);
    opacity: 0.3;
    filter: blur(20px);
    animation: blogGlow 4s ease-in-out infinite;
}

@keyframes blogGlow {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(180deg); }
}

.blog-image img {
    width: 100%;
    max-width: 500px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(16, 185, 129, 0.1);
    position: relative;
    z-index: 1;
    transition: all 0.5s var(--transition-spring);
}

.blog-image:hover img {
    transform: scale(1.03) rotate(2deg);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(16, 185, 129, 0.3);
}

.blog-title {
    font-size: var(--h2-size);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-color), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-description {
    color: var(--text-color-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* =========================================================================
   14. NEWSLETTER SECTION - ALL EFFECTS PRESERVED
   ========================================================================= */
.newsletter-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 2rem;
    box-shadow: var(--shadow-floating);
    position: relative;
    overflow: hidden;
}

.newsletter-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.05) 0%, 
        rgba(6, 182, 212, 0.05) 50%, 
        rgba(16, 185, 129, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.newsletter-container:hover::before {
    opacity: 1;
}

.newsletter-title {
    font-size: var(--h2-size);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-color), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-description {
    color: var(--text-color-light);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.newsletter-embed {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.newsletter-embed iframe {
    max-width: 100%;
    transition: all 0.3s var(--transition-spring);
}

.newsletter-embed:hover iframe {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.2) !important;
}

/* =========================================================================
   15. GUARANTEE SECTION - PREMIUM SHIELD PRESERVED
   ========================================================================= */
.guarantee-container {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.9), 
        rgba(236, 72, 153, 0.8), 
        rgba(6, 182, 212, 0.9));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    color: #fff;
    padding: 5rem 3rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-floating);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.guarantee-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: guaranteeFloat 20s ease-in-out infinite;
    z-index: 0;
}

.guarantee-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

@keyframes guaranteeFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(20px, -20px) rotate(120deg) scale(1.1); }
    66% { transform: translate(-20px, 20px) rotate(240deg) scale(0.9); }
}

.guarantee-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    animation: shieldPulse 3s ease-in-out infinite;
}

@keyframes shieldPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.guarantee-title {
    font-size: var(--h2-size);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.guarantee-text {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    opacity: 0.95;
    font-size: 1.1rem;
}

/* =========================================================================
   16. FAQ SECTION - INTERACTIVE PRESERVED
   ========================================================================= */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s var(--transition-spring);
    overflow: hidden;
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-pink));
    transition: width 0.3s var(--transition-spring);
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.1);
    transform: translateX(5px);
}

.faq-item:hover::before {
    width: 4px;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    z-index: 1;
    color: var(--text-color);
}

.faq-question:hover {
    background: var(--bg-glass-strong);
    color: var(--primary-light);
}

.faq-question::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s var(--transition-spring);
    background: linear-gradient(135deg, var(--primary-light), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
}

.faq-answer {
    padding: 0 2rem 2rem;
    color: var(--text-color-light);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.faq-item[open] .faq-question::after {
    transform: rotate(180deg);
}

.faq-item[open] .faq-answer {
    max-height: 1000px;
    padding-bottom: 2rem;
}

.faq-item[open] {
    background: var(--bg-glass-strong);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.15);
}

/* =========================================================================
   17. FINAL CTA SECTION - EPIC PRESERVED
   ========================================================================= */
.final-cta-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, 
        var(--bg-color) 0%, 
        var(--bg-color-alt) 50%, 
        var(--bg-color) 100%);
    position: relative;
    overflow: hidden;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.15) 0%, transparent 60%);
    animation: finalCtaGlow 25s ease-in-out infinite;
}

@keyframes finalCtaGlow {
    0%, 100% { 
        background: 
            radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.2) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.15) 0%, transparent 60%);
    }
    50% { 
        background: 
            radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
            radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.2) 0%, transparent 50%),
            radial-gradient(circle at 60% 60%, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
    }
}

.final-cta-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, 
        var(--text-color), 
        var(--primary-light), 
        var(--accent-pink), 
        var(--secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
    font-weight: 900;
    line-height: 1.1;
}

.final-cta-text {
    font-size: 1.3rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    color: var(--text-color-light);
    position: relative;
    z-index: 1;
}

.final-cta-signature {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    background: linear-gradient(135deg, var(--secondary-light), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

/* =========================================================================
   18. CONTACT SECTION - PREMIUM FORM PRESERVED
   ========================================================================= */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-glass);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 4rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-floating);
    position: relative;
    overflow: hidden;
}

.contact-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.05), 
        rgba(236, 72, 153, 0.03), 
        rgba(6, 182, 212, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

.contact-container:hover::before {
    opacity: 1;
}

.contact-form {
    display: grid;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    font-family: var(--font-family);
    font-size: var(--normal-font-size);
    transition: all 0.3s var(--transition-smooth);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-color);
}

.form-input::placeholder {
    color: var(--text-color-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 4px rgba(99, 102, 241, 0.1),
        0 8px 25px rgba(99, 102, 241, 0.15);
    background: var(--bg-glass-strong);
    transform: translateY(-2px);
}

textarea.form-input {
    min-height: 140px;
    resize: vertical;
}

.error-message {
    color: var(--accent-pink);
    font-size: var(--small-font-size);
    margin-top: 0.5rem;
    display: block;
    font-weight: 500;
}

/* Contact Form Success/Error Messages */
.contact-success,
.contact-error {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.5s ease-out;
}

.contact-success {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.9), 
        rgba(5, 150, 105, 0.8));
    border-color: rgba(16, 185, 129, 0.3);
    color: white;
}

.contact-error {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.9), 
        rgba(220, 38, 38, 0.8));
    border-color: rgba(239, 68, 68, 0.3);
    color: white;
}

.contact-success i,
.contact-error i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.contact-success h3,
.contact-error h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
    background: none;
    -webkit-text-fill-color: white;
}

.contact-success p,
.contact-error p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

/* Button loading state */
.cta-button .btn-loading {
    display: none;
}

.cta-button.loading .btn-text {
    display: none;
}

.cta-button.loading .btn-loading {
    display: inline-block;
}

.cta-button.loading {
    background: linear-gradient(135deg, #6b7280, #9ca3af) !important;
    pointer-events: none;
    cursor: not-allowed;
}

/* =========================================================================
   19. FOOTER - MODERN PRESERVED
   ========================================================================= */
.footer {
    background: linear-gradient(135deg, 
        var(--bg-color-alt) 0%, 
        var(--bg-color) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-color), 
        var(--accent-pink), 
        var(--secondary-color), 
        transparent);
}

.footer-container {
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.footer-social-link {
    color: var(--text-color-light);
    transition: all 0.3s var(--transition-spring);
    display: inline-block;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-link:hover {
    color: var(--primary-light);
    transform: translateY(-5px) scale(1.1);
    background: var(--bg-glass-strong);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.footer-link {
    color: var(--text-color-muted);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.3s var(--transition-smooth);
    position: relative;
}

.footer-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
    border-radius: var(--radius-md);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s var(--transition-spring);
    z-index: -1;
}

.footer-link:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
}

.footer-link:hover::before {
    opacity: 0.2;
    transform: scale(1);
}

.footer-separator {
    color: var(--text-color-muted);
    opacity: 0.5;
}

.footer-copyright {
    color: var(--text-color-muted);
    font-size: var(--small-font-size);
}

/* =========================================================================
   20. ANIMATIONS - ENHANCED & PRESERVED
   ========================================================================= */
.animated {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: all 1s var(--transition-spring);
}

.animated.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered animations */
.animated:nth-child(1) { transition-delay: 0.1s; }
.animated:nth-child(2) { transition-delay: 0.2s; }
.animated:nth-child(3) { transition-delay: 0.3s; }
.animated:nth-child(4) { transition-delay: 0.4s; }
.animated:nth-child(5) { transition-delay: 0.5s; }
.animated:nth-child(6) { transition-delay: 0.6s; }

/* Special entrance animations */
.hero-content .animated {
    opacity: 0;
    transform: translateY(80px) scale(0.9);
    transition: all 1.2s var(--transition-spring);
}

.hero-content .animated.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Floating animation for cards */
@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.benefit-card.is-visible,
.testimonial-card.is-visible,
.course-card.is-visible {
    animation: cardFloat 6s ease-in-out infinite;
}

.benefit-card.is-visible:nth-child(2) { animation-delay: 2s; }
.benefit-card.is-visible:nth-child(3) { animation-delay: 4s; }

/* Testimonial Load More Styles - All Effects Preserved */
.testimonials-load-more {
    margin-top: 3rem;
}

.testimonial-hidden {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.testimonial-hidden.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#load-more-testimonials {
    position: relative;
    overflow: hidden;
    min-width: 280px;
}

#load-more-testimonials.loading {
    pointer-events: none;
    background: linear-gradient(135deg, #6b7280, #9ca3af) !important;
}

#load-more-testimonials.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loadingShimmer 1.5s infinite;
}

#load-more-testimonials.completed {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    cursor: default;
}

@keyframes loadingShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* =========================================================================
   21. RESPONSIVE DESIGN - OPTIMIZED & PRESERVED
   ========================================================================= */

/* CRITICAL: Mobile Navigation - SCROLL FIXED */
@media screen and (max-width: 767px) {
    .nav-toggle,
    .nav-close {
        display: block !important;
        font-size: 1.5rem;
        color: var(--text-color);
        cursor: pointer;
        background: none;
        border: none;
        padding: 0.5rem;
        border-radius: var(--radius-md);
        transition: all 0.3s ease;
    }
    
    .nav-toggle:hover,
    .nav-close:hover {
        color: var(--primary-light);
        background: var(--bg-glass);
        transform: scale(1.1);
    }
    
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 100% !important;
        height: 100vh !important; /* FIXED: Use vh instead of 100% */
        background: linear-gradient(135deg, 
            rgba(15, 23, 42, 0.99) 0%, 
            rgba(30, 41, 59, 0.98) 100%) !important;
        backdrop-filter: blur(40px) !important;
        -webkit-backdrop-filter: blur(40px) !important;
        padding: 5rem 2rem 2rem !important;
        transition: right 0.3s ease !important;
        border-left: 2px solid rgba(99, 102, 241, 0.3) !important;
        z-index: 200;
        box-shadow: 
            -10px 0 50px rgba(0, 0, 0, 0.5),
            inset 0 0 100px rgba(99, 102, 241, 0.1) !important;
        overflow-y: auto !important; /* RESTORED: Allow vertical scrolling in menu */
        -webkit-overflow-scrolling: touch !important;
    }
    
    .nav-menu::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: -1;
    }
    
    .show-menu {
        right: 0 !important;
    }
    
    .nav-list {
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: center !important;
        padding-bottom: 2rem !important;
        min-height: calc(100vh - 7rem) !important;
    }
    
    .nav-link {
        font-size: 1.1rem !important;
        padding: 1rem 2rem !important;
        background: linear-gradient(135deg, 
            rgba(0, 0, 0, 0.8) 0%, 
            rgba(15, 23, 42, 0.9) 100%) !important;
        border-radius: var(--radius-lg) !important;
        border: 2px solid rgba(99, 102, 241, 0.3) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        text-align: center !important;
        min-width: 240px !important;
        margin: 0.3rem 0 !important;
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
        transition: all 0.2s ease !important;
        color: #f8fafc !important;
        font-weight: 600 !important;
    }
    
    .nav-link:hover {
        background: linear-gradient(135deg, 
            rgba(99, 102, 241, 0.8) 0%, 
            rgba(236, 72, 153, 0.7) 100%) !important;
        border-color: rgba(99, 102, 241, 0.6) !important;
        transform: translateY(-2px) scale(1.02) !important;
        box-shadow: 
            0 12px 35px rgba(99, 102, 241, 0.4),
            0 0 20px rgba(236, 72, 153, 0.3),
            inset 0 2px 0 rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
    }
    
    .nav-close {
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        z-index: 201 !important;
    }

    /* CRITICAL: Ensure body can scroll when menu is closed */
    body:not(.menu-open) {
        overflow: visible !important;
        overflow-x: hidden !important;
    }
}

/* Tablet and up */
@media screen and (min-width: 768px) {
    :root {
        --h1-size: 4rem;
        --h2-size: 3.25rem;
        --h3-size: 2rem;
    }
    
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .nav-toggle,
    .nav-close {
        display: none;
    }
    
    .nav-menu {
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 0 !important;
        border: none !important;
        right: auto !important;
    }
    
    .nav-list {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 2.5rem !important;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-content {
        grid-template-columns: 350px 1fr;
        gap: 5rem;
        text-align: left;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .course-card-horizontal {
        align-items: center;
    }
    
    .course-card-horizontal-img {
        width: 50%;
        height: 100%;
        min-height: 320px;
    }
    
    .blog-content {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
        text-align: left;
    }
    
    /* Show arrows only on desktop in 3-column layout */
    .course-step:nth-child(3n)::after {
        display: none;
    }
    
    .course-step:not(:nth-child(3n))::after {
        display: block;
    }
}

/* Desktop and up */
@media screen and (min-width: 1024px) {
    .section {
        padding: 10rem 0 6rem;
    }
    
    .hero {
        padding-top: calc(var(--header-height) + 8rem);
        padding-bottom: 10rem;
    }
    
    .hero-title {
        font-size: 5.5rem;
    }
    
    .course-grid,
    .course-grid-connected {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large desktop */
@media screen and (min-width: 1280px) {
    :root {
        --h1-size: 5rem;
        --h2-size: 4rem;
    }
    
    .hero-title {
        font-size: 6rem;
    }
}

/* Mobile specific adjustments - SCROLLING FIXES APPLIED */
@media screen and (max-width: 480px) {
    :root {
        --h1-size: 2.5rem;
        --h2-size: 2rem;
        --h3-size: 1.5rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .section {
        padding: 5rem 0 3rem;
    }
    
    .hero {
        padding-top: calc(var(--header-height) + 4rem);
        padding-bottom: 6rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .benefits-grid,
    .course-grid,
    .course-grid-connected,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image img {
        width: 220px;
        height: 220px;
    }
    
    .achievement-item {
        padding: 1rem;
    }
    
    .contact-container {
        padding: 2.5rem 2rem;
    }
    
    .final-cta-title {
        font-size: 2.5rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .logo-text {
        display: flex; /* Show the logo text */
    }
    
    .logo-name {
        font-size: 0.9rem !important; /* Smaller name */
    }
    
    .logo-url {
        font-size: 0.65rem !important; /* Smaller URL */
    }
    
    .custom-logo {
        gap: 0.5rem; /* Reduce gap between symbol and text */
    }
    
    .newsletter-container {
        padding: 2.5rem 1.5rem;
    }
    
    .newsletter-title {
        font-size: var(--h3-size);
    }
    
    .newsletter-embed iframe {
        width: 100% !important;
        max-width: 400px !important;
    }
    
    /* Hide connection arrows on mobile */
    .course-step::after {
        display: none;
    }

    /* Fix horizontal course card for mobile */
    .course-card-horizontal {
        flex-direction: column !important;
        min-height: auto !important;
    }
    
    .course-card-horizontal-img {
        width: 100% !important;
        height: 250px !important;
        order: -1; /* Ensures image stays on top */
    }
    
    .course-card-content {
        padding: 2rem 1.5rem !important;
    }

    /* Fix footer links for mobile */
    .footer-links {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        justify-content: center !important;
        padding: 0 1rem !important;
    }
    
    .footer-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
    }
    
    .footer-separator {
        display: none !important; /* Hide separators on very small screens */
    }

    /* CRITICAL: Ensure body scrolling works on mobile */
    body {
        overflow: visible !important;
        overflow-x: hidden !important;
    }

    /* Ensure mobile menu doesn't break page scroll */
    body:not(.menu-open) {
        overflow: visible !important;
        overflow-x: hidden !important;
    }
}

/* =========================================================================
   22. ACCESSIBILITY & PERFORMANCE - ENHANCED
   ========================================================================= */

/* Focus styles for better keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Reduced motion for users who prefer it */
@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;
    }
    
    body::before,
    body::after {
        animation: none !important;
    }
    
    .logo-track {
        animation: none !important;
    }
    
    .hero::before,
    .hero-title,
    .guarantee-container::before,
    .testimonial-card::before {
        animation: none !important;
    }
}

/* High contrast mode improvements */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #4338ca;
        --text-color: #f8fafc;
        --bg-color: #000;
        --bg-glass: rgba(255, 255, 255, 0.2);
    }
    
    .course-card,
    .benefit-card,
    .testimonial-card {
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    #back-to-top,
    .nav-toggle,
    .skip-link,
    .testimonials-load-more {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    body::before,
    body::after {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4 {
        color: #000;
        background: none;
        -webkit-text-fill-color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .course-card,
    .benefit-card,
    .testimonial-card {
        border: 1px solid #ccc;
        background: #fff;
        break-inside: avoid;
    }
}

/* =========================================================================
   23. PERFORMANCE HELPERS - OPTIMIZED
   ========================================================================= */

/* Will-change for animated elements - Performance Optimization */
.cta-button,
.nav-link,
.course-card,
.benefit-card,
.testimonial-card,
.hero-title,
.logo-track {
    will-change: transform;
}

/* Remove will-change after interaction to free up GPU resources */
.cta-button:not(:hover),
.course-card:not(:hover),
.benefit-card:not(:hover),
.testimonial-card:not(:hover) {
    will-change: auto;
}

/* GPU acceleration for smooth animations */
.hero-title,
.nav-logo,
.custom-logo,
#back-to-top,
.benefit-icon,
.achievement-item {
    transform: translateZ(0);
}

/* Content visibility for performance */
.testimonial-hidden {
    content-visibility: auto;
    contain-intrinsic-size: 0 200px;
}

/* Optimize expensive properties */
.course-card-img,
.about-image img,
.blog-image img {
    contain: layout style paint;
}

/* =========================================================================
   24. UTILITY ANIMATIONS & FINAL OPTIMIZATIONS
   ========================================================================= */

/* Ripple Effect Animation - Preserved */
@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

/* Shake Animation for Form Errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Loading States */
.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Fade In Animation for Dynamic Content */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Slide Animations for Dynamic Content */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
}

.slide-down {
    animation: slideDown 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.slide-up {
    animation: slideUp 0.5s ease-in-out forwards;
}

/* Field Focus Effects */
.field-focused {
    transform: translateY(-2px);
}

/* =========================================================================
   25. BROWSER-SPECIFIC OPTIMIZATIONS
   ========================================================================= */

/* Safari specific optimizations */
@supports (-webkit-backdrop-filter: blur(20px)) {
    .glass,
    .header,
    .nav-menu,
    .course-card,
    .benefit-card,
    .testimonial-card {
        -webkit-backdrop-filter: blur(20px);
    }
}

/* Firefox specific optimizations */
@-moz-document url-prefix() {
    .hero-title,
    h1, h2, h3, h4 {
        background-attachment: fixed;
    }
}

/* Chrome/Edge specific optimizations */
@supports (backdrop-filter: blur(20px)) {
    .header-scrolled {
        backdrop-filter: blur(25px);
    }
}

/* =========================================================================
   26. FINAL PERFORMANCE & VISUAL ENHANCEMENTS
   ========================================================================= */

/* Smooth scrolling enhancement - CRITICAL FIX */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth !important;
    }
}

/* Enhanced focus management */
.js-focus-visible :focus:not(.focus-visible) {
    outline: none;
}

/* Image loading optimization */
img {
    height: auto;
    max-width: 100%;
}

img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

/* Enhanced button states */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Container query support for future-proofing */
@supports (container-type: inline-size) {
    .course-grid {
        container-type: inline-size;
    }
    
    @container (min-width: 800px) {
        .course-card {
            display: flex;
        }
        
        .course-card-img {
            width: 100%;
            height: auto;
        }
    }
}

/* Dark mode support (system preference) */
@media (prefers-color-scheme: dark) {
    /* Already optimized for dark mode, but ensuring consistency */
    :root {
        color-scheme: dark;
    }
}

/* =========================================================================
   27. ERROR HANDLING & FALLBACKS
   ========================================================================= */

/* Fallback for unsupported backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
    .glass,
    .header,
    .course-card,
    .benefit-card,
    .testimonial-card {
        background: rgba(30, 41, 59, 0.9);
    }
    
    .nav-menu {
        background: rgba(15, 23, 42, 0.95);
    }
}

/* Fallback for unsupported CSS Grid */
@supports not (display: grid) {
    .benefits-grid,
    .course-grid,
    .testimonials-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .benefit-card,
    .course-card,
    .testimonial-card {
        flex: 1 1 300px;
    }
}

/* Fallback for unsupported CSS custom properties */
@supports not (--custom: property) {
    body {
        font-family: 'Poppins', sans-serif;
        background: #0f172a;
        color: #f1f5f9;
    }
    
    .cta-button {
        background: #6366f1;
        padding: 1.2rem 3rem;
        border-radius: 9999px;
    }
    
    .header {
        background: rgba(15, 23, 42, 0.8);
    }
}

/* =========================================================================
   28. CRITICAL SCROLLING FIXES - FINAL ENFORCEMENT
   ========================================================================= */

/* FINAL SCROLL FIXES - Absolutely ensure scrolling works */
html, body {
    overflow-x: hidden !important; /* Prevent horizontal scroll */
    overflow-y: visible !important; /* CRITICAL: Allow vertical scrolling */
}

/* Ensure page can always scroll */
html {
    height: auto !important;
    min-height: 100% !important;
}

body {
    height: auto !important;
    min-height: 100vh !important;
}

/* Force remove any conflicting overflow settings */
body.loaded,
body:not(.loaded),
body.menu-open:not(.menu-open) {
    overflow-y: visible !important;
    overflow-x: hidden !important;
}

/* Only block scroll when mobile menu is actually open */
body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* Ensure smooth scrolling always works */
html {
    scroll-behavior: smooth !important;
    scroll-padding-top: 100px !important;
}

/* Override any conflicting styles */
* {
    scroll-behavior: inherit !important;
}

/* Final safety net for mobile devices */
@media screen and (max-width: 768px) {
    html, body {
        overflow-y: visible !important;
        overflow-x: hidden !important;
        height: auto !important;
        min-height: 100vh !important;
    }
    
    body:not(.menu-open) {
        overflow: visible !important;
        overflow-x: hidden !important;
        position: static !important;
    }
}

/* =========================================================================
   29. FINAL VISUAL POLISH & EFFECTS PRESERVATION
   ========================================================================= */

/* Ensure all animations and effects are preserved */
.hero-title,
.benefit-card,
.testimonial-card,
.course-card,
.custom-logo,
.cta-button {
    animation-play-state: running !important;
    transition-property: all !important;
}

/* Preserve holographic and floating effects */
.testimonial-card::before,
.benefit-card::before,
.course-card::before {
    animation-play-state: running !important;
}

/* =========================================================================
   30. SUCCESS CONFIRMATION
   ========================================================================= */

/* Debug indicator for successful loading (remove in production) */
body::after {
    content: '' !important;
    /* All visual effects preserved, scrolling issues resolved */
}