/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f5f7;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.6;
    color: #374151;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation Styles */
.navbar {
    background: transparent;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000 !important; /* Header must be on top of everything including scroll button */
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(245, 245, 247, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-combined-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.nav-link:hover {
    color: #8B5CF6;
}

.nav-dropdown {
    position: relative;
}



.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Style the Learn button like Test de nivel - ONLY for English landing page */
.english-page .nav-dropdown > .nav-link {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    color: white;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.english-page .nav-dropdown > .nav-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, #7C3AED, #8B5CF6);
    color: white;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 5px 20px rgba(139, 92, 246, 0.1);
    padding: 1.5rem;
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    background-clip: padding-box;
    backdrop-filter: blur(10px);
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    border-color: rgba(139, 92, 246, 0.2);
}

/* Dynamic positioning class for JavaScript control */
.dropdown-content.position-right {
    left: auto !important;
    right: 0 !important;
    transform: translateY(15px) scale(0.95) !important;
}

.dropdown-content.position-right.show {
    transform: translateY(0) scale(1) !important;
}

.dropdown-content.position-center {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(15px) scale(0.95) !important;
}

.dropdown-content.position-center.show {
    transform: translateX(-50%) translateY(0) scale(1) !important;
}

/* Prevent dropdown from being clipped by window edges */
@media (max-width: 1600px) {
    .dropdown-content {
        left: 50%;
        transform: translateX(-50%) translateY(15px) scale(0.95);
    }
    
    .nav-dropdown:hover .dropdown-content {
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* For smaller screens, align to right edge to prevent overflow */
@media (max-width: 1200px) {
    .dropdown-content {
        left: auto;
        right: 0;
        transform: translateY(15px) scale(0.95);
    }
    
    .nav-dropdown:hover .dropdown-content {
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(167, 139, 250, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.dropdown-item:hover::before {
    opacity: 1;
}

.dropdown-item:hover {
    background-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.dropdown-icon {
    font-size: 1.75rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 50%, #C4B5FD 100%);
    border-radius: 14px;
    color: white;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
    position: relative;
}

/* Custom dropdown icons - larger size for desktop */
.dropdown-icon.custom-icon-education::before,
.dropdown-icon.custom-icon-test::before,
.dropdown-icon.custom-icon-account::before {
    width: 24px;
    height: 24px;
}

/* Spanish ES text icon - larger for desktop dropdown */
.dropdown-icon.custom-icon-spanish::before {
    width: 24px;
    height: 24px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
}

.dropdown-item:hover .dropdown-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.dropdown-icon::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropdown-item:hover .dropdown-icon::after {
    opacity: 1;
}

.dropdown-text {
    flex: 1;
    padding-top: 0.25rem;
}

.dropdown-text strong {
    display: block;
    color: #4C1D95;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.dropdown-item:hover .dropdown-text strong {
    color: #6D28D9;
}

.dropdown-text p {
    color: #6B7280;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.dropdown-item:hover .dropdown-text p {
    color: #5B6574;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-login-btn {
    background: transparent;
    color: #9CA3AF;
    padding: 0.6rem 1.5rem;
    border: 1px solid #D1D5DB;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 140px;
    text-align: center;
}

.nav-login-btn:hover {
    background: rgba(156, 163, 175, 0.1);
    color: #6B7280;
    border-color: #9CA3AF;
}

.nav-test-btn {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    color: white;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.nav-test-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, #7C3AED, #8B5CF6);
}

/* TABLET AND MOBILE HEADER BACKGROUNDS - ONLY for test-de-nivel.html page */
/* This rule is moved to test-de-nivel.html inline styles to avoid affecting other pages */

/* Mobile Hamburger Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 3px;
    position: relative;
    z-index: 10001 !important; /* Above header for mobile access */
    width: 30px;
    height: 25px;
    justify-content: center;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #4C1D95;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Base mobile menu styles */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    transition: left 0.3s ease;
    z-index: 10001 !important; /* Above header for mobile access */
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: none;
    text-align: left;
}

.mobile-menu.active {
    left: 0;
    display: block;
}

.mobile-menu-item {
    padding: 1rem;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
    color: #4C1D95;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-item:hover {
    background: #f8f9fa;
    color: #8B5CF6;
}

.mobile-menu-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    position: relative;
}

/* Custom Icon Designs - No More Emojis */
.custom-icon-education::before {
    content: '';
    width: 20px;
    height: 20px;
    background: white;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M22 10v6M2 10l10-5 10 5-10 5z'/%3E%3Cpath d='M6 12v5c3 3 9 3 12 0v-5'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M22 10v6M2 10l10-5 10 5-10 5z'/%3E%3Cpath d='M6 12v5c3 3 9 3 12 0v-5'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
}

.custom-icon-spanish::before {
    content: 'ES';
    color: white;
    font-weight: 700;
    font-size: 12px;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    letter-spacing: 0.5px;
}

.custom-icon-test::before {
    content: '';
    width: 20px;
    height: 20px;
    background: white;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z'/%3E%3Cpolyline points='14,2 14,8 20,8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10,9 9,9 8,9'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z'/%3E%3Cpolyline points='14,2 14,8 20,8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10,9 9,9 8,9'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
}

.custom-icon-account::before {
    content: '';
    width: 20px;
    height: 20px;
    background: white;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
}

.mobile-menu-text {
    flex: 1;
    text-align: left;
}

.mobile-menu-text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    text-align: left;
}

.mobile-menu-text p {
    font-size: 0.85rem;
    color: #6B7280;
    margin: 0;
    line-height: 1.3;
    text-align: left;
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 3px;
}

.nav-mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #4C1D95;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hide mobile center button on desktop */
.nav-mobile-center {
    display: none;
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem 0; /* Increased top padding to ensure content never touches header */
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f5f7 0%, #faf9fb 100%);
    position: relative;
    overflow: hidden;
}

/* VIEWPORT HEIGHT RESPONSIVE FIXES - Prevent header overlap at all dimensions */
@media (max-height: 950px) {
    .hero {
        padding-top: 5rem !important; /* Ensure adequate clearance from header */
        min-height: 85vh;
    }
}

@media (max-height: 850px) {
    .hero {
        padding-top: 5rem !important; /* Maintain clearance from header on short screens */
        min-height: 80vh;
    }
}

@media (max-height: 750px) {
    .hero {
        padding-top: 4.5rem !important; /* Minimum safe clearance from header */
        min-height: 75vh;
    }
}

/* WIDTH + HEIGHT RESPONSIVE COMBINATIONS for better spacing */
@media (max-width: 1200px) and (max-height: 900px) {
    .hero {
        padding-top: 5rem !important; /* Ensure clearance from header on medium screens */
    }
    
    /* Fix scroll arrow overlap with video at 900px height */
    .scroll-arrow-container {
        bottom: 0.5rem !important; /* Move scroll arrow higher to prevent video overlap */
    }
}

@media (max-width: 1000px) and (max-height: 850px) {
    .hero {
        padding-top: 4.5rem !important; /* Maintain clearance from header on small screens */
    }
}

/* Additional fix for 900px height scenarios */
@media (max-height: 900px) {
    .scroll-arrow-container {
        bottom: 0.5rem !important; /* Ensure scroll arrow doesn't overlap video at 900px height */
    }
}

/* SPECIFIC FIX for 910px height issue mentioned by user */
@media (min-height: 900px) and (max-height: 920px) {
    .hero {
        padding-top: 5rem !important; /* Ensure clearance from header at 910px height */
    }
    
    /* Fix scroll arrow overlap with video at 900px height */
    .scroll-arrow-container {
        bottom: 0.5rem !important; /* Move scroll arrow higher to prevent video overlap */
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('fox/background 2.png');
    background-size: 1200px auto;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    opacity: 0.05;
    z-index: 1;
}

.hero-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 2; /* Lower z-index to ensure scroll button stays on top */
    min-height: 55vh;
    transform: translateX(3rem);
    transition: all 0.3s ease;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    justify-content: center;
    transform: translateX(1rem);
}

.hero-title {
    font-size: 4.8rem;
    font-weight: 700;
    color: #4C1D95;
    line-height: 1.1;
    font-family: 'DM Sans', sans-serif;
    margin-bottom: 1rem;
    transition: font-size 0.3s ease;
}

.rotating-word {
    color: #8B5CF6;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 200px;
    vertical-align: top;
    transition: opacity 0.15s ease;
    text-align: left;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #6B7280;
    line-height: 1.6;
    font-family: 'DM Sans', sans-serif;
}

.hero-cta-btn {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 35px;
    font-weight: 600;
    font-size: 1.3rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 1rem;
}

.hero-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.hero-cta-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* Media Section (Video + Fox) */
.hero-media {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    height: 100%;
}

/* Video Section */
.hero-video {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform: translateX(1.5rem);
}

/* Fox Section */
.hero-fox {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin-left: 2rem;
    transform: translateX(1rem);
}

.fox-mascot {
    width: 562px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(139, 92, 246, 0.2));
    transition: all 0.3s ease;
}

.fox-mascot:hover {
    transform: translateY(-5px) scale(1.02);
}

.video-container {
    width: 420px;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.05) 0%,
        rgba(59, 130, 246, 0.05) 50%,
        rgba(139, 92, 246, 0.05) 100%);
    transform: rotate(5deg) translateX(3.5rem);
    transition: all 0.3s ease;
}

.video-container::before {
    content: '';
    position: absolute;
    top: -25px;
    left: -25px;
    right: -25px;
    bottom: -25px;
    background: linear-gradient(45deg, #ff0000, #ff8800, #ffff00, #00ff00, #0088ff, #0000ff, #8800ff, #ff0000);
    background-size: 400% 400%;
    border-radius: 35px;
    z-index: -1;
    animation: rainbowGlow 4s ease-in-out infinite;
    filter: blur(20px);
    opacity: 0.8;
}

@keyframes rainbowGlow {
    0% {
        background-position: 0% 50%;
        transform: scale(0.95) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        background-position: 100% 50%;
        transform: scale(1.02) rotate(90deg);
        opacity: 0.8;
    }  
    50% {
        background-position: 100% 100%;
        transform: scale(1.08) rotate(180deg);
        opacity: 0.9;
    }
    75% {
        background-position: 0% 100%;
        transform: scale(1.02) rotate(270deg);
        opacity: 0.8;
    }
    100% {
        background-position: 0% 50%;
        transform: scale(0.95) rotate(360deg);
        opacity: 0.6;
    }
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #000; /* Solid black background when no video is loaded */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: opacity 0.3s ease;
}

.video-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.video-play-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.play-icon {
    font-size: 2rem;
    color: #8B5CF6;
    margin-left: 4px;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1rem 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show controls only when visible class is added (not on hover) */
.video-controls.visible {
    opacity: 1;
    visibility: visible;
}

/* Disable hover showing controls - only show when user clicks play */
.video-container:hover .video-controls:not(.visible) {
    opacity: 0;
    visibility: hidden;
}

.video-progress {
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    transition: height 0.2s ease;
}

.progress-bar:hover {
    height: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #8B5CF6;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-bar:hover .progress-fill::after {
    opacity: 1;
}

.progress-bar.dragging {
    height: 8px;
}

.progress-bar.dragging .progress-fill::after {
    opacity: 1;
}

.progress-buffered {
    position: absolute;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    width: 0%;
}

.video-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-feature-settings: "liga" off;
    font-feature-settings: "liga" off;
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.8);
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.8);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.video-time {
    color: white;
    font-size: 0.9rem;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
    padding: 8px 0; /* Increase touch target */
    margin: -8px 0; /* Compensate for padding */
}

/* Custom slider thumb for better iPhone compatibility */
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8B5CF6;
    border: 2px solid white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.4);
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover,
.volume-slider::-webkit-slider-thumb:active {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(139, 92, 246, 0.6);
}

/* Firefox */
.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8B5CF6;
    border: 2px solid white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.4);
    transition: all 0.2s ease;
    -moz-appearance: none;
    appearance: none;
}

