/* Base Container */
body {
    background: 
        radial-gradient(circle at 1px 1px, rgba(14, 165, 233, 0.2) 2px, transparent 0) 0 0 / 40px 40px,
        radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.25) 0%, transparent 70%) center/250% 250%,
        linear-gradient(to bottom right, #f8f9ff, #ffffff);
    min-height: 100vh;
    animation: 
        moveDots 15s linear infinite,
        glowLight 8s ease-in-out infinite alternate,
        flashBg 15s ease-in-out 3;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    position: relative;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    mix-blend-mode: overlay;
    animation: flashOverlay 15s ease-in-out 3;
    animation-fill-mode: forwards;
}

body::before {
    content: '⚡';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    color: rgba(124, 58, 237, 0.9);
    opacity: 0;
    z-index: 1000;
    pointer-events: none;
    animation: flashIcon 15s ease-in-out 3;
    animation-fill-mode: forwards;
}

@keyframes moveDots {
    0% {
        background-position: 0 0, center, 0 0;
    }
    100% {
        background-position: 40px 40px, center, 0 0;
    }
}

@keyframes glowLight {
    0% {
        background-position: 0 0, -50% -50%, 0 0;
        background-color: rgba(14, 165, 233, 0.03);
    }
    100% {
        background-position: 40px 40px, 150% 150%, 0 0;
        background-color: rgba(124, 58, 237, 0.08);
    }
}

