/* 🎨 CSS Variables for Themeing (Warm, Classical Indian Tones) */
:root {
    --color-primary: #8C2F39; /* Rich Deep Maroon/Ruby */
    --color-secondary: #FFB347; /* Saffron/Gold Accent */
    --color-text-dark: #2c2c2c;
    --color-text-light: #f0f0f0;
    --color-light-bg: #f8f5e9; /* Cream/Off-White Base */
    --color-dark: #1a1005; /* Deep brown/dark background */
    --color-shadow-primary: rgba(140, 47, 57, 0.4); /* Primary shade for subtle depth */
    --color-shadow-subtle: rgba(0, 0, 0, 0.1);

    /* Material Design Shadows (For Modern, Elevated Look) */
    --shadow-1: 0 1px 3px var(--color-shadow-subtle), 0 1px 2px var(--color-shadow-subtle);
    --shadow-2: 0 3px 6px var(--color-shadow-subtle), 0 3px 6px var(--color-shadow-subtle);
    --shadow-3: 0 10px 20px var(--color-shadow-primary), 0 3px 6px var(--color-shadow-primary);

    --font-primary: 'Montserrat', sans-serif;
}

/* 📱 Base and Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    /* Lighter, warmer gradient background */
    background: linear-gradient(135deg, var(--color-light-bg), #fffaf0, #fff);
    color: var(--color-text-dark);
    overflow-x: hidden;
}

a {
    color: var(--color-primary); /* Links dark maroon */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary); /* Hover saffron */
}

/* 🎼 Preloader Styling */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--color-dark), var(--color-primary));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.preloader-content {
    text-align: center;
    animation: fade-in-up 1s ease-out;
}

.preloader-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.loading-bar {
    width: 150px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 30%;
    background: var(--color-secondary);
    border-radius: 5px;
    animation: loading-fill 1.5s infinite linear;
}

/* ⬆️ Keyframe Animations */
@keyframes loading-fill {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(333%); }
}

@keyframes fade-in-up {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}


/* ➡️ Navbar Styling */
.logo-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
}

#navbar {
    position: sticky;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    /* REVERTED TRANSPARENCY AND BLUR: Subtle effect retained */
    background: rgba(255, 255, 255, 0.75); 
    backdrop-filter: blur(8px); 
    box-shadow: var(--shadow-2); 
    z-index: 50;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: var(--color-text-dark);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    color: var(--color-text-dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-dark);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 📱 Mobile Navbar */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 65px;
        left: 0;
        background: rgba(255, 255, 255, 0.95);
        border-top: 1px solid var(--color-primary);
        padding: 10px 0;
        z-index: 40;
    }

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

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .hamburger {
        display: block;
    }
}

/* 🖼️ Hero Section (Split Layout) */
.hero-section {
    height: 90vh; 
    display: flex;
    padding: 0;
    background-color: var(--color-light-bg);
    position: relative;
}

.hero-image-half {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-image-half img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

/* Subtle graphic overlay for professional look */
.hero-image-half::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 100%);
}

.hero-content {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    background: linear-gradient(180deg, var(--color-light-bg), #fff);
    color: var(--color-text-dark);
    position: relative;
}

.hero-logo-img {
    /* Retained larger size for prominence */
    width: 100px; 
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: var(--shadow-2); /* Added shadow for lift */
}

.hero-tagline {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--color-primary);
    text-shadow: none;
    font-weight: 700;
}
.hero-content p {
    font-size: 1.1rem;
    margin-top: 10px;
    opacity: 0.85;
}

.scroll-down-btn {
    position: static;
    transform: none;
    margin-top: 30px;
    color: var(--color-secondary);
    font-size: 2.5rem;
    padding: 12px;
    border: none; 
    border-radius: 20%;
    background: var(--color-primary); 
    color: var(--color-secondary);
    box-shadow: var(--shadow-2); /* Elevated button */
    transition: all 0.3s ease;
    animation: arrow-bounce 2s infinite;
}
.scroll-down-btn:hover {
    background: var(--color-dark);
    box-shadow: var(--shadow-3);
    color: var(--color-secondary);
}

@keyframes arrow-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-2px); }
}

@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    .hero-image-half {
        width: 100%;
        height: 40vh; /* Image takes less space on mobile */
    }
    .hero-content {
        width: 100%;
        padding: 40px 5%;
        text-align: center;
        align-items: center;
    }
    .scroll-down-btn {
        margin-left: auto;
        margin-right: auto;
        animation: none; /* Disable bounce on small screens */
    }
    .hero-image-half::after {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 100%);
    }
}

