:root {
    --teal: #2c6a6a;
    --cream: #f5f1e6;
    --ochre: #e0a84d;
    --dark-text: #333333;
    --light-text: #ffffff;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/* Background Animation */
#background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Make sure it's behind everything */
    overflow: hidden;
}

#background-animation span {
    position: absolute;
    bottom: -50px;
    font-size: 2rem;
    color: var(--teal);
    opacity: 0.15;
    animation: rise 20s infinite linear;
}

#background-animation span:nth-child(1) { left: 10%; animation-duration: 15s; font-size: 2.5rem; }
#background-animation span:nth-child(2) { left: 20%; animation-duration: 25s; animation-delay: 2s; }
#background-animation span:nth-child(3) { left: 30%; animation-duration: 18s; }
#background-animation span:nth-child(4) { left: 40%; animation-duration: 22s; animation-delay: 5s; font-size: 1.8rem; }
#background-animation span:nth-child(5) { left: 50%; animation-duration: 30s; }
#background-animation span:nth-child(6) { left: 60%; animation-duration: 16s; animation-delay: 3s; font-size: 2.2rem; }
#background-animation span:nth-child(7) { left: 70%; animation-duration: 28s; }
#background-animation span:nth-child(8) { left: 80%; animation-duration: 20s; animation-delay: 1s; font-size: 1.5rem; }
#background-animation span:nth-child(9) { left: 90%; animation-duration: 24s; }

@keyframes rise {
    from {
        bottom: -50px;
        transform: translateX(0);
    }
    to {
        bottom: 100vh;
        transform: translateX(20px) rotate(15deg);
    }
}

/* Hero Section */
.hero {
    background-color: var(--teal);
    color: var(--light-text);
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    animation: fadeIn 1s ease-out;
}

.hero-content {
    animation: fadeInUp 1s 0.2s ease-out backwards;
}

.logo-circle {
    width: 90px;
    height: 90px;
    background-color: var(--cream);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--teal);
    font-family: 'Lora', serif;
    font-size: 3rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.hero h1 {
    font-family: 'Lora', serif;
    font-size: 3rem;
    margin: 0 0 0.5rem;
    line-height: 1.1;
    letter-spacing: 1px;
}

.hero .tagline {
    font-style: italic;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Details Section */
.details-section {
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--cream);
}

.section-title {
    color: var(--teal);
    font-family: 'Lora', serif;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--ochre);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-out backwards;
}

.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.4s; }


.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.feature-card h3 {
    color: var(--teal);
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.feature-card p {
    font-size: 1rem;
    color: #555;
}

/* Contact Section */
.contact-section {
    background-color: #e9e5d9; /* A slightly darker cream */
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.class-timing {
    background-color: var(--teal);
    color: var(--light-text);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 0;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(44, 106, 106, 0.3);
}

.contact-section .section-title {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.contact-info a {
    background-color: #fff;
    color: var(--teal);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    border: 2px solid var(--teal);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-info a:hover {
    background-color: var(--teal);
    color: var(--light-text);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.contact-info svg {
    width: 22px;
    height: 22px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 1.5rem;
        min-height: 40vh;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .tagline {
        font-size: 1rem;
    }

    .details-section, .contact-section {
        padding: 3rem 1.5rem;
    }

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }
}