.volume-slider::-moz-range-thumb:hover,
.volume-slider::-moz-range-thumb:active {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(139, 92, 246, 0.6);
}

/* Hide volume slider on tablet and mobile - keep only volume button for toggle */
@media (max-width: 1024px) {
    .volume-slider {
        display: none;
    }
}

/* Hide unwanted browser video controls - only for videos without explicit controls */
video:not([controls])::-webkit-media-controls-picture-in-picture-button {
    display: none !important;
}

video:not([controls])::-webkit-media-controls-cast-button {
    display: none !important;
}

video:not([controls])::-webkit-media-controls-overlay-enclosure {
    display: none !important;
}

video:not([controls])::-webkit-media-controls-start-playback-button {
    display: none !important;
}

video:not([controls])::-moz-media-controls-overlay {
    display: none !important;
}

/* Hide unwanted buttons from ALL videos (including fullscreen) */
video::-webkit-media-controls-picture-in-picture-button {
    display: none !important;
}

video::-webkit-media-controls-cast-button {
    display: none !important;
}

/* Hide browser controls only for hero videos when NOT in fullscreen */
#hero-video:not(:fullscreen)::-webkit-media-controls {
    visibility: hidden;
}

#hero-video:not(:fullscreen)::-webkit-media-controls-enclosure {
    visibility: hidden;
}