/* 📚 General Content Sections */
.content-section {
    padding: 80px 5%;
    min-height: 50vh;
    background-color: var(--color-light-bg);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 🎤 Classes Section */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.class-card {
    /* Modern Material Card Style */
    padding: 35px;
    border-radius: 12px; 
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow-2); /* Elevated look */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--color-text-light); 
}

.class-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-3); /* Stronger shadow on hover */
}

/* Jewel Tone Gradients */
.gradient-1 { background: linear-gradient(45deg, #A4205E, #D2347B); } 
.gradient-2 { background: linear-gradient(45deg, #1067A4, #44A2E7); } 
.gradient-3 { background: linear-gradient(45deg, #50A55D, #80CB8A); } 
.gradient-4 { background: linear-gradient(45deg, #D28C34, #FFBF69); } 

.class-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--color-text-light);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.ribbon {
    background-color: var(--color-secondary);
    color: var(--color-dark);
}

/* 📍 Locations Section (Accordion) */
.location-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background: #ffffff; /* Clean white background */
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.accordion-item:hover {
    box-shadow: var(--shadow-2);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    background-color: transparent;
    transition: background-color 0.3s ease;
    color: var(--color-text-dark);
}

.accordion-header:hover {
    background-color: #fffaf0; /* Subtle hover color */
}

.accordion-header .fa-map-marker-alt {
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 20px;
    background: #fffaf0; /* Very light background for content */
}

.accordion-content.active {
    max-height: 200px; /* Adjust based on content size */
    padding: 20px;
}
.accordion-content p {
    margin: 0;
    line-height: 1.6;
}

/* 📞 Contact Section */
.contact-section {
    background: var(--color-primary); /* Dark maroon section for contrast */
    color: var(--color-text-light);
    padding: 80px 5%;
}

.contact-card {
    background: var(--color-light-bg); /* Use light background for card on dark section */
    box-shadow: var(--shadow-3); /* Strong, defined shadow */
    color: var(--color-text-dark);
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.contact-card h3 {
    color: var(--color-primary); /* Primary color title */
    margin-bottom: 10px;
}
.contact-card p {
    margin-bottom: 25px;
}
.contact-details {
    margin-bottom: 20px;
}
.contact-item {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
}
.contact-item i {
    color: var(--color-primary); /* Primary color icon */
    margin-right: 10px;
    font-size: 1.2rem;
}

/* 🌟 CTA Buttons (Modern/Material Style) */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    margin: 10px 10px 0;
    border-radius: 50px; /* Pill shape */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-3);
}

.primary-cta {
    background: var(--color-secondary); /* Saffron fill */
    color: var(--color-primary); /* Maroon text */
}

.primary-cta:hover {
    background: #ffc470; /* Slightly lighter saffron on hover */
}

.whatsapp-cta {
    background: #25d366;
    color: white;
}

.whatsapp-cta:hover {
    background: #128c7e;
}

.cta-button i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* 🔊 Audio Control Button */
#audio-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 60;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-secondary);
    border: 3px solid var(--color-secondary);
    box-shadow: var(--shadow-3);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s, transform 0.3s, opacity 0.3s;
    font-size: 1.2rem;
}
#audio-control:hover {
    background: var(--color-dark);
    transform: scale(1.05);
}


/* 🌅 Footer (ENHANCED AND RETAINED) */
.footer-section {
    background: var(--color-dark);
    color: var(--color-text-light);
    padding: 30px 5%; /* Adjusted padding */
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2); /* Shadow for separation */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center; /* CENTER ALIGNED */
}

.footer-social {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.footer-social a {
    color: var(--color-text-light);
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--color-secondary);
    transform: scale(1.1);
}

.developer-credit {
    font-size: 0.85rem;
    margin-top: 10px;
}

.developer-credit a {
    color: var(--color-secondary); /* Saffron color for the brand name */
    font-weight: 600;
}


/* 💻 Desktop Adjustments */
@media (min-width: 1024px) {
    .content-section {
        padding: 100px 10%;
    }
}

/* YouTube Section Styles */
.youtube-section {
    text-align: center;
    padding: 3rem 1rem;
}

.youtube-videos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.youtube-video-frame {
    width: 100%;
    max-width: 70vw;
    margin: 0 auto 2rem auto;
    display: flex;
    justify-content: center;
}

.youtube-video-frame iframe {
    width: 100%;
    height: 40vw;
    max-height: 420px;
    min-height: 220px;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}

.youtube-cta {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.youtube-cta .cta-button {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    border-radius: 24px;
    background: #ff0000;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: background 0.2s;
}

.youtube-cta .cta-button:hover {
    background: #cc0000;
}
