/* Base styles */
:root {
    --color-primary: #4A0E63;
    --color-secondary: #1F7C4A;
    --color-text: #262626;
    --color-text-light: #666666;
    --color-background: #ffffff;
    --color-background-alt: #f8f8f8;
    --color-border: #e5e5e5;
    --font-heading: 'Martel', serif;
    --font-body: 'Mukta', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    background-color: var(--color-background);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1.2em;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    border-radius: 3px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8em 2em;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease-out;
}

.btn:hover {
    background-color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover::before {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
}

.btn:focus {
    outline: none;
}

/* Header and Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.header__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo__icon {
    margin-right: 0.5rem;
}

.nav__list {
    display: flex;
    gap: 1.5rem;
}

.nav__link {
    position: relative;
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav__link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav__link:hover {
    color: var(--color-primary);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__item {
    position: relative;
}

.nav__item:not(:hover) .nav__link {
    filter: blur(0);
}

.nav__list:hover .nav__item:not(:hover) .nav__link {
    filter: blur(1px);
    opacity: 0.7;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: url('../images/hero-main.webp') no-repeat center/cover;
}

.hero__gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(74, 14, 99, 0.8), rgba(31, 124, 74, 0.8));
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero__title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero__btn {
    font-size: 1.1rem;
    padding: 1em 2.5em;
    background: transparent;
    border: 2px solid white;
}

.hero__btn:hover {
    background-color: white;
    color: var(--color-primary);
}

.hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 3;
}

/* About Section */
.about {
    position: relative;
    padding: 5rem 0;
    background-color: var(--color-background);
}

.about__content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about__text {
    flex: 1;
}

.about__image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Benefits Section */
.benefits {
    position: relative;
    padding: 5rem 0;
    background-color: var(--color-background-alt);
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.benefit-card__icon {
    margin-bottom: 1.5rem;
}

.benefit-card__title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Philosophy Section */
.philosophy {
    position: relative;
    padding: 5rem 0;
    background-color: var(--color-background);
}

.philosophy__content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.philosophy__image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    order: 2;
}

.philosophy__text {
    flex: 1;
    order: 1;
}

.philosophy__list {
    margin-top: 1.5rem;
}

.philosophy__list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.philosophy__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-secondary);
}

/* Classes Section */
.classes {
    position: relative;
    padding: 5rem 0;
    background-color: var(--color-background-alt);
}

.classes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.class-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.class-card:hover {
    transform: translateY(-5px);
}

.class-card__image {
    height: 230px;
    overflow: hidden;
}

.class-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.class-card:hover .class-card__image img {
    transform: scale(1.05);
}

.class-card__content {
    padding: 1.5rem;
}

.class-card__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.class-card__description {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.class-card__details {
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
}

.class-card__details li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Teachers Section */
.teachers {
    position: relative;
    padding: 5rem 0;
    background-color: var(--color-background);
}

.teachers__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    justify-content: center;
}

.teacher-card {
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-5px);
}

.teacher-card__image {
    height: 320px;
    overflow: hidden;
}

.teacher-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.teacher-card:hover .teacher-card__image img {
    transform: scale(1.05);
}

.teacher-card__content {
    padding: 1.5rem;
}

.teacher-card__name {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.teacher-card__specialty {
    color: var(--color-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Gallery Section */
.gallery {
    position: relative;
    padding: 5rem 0;
    background-color: var(--color-background-alt);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 1.5rem;
}

.gallery__item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 245px;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery__item:hover img {
    transform: scale(1.05);
}

/* Testimonials Section */
.testimonials {
    position: relative;
    padding: 5rem 0;
    background-color: var(--color-background);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card__quote {
    margin-bottom: 1rem;
    opacity: 0.4;
}

.testimonial-card__text {
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-card__author {
    font-weight: 600;
    color: var(--color-primary);
}

/* Contact Section */
.contact {
    position: relative;
    padding: 5rem 0;
    background-color: var(--color-background-alt);
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact__text {
    margin-bottom: 2rem;
}

.contact__email {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1rem;
    color: var(--color-primary);
}

.contact__decorative {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.contact__form-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(74, 14, 99, 0.1);
}

.form-checkbox {
    margin-right: 0.5rem;
}

.form-policy {
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
}

.form-checkbox-label {
    line-height: 1.4;
}

.form-btn {
    width: 100%;
    font-size: 1rem;
    padding: 1em;
}

/* Footer */
.footer {
    background-color: #262626;
    color: #f5f5f5;
    padding: 4rem 0 2rem;
    position: relative;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
        "logo nav programs teachers"
        "logo contact contact contact"
        "legal legal legal legal"
        "copyright copyright copyright copyright";
    gap: 2rem;
}

.footer__logo {
    grid-area: logo;
}

.footer__nav {
    grid-area: nav;
}

.footer__programs {
    grid-area: programs;
}

.footer__teachers {
    grid-area: teachers;
}

.footer__contact {
    grid-area: contact;
}

.footer__legal {
    grid-area: legal;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.footer__copyright {
    grid-area: copyright;
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer__heading {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer__heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-secondary);
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer__link {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.footer__link:hover {
    color: white;
    transform: translateX(5px);
}

.footer__link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.footer__link:hover::before {
    width: 100%;
}

.footer__logo-link {
    color: white;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer__tagline {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
}

.footer__email a {
    color: var(--color-secondary);
}

.footer__email a:hover {
    color: white;
}

.footer__legal-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer__legal-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer__legal-link:hover {
    color: white;
}

/* Section waves */
.section-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 3;
    line-height: 0;
}

/* Hover Effects */
.logo:hover svg path {
    fill: var(--color-secondary);
    transition: var(--transition);
}

.footer__link:hover {
    text-shadow: 0 0 10px rgba(31, 124, 74, 0.5);
}

.footer__logo-link:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Thankyou Page */
.thankyou {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
}

.thankyou__icon {
    margin-bottom: 2rem;
}

.thankyou__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.thankyou__text {
    max-width: 600px;
    margin-bottom: 2rem;
}

.thankyou__btn {
    font-size: 1.1rem;
}

/* Policy Pages */
.policy {
    padding: 5rem 0;
}

.policy__container {
    max-width: 800px;
    margin: 0 auto;
}

.policy__title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.policy__content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.policy__content h3 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.policy__content p,
.policy__content ul,
.policy__content ol {
    margin-bottom: 1.5rem;
}

.policy__content ul li,
.policy__content ol li {
    margin-bottom: 0.5rem;
    margin-left: 1.5rem;
}

.policy__content ul {
    list-style-type: disc;
}

.policy__content ol {
    list-style-type: decimal;
}

.policy__home-btn {
    display: inline-block;
    margin-top: 2rem;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .about__content,
    .philosophy__content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact__content {
        grid-template-columns: 1fr;
    }
    
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "logo nav"
            "programs teachers"
            "contact contact"
            "legal legal"
            "copyright copyright";
    }
}

@media (max-width: 768px) {
    .hero {
        height: 70vh;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__subtitle {
        font-size: 1.2rem;
    }
    
    .benefits__grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .classes__grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .gallery__grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .about__content,
    .philosophy__content {
        text-align: center;
    }
    
    .philosophy__list li {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .header__wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav__list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "nav"
            "programs"
            "teachers"
            "contact"
            "legal"
            "copyright";
        text-align: center;
    }
    
    .footer__heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer__legal-list {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 375px) {
    .hero__title {
        font-size: 1.8rem;
    }
    
    .hero__subtitle {
        font-size: 1rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.7em 1.5em;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .benefit-card,
    .class-card,
    .teacher-card,
    .testimonial-card {
        padding: 1.5rem;
    }
}