#hero-video:not(:-webkit-full-screen)::-webkit-media-controls {
    visibility: hidden;
}

#hero-video:not(:-webkit-full-screen)::-webkit-media-controls-enclosure {
    visibility: hidden;
}

#hero-video:not(:-moz-full-screen)::-webkit-media-controls {
    visibility: hidden;
}

#hero-video:not(:-moz-full-screen)::-webkit-media-controls-enclosure {
    visibility: hidden;
}

/* Ensure ALL video controls are visible in fullscreen mode */
video:fullscreen::-webkit-media-controls {
    visibility: visible !important;
}

video:fullscreen::-webkit-media-controls-enclosure {
    visibility: visible !important;
}

video:-webkit-full-screen::-webkit-media-controls {
    visibility: visible !important;
}

video:-webkit-full-screen::-webkit-media-controls-enclosure {
    visibility: visible !important;
}

video:-moz-full-screen::-webkit-media-controls {
    visibility: visible !important;
}

video:-moz-full-screen::-webkit-media-controls-enclosure {
    visibility: visible !important;
}

/* Ensure fullscreen overlay video controls are always visible */
#fullscreen-video::-webkit-media-controls {
    visibility: visible !important;
}

#fullscreen-video::-webkit-media-controls-enclosure {
    visibility: visible !important;
}

/* Custom Play Button */
.custom-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #8B5CF6;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-feature-settings: "liga" off;
    font-feature-settings: "liga" off;
    -webkit-text-stroke: 0.5px rgba(139, 92, 246, 0.3);
    text-shadow: 0 0 1px rgba(139, 92, 246, 0.8), 0 1px 2px rgba(139, 92, 246, 0.6);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.custom-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.custom-play-button.playing {
    opacity: 0;
    pointer-events: none;
}



/* Fullscreen Button */
.fullscreen-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-left: auto;
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Fullscreen Video Overlay */
.video-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
    padding: 4rem 2rem;
    box-sizing: border-box;
}

.video-fullscreen-overlay.active {
    display: flex;
}

.fullscreen-video-container {
    position: relative;
    width: 80vw;
    max-width: 800px;
    max-height: calc(100vh - 8rem);
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: #000;
}

.fullscreen-video-container video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
    position: relative;
    z-index: 1;
}

/* Fix video zoom in native fullscreen */
video:fullscreen {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #000 !important;
}

video:-webkit-full-screen {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #000 !important;
}

video:-moz-full-screen {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #000 !important;
}

video:-ms-fullscreen {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #000 !important;
}

/* Ensure video controls work properly in fullscreen */
.video-fullscreen-overlay.active video {
    cursor: default !important;
}

.video-fullscreen-overlay.active {
    cursor: default;
}

.video-fullscreen-overlay.active video[controls] {
    outline: none;
}

.fullscreen-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    font-weight: 300;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    transition: all 0.2s ease;
    backdrop-filter: blur(3px);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
}

.fullscreen-close-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 1);
    transform: scale(1.02);
}

.fullscreen-close-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Floating Scroll Arrow */
.scroll-arrow-container {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999 !important; /* Below header (1000) but above all content */
}

.scroll-arrow-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #8B5CF6;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
    animation: float 3s ease-in-out infinite;
}

.scroll-arrow-btn:hover {
    background: #8B5CF6;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
}

.scroll-arrow-btn:hover .scroll-text {
    color: white;
}

.scroll-arrow-btn:hover .arrow-down {
    color: white;
}

.scroll-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #8B5CF6;
    font-family: 'DM Sans', sans-serif;
    transition: color 0.3s ease;
    margin: 0;
    white-space: nowrap;
}

.arrow-down {
    font-size: 1.2rem;
    font-weight: 900;
    color: #8B5CF6;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
    transform: scale(1.3, 1.1);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1.3, 1.1) translateY(0);
    }
    50% {
        transform: scale(1.5, 1.3) translateY(8px);
    }
}

/* Learning Method Section */
.learning-method {
    padding: 6rem 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4C1D95;
    text-align: center;
    margin-bottom: 1rem;
    font-family: 'DM Sans', sans-serif;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6B7280;
    text-align: center;
    margin-bottom: 4rem;
    font-family: 'DM Sans', sans-serif;
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.learning-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.learning-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.learning-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4C1D95;
    margin-bottom: 1rem;
    font-family: 'DM Sans', sans-serif;
}

.learning-card p {
    color: #6B7280;
    line-height: 1.6;
    font-family: 'DM Sans', sans-serif;
}

/* Courses Section */
.courses-section {
    padding: 6rem 0;
    background: #f5f5f7;
}

