/* CSS Variables */
:root {
    --primary: #ff8c42;
    --primary-dark: #e67e22;
    --secondary: #ffa726;
    --accent: #ff9800;
    --dark: #2c3e50;
    --light: #fefefe;
    --cream: #fdf6e3;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--cream);
    overflow-x: hidden;
}

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

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--gray-light);
    color: var(--dark);
}

.btn-secondary:hover {
    background: var(--gray);
    color: var(--white);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--cream) 0%, #f5e6d3 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Floating Book Covers Background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 140" fill="%23ff8c42" opacity="0.1"><rect width="100" height="140" rx="8" fill="%23ff8c42"/><text x="50" y="80" text-anchor="middle" fill="%23fff" font-size="12" font-family="serif">EN</text></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 140" fill="%23ffa726" opacity="0.1"><rect width="100" height="140" rx="8" fill="%23ffa726"/><text x="50" y="80" text-anchor="middle" fill="%23fff" font-size="12" font-family="serif">ES</text></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 140" fill="%23ff9800" opacity="0.1"><rect width="100" height="140" rx="8" fill="%23ff9800"/><text x="50" y="80" text-anchor="middle" fill="%23fff" font-size="12" font-family="serif">FR</text></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 140" fill="%23e67e22" opacity="0.1"><rect width="100" height="140" rx="8" fill="%23e67e22"/><text x="50" y="80" text-anchor="middle" fill="%23fff" font-size="12" font-family="serif">DE</text></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 140" fill="%23ff8c42" opacity="0.1"><rect width="100" height="140" rx="8" fill="%23ff8c42"/><text x="50" y="80" text-anchor="middle" fill="%23fff" font-size="12" font-family="serif">IT</text></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 140" fill="%23ffa726" opacity="0.1"><rect width="100" height="140" rx="8" fill="%23ffa726"/><text x="50" y="80" text-anchor="middle" fill="%23fff" font-size="12" font-family="serif">PT</text></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 140" fill="%23ff9800" opacity="0.1"><rect width="100" height="140" rx="8" fill="%23ff9800"/><text x="50" y="80" text-anchor="middle" fill="%23fff" font-size="12" font-family="serif">RU</text></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 140" fill="%23e67e22" opacity="0.1"><rect width="100" height="140" rx="8" fill="%23e67e22"/><text x="50" y="80" text-anchor="middle" fill="%23fff" font-size="12" font-family="serif">ZH</text></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 140" fill="%23ff8c42" opacity="0.1"><rect width="100" height="140" rx="8" fill="%23ff8c42"/><text x="50" y="80" text-anchor="middle" fill="%23fff" font-size="12" font-family="serif">JA</text></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 140" fill="%23ffa726" opacity="0.1"><rect width="100" height="140" rx="8" fill="%23ffa726"/><text x="50" y="80" text-anchor="middle" fill="%23fff" font-size="12" font-family="serif">AR</text></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 140" fill="%23ff9800" opacity="0.1"><rect width="100" height="140" rx="8" fill="%23ff9800"/><text x="50" y="80" text-anchor="middle" fill="%23fff" font-size="12" font-family="serif">HI</text></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 140" fill="%23e67e22" opacity="0.1"><rect width="100" height="140" rx="8" fill="%23e67e22"/><text x="50" y="80" text-anchor="middle" fill="%23fff" font-size="12" font-family="serif">KO</text></svg>');
    background-position: 
        10% 20%, 85% 15%, 15% 80%, 90% 75%, 5% 60%, 95% 40%, 20% 90%, 80% 10%, 70% 85%, 30% 30%, 60% 70%, 40% 50%;
    background-repeat: no-repeat;
    background-size: 80px 112px, 60px 84px, 100px 140px, 70px 98px, 90px 126px, 80px 112px, 75px 105px, 85px 119px, 65px 91px, 95px 133px, 55px 77px, 72px 101px;
    animation: floatBooks 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes floatBooks {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    25% { 
        transform: translateY(-10px) rotate(2deg);
        opacity: 0.15;
    }
    50% { 
        transform: translateY(-5px) rotate(-1deg);
        opacity: 0.12;
    }
    75% { 
        transform: translateY(-15px) rotate(1deg);
        opacity: 0.18;
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray);
    font-weight: 500;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Book Covers Background */
.book-covers-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1rem;
    opacity: 0.3;
    z-index: 1;
}

.book-cover {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    animation: bookFloat 6s ease-in-out infinite;
}

