/* Index Page Styles */

/* Body font for index page */
body.index-page {
    font-family: 'Poppins', Arial, sans-serif;
}

/* Header Override for Index Page - Remove gradient background */
body.index-page .header {
    height: auto !important;
    min-height: auto !important;
    background: transparent !important;
    padding-bottom: 0 !important;
}

body.index-page .header::after {
    display: none !important;
}

/* Hero Section */
.hero-section {
    min-height: 450px;
    padding: 100px 20px 80px;
    margin-top: 60px;
    background: linear-gradient(135deg, #1f767a 0%, #20b2aa 50%, #006666 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.1) rotate(5deg); opacity: 0.5; }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Poppins', Arial, sans-serif;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    font-family: 'Poppins', Arial, sans-serif;
    color: #fff;
}

body.index-page .hero-title,
body.index-page h1.hero-title {
    font-family: 'Poppins', Arial, sans-serif !important;
    font-weight: 800 !important;
    font-size: 3rem !important;
    color: #fff !important;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.8;
    opacity: 0.95;
    font-weight: 400;
    font-family: 'Poppins', Arial, sans-serif;
    color: #fff;
}

body.index-page .hero-subtitle {
    font-family: 'Poppins', Arial, sans-serif !important;
    color: #fff !important;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    white-space: nowrap;
    min-width: 180px;
    font-family: 'Poppins', Arial, sans-serif;
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    color: #fff;
}

.hero-btn-secondary i {
    color: #fff;
}

/* Features Section */
.features-section {
    padding: 100px 20px;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #1d2a57;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    font-family: 'Poppins', Arial, sans-serif;
}

.section-subtitle {
    font-size: 1.15rem;
    color: #626a8a;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    font-family: 'Poppins', Arial, sans-serif;
}

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

.feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(16, 100, 104, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1f767a, #20b2aa, #5bd1d7);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(16, 100, 104, 0.2);
    border-color: rgba(16, 100, 104, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #1f767a 0%, #20b2aa 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 100, 104, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 25px rgba(16, 100, 104, 0.4);
}

.feature-card[data-feature="dictionary"] .feature-icon {
    background: linear-gradient(135deg, #1f767a 0%, #20b2aa 100%);
}

.feature-card[data-feature="translate"] .feature-icon {
    background: linear-gradient(135deg, #00bdb6 0%, #5bd1d7 100%);
}

.feature-card[data-feature="grammar"] .feature-icon {
    background: linear-gradient(135deg, #106468 0%, #1f767a 100%);
}

.feature-card[data-feature="exercises"] .feature-icon {
    background: linear-gradient(135deg, #20b2aa 0%, #5bd1d7 100%);
}

.feature-card[data-feature="writing"] .feature-icon {
    background: linear-gradient(135deg, #006666 0%, #00bdb6 100%);
}

.feature-card[data-feature="games"] .feature-icon {
    background: linear-gradient(135deg, #1f767a 0%, #5bd1d7 100%);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d2a57;
    margin-bottom: 15px;
    letter-spacing: -0.3px;
    font-family: 'Poppins', Arial, sans-serif;
}

.feature-description {
    font-size: 1rem;
    color: #626a8a;
    line-height: 1.7;
    margin-bottom: 25px;
    font-family: 'Poppins', Arial, sans-serif;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #106468;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: 'Poppins', Arial, sans-serif;
}

.feature-link:hover {
    gap: 12px;
    color: #1f767a;
}

.feature-link i {
    transition: transform 0.3s ease;
}

.feature-link:hover i {
    transform: translateX(5px);
}

/* Stats Section */
.stats-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #1f767a 0%, #20b2aa 50%, #006666 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: #fff;
    font-family: 'Poppins', Arial, sans-serif;
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Poppins', Arial, sans-serif;
}

.stat-label {
    font-size: 1.15rem;
    font-weight: 500;
    opacity: 0.95;
    letter-spacing: 0.5px;
    font-family: 'Poppins', Arial, sans-serif;
}

/* CTA Section */
.cta-section {
    padding: 100px 20px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d2a57;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    font-family: 'Poppins', Arial, sans-serif;
}

.cta-subtitle {
    font-size: 1.15rem;
    color: #626a8a;
    margin-bottom: 40px;
    line-height: 1.7;
    font-family: 'Poppins', Arial, sans-serif;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Poppins', Arial, sans-serif;
}

.cta-btn-primary {
    background: linear-gradient(135deg, #1f767a 0%, #20b2aa 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(16, 100, 104, 0.3);
}

.cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(16, 100, 104, 0.4);
}

.cta-btn-secondary {
    background: #fff;
    color: #106468;
    border: 2px solid #106468;
}

.cta-btn-secondary:hover {
    background: #106468;
    color: #fff;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

@media (max-width: 768px) {
    body.index-page .header {
        height: auto !important;
    }

    .hero-section {
        padding: 80px 20px 50px;
        margin-top: 50px;
        min-height: 400px;
    }

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

    body.index-page .hero-title {
        font-size: 2.25rem !important;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .features-section {
        padding: 60px 20px;
    }

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

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

    .stat-number {
        font-size: 3rem;
    }

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

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 15px 40px;
        margin-top: 50px;
        min-height: 350px;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }

    body.index-page .hero-title {
        font-size: 1.75rem !important;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .hero-btn {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        justify-content: center;
        padding: 14px 24px;
        font-size: 1rem;
    }

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

    .feature-card {
        padding: 30px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

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

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