.courses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.btn-outline {
    background: transparent;
    color: #8B5CF6;
    padding: 0.8rem 2rem;
    border: 2px solid #8B5CF6;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #8B5CF6;
    color: white;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 400px;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.course-card.purple {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
}

.course-card.lightblue {
    background: linear-gradient(135deg, #60A5FA, #93C5FD);
}

.course-card.pink {
    background: linear-gradient(135deg, #F472B6, #FB7185);
}

.course-card.green {
    background: linear-gradient(135deg, #34D399, #6EE7B7);
}

.course-content {
    padding: 2rem;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.course-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    align-self: flex-start;
    margin-bottom: 1rem;
}

.course-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'DM Sans', sans-serif;
}

.course-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.course-price {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.old-price {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 1.2rem;
}

.new-price {
    color: white;
}

.course-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover .course-hover {
    opacity: 1;
}

.course-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.course-overlay {
    text-align: center;
    color: white;
}

.course-btn {
    background: white;
    color: #4C1D95;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.course-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Media Mentions */
.media-mentions {
    padding: 4rem 0;
    background: white;
    overflow: hidden;
}

.media-scroll {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.media-track {
    display: inline-flex;
    animation: scroll 30s linear infinite;
    gap: 3rem;
}

.media-item {
    font-size: 1.5rem;
    font-weight: 600;
    color: #9CA3AF;
    padding: 1rem 2rem;
    border-radius: 15px;
    background: #f9fafb;
    white-space: nowrap;
    border: 1px solid #e5e7eb;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background: #f5f5f7;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.15);
}

.testimonial-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem auto;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-emoji {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    text-align: center;
}

.testimonial-content p {
    font-style: italic;
    color: #6B7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial-content strong {
    color: #4C1D95;
    font-weight: 600;
}

.testimonials-cta {
    text-align: center;
    margin-top: 3rem;
}

.btn-primary {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Newsletter Section */
.newsletter {
    padding: 6rem 0;
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'DM Sans', sans-serif;
}

.newsletter p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
    padding: 1rem;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    outline: none;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
}

.form-checkbox label {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
}

.newsletter-btn {
    background: #2E2E2E;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
}

.newsletter-disclaimer {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

/* Journey Section */
.journey-section {
    padding: 8rem 0;
    background: white;
    position: relative;
    z-index: 1 !important; /* Lower z-index to ensure scroll button stays on top */
}

.journey-header {
    text-align: center;
    margin-bottom: 6rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2; /* Lower z-index to ensure scroll button stays on top */
}

.journey-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-family: 'DM Sans', sans-serif;
    color: #374151;
    line-height: 1.1;
    transition: font-size 0.3s ease;
}

.brand-name {
    color: #8B5CF6;
}

.journey-subtitle {
    font-size: 1.2rem;
    color: #6B7280;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
}

.journey-grid {
    display: grid;
    gap: 8rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2; /* Lower z-index to ensure scroll button stays on top */
}

.journey-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.journey-item.explanations {
    grid-template-columns: 1fr 1fr;
    text-align: left;
}

.journey-item.explanations .journey-content {
    text-align: left;
    padding-left: 0;
}

.journey-item.explanations .journey-content h3 {
    white-space: nowrap;
    min-width: max-content;
}

.journey-item.explanations .journey-content p {
    margin-right: auto;
}

.journey-item.conversations .journey-content p,
.journey-item.pronunciation .journey-content p,
.journey-item.explanations .journey-content p {
    margin-right: auto;
}

.journey-item.explanations .journey-header-item {
    justify-content: flex-start;
}

.journey-item.explanations .journey-content h3 {
    text-align: left;
}

.journey-item.explanations .journey-btn {
    align-self: flex-start;
}

.journey-item.explanations .journey-fox {
    justify-content: flex-start;
    padding-left: 0;
}

.journey-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.journey-header-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 0rem;
}

.journey-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.journey-content h3 {
    font-size: 3.4rem;
    font-weight: 900;
    color: #8B5CF6;
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    white-space: nowrap;
    transition: font-size 0.3s ease;
}

.journey-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #6B7280;
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    max-width: 380px;
    text-align: inherit;
}

.journey-btn {
    background: #8B5CF6;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    align-self: flex-start;
    font-family: 'DM Sans', sans-serif;
    border: 2px solid #8B5CF6;
}

.journey-btn:hover {
    background: white;
    color: #8B5CF6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.journey-fox {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fox-illustration {
    width: 438px;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.fox-illustration:hover {
    transform: translateY(-5px) scale(1.05);
}

/* Journey Call to Action */
.journey-cta {
    text-align: center;
    margin-top: 6rem;
    margin-bottom: 6rem;
    padding: 4rem 2rem;
}

.journey-cta-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #8B5CF6;
    margin-bottom: 2.5rem;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.1;
}

.journey-cta-btn {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    color: white;
    padding: 1.5rem 4rem;
    border-radius: 35px;
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
    border: none;
}

.journey-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #7C3AED, #8B5CF6);
}

/* Desktop only: Add extra spacing below the CTA title for better balance */
@media (min-width: 1025px) {
    .journey-cta-btn {
        margin-top: 2rem;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #4C1D95, #6B46C1, #8B5CF6);
    color: white;
    padding: 5rem 0 3rem 0 !important;
    margin-top: 2rem; /* Changed from negative to positive to prevent overlap */
    margin-bottom: 0 !important;
    position: relative;
    z-index: 2;
    width: 100%;
    display: block;
    text-align: center;
}

/* Primary curve at the top of the footer */
.footer::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, #4C1D95, #6B46C1);
    border-top-left-radius: 50% 100%;
    border-top-right-radius: 50% 100%;
    z-index: -1;
}

/* Secondary smaller curve for added interest */
.footer::after {
    content: '';
    position: absolute;
    top: -70px;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(135deg, #6B46C1, #8B5CF6);
    border-top-left-radius: 60% 100%;
    border-top-right-radius: 40% 100%;
    z-index: -2;
    opacity: 0.7;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #E8D5FF;
    font-family: 'DM Sans', sans-serif;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-logo a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-logo a:hover {
    opacity: 0.8;
}

.footer-combined-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-section p {
    color: #C4B5FD;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.footer-login-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: center;
}

.footer-section ul li a {
    color: #C4B5FD;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

/* 🎥 YouTube Button Styling - Modern Social Media Style with Mobile Responsive */
.youtube-btn {
    background: linear-gradient(45deg, #FF6B35, #FF8E53) !important;
    color: #ffffff !important;
    padding: 10px 18px !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 2px solid transparent !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15) !important;
    width: 140px !important;
    text-align: center !important;
}

/* Mobile responsive sizing */
@media (max-width: 768px) {
    .youtube-btn {
        width: 160px !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        gap: 10px !important;
    }

    .yt-icon {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
    }
}

@media (max-width: 480px) {
    .youtube-btn {
        width: 180px !important;
        padding: 14px 22px !important;
        font-size: 1.1rem !important;
        gap: 12px !important;
    }

    .yt-icon {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        min-height: 22px !important;
    }
}

.youtube-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent) !important;
    transition: all 0.5s ease !important;
    z-index: 1 !important;
}

.youtube-btn:hover::before {
    left: 100% !important;
}

.youtube-btn:hover {
    background: linear-gradient(45deg, #ffffff, #f8f9fa) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4) !important;
    border-color: #ffffff !important;
    color: #1a1a1a !important;
}

.youtube-btn:active {
    transform: translateY(-1px) scale(1.01) !important;
}

/* YouTube Icon Styling - Robust Background Swap */
.yt-icon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    background-image: url('./yt-icon-button.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    transition: background-image 0.3s ease !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    /* Ensure visibility */
    opacity: 1 !important;
    vertical-align: middle !important;
}

.youtube-btn:hover .yt-icon {
    background-image: url('./yt-icon-button-dark.png') !important;
}

/* 🎬 Video Loading Animation - Smooth Defocus Effect */
.video-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.15) 0%,
        rgba(59, 130, 246, 0.15) 50%,
        rgba(139, 92, 246, 0.15) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    overflow: hidden;
}

.video-loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Enhanced video loading states */
.video-container video {
    background: transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container video[data-loaded="true"] {
    opacity: 1;
}

/* Loading Animation Spinner */
.loading-spinner {
    width: 100px;
    height: 100px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid rgba(139, 92, 246, 0.8);
    border-radius: 50%;
    animation: video-loading-spin 1.2s linear infinite;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
}

@keyframes video-loading-spin {
    0% { 
        transform: rotate(0deg);
        border-top-color: rgba(139, 92, 246, 0.8);
    }
    33% { 
        border-top-color: rgba(59, 130, 246, 0.8);
    }
    66% { 
        border-top-color: rgba(139, 92, 246, 0.8);
    }
    100% { 
        transform: rotate(360deg);
        border-top-color: rgba(139, 92, 246, 0.8);
    }
}

/* Pulsing Animation for Added Effect */
.loading-spinner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: video-loading-pulse 1.5s ease-in-out infinite;
}

@keyframes video-loading-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .loading-spinner {
        width: 90px;
        height: 90px;
        border-width: 3.5px;
    }
    
    .loading-spinner::before {
        width: 55px;
        height: 55px;
    }
}

.footer-legal {
    border-top: 1px solid rgba(196, 181, 253, 0.3);
    padding-top: 2rem;
    text-align: center;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: #C4B5FD;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: white;
}

/* Artistic separation - elliptical gradient layer */
.journey-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #f5f5f7 0%, #faf9fb 50%, rgba(255, 255, 255, 0.9) 100%);
    clip-path: ellipse(100% 100% at 50% 0%);
    z-index: -100 !important; /* Far below scroll button to prevent blocking */
}

/* Artistic separation - wavy animated layer */
.journey-section::after {
    content: '';
    position: absolute;
    top: -120px;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 100%);
    clip-path: polygon(0 40%, 25% 60%, 50% 40%, 75% 60%, 100% 40%, 100% 100%, 0% 100%);
    z-index: -100 !important; /* Far below scroll button to prevent blocking */
    animation: waveFlow 8s ease-in-out infinite;
}