@keyframes flashIcon {
    0%, 90%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    91%, 94% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    92%, 93% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes flashBg {
    0%, 90%, 100% {
        background-color: transparent;
    }
    91%, 94% {
        background-color: rgba(124, 58, 237, 0.8);
    }
    92%, 93% {
        background-color: rgba(255, 255, 255, 0.95);
    }
}

@keyframes flashOverlay {
    0%, 90%, 100% {
        background: transparent;
    }
    91%, 94% {
        background: linear-gradient(45deg, rgba(14, 165, 233, 0.9), rgba(124, 58, 237, 0.8), rgba(236, 72, 153, 0.7));
    }
    92%, 93% {
        background: rgba(255, 255, 255, 0.8);
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-left .language-selector {
    margin-left: 0.5rem;
    margin-right: 0;
}

.header-left .language-selector select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 5px;
    padding: 0.25rem 0.4rem;
    font-size: 0.7rem;
    color: #2D3748;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.25rem center;
    background-size: 0.6rem;
    padding-right: 1.4rem;
}

.header-left .language-selector select:hover {
    border-color: #0EA5E9;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

.header-left .language-selector select:focus {
    outline: none;
    border-color: #0EA5E9;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Hide language selector in header-left on mobile */
@media (max-width: 1300px) {
    .header-left .language-selector {
        display: none;
    }
}

.brand-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: #000;
}

.header-right {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.header-right a {
    text-decoration: none;
}

/* Language Selector */
.language-selector {
    margin-right: 0.5rem;
}

.language-selector select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    color: #2D3748;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.4rem center;
    background-size: 0.8rem;
    padding-right: 1.8rem;
}

.language-selector select:hover {
    border-color: #0EA5E9;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

.language-selector select:focus {
    outline: none;
    border-color: #0EA5E9;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}


/* Mobile menu language selector styles */
.mobile-menu-content .language-selector {
    position: absolute;
    top: 2rem;
    right: 2rem;
    margin: 0;
}

.mobile-menu-content .language-selector select {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: #2D3748;
    font-size: 0.9rem;
    font-weight: 600;
}

.mobile-menu-content .language-selector select:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: #0EA5E9;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2D3748;
}

.nav-links {
    display: none;
}

.login-btn {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.login-btn:hover {
    background: rgba(124, 58, 237, 0.1);
}

.cta-btn {
    background: linear-gradient(135deg, #0EA5E9, #7C3AED, #EC4899);
    color: white !important;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 500;
}

.cta-btn i {
    opacity: 0.9;
    font-size: 0.85rem;
}

.cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cta-btn:hover i {
    opacity: 1;
}

/* Desktop styles */
@media (min-width: 1024px) {
    header {
        padding: 1rem 2rem;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .header-right {
        gap: 1rem;
    }

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

    .nav-links a {
        color: #4A5568;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s ease;
        position: relative;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: #0EA5E9;
        transition: width 0.2s ease;
    }

    .nav-links a:hover {
        color: #0EA5E9;
    }

    .nav-links a:hover::after {
        width: 100%;
    }

    .login-btn {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .cta-btn {
        padding: 0.5rem 1.25rem;
        font-size: 1rem;
    }
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    grid-template-areas: "content media";
    column-gap: clamp(2.25rem, 4.5vw, 4rem);
    align-items: center;
    margin: 0 auto;
    padding: 2rem clamp(2.5rem, 6vw, 6.5rem) 4rem clamp(2.5rem, 6vw, 6.5rem);
    position: relative;
    overflow: hidden;
}

/* Book and Flag Carousel Background */
.background-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    filter: blur(0px);
    left: 50%;
    transform: translateX(-50%);
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0s linear 0.8s;
}

.background-carousel.loaded {
    visibility: visible;
    opacity: 0.12;
    transition: opacity 0.8s ease-in-out, visibility 0s linear;
}

.background-carousel-inner {
    display: flex;
    animation: backgroundScroll 120s linear infinite;
    width: max-content;
}

/* Masquer tous les éléments individuels avant chargement */
.background-item, .background-flag {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.background-carousel.loaded .background-item,
.background-carousel.loaded .background-flag {
    opacity: 1;
}

.background-item {
    width: 100px;
    height: 150px;
    margin: 15px;
    transform: rotate(10deg);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.background-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.background-flag {
    width: 160px;
    height: 100px;
    margin: 15px;
    transform: rotate(-5deg);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.background-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.background-carousel-row {
    display: flex;
    animation: backgroundScroll 120s linear infinite;
    width: max-content;
    margin-bottom: 30px;
    height: 33.33%;
}

.background-carousel-row:nth-child(1) {
    animation-duration: 180s;
    transform: translateY(15%);
}

.background-carousel-row:nth-child(2) {
    animation-duration: 150s;
    animation-direction: reverse;
    transform: translateY(50%);
}

.background-carousel-row:nth-child(3) {
    animation-duration: 200s;
    transform: translateY(85%);
}

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

/* Masquer les rangées supplémentaires sur desktop */
.background-carousel-row.mobile-only {
    display: none;
}

@media (max-width: 1024px) {
    .background-carousel {
        opacity: 0.04;
    }
    
    .background-item, .background-flag {
        transform: scale(0.85);
    }
}

@media (max-width: 768px) {
    .background-carousel {
        display: none; /* Désactiver complètement sur mobile et tablette */
    }
    
    .background-item {
        width: 120px;
        height: 180px;
        margin: 15px;
        border-width: 3px;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    }
    
    .background-flag {
        width: 180px;
        height: 112px;
        margin: 15px;
        border-width: 3px;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    }
    
    .background-carousel-row:nth-child(1) {
        transform: translateY(5%);
    }
    
    .background-carousel-row:nth-child(2) {
        transform: translateY(20%);
    }
    
    .background-carousel-row:nth-child(3) {
        transform: translateY(35%);
    }
    
    .background-carousel-row:nth-child(4) {
        transform: translateY(50%);
        animation-duration: 140s;
        animation-direction: reverse;
    }
    
    .background-carousel-row:nth-child(5) {
        transform: translateY(65%);
        animation-duration: 160s;
    }
}

@media (max-width: 480px) {
    .background-carousel {
        display: none; /* Assurer la désactivation sur tous les appareils mobiles */
    }
    
    .background-item {
        width: 100px;  /* Taille réduite pour un meilleur agencement */
        height: 150px;
        margin: 10px;
        border-width: 2px;
        filter: blur(0px);
    }
    
    .background-flag {
        width: 140px;  /* Taille réduite pour un meilleur agencement */
        height: 87px;
        margin: 10px;
        border-width: 2px;
        filter: blur(0px);
    }
    
    /* Espacer davantage les rangées */
    .background-carousel-row:nth-child(1) {
        animation-duration: 80s;
        transform: translateY(0%);
    }
    
    .background-carousel-row:nth-child(2) {
        animation-duration: 110s;
        transform: translateY(22%);
    }
    
    .background-carousel-row:nth-child(3) {
        animation-duration: 95s;
        transform: translateY(44%);
    }
    
    .background-carousel-row:nth-child(4) {
        animation-duration: 125s;
        transform: translateY(66%);
        animation-direction: reverse;
    }
    
    .background-carousel-row:nth-child(5) {
        animation-duration: 105s;
        transform: translateY(88%);
    }
    
    /* Plus d'espace entre les éléments */
    .background-carousel-row.mobile-only .background-item,
    .background-carousel-row.mobile-only .background-flag {
        margin: 18px;
    }
    
    /* Légère rotation supplémentaire pour plus de dynamisme */
    .background-carousel-row:nth-child(even) .background-item {
        transform: rotate(15deg);
    }
    
    .background-carousel-row:nth-child(odd) .background-item {
        transform: rotate(8deg);
    }
    
    .background-carousel-row:nth-child(even) .background-flag {
        transform: rotate(-8deg);
    }
    
    .background-carousel-row:nth-child(odd) .background-flag {
        transform: rotate(-3deg);
    }
}

.hero-content {
    max-width: 600px;
    grid-area: content;
}

.hero-media {
    position: relative;
    width: 100%;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    padding: 1rem 0 1.25rem;
    --card-offset: 28%;
    --card-scale: 0.9;
    --card-width: 82%;
    grid-area: media;
}

.hero-media-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1206 / 2662;
    margin: 0 auto;
    perspective: 1500px;
    overflow: visible;
}

.hero-media-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--card-width);
    aspect-ratio: 1206 / 2662;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 12px solid rgb(255, 255, 255);
    box-shadow: 0 20px 40px rgba(31, 38, 135, 0.12);
    /*padding: 0.75rem;*/
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease, box-shadow 0.45s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
}

.hero-media-item video,
.hero-media-item img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    display: block;
    object-fit: cover;
}

.hero-media-item.is-active {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    box-shadow: 0 24px 48px rgba(31, 38, 135, 0.18);
    pointer-events: auto;
    z-index: 3;
}

.hero-media-item.is-prev {
    opacity: 0.85;
    transform: translate(calc(-50% - var(--card-offset)), -50%) rotate(-7deg) scale(var(--card-scale));
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
}

.hero-media-item.is-next {
    opacity: 0.85;
    transform: translate(calc(-50% + var(--card-offset)), -50%) rotate(7deg) scale(var(--card-scale));
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
}

.hero-media-item.is-off {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.65);
    z-index: 1;
}

.hero-media-viewport:focus-visible {
    outline: 3px solid rgba(14, 165, 233, 0.35);
    outline-offset: 10px;
}

.hero-media-anchor {
    display: none;
}

@media (max-width: 480px) {
    .hero {
        padding: 1.25rem 1.25rem 2.5rem;
        text-align: center;
        grid-template-columns: 1fr;
        grid-template-areas:
            "media"
            "content";
    }

    .hero-media {
        width: 100%;
        max-width: 260px;
        padding: 1.3rem 0 1.65rem;
        margin-left: auto;
        margin-right: auto;
        --card-offset: 28%;
        --card-scale: 0.94;
        --card-width: 92%;
    }

    .hero-media-viewport {
        width: 80%;
        max-width: 260px;
        margin: 0 auto;
    }

    .hero-media-item {
        left: 30%;
    }
}

@media (min-width: 481px) and (max-width: 640px) {
    .hero {
        padding: 1.35rem clamp(1.5rem, 6vw, 2.25rem) 2.75rem;
        text-align: center;
        grid-template-columns: 1fr;
        grid-template-areas:
            "media"
            "content";
    }

    .hero-media {
        width: 100%;
        max-width: 310px;
        padding: 1.45rem 0 1.85rem;
        margin-left: auto;
        margin-right: auto;
        --card-offset: 30%;
        --card-scale: 0.95;
        --card-width: 94%;
    }

    .hero-media-viewport {
        width: 100%;
        max-width: 310px;
        margin: 0 auto;
    }

    .hero-media-item {
        left: 35%;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-areas:
            "media"
            "content";
        gap: 2.5rem;
        padding: 1.5rem clamp(1.5rem, 6vw, 2.5rem) 3rem;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-media {
        width: 100%;
        max-width: 400px;
        padding: 1.6rem 0 1.9rem;
        margin-left: auto;
        margin-right: auto;
        --card-offset: 34%;
        --card-scale: 0.96;
        --card-width: 94%;
    }

    .hero-media-viewport {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-media-item {
        left: 37%;
    }
}

@media (min-width: 1024px) {
    .hero {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
    }

    .hero-media {
        width: clamp(260px, 28vw, 340px);
        padding: 1.75rem 0 2rem;
        margin-left: 0;
        margin-right: 0;
        justify-self: flex-start;
        --card-offset: 34%;
        --card-scale: 0.88;
        --card-width: 76%;
    }

    .hero-media-viewport {
        width: 100%;
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #2D3748;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #718096;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.primary-btn, .secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.primary-btn {
    background: linear-gradient(135deg, #0EA5E9, #7C3AED, #EC4899);
    color: white;
}

.primary-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.secondary-btn {
    background: rgba(124, 58, 237, 0.1);
    color: #0EA5E9;
}

.secondary-btn:hover {
    background: rgba(124, 58, 237, 0.15);
    transform: translateY(-2px);
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}


.features {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    color: #2D3748;
    margin-bottom: 3rem;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.2s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2rem;
    color: #0EA5E9;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: #2D3748;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #718096;
    line-height: 1.6;
}

/* How it Works Section */
.how-it-works {
    padding: 4rem 0;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2.5rem;
    color: #2D3748;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.step {
    position: relative;
    min-height: 270px;
    perspective: 1000px;
}

.step-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.step-front, .step-back {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 2rem;
    border-radius: 16px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-front {
    background: linear-gradient(135deg, #0EA5E9, #7C3AED, #EC4899);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-front i {
    font-size: 2.5rem;
    color: white;
}

.step-back {
    background: rgba(255, 255, 255, 0.9);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.step-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    background: linear-gradient(135deg, #0EA5E9, #7C3AED, #EC4899);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.25rem;
    color: #2D3748;
    margin-bottom: 1rem;
}

.step p {
    color: #718096;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 1024px) {
    .steps {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 2rem;
    }
}

/* Pricing Section */
.pricing {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.pricing h2 {
    font-size: 2.5rem;
    color: #2D3748;
    margin-bottom: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pricing-card {
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease;
}

.pricing-card.featured {
    border-color: #F6AD55;
    background: linear-gradient(
        to bottom, 
        rgba(246, 173, 85, 0.1), 
        rgba(255, 255, 255, 0.9)
    ) !important;
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.badge {
    position: absolute;
    top: -0.75rem;
    right: 1rem;
    background: #ED8936;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: #2D3748;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2D3748;
    margin-bottom: 0.5rem;
}

.price span {
    font-size: 1rem;
    color: #718096;
    font-weight: 500;
}

.savings {
    display: inline-block;
    color: #ED8936;
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0.5rem 0;
    padding: 0.375rem 0.75rem;
    background: rgba(237, 137, 54, 0.1);
    border-radius: 8px;
}

.one-time {
    color: #718096;
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #4A5568;
}

.features-list i {
    color: #38A169;
}

.pricing-cta {
    display: inline-block;
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #0EA5E9, #7C3AED, #EC4899);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.pricing-cta:hover {
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: #2D3748;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    color: #718096;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 4rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: #2D3748;
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    color: #718096;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #0EA5E9;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0EA5E9;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: linear-gradient(135deg, #0EA5E9, #7C3AED, #EC4899);
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #718096;
}

.footer-links {
    font-size: 0.7rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem 1rem 2rem;
    }
    
    .hero-content {
        order: 0;
        text-align: center;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .hero-media {
        order: 1;
        margin: 0 auto;
        justify-content: center;
    }
    
    .hero-carousel {
        width: 59%;
        max-height: 80vh;
    }
    
    .hero-cta {
        justify-content: center;
        margin-bottom: 1rem;
    }

    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 0.2rem 1rem 2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .features,
    .how-it-works,
    .pricing,
    .cta-section {
        padding: 2rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-media {
        width: 100%;
    }
    
    .hero-carousel {
        aspect-ratio: 1206/2662;
        max-height: 80vh;
        width: 100%;
        height: auto;
        border-radius: 15px;
    }
    
    .carousel-slide img {
        border-radius: 13px;
    }
    
    .carousel-dots {
        background-color: rgba(0, 0, 0, 0.4);
        padding: 6px 12px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
        margin: 0 5px;
        background-color: rgba(255, 255, 255, 0.7);
    }
    
    .carousel-controls {
        bottom: -30px;
    }
}

/* Neuroscience Section */
.neuroscience {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.neuroscience h2 {
    font-size: 2.5rem;
    color: #2D3748;
    margin-bottom: 3rem;
}

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

.neuroscience-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.neuroscience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.neuroscience-card:hover {
    transform: translateY(-5px);
}

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

.neuroscience-card i {
    font-size: 2.5rem;
    color: #0EA5E9;
    margin-bottom: 1.5rem;
    position: relative;
}

.neuroscience-card h3 {
    font-size: 1.25rem;
    color: #2D3748;
    margin-bottom: 1rem;
    position: relative;
}

.neuroscience-card p {
    color: #718096;
    line-height: 1.6;
    position: relative;
}

@media (max-width: 768px) {
    .neuroscience {
        padding: 3rem 1rem;
    }
    
    .neuroscience h2 {
        font-size: 2rem;
    }
}

/* Categories Section */
.categories {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-section {
    margin-bottom: 4rem;
    /* background: rgba(255, 255, 255, 0.9); */
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
}

.category-section h2 {
    font-size: 2.5rem;
    color: #2D3748;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Language Grid */
.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.language-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.language-card:hover {
    transform: translateY(-5px);
}

.language-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.language-card h3 {
    padding: 1rem;
    font-size: 1.25rem;
    color: #2D3748;
    margin: 0;
}

.language-level {
    display: block;
    padding: 0 1rem 1rem;
    color: #718096;
    font-size: 0.9rem;
}

/* Theme Cards */
.theme-card {
    position: relative;
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    margin-bottom: 0.25rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    height: auto;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.07),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.theme-card:hover {
    transform: translateY(-5px);
    border-color: var(--main-color);
}

.theme-icon-container {
    position: relative;
    margin-bottom: 1rem;
}

.theme-icon {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 8px;
    object-fit: cover;
}

.theme-teacher {
    position: absolute;
    bottom: -15px;
    z-index: 2;
}

.teacher-portrait {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    transition: transform 0.3s ease;
    background: white;
}

.theme-card:hover .teacher-portrait {
    transform: scale(1.05);
}

.teacher-name {
    font-size: 0.7rem;
    color: #2D3748;
    font-weight: 500;
    margin-top: 0.25rem;
    margin-bottom: 0.15rem;
    text-align: center;
}

.teacher-name span {
    display: block;
    margin-bottom: 0.05rem;
}

.teacher-name span + span {
    font-size: calc(0.7rem * 1.15);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    animation: scrollText 10s linear infinite;
    margin-bottom: 0.05rem;
}

@keyframes scrollText {
    0%, 20% {
        transform: translateX(0%);
    }
    80%, 100% {
        transform: translateX(calc(-100% + 100%));
    }
}

.teacher-name:hover span + span {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .teacher-portrait {
        width: 40px;
        height: 40px;
    }
    
    .teacher-name {
        font-size: 0.65rem;
    }
    
    .teacher-name span + span {
        font-size: calc(0.65rem * 1.15);
    }
}

@media (max-width: 480px) {
    .teacher-portrait {
        width: 40px;
        height: 40px;
    }
    
    .teacher-name {
        font-size: 0.6rem;
    }
    
    .teacher-name span + span {
        font-size: calc(0.6rem * 1.15);
    }
}

/* Exam Grid */
.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.exam-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.exam-card:hover {
    transform: translateY(-5px);
}

.exam-icon {
    width: 80px;
    height: 80px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.exam-icon i {
    font-size: 2rem;
    color: #0EA5E9;
}

.exam-card h3 {
    font-size: 1.5rem;
    color: #2D3748;
    margin-bottom: 1rem;
}

.exam-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.exam-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #4A5568;
}

.exam-features i {
    color: #38A169;
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.book-card {
    position: relative;
    transition: transform 0.3s ease;
    text-decoration: none;
    aspect-ratio: 3/5;
    width: 100%;
    border-radius: 0 16px 16px 0;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 16px 16px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background: #ffffff;
    transition: all 0.3s ease;
    border-left: 4px solid #0EA5E9;
}


.book-card:hover .book-cover {
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.2);
    transform: translateY(-5px);
}

.book-info {
    padding: 1rem;
}

.book-info h3 {
    font-size: 1.25rem;
    color: #2D3748;
    margin: 0 0 0.5rem 0;
}

.book-info p {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-section {
        padding: 1.5rem;
    }

    .category-section h2 {
        font-size: 2rem;
    }

    .language-grid,
    .exam-grid,
    .books-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem;
    }

    .category-section {
        padding: 1rem;
    }

    .language-grid,
    .exam-grid,
    .books-grid {
        grid-template-columns: 1fr;
    }
}

/* Themes Section */
.themes {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.theme-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.theme-card:hover {
    transform: translateY(-5px);
    border-color: #0EA5E9;
    background: rgba(255, 255, 255, 0.95);
}

.theme-icon {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    object-fit: cover;
}

.theme-card h3 {
    font-size: 1.5rem;
    color: #2D3748;
    margin: 5px 0 5px 0;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(124, 58, 237, 0.15);
    position: relative;
}

.theme-card h3::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 1px;
    background: rgba(124, 58, 237, 0.3);
}

.theme-card p {
    color: #718096;
    font-size: 0.9rem;
    width: 100%;
    margin-block-end: 0;
}

@media (max-width: 768px) {
    .themes-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    .theme-icon {
        width: 100px;
        height: 100px;
    }

    /* Hide languages after the third one on mobile */
    #languages .theme-card:nth-child(n+4) {
        display: none;
    }
}

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

/* Books Masonry Layout */
.books-masonry {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Hide cards after 6th on mobile and tablet */
.book-card:nth-child(n+7) {
    display: none;
    height: 0;
    margin: 0;
    padding: 0;
}

/* Show all cards on desktop */
@media (min-width: 1024px) {
    .book-card:nth-child(n+7) {
        display: block;
        height: auto;
        margin: initial;
        padding: initial;
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .books-masonry {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .books-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        grid-auto-rows: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .books-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

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

@media (max-width: 1024px) {
    .books-cta {
        margin-top: 2.5rem;
    }
}

@media (max-width: 768px) {
    .books-cta {
        display: none;
    }
}

@media (max-width: 480px) {
    .books-cta {
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }
    .books-cta .primary-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Books Section */
/* Section Separator */
.section-separator {
    text-align: center;
    padding: 2rem 1rem;
    margin: 2rem 0;
    position: relative;
}

.section-separator::before,
.section-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(124, 58, 237, 0.3), transparent);
}

.section-separator::before {
    left: 0;
}

.section-separator::after {
    right: 0;
}

.section-separator span {
    display: inline-block;
    padding: 0 1rem;
    color: rgba(124, 58, 237, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .section-separator {
        padding: 1.5rem 0.5rem;
        margin: 1.5rem 0;
    }
    
    .section-separator::before,
    .section-separator::after {
        width: 15%;
    }
    
    .section-separator span {
        font-size: 0.85rem;
        padding: 0 0.75rem;
    }
}

.books {
    text-align: center;
    padding: 2rem;
}

.books .books-icon {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    margin-bottom: 2.5rem;
    object-fit: cover;
}

.books-authors {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.books-authors .author-portrait {
    width: 41px;
    height: 41px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    background: white;
    margin-left: -12px;
    transition: transform 0.3s ease;
}

.books-authors .author-portrait:first-child {
    margin-left: 0;
}

.books-authors .author-portrait:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.books-authors-text {
    font-size: 0.7rem;
    color: #2D3748;
    font-weight: 500;
    text-align: center;
    margin-bottom: 1.5rem;
    margin-top: -1rem;
}

.books-authors-text span {
    display: block;
    margin-bottom: 0.05rem;
}

.books-authors-text span + span {
    font-size: calc(0.7rem * 1.15);
    font-weight: 700;
}

/* Features Combined Section */
.features-combined {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

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

.features-combined .feature-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.features-combined .feature-card:hover {
    transform: translateY(-5px);
    border-color: #0EA5E9;
}

.features-combined .feature-card i {
    font-size: 2rem;
    color: #0EA5E9;
    margin-bottom: 1.5rem;
}

/* Social Links */
.social-links .disabled {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 768px) {
    .books-masonry {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }

    .features-combined .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .books-masonry {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* Header Navigation */
.header-nav {
    display: flex;
    gap: 2rem;
}

.header-nav a {
    color: #4A5568;
    text-decoration: none;
    font-weight: 500;
    padding-bottom: 2px;
    position: relative;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0EA5E9;
    transition: width 0.3s ease;
}

.header-nav a:hover {
    color: #0EA5E9;
}

.header-nav a:hover::after {
    width: 100%;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    color: #2D3748;
    margin-bottom: 3rem;
}

/* Scroll Offset */
html {
    scroll-padding-top: 100px; /* Adds padding to all scroll-to-anchor behaviors */
    scroll-behavior: smooth;
}

/* Custom Scroll Animation */
.smooth-scroll {
    transition: all 1s cubic-bezier(0.645, 0.045, 0.355, 1.000); /* Ease In Out */
}

@media (max-width: 1300px) {
    .header-nav {
        display: none; /* Hide navigation on mobile */
    }
}

.highlight {
    background: rgba(124, 58, 237, 0.15);
    color: #0EA5E9;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    line-height: 1.4;
}

/* Flaaash AI Section */
.flaaash-ai-section {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
    margin-bottom: 4rem;
    border-radius: 24px;
    min-height: auto;
    height: auto;
    padding: 3rem 2rem;
}

.flaaash-ai-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

.flaaash-ai-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.flaaash-ai-content {
    text-align: center;
}

.flaaash-ai-icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.flaaash-ai-icon {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.2);
    border: 3px solid rgba(14, 165, 233, 0.3);
    transition: transform 0.3s ease;
}

.flaaash-ai-icon:hover {
    transform: scale(1.05);
}

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

.flaaash-ai-feature {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.flaaash-ai-feature:hover {
    transform: translateY(-5px);
    border-color: #0EA5E9;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.15);
}

.flaaash-ai-feature i {
    font-size: 2.5rem;
    color: #0EA5E9;
    margin-bottom: 1rem;
}

.flaaash-ai-feature h3 {
    font-size: 1.25rem;
    color: #2D3748;
    margin-bottom: 0.75rem;
}

.flaaash-ai-feature p {
    color: #718096;
    line-height: 1.6;
    font-size: 0.95rem;
}

.flaaash-ai-cta {
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .flaaash-ai-section {
        padding: 2rem 1rem;
        margin-top: 3rem;
        margin-bottom: 3rem;
    }

    .flaaash-ai-icon {
        width: 100px;
        height: 100px;
    }

    .flaaash-ai-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .flaaash-ai-feature {
        padding: 1.5rem;
    }
}

/* Header Navigation Links */
.header-nav-link {
    color: #4A5568;
    text-decoration: none;
    font-weight: 500;
    padding-bottom: 2px;
    position: relative;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.header-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0EA5E9;
    transition: width 0.3s ease;
}

.header-nav-link:hover {
    color: #0EA5E9;
}

.header-nav-link:hover::after {
    width: 100%;
}

/* Header Navigation - Flaaash AI Link with ghost icon */
.header-nav .flaaash-ai-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.header-nav .flaaash-ai-link i {
    opacity: 0.4;
    font-size: 0.9rem;
    transition: opacity 0.2s ease;
}

.header-nav .flaaash-ai-link:hover i {
    opacity: 0.7;
}

.header-nav .flaaash-ai-link::after {
    display: block;
}

/* Header Right - Flaaash AI Link Button */
.header-right .flaaash-ai-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    background: rgba(124, 58, 237, 0.05);
    color: #4A5568;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

.header-right .flaaash-ai-link i {
    opacity: 0.6;
    font-size: 0.9rem;
    transition: opacity 0.2s ease;
}

.header-right .flaaash-ai-link:hover {
    border-color: #0EA5E9;
    background: rgba(14, 165, 233, 0.1);
    color: #0EA5E9;
}

.header-right .flaaash-ai-link:hover i {
    opacity: 1;
}

.header-right .flaaash-ai-link::after {
    display: none;
}

/* Header buttons - reduced size but same styles */
.header-right .primary-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.header-right .primary-btn i {
    opacity: 0.9;
    font-size: 0.85rem;
    display: inline-block;
}

.header-right .primary-btn:hover {
    transform: translateY(-1px);
}

.header-right .primary-btn:hover i {
    opacity: 1;
}

.header-right .secondary-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.header-right .secondary-btn i {
    opacity: 0.9;
    font-size: 0.85rem;
    display: inline-block;
}

.header-right .secondary-btn:hover {
    transform: translateY(-1px);
}

.header-right .secondary-btn:hover i {
    opacity: 1;
}

/* Hide Create Flaaash button on mobile - only show Start Now */
@media (max-width: 1300px) {
    .header-right .create-flaaash-header-btn {
        display: none;
    }
}

/* Mobile Navigation Links */
.mobile-nav-link {
    font-size: 1.25rem;
    color: #2D3748;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: block;
}

.mobile-nav-link:hover {
    color: #0EA5E9;
    background: rgba(124, 58, 237, 0.1);
}

/* Mobile Menu - Create Flaaash Button (same height as mobile menu items) */
.mobile-nav-links .create-flaaash-mobile-btn {
    padding: 0.75rem 1rem;
    font-size: 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    margin-bottom: 1rem;
    background: rgba(124, 58, 237, 0.1);
    color: #0EA5E9;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-nav-links .create-flaaash-mobile-btn i {
    opacity: 0.9;
    font-size: 1rem;
    display: inline-block;
}

.mobile-nav-links .create-flaaash-mobile-btn:hover {
    transform: translateY(-1px);
    background: rgba(124, 58, 237, 0.15);
}

.mobile-nav-links .create-flaaash-mobile-btn:hover i {
    opacity: 1;
}

/* AI Chat Section */
.ai-chat-section {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(255, 255, 255, 0.1) 100%);
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
    border-radius: 24px;
    min-height: auto;
    height: auto;
}

.ai-chat-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

.ai-chat-container {
    position: relative;
    z-index: 1;
    height: auto;
}

.ai-chat-content {
    text-align: center;
    padding: 2rem 2rem 2rem;
    height: auto;
}

.ai-chat-content h2 {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                 0 0 20px rgba(255, 255, 255, 0.6),
                 0 0 30px rgba(255, 255, 255, 0.4);
}

.chat-demo {
    display: flex;
    gap: 2rem;
    margin: 2rem auto;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    height: auto;
}

.chat-demo.hidden {
    opacity: 0;
}

#jules-verne-chat,
#king-chat {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.ai-chat-section.visible #jules-verne-chat {
    opacity: 1;
}

.ai-chat-section.visible #king-chat {
    opacity: 0;
}

.author-avatar {
    flex-shrink: 0;
    text-align: center;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #6B46C1;
    box-shadow: 0 8px 24px rgba(107, 70, 193, 0.2);
    margin-bottom: 0.5rem;
    object-fit: cover;
}

.author-name {
    color: #2D3748;
    font-weight: 600;
    font-size: 0.9rem;
}

.chat-bubbles {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 10px;
}

.chat-bubble {
    padding: 1rem 1.5rem;
    border-radius: 16px;
    max-width: 80%;
    opacity: 0;
    transform: translateY(20px);
}

.ai-chat-section.visible .chat-bubble {
    animation: bubbleAppear 0.5s ease-out forwards;
}

.chat-bubble.user {
    background: #6B46C1;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
    text-align: right;
}

.ai-chat-section.visible .chat-bubble.user {
    animation-delay: 0s;
}

.chat-bubble.author {
    background: white;
    color: #2D3748;
    text-align: left;
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ai-chat-section.visible .chat-bubble.author {
    animation-delay: 0.75s;
}

.chat-bubble.typing {
    max-width: 60px;
    padding: 0.5rem 1rem;
}

.ai-chat-section.visible .chat-bubble.typing {
    animation-delay: 3s;
}

.chat-bubble p {
    margin: 0;
    line-height: 1.5;
}

.typing-indicator {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem 0;
    height: 24px;
    align-items: center;
    justify-content: center;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6B46C1;
    opacity: 0.6;
}

.ai-chat-section.visible .typing-indicator span {
    animation: typing 1s infinite;
}

.ai-chat-section.visible .typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-chat-section.visible .typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

.chat-cta {
    margin-top: 2rem;
}

@keyframes typing {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Responsive adjustments for AI Chat */
@media (max-width: 768px) {
    .ai-chat-section {
        margin-top: 3rem;
        min-height: auto;
    }

    .ai-chat-content {
        padding: 1rem 1rem 1.5rem;
        height: auto;
    }

    .chat-demo {
        margin: 1.5rem auto;
        gap: 1rem;
        height: auto;
    }

    .author-avatar img {
        width: 80px;
        height: 80px;
    }

    .chat-bubbles {
        width: 100%;
        padding: 0;
    }

    .chat-bubble {
        max-width: 85%;
        margin: 0.5rem 0;
    }

    .chat-bubble.user {
        margin-left: auto;
        margin-right: 0;
        text-align: right;
        float: right;
        clear: both;
    }

    .chat-bubble.author {
        margin-left: 0;
        margin-right: auto;
        text-align: left;
        float: left;
        clear: both;
    }
}

@media (max-width: 480px) {
    .ai-chat-content {
        padding: 1rem;
        max-height: none;
    }

    .chat-demo {
        flex-direction: column;
        align-items: center;
        margin: 1rem auto;
        gap: 1rem;
    }

    .author-avatar {
        margin-bottom: 0.5rem;
    }

    .author-avatar img {
        width: 60px;
        height: 60px;
    }

    .author-name {
        text-align: center;
        margin-bottom: 0.25rem;
    }

    .typing-status {
        text-align: center;
        margin: 0 auto;
    }

    .chat-bubbles {
        width: 100%;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    .chat-bubble {
        width: auto;
        max-width: 85%;
        margin: 0.5rem 0;
    }

    .chat-bubble.user {
        margin-left: auto;
        margin-right: 0;
        text-align: right;
        float: right;
        clear: both;
    }

    .chat-bubble.author {
        margin-left: 0;
        margin-right: auto;
        text-align: left;
        float: left;
        clear: both;
    }

    .chat-progress {
        margin: 0.5rem 0 1rem;
    }

    .ai-chat-section h2 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                     0 0 20px rgba(255, 255, 255, 0.6),
                     0 0 30px rgba(255, 255, 255, 0.4);
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

.typing-status {
    color: #718096;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    opacity: 0;
}

.ai-chat-section.visible .typing-status {
    animation: bubbleAppear 0.5s ease-out forwards;
    animation-delay: 3s;
}

.chat-progress {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 0.5rem 0 2rem;
}

.chat-progress-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.2);
    transition: all 0.5s ease;
}

.chat-progress-dot.active {
    width: 24px;
    border-radius: 12px;
    background: #6B46C1;
}

.chat-progress-dot.active::after {
    display: none;
}

@media (max-width: 480px) {
    .ai-chat-content {
        padding: 1rem;
        max-height: 1015px;
    }

    .chat-demo {
        flex-direction: row;
        align-items: flex-start;
    }

    .chat-bubbles {
        width: 100%;
    }

    .chat-bubble {
        max-width: 90%;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0EA5E9, #7C3AED, #EC4899);
    border: none;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    z-index: 1001;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}

.mobile-menu-btn .close-icon {
    display: none;
}

.mobile-menu-btn.active .menu-icon {
    display: none;
}

.mobile-menu-btn.active .close-icon {
    display: inline-block;
}

/* Full Screen Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 0.75rem;
    padding: 2rem;
}

.mobile-menu-content a {
    font-size: 1.25rem;
    color: #2D3748;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.mobile-menu-content a:hover {
    color: #0EA5E9;
    background: rgba(124, 58, 237, 0.1);
}

.mobile-menu-content .login-btn {
    color: #2D3748;
    background: rgba(124, 58, 237, 0.1);
}

.mobile-menu-content .cta-btn {
    color: white;
    background: linear-gradient(135deg, #0EA5E9, #7C3AED, #EC4899);
    padding: 0.75rem 1.5rem;
}

.mobile-menu-content .cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu {
        display: block;
    }
}

/* Start Learning CTA */
.start-learning-cta {
    text-align: center;
    padding: 2rem 1rem 3rem 1rem;
}

/* Main Content */
main {
    padding-top: 2rem;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.languages-cta {
    text-align: center;
    margin: 2rem 0;
    width: 100%;
}

.languages-cta .primary-btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .notification {
        top: 2rem;
        left: auto;
        right: 2rem;
        transform: scale(0.9);
    }
    
    .notification.show {
        transform: scale(1);
    }
}

.notification.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

@media (min-width: 768px) {
    .notification.show {
        transform: scale(1);
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.notification-text h4 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

.notification-text p {
    margin: 0.25rem 0 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Hero Carousel Styles */
.hero-carousel {
    width: 60%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    aspect-ratio: 1206/2662;
    height: auto;
    max-height: 80vh;
    background-color: #f5f5f5;
    margin-bottom: 0px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.carousel-container {
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.7s ease;
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.carousel-controls {
    position: absolute;
    bottom: -35px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

.carousel-dot.active {
    background-color: white;
    transform: scale(1.2);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.7);
}

/* Styles spécifiques pour desktop */
@media (min-width: 1025px) {
    .hero-media {
        justify-content: center;
        padding-left: 0;
        max-width: 520px;
    }
}

/* Pour écrans moyens et grands */
@media (min-width: 769px) {
    .hero-media {
        justify-content: center;
    }
    
    .carousel-dot {
        width: 12px;
        height: 12px;
        margin: 0 6px;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    }
    
    .carousel-dot.active {
        transform: scale(1.3);
        box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    }
    
    .carousel-dots {
        padding: 8px 15px;
        background-color: rgba(0, 0, 0, 0.35);
    }
}

@media (max-width: 1024px) {
    .hero-carousel {
        width: 50%;
        max-height: 80vh;
        display: block;
    }
    
    .hero-media {
        order: 1;
        width: 100%;
        margin: 0 auto;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        aspect-ratio: 1206/2662;
        max-height: 80vh;
        width: 59%;
        display: block;
    }
    
    .hero-media {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        aspect-ratio: 1206/2662;
        max-height: 80vh;
        width: 88%;
        height: auto;
        border-radius: 15px;
        display: block;
    }
    
    .hero-media {
        width: 100%;
    }
    
    .carousel-dots {
        background-color: rgba(0, 0, 0, 0.4);
        padding: 6px 12px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
        margin: 0 5px;
        background-color: rgba(255, 255, 255, 0.7);
    }
    
    .carousel-controls {
        bottom: -30px;
    }
} 