.book-cover:hover {
    opacity: 0.8;
    transform: scale(1.05);
    z-index: 10;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.book-1 { animation-delay: 0s; }
.book-2 { animation-delay: 0.5s; }
.book-3 { animation-delay: 1s; }
.book-4 { animation-delay: 1.5s; }
.book-5 { animation-delay: 2s; }
.book-6 { animation-delay: 2.5s; }
.book-7 { animation-delay: 3s; }
.book-8 { animation-delay: 3.5s; }
.book-9 { animation-delay: 4s; }
.book-10 { animation-delay: 4.5s; }
.book-11 { animation-delay: 5s; }
.book-12 { animation-delay: 5.5s; }

@keyframes bookFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(1deg); }
    50% { transform: translateY(-10px) rotate(0deg); }
    75% { transform: translateY(-5px) rotate(-1deg); }
}

.main-dashboard {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    width: 300px;
    height: 200px;
    position: relative;
    z-index: 3;
}

.dashboard-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.dashboard-dots {
    display: flex;
    gap: 0.5rem;
}

.dashboard-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-light);
}

.dashboard-dots span:nth-child(1) { background: #ef4444; }
.dashboard-dots span:nth-child(2) { background: #f59e0b; }
.dashboard-dots span:nth-child(3) { background: #10b981; }

.dashboard-content {
    display: flex;
    align-items: end;
    gap: 0.5rem;
    height: 100px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary), var(--secondary));
    border-radius: 4px 4px 0 0;
    animation: chartAnimation 2s ease-in-out infinite alternate;
}

.chart-bar:nth-child(1) { height: 60%; }
.chart-bar:nth-child(2) { height: 80%; }
.chart-bar:nth-child(3) { height: 40%; }
.chart-bar:nth-child(4) { height: 90%; }
.chart-bar:nth-child(5) { height: 70%; }

@keyframes chartAnimation {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
    z-index: 3;
}

.floating-card i {
    color: var(--primary);
    font-size: 1.25rem;
}

.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 20%;
    right: 10%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

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

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

/* Book Covers in Features Section */
.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 70 98" fill="%23ff8c42" opacity="0.03"><rect width="70" height="98" rx="5" fill="%23ff8c42"/><text x="35" y="57" text-anchor="middle" fill="%23fff" font-size="9" font-family="serif">EN</text></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 70 98" fill="%23ffa726" opacity="0.03"><rect width="70" height="98" rx="5" fill="%23ffa726"/><text x="35" y="57" text-anchor="middle" fill="%23fff" font-size="9" font-family="serif">ES</text></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 70 98" fill="%23ff9800" opacity="0.03"><rect width="70" height="98" rx="5" fill="%23ff9800"/><text x="35" y="57" text-anchor="middle" fill="%23fff" font-size="9" font-family="serif">FR</text></svg>');
    background-position: 
        2% 15%, 98% 25%, 50% 85%;
    background-repeat: no-repeat;
    background-size: 50px 70px, 45px 63px, 55px 77px;
    animation: verySubtleFloat 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes verySubtleFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.03;
    }
    50% { 
        transform: translateY(-5px) rotate(0.5deg);
        opacity: 0.05;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    color: var(--white);
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Featured Books Section */
.featured-books {
    padding: 6rem 0;
    background: var(--cream);
}

.books-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}

.books-showcase .book-item {
    min-height: 650px !important;
    height: auto;
}

.book-item {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 650px !important;
    max-height: none;
}

.book-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.book-cover-large {
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

/* For image-based covers */
.book-cover-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.book-cover-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0.1));
    z-index: 1;
    opacity: 0;
    transition: var(--transition);
}

.book-item:hover .book-cover-large::before {
    opacity: 1;
}

.book-item:hover .book-cover-large img {
    transform: scale(1.05);
}

/* For CSS-generated covers */
.book-cover-large .book-cover-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 1.5rem;
    color: white;
    text-align: center;
}

.book-cover-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.book-cover-content .book-author {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.book-cover-content .book-language {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.book-rating {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: fit-content;
    height: 2rem;
    margin: 0;
}

.stars {
    color: #ffd700;
    font-size: 0.875rem;
}

.rating-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark);
}

