/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary-color: #4F46E5; /* Indigo */
    --secondary-color: #9333EA; /* Purple */
    --background-color: #FFFFFF;
    --surface-color: #F9FAFB; /* Light Gray */
    --text-color: #1F2937; /* Dark Gray */
    --text-secondary: #6B7280; /* Medium Gray */
    --font-family: 'Poppins', sans-serif;
}

/* General Body Styles */
body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header and Navigation */
header {
    background-color: var(--background-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 0; /* No vertical padding */
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 75px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-auth {
    display: flex;
    gap: 1rem;
}

.btn {
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #4338CA;
}

.btn-secondary {
    background-color: #E5E7EB;
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #D1D5DB;
}

/* Hero Section */
#hero {
    display: flex;
    align-items: center;
    padding: 6rem 2rem;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

#waitlist-form-hero {
    display: flex;
    gap: 1rem;
}

#waitlist-form-hero input {
    flex-grow: 1;
    padding: 0.8rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 1rem;
}

.social-proof {
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 450px; /* Adjust max size of the square */
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover; /* Prevents image distortion */
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* General Section Styles */
section {
    padding: 6rem 0;
}

.section-content-split {
    display: flex;
    align-items: center;
    gap: 4rem;
}

#features .section-content-split,
#experience .section-content-split {
    align-items: stretch;
}

.section-content-split.reverse {
    flex-direction: row-reverse;
}

.section-image {
    flex: 1;
    text-align: center;
}

.section-image img {
    max-width: 400px;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

#features .section-image img,
#experience .section-image img {
    height: 100%;
    aspect-ratio: auto;
}

.section-text {
    flex: 1;
}

.section-text h2 {
    text-align: left;
}

#features .section-text h2 {
    text-align: center;
}

.section-text .section-subtitle {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

#features .section-text .section-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: -2rem auto 3rem auto;
}

/* Problem Section */
#problem {
    background-color: var(--surface-color);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.problem-item {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.problem-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1.1rem;
}

/* How Children Learn Section */
#how-children-learn {
    /* This section can share styles with other sections or have its own */
}

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

.learning-item {
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 12px;
}

.learning-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.learning-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-item {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 12px;
}

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

.feature-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* About Page Styles */
#about-hero {
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

#about-hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

#about-content {
    padding-top: 0;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

/* Thank You Page */
#thank-you {
    text-align: center;
    padding: 8rem 2rem;
}

#thank-you h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

#thank-you p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Contact Page Styles */
#contact-hero {
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

#contact-hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

#contact-form-section {
    padding-top: 0;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-family);
}

#contact-form button {
    align-self: flex-start;
}

/* Results Section */
#results {
    background-color: var(--surface-color);
}

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

.result-item {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.result-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--primary-color);
}

.result-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* Journey Section */
.journey-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 2rem;
    margin-top: 3rem;
    align-items: center;
}

.journey-arrow {
    width: 20px;
    height: 20px;
    border-top: 4px solid var(--primary-color);
    border-right: 4px solid var(--primary-color);
    transform: rotate(45deg);
}

.journey-item {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.journey-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.journey-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* Audience Section */
#audience {
    background-color: var(--surface-color);
}

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

.audience-item {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.audience-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.audience-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* Final CTA Section */
#final-cta {
    text-align: center;
    padding-bottom: 4rem; /* Adds space before the footer */
}

#final-cta h2 {
    margin-bottom: 1.5rem;
}

#waitlist-form-final {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

#waitlist-form-final input {
    width: 300px;
    padding: 0.8rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 1rem;
}

/* Footer */
footer {
    background-color: var(--surface-color);
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Changed to four columns */
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-column a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #E5E7EB;
    padding-top: 2rem;
    color: var(--text-secondary);
    text-align: center; /* Center the copyright text */
}

.company-info p {
    font-size: 0.8rem;
    margin: 0.2rem 0;
    line-height: 1.4;
    color: var(--text-secondary);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

#lang-select {
    background-color: #fff;
    border: 1px solid #D1D5DB;
    color: var(--text-secondary);
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-family);
    -webkit-appearance: none; /* Removes default browser styling */
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%236B7280%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: .65em auto;
    padding-right: 30px; /* Make space for the arrow */
}

/* --- Responsive Design --- */

.mobile-menu-button {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Tablet Styles */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    #hero {
        flex-direction: column;
        text-align: center;
        padding: 4rem 1.5rem;
    }

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

    #waitlist-form-hero {
        justify-content: center;
    }

    .section-content-split,
    .section-content-split.reverse {
        flex-direction: column;
        gap: 3rem;
    }

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

    .journey-arrow {
        transform: rotate(90deg);
        margin: 0 auto;
    }

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

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 75px; /* Height of the header */
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 1rem 0;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 1rem 0;
    }

    .mobile-menu-button {
        display: block;
    }

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

    #waitlist-form-hero, #waitlist-form-final {
        flex-direction: column;
    }

    #waitlist-form-final input {
        width: 100%;
    }

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

    .footer-column ul {
        align-items: center;
    }
}