/* ===== Landing Page Styles ===== */

.landing-page {
    background: #ffffff;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Hero animations on page load */
.hero-badge,
.hero-title-large,
.hero-subtitle,
.hero-cta,
.trust-item {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-title-large {
    animation-delay: 0.2s;
}

.hero-subtitle {
    animation-delay: 0.4s;
}

.hero-cta {
    animation-delay: 0.6s;
}

.trust-item:nth-child(1) {
    animation-delay: 0.8s;
}

.trust-item:nth-child(2) {
    animation-delay: 0.9s;
}

.trust-item:nth-child(3) {
    animation-delay: 1s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header scroll effect */
.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.site-header.scrolled .site-title a,
.site-header.scrolled .site-nav a {
    color: var(--text-primary);
}

.site-header.scrolled .site-nav a:hover,
.site-header.scrolled .site-nav a.active {
    color: var(--primary-color);
}

/* Transparent Header for Landing */
.site-header.transparent {
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 100%);
    border-bottom: none;
    position: absolute;
    width: 100%;
    z-index: 1000;
}

.site-header.transparent .site-title a,
.site-header.transparent .site-nav a {
    color: white;
}

.site-header.transparent .site-nav a:hover,
.site-header.transparent .site-nav a.active {
    color: rgba(255, 255, 255, 0.9);
}

.site-header.transparent .nav-toggle {
    color: white;
}

.site-header.transparent .nav-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* Mobile nav on transparent header - solid background for readability */
@media (max-width: 768px) {
    .site-header.transparent .site-nav {
        background-color: var(--bg-white);
        border: 1px solid var(--border-color);
    }

    .site-header.transparent .site-nav a {
        color: var(--text-primary);
    }

    .site-header.transparent .site-nav a:hover,
    .site-header.transparent .site-nav a.active {
        background: var(--soft-blue);
        color: var(--primary-color);
    }
}

/* Hero Landing */
.hero-landing {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.6) 0%, rgba(29, 78, 216, 0.55) 100%), 
                url('../img/hero.webp') center/cover no-repeat;
    color: white;
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content-center {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title-large {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: white !important;
    color: #2563EB !important;
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.btn-cta-primary svg {
    color: #2563EB;
    stroke: #2563EB;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: #1d4ed8 !important;
    background: #f8fafc !important;
}

.btn-cta-primary:hover svg {
    stroke: #1d4ed8;
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: transparent;
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-item {
    text-align: center;
}

.trust-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.trust-text {
    display: block;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-title-main {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Subjects Section */
.subjects-section {
    padding: 6rem 0;
    background: var(--bg-white);
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.subject-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.subject-card:hover {
    background: var(--soft-blue);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.1);
}

.subject-icon {
    font-size: 2.5rem;
}

.subject-name {
    font-weight: 600;
    font-size: 1rem;
}

.cta-center {
    text-align: center;
}

.btn-outline-large {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-outline-large:hover {
    background: var(--text-primary);
    color: white;
    transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.6) 0%, rgba(29, 78, 216, 0.55) 100%), 
                url('../img/cta.webp') center/cover no-repeat;
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.btn-cta-white {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-cta-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: var(--primary-hover);
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.footer-col h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-col p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-landing {
        padding: 6rem 0 3rem;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }

    .hero-title-large {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }

    .trust-badges {
        gap: 1.5rem;
    }

    .trust-number {
        font-size: 1.5rem;
    }

    .section-title-main {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-content p {
        font-size: 1rem;
    }
}