.book-item:hover .book-cover-large {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Book Cover Gradient Themes */
.book-cover-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.book-cover-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.book-cover-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.book-cover-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.book-cover-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.book-cover-6 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.book-cover-7 { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.book-cover-8 { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.book-cover-9 { background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%); }
.book-cover-10 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.book-cover-11 { background: linear-gradient(135deg, #fad0c4 0%, #ffd1ff 100%); }
.book-cover-12 { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.book-cover-13 { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.book-cover-14 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.book-cover-15 { background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%); }
.book-cover-16 { background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%); }
.book-cover-17 { background: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%); }
.book-cover-18 { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%); }
.book-cover-19 { background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%); }
.book-cover-20 { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
.book-cover-21 { background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%); }
.book-cover-22 { background: linear-gradient(135deg, #16a085 0%, #1abc9c 100%); }
.book-cover-23 { background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); }
.book-cover-24 { background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%); }

.book-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 1rem;
}

.book-info-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.book-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    min-height: 3.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
}

.book-author {
    color: var(--gray);
    font-weight: 500;
    font-style: italic;
    height: 1.5rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 1.5;
}

.book-description {
    color: var(--gray);
    font-size: 0.875rem;
    line-height: 1.6;
    flex-grow: 1;
    min-height: 7rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    margin: 0;
}

.book-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    height: 1.5rem;
    margin: 0;
}

.book-genre {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.book-pages {
    color: var(--gray);
    font-size: 0.75rem;
    font-weight: 500;
}

.book-languages {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
}

/* Languages Section */
.languages {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

/* Subtle Book Covers in Languages Section */
.languages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 112" fill="%23ff8c42" opacity="0.05"><rect width="80" height="112" rx="6" fill="%23ff8c42"/><text x="40" y="65" text-anchor="middle" fill="%23fff" font-size="10" font-family="serif">YO</text></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 112" fill="%23ffa726" opacity="0.05"><rect width="80" height="112" rx="6" fill="%23ffa726"/><text x="40" y="65" text-anchor="middle" fill="%23fff" font-size="10" font-family="serif">SW</text></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 112" fill="%23ff9800" opacity="0.05"><rect width="80" height="112" rx="6" fill="%23ff9800"/><text x="40" y="65" text-anchor="middle" fill="%23fff" font-size="10" font-family="serif">HI</text></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 112" fill="%23e67e22" opacity="0.05"><rect width="80" height="112" rx="6" fill="%23e67e22"/><text x="40" y="65" text-anchor="middle" fill="%23fff" font-size="10" font-family="serif">ZH</text></svg>');
    background-position: 
        5% 10%, 95% 20%, 10% 90%, 90% 80%;
    background-repeat: no-repeat;
    background-size: 60px 84px, 50px 70px, 70px 98px, 55px 77px;
    animation: subtleFloat 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes subtleFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.05;
    }
    50% { 
        transform: translateY(-8px) rotate(1deg);
        opacity: 0.08;
    }
}

.language-benefits {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.language-benefits ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.language-benefits li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-weight: 500;
}

.language-benefits i {
    color: var(--accent);
    font-size: 0.875rem;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.language-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.language-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.lang-code {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.lang-name {
    font-size: 0.875rem;
    color: var(--gray);
    font-weight: 500;
}

.languages-cta {
    text-align: center;
    position: relative;
    z-index: 2;
}



/* CTA Section */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-align: center;
}

.waitlist-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.waitlist-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.waitlist-form input[type="email"]:focus {
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.2);
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 2rem 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

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

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-buttons {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        height: 300px;
    }

    .main-dashboard {
        width: 250px;
        height: 150px;
    }

    .floating-card {
        display: none;
    }

    .book-covers-background {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 0.5rem;
        opacity: 0.2;
    }

    /* Reduce background book covers on mobile */
    .hero::before {
        background-size: 40px 56px, 30px 42px, 50px 70px, 35px 49px, 45px 63px, 40px 56px, 37px 52px, 42px 59px, 32px 45px, 47px 66px, 27px 38px, 36px 50px;
    }

    .languages::before {
        background-size: 30px 42px, 25px 35px, 35px 49px, 27px 38px;
    }

    .features::before {
        background-size: 25px 35px, 22px 31px, 27px 38px;
    }

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

    .books-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .book-cover-large {
        height: 250px;
    }

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

    .language-benefits ul {
        flex-direction: column;
        gap: 1rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

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

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

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

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }

    .waitlist-form {
        flex-direction: column;
        align-items: center;
    }

    .waitlist-form input[type="email"] {
        min-width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .books-showcase {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .book-cover-large {
        height: 200px;
        padding: 1rem;
    }

    .book-cover-content h3 {
        font-size: 1rem;
    }

    .book-cover-content .book-author {
        font-size: 0.75rem;
    }

    .book-cover-content .book-language {
        font-size: 0.625rem;
    }
}