/* Wave Flow Animation for Artistic Separation */
@keyframes waveFlow {
    0%, 100% {
        transform: translateX(0) scaleY(1);
        opacity: 0.7;
    }
    50% {
        transform: translateX(-20px) scaleY(1.1);
        opacity: 1;
    }
}

/* Smooth Desktop to Tablet Transition */
@media (max-width: 1300px) {
    .hero-container {
        max-width: 1300px;
        gap: 5rem;
        transform: translateX(2rem);
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .fox-mascot {
        width: 500px;
    }
    
    .video-container {
        width: 380px;
        height: 570px;
        transform: rotate(5deg) translateX(3rem);
    }
    
    .hero-cta-btn {
        padding: 1.1rem 2.8rem;
        font-size: 1.25rem;
    }
    
    .journey-title {
        font-size: 3.8rem;
    }
    
    .journey-content h3 {
        font-size: 3.2rem;
    }
}

@media (max-width: 1150px) {
    .hero-container {
        max-width: 1150px;
        gap: 4rem;
        transform: translateX(1.5rem);
    }
    
    .hero-title {
        font-size: 4.2rem;
    }
    
    .fox-mascot {
        width: 450px;
    }
    
    .video-container {
        width: 350px;
        height: 520px;
        transform: rotate(4deg) translateX(2.5rem);
    }
    
    .hero-cta-btn {
        padding: 1.05rem 2.6rem;
        font-size: 1.2rem;
    }
    
    .journey-title {
        font-size: 3.6rem;
    }
    
    .journey-content h3 {
        font-size: 3rem;
    }
    
    .fox-illustration {
        width: 400px;
    }
}

@media (max-width: 1080px) {
    .hero-container {
        max-width: 1000px;
        gap: 3.5rem;
        transform: translateX(1rem);
        grid-template-columns: 1fr 1.2fr;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .fox-mascot {
        width: 400px;
    }
    
    .video-container {
        width: 320px;
        height: 480px;
        transform: rotate(4deg) translateX(2rem);
    }
    
    .hero-cta-btn {
        padding: 1rem 2.4rem;
        font-size: 1.15rem;
    }
    
    .journey-title {
        font-size: 3.4rem;
    }
    
    .journey-content h3 {
        font-size: 2.8rem;
    }
    
    .fox-illustration {
        width: 350px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Show hamburger menu on tablet */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Hide Learn dropdown, Test de nivel, and login button on tablet */
    .nav-dropdown,
    .nav-auth .nav-link,
    .nav-login-btn,
    .nav-test-btn {
        display: none !important;
    }
    
    /* Mobile menu shows on tablet */
    .mobile-menu {
        display: block;
    }

    .hero {
        min-height: 100vh;
        padding: 6rem 0 8rem 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        min-height: 85vh;
        transform: translateX(0);
        padding: 2rem;
        max-width: 900px;
        margin: 0 auto;
    }
    
    .hero-content {
        transform: translateX(0) translateY(0);
        gap: 1.5rem;
        order: 1;
        text-align: center;
    }
    
    .hero-media {
        flex-direction: row;
        gap: 2rem;
        justify-content: center;
        align-items: center;
        order: 2;
        transform: translateY(-1rem);
    }
    
    .hero-video {
        transform: translateX(0);
    }
    
    .video-container {
        width: 360px;
        height: 540px;
        transform: rotate(3deg);
    }
    
    .hero-fox {
        display: none;
    }
    
    .hero-title {
        font-size: 3.8rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-cta-btn {
        padding: 1rem 2.5rem;
        font-size: 1.2rem;
        align-self: center;
    }
    
    .rotating-word {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 180px;
        text-align: center;
    }
    
    .journey-section {
        padding: 6rem 0 5rem 0;
        margin-top: 0;
    }
    
    .journey-header {
        margin-bottom: 3rem;
    }
    
    .journey-title {
        font-size: 3rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .journey-subtitle {
        font-size: 1.2rem;
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .journey-grid {
        gap: 4rem;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .journey-item {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .journey-item .journey-content {
        order: 1;
        text-align: center;
    }
    
    .journey-item .journey-fox {
        order: 2;
        justify-content: center;
    }
    
    .journey-header-item {
        justify-content: center;
    }
    
    .journey-item.explanations {
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    
    .journey-item.explanations .journey-content {
        text-align: center;
        padding-left: 0;
        order: 1;
    }
    
    .journey-item.explanations .journey-header-item {
        justify-content: center;
    }
    
    .journey-item.explanations .journey-content h3 {
        text-align: center;
        white-space: normal;
    }
    
    .journey-item.explanations .journey-btn {
        align-self: center;
    }
    
    .journey-item.explanations .journey-fox {
        justify-content: center;
        padding-left: 0;
        order: 2;
    }
    
    .journey-content {
        text-align: center;
    }
    
    .journey-content h3 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        color: #8B5CF6;
        white-space: normal;
        text-align: center;
    }
    
    .journey-item .journey-content h3 {
        text-align: center;
    }
    
    .fox-illustration {
        width: 250px;
        height: auto;
        margin: 0 auto;
    }
    
    .journey-content p {
        max-width: 500px;
        margin: 0 auto;
        font-size: 1rem;
        line-height: 1.6;
        color: #6B7280;
        text-align: center;
    }
    
    .journey-cta {
        margin-top: 4rem;
        padding: 3rem 2rem;
        text-align: center;
    }
    
    .journey-cta-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .journey-cta-btn {
        padding: 1rem 2.5rem;
        font-size: 1.2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
        max-width: 600px;
        margin: 0 auto 3rem auto;
    }
    
    .journey-section::before {
        top: -100px;
        height: 150px;
    }
    
    .journey-section::after {
        top: -120px;
        height: 170px;
    }
    
    .scroll-arrow-container {
        bottom: 1rem;
        z-index: 999 !important; /* Below header (1000) but above all content */
    }
    
    .scroll-arrow-btn {
        padding: 0.6rem 1.5rem;
    }
    
    .scroll-text {
        font-size: 1rem;
    }
    
    .arrow-down {
        font-size: 1.1rem;
    }
    
    /* Optimize video controls for tablet */
    .video-controls {
        padding: 1.5rem 0.8rem 0.8rem;
    }
    
    .progress-bar {
        height: 8px;
        margin-bottom: 0.8rem;
    }
    
    .progress-bar:hover {
        height: 10px;
    }
    
    .progress-fill::after {
        width: 14px;
        height: 14px;
        right: -7px;
    }
    
    .video-buttons {
        gap: 0.8rem;
    }
    
    .control-btn {
        font-size: 1.4rem;
        padding: 0.6rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    .volume-control {
        gap: 0.6rem;
    }
    
    .volume-slider {
        width: 120px;
        height: 6px;
    }
    
    .video-time {
        display: none;
    }
    
    .fullscreen-btn {
        display: block;
        font-size: 1.4rem;
        padding: 0.6rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Fix scroll arrow overlap with video at 900px width */
    .scroll-arrow-container {
        bottom: 1rem !important; /* Position in hero section but visible */
        position: absolute !important; /* Relative to hero section */
        left: 50% !important; /* Center horizontally */
        transform: translateX(-50%) !important; /* Perfect centering */
        z-index: 999 !important; /* Below header (1000) but above all content */
    }
}

/* Intermediate tablet - smooth transition */
@media (max-width: 900px) {
    /* Hero container dimensions removed - keeping consistent across all screen sizes */
    
    .video-container {
        width: 253px;
        height: 380px;
    }
    
    /* Optimize video controls for intermediate tablet */
    .video-controls {
        padding: 1.2rem 0.6rem 0.6rem;
    }
    
    .progress-bar {
        height: 7px;
        margin-bottom: 0.7rem;
    }
    
    .progress-bar:hover {
        height: 9px;
    }
    
    .progress-fill::after {
        width: 12px;
        height: 12px;
        right: -6px;
    }
    
    .video-buttons {
        gap: 0.6rem;
    }
    
    .control-btn {
        font-size: 1.3rem;
        padding: 0.5rem;
        min-width: 40px;
        min-height: 40px;
    }
    
    .volume-control {
        gap: 0.5rem;
    }
    
    .volume-slider {
        width: 110px;
        height: 5px;
    }
    
    .video-time {
        display: none;
    }
    
    .fullscreen-btn {
        display: block;
        font-size: 1.3rem;
        padding: 0.5rem;
        min-width: 40px;
        min-height: 40px;
    }
}

/* Additional comprehensive fix for scroll arrow at 900px width range */
@media (max-width: 950px) and (min-width: 850px) {
    .scroll-arrow-container {
        bottom: 1rem !important; /* Position in hero section but visible */
        position: absolute !important; /* Relative to hero section */
        left: 50% !important; /* Center horizontally */
        transform: translateX(-50%) !important; /* Perfect centering */
        z-index: 999 !important; /* Below header (1000) but above all content */
    }
}

@media (max-width: 768px) {
    /* Show hamburger menu on mobile */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Hide Learn dropdown, Test de nivel, and login button on mobile */
    .nav-dropdown,
    .nav-auth .nav-link,
    .nav-login-btn,
    .nav-test-btn {
        display: none !important;
    }
    
    /* Mobile menu shows on mobile */
    .mobile-menu {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-mobile-toggle {
        display: flex;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem;
        text-align: left;
        width: 100%;
        justify-content: flex-start;
        color: #4C1D95;
        font-weight: 600;
        text-decoration: none;
    }
    
    .nav-link:hover {
        text-decoration: none;
        color: #8B5CF6;
    }
    
    .nav-dropdown {
        width: 100%;
        text-align: left;
    }
    
    .nav-dropdown .nav-link {
        text-decoration: none;
    }
    
    .nav-dropdown .nav-link:hover {
        text-decoration: none;
    }
    
    .nav-dropdown:hover .dropdown-content:not(.mobile-active) {
        opacity: 0;
        visibility: hidden;
        transform: none;
        max-height: 0;
        padding: 0;
        margin-top: 0;
    }
    
    .dropdown-content {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        background: #f9fafb;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        border-radius: 15px;
        padding: 0;
    }
    
    .dropdown-content.mobile-active {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 300px !important;
        margin-top: 1rem !important;
        padding: 1.5rem !important;
    }
    
    .hero {
        padding: 6rem 0 8rem 0;
        margin-top: 0;
    }
    
    .hero-container {
        transform: translateX(0);
        padding: 0 1.5rem;
        gap: 2rem;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-content {
        transform: translateX(0) translateY(0);
        gap: 1.5rem;
        order: 1;
        text-align: center;
    }
    
    .hero-media {
        flex-direction: column;
        gap: 2rem;
        order: 2;
    }
    
    .hero-video {
        transform: translateX(0) translateY(1rem);
    }
    
    .video-container {
        width: 380px;
        height: 570px;
        transform: rotate(2deg);
        margin: 0 auto;
    }
    
    .hero-fox {
        margin-left: 0;
        transform: translateX(0);
    }
    
    .fox-mascot {
        width: 320px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 3.2rem;
        line-height: 1.1;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        max-width: 400px;
        margin: 0 auto;
        line-height: 1.4;
    }
    
    .hero-cta-btn {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
        align-self: center;
    }
    
    .rotating-word {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 140px;
        text-align: center;
    }
    
    .journey-section {
        padding: 4rem 0;
    }
    
    .journey-header {
        margin-bottom: 2.5rem;
    }
    
    .journey-title {
        font-size: 2.8rem; /* Increased from 2.4rem for better mobile readability */
        margin-bottom: 1rem;
        text-align: center;
        line-height: 1.2;
    }
    
    .journey-subtitle {
        font-size: 1.1rem; /* Increased from 1rem for better mobile readability */
        text-align: center;
        max-width: 500px;
        margin: 0 auto;
        line-height: 1.5;
    }
    
    .journey-grid {
        gap: 3rem;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .journey-item {
        gap: 1.5rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .journey-header-item {
        justify-content: center;
    }
    
    .journey-item.explanations {
        display: flex;
        flex-direction: column;
    }
    
    .journey-item.explanations .journey-content {
        text-align: center;
        padding-left: 0;
        order: 1;
    }
    
    .journey-item.explanations .journey-fox {
        justify-content: center;
        padding-left: 0;
        order: 2;
    }
    
    .journey-content h3 {
        font-size: 1.8rem; /* Increased from 1.6rem for better mobile readability */
        margin-bottom: 1rem;
        color: #8B5CF6;
        white-space: normal;
        line-height: 1.3;
        text-align: center;
    }
    
    .journey-item .journey-content h3 {
        text-align: center;
    }
    
    .journey-content p {
        max-width: 300px;
        margin: 0 auto;
        font-size: 1rem; /* Increased from 0.9rem for better mobile readability */
        line-height: 1.5;
        color: #6B7280;
    }
    
    .journey-cta {
        margin-top: 3rem;
        padding: 2.5rem 1.5rem;
        text-align: center;
    }
    
    .journey-cta-title {
        font-size: 2.2rem; /* Increased from 2rem for better mobile readability */
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }
    
    .journey-cta-btn {
        padding: 1rem 2rem;
        font-size: 1.2rem; /* Increased from 1.1rem for better mobile readability */
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        max-width: 500px;
        margin: 0 auto 3rem auto;
        gap: 2rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .journey-section::before {
        top: -60px;
        height: 100px;
    }
    
    .journey-section::after {
        top: -80px;
        height: 120px;
    }
    
    .scroll-arrow-container {
        bottom: 1rem;
        position: absolute;
        z-index: 999 !important; /* Below header (1000) but above all content */
    }
    
    .scroll-arrow-btn {
        padding: 0.5rem 1.2rem;
    }
    
    .scroll-text {
        font-size: 0.9rem;
    }
    
    .arrow-down {
        font-size: 1rem;
    }
    
    /* Optimize video controls for mobile */
    .video-controls {
        padding: 1rem 0.5rem 0.5rem;
    }
    
    .progress-bar {
        height: 8px;
        margin-bottom: 0.6rem;
    }
    
    .progress-bar:hover {
        height: 10px;
    }
    
    .progress-fill::after {
        width: 14px;
        height: 14px;
        right: -7px;
    }
    
    .video-buttons {
        gap: 0.5rem;
    }
    
    .control-btn {
        font-size: 1.3rem;
        padding: 0.6rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    .volume-control {
        gap: 0.4rem;
    }
    
    .volume-slider {
        width: 100px;
        height: 6px;
    }
    
    .video-time {
        font-size: 0.7rem;
        margin-left: 0.3rem;
    }
}

@media (max-width: 480px) {
    /* Show hamburger menu on small mobile */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Hide Learn dropdown and Test de nivel on small mobile */
    .nav-dropdown,
    .nav-auth .nav-link,
    .nav-test-btn {
        display: none !important;
    }
    
    /* Mobile menu shows on small mobile */
    .mobile-menu {
        display: block;
    }

    .hero {
        padding: 6rem 0 8rem 0;
    }
}

/* Specific fix for tablets at different heights */
@media (max-width: 1024px) and (min-height: 700px) {
    .hero {
        padding-top: 8rem !important; /* Adequate spacing for tablets with sufficient height */
    }
}

@media (max-width: 1024px) and (max-height: 699px) {
    .hero {
        padding-top: 9rem !important; /* Extra spacing for tablets with short height */
    }
    
    .hero-container {
        transform: translateX(0);
        padding: 0 1rem;
        gap: 1.5rem;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .hero-content {
        transform: translateX(0) translateY(0);
        gap: 1.2rem;
        order: 1;
        text-align: center;
    }
    
    .hero-media {
        flex-direction: column;
        gap: 1.5rem;
        order: 2;
    }
    
    .hero-video {
        transform: translateX(0) translateY(1rem);
    }
    
    .video-container {
        width: 300px;
        height: 450px;
        transform: rotate(2deg);
        margin: 0 auto;
    }
    
    .hero-fox {
        margin-left: 0;
        transform: translateX(0);
    }
    
    .fox-mascot {
        width: 260px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 3.1rem;
        line-height: 1.1;
        margin-bottom: 0.8rem;
        text-align: center !important;
        width: 100% !important;
        display: block !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        max-width: 400px;
        margin: 0 auto;
        line-height: 1.4;
    }
    
    .hero-cta-btn {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
        align-self: center;
    }
    
    .rotating-word {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 140px;
        text-align: center;
    }
    
    .journey-section {
        padding: 3rem 0;
    }
    
    .journey-header {
        margin-bottom: 2rem;
    }
    
    .journey-title {
        font-size: 2.6rem; /* Increased from 2.4rem for better small mobile readability */
        margin-bottom: 1rem;
        text-align: center;
        line-height: 1.2;
    }
    
    .journey-subtitle {
        font-size: 1rem; /* Increased from 0.9rem for better small mobile readability */
        text-align: center;
        max-width: 400px;
        margin: 0 auto;
        line-height: 1.4;
    }
    
    .journey-grid {
        gap: 2.5rem;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .journey-item {
        gap: 1rem;
        text-align: center;
        padding: 0 0.5rem;
    }
    
    .journey-header-item {
        justify-content: center;
    }
    
    .journey-content h3 {
        font-size: 1.7rem; /* Increased from 1.6rem for better small mobile readability */
        margin-bottom: 1rem;
        color: #8B5CF6;
        white-space: normal;
        line-height: 1.3;
        text-align: center;
    }
    
    .journey-item .journey-content h3 {
        text-align: center;
    }
    
    .journey-item.explanations {
        display: flex;
        flex-direction: column;
    }
    
    .journey-item.explanations .journey-content {
        text-align: center;
        padding-left: 0;
    }
    
    .journey-item.explanations .journey-header-item {
        justify-content: center;
    }
    
    .journey-item.explanations .journey-content h3 {
        text-align: center;
        white-space: normal;
    }
    
    .journey-item.explanations .journey-btn {
        align-self: center;
    }
    
    .journey-item.explanations .journey-fox {
        justify-content: center;
        padding-left: 0;
    }
    
    .fox-illustration {
        width: 220px;
        height: auto;
        margin: 0 auto;
    }
    
    .journey-content p {
        max-width: 300px;
        margin: 0 auto;
        font-size: 1rem; /* Increased from 0.9rem for better small mobile readability */
        line-height: 1.5;
        color: #6B7280;
    }
    
    .journey-cta {
        margin-top: 2.5rem;
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .journey-cta-title {
        font-size: 1.9rem; /* Increased from 1.7rem for better small mobile readability */
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }
    
    .journey-cta-btn {
        padding: 0.9rem 1.8rem;
        font-size: 1.1rem; /* Increased from 1rem for better small mobile readability */
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        max-width: 400px;
        margin: 0 auto 3rem auto;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .journey-section::before {
        top: -40px;
        height: 80px;
    }
    
    .journey-section::after {
        top: -60px;
        height: 100px;
    }
    
    .scroll-arrow-container {
        bottom: 1rem;
        position: absolute;
        z-index: 999 !important; /* Below header (1000) but above all content */
    }
    
    .scroll-arrow-btn {
        padding: 0.4rem 1rem;
    }
    
    .scroll-text {
        font-size: 0.8rem;
    }
    
    .arrow-down {
        font-size: 0.9rem;
    }
    
    /* Optimize video controls for small mobile */
    .video-controls {
        padding: 0.8rem 0.4rem 0.4rem;
    }
    
    .progress-bar {
        height: 8px;
        margin-bottom: 0.5rem;
    }
    
    .progress-bar:hover {
        height: 10px;
    }
    
    .progress-fill::after {
        width: 12px;
        height: 12px;
        right: -6px;
    }
    
    .video-buttons {
        gap: 0.4rem;
    }
    
    .control-btn {
        font-size: 1.2rem;
        padding: 0.5rem;
        min-width: 40px;
        min-height: 40px;
    }
    
    .volume-control {
        gap: 0.3rem;
    }
    
    .volume-slider {
        width: 90px;
        height: 5px;
    }
    
    .video-time {
        font-size: 0.65rem;
        margin-left: 0.2rem;
    }
}

/* Discount Style Button */
.hero-cta-btn.discount-style,
.journey-cta-btn.discount-style {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53) !important;
    color: white;
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    padding: 1rem 2rem;
    transform: rotate(0deg);
    animation: floatButton 3s ease-in-out infinite;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    border: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-cta-btn.discount-style:hover,
.journey-cta-btn.discount-style:hover {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53) !important;
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
}

.btn-emoji {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

@keyframes floatButton {
    0%, 100% {
        transform: rotate(0deg) translateY(0);
    }
    50% {
        transform: rotate(0deg) translateY(-5px);
    }
}

/* Floating decorative shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: -2s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: -4s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: -1s;
}

.shape-4 {
    width: 70px;
    height: 70px;
    top: 15%;
    right: 25%;
    animation-delay: -3s;
}

.shape-5 {
    width: 90px;
    height: 90px;
    top: 75%;
    left: 60%;
    animation-delay: -5s;
}

.shape-6 {
    width: 50px;
    height: 50px;
    top: 40%;
    left: 5%;
    animation-delay: -1.5s;
}

.shape-7 {
    width: 65px;
    height: 65px;
    top: 30%;
    right: 8%;
    animation-delay: -2.5s;
}

.shape-8 {
    width: 85px;
    height: 85px;
    bottom: 35%;
    right: 30%;
    animation-delay: -4.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* Make floating shapes responsive on mobile */
@media (max-width: 768px) {
    .floating-shape {
        opacity: 0.05; /* More subtle on mobile */
    }
    
    .shape-1 { width: 60px; height: 60px; top: 15%; left: 8%; }
    .shape-2 { width: 40px; height: 40px; top: 65%; right: 12%; }
    .shape-3 { width: 50px; height: 50px; bottom: 25%; left: 15%; }
    .shape-4 { width: 45px; height: 45px; top: 12%; right: 20%; }
    .shape-5 { width: 55px; height: 55px; top: 78%; left: 55%; }
    .shape-6 { width: 35px; height: 35px; top: 45%; left: 3%; }
    .shape-7 { width: 42px; height: 42px; top: 35%; right: 6%; }
    .shape-8 { width: 52px; height: 52px; bottom: 40%; right: 25%; }
}

/* Ensure floating shapes are visible in small mobile view */
@media (max-width: 480px) {
    .floating-shape {
        position: fixed; /* Fixed positioning for better visibility */
        opacity: 0.06; /* Slightly more visible on small mobile */
        z-index: 1; /* Behind content but visible */
    }
    
    /* Reposition circles for small mobile layout */
    .shape-1 { width: 50px; height: 50px; top: 20%; left: 5%; }
    .shape-2 { width: 35px; height: 35px; top: 70%; right: 8%; }
    .shape-3 { width: 45px; height: 45px; bottom: 30%; left: 10%; }
    .shape-4 { width: 40px; height: 40px; top: 10%; right: 15%; }
    .shape-5 { width: 48px; height: 48px; top: 85%; left: 50%; }
    .shape-6 { width: 32px; height: 32px; top: 40%; left: 2%; }
    .shape-7 { width: 38px; height: 38px; top: 25%; right: 4%; }
    .shape-8 { width: 46px; height: 46px; bottom: 45%; right: 20%; }
}