@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Great+Vibes&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Montserrat:wght@300;400;600;700&display=swap');

:root {
    --primary-green: #0a4d2e;
    --accent-green: #198754;
    --vibrant-green: #2ecc71;
    --soft-mint: #f0f9f4;
    --dark-green: #052c1a;
    --gold: #d4af37;
    --pure-white: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    background-color: var(--pure-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
}

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

@keyframes pulseWhatsApp {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.reveal {
    animation: fadeInUp 0.8s ease forwards;
}

.navbar {
    transition: var(--transition-smooth);
    padding: 0.8rem 0;
    min-height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: var(--pure-white);
    z-index: 9999;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    padding: 0.4rem 0;
    top: 0 !important; /* Jump to top when scrolled */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--text-main) !important;
    text-shadow: 
        -2px -2px 0 #fff,  
         2px -2px 0 #fff,
        -2px  2px 0 #fff,
         2px  2px 0 #fff,
         3px 3px 10px rgba(0,0,0,0.1);
    letter-spacing: 1px;
    padding: 0;
    margin: 0;
    transition: var(--transition-smooth);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.brand-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    display: block;
    height: 90px !important; /* Enlarged logo */
    width: auto !important;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.brand-name-text {
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    color: var(--primary-green) !important;
    line-height: 1;
    text-shadow: 
        -1px -1px 0 #fff,  
         1px -1px 0 #fff,
        -1px  1px 0 #fff,  
         1px  1px 0 #fff;
    white-space: nowrap;
}

.custom-a {
    font-family: 'Alex Brush', cursive;
    font-size: 1.1em;
}

/* Responsiveness for Mobile Devices */
@media (max-width: 991.98px) {
    .brand-logo {
        height: 60px !important;
    }
    .brand-name-text {
        font-size: 1.8rem;
    }
    .navbar {
        padding: 0.5rem 0;
    }
}

@media (max-width: 575.98px) {
    .brand-logo {
        height: 50px !important;
    }
    .brand-name-text {
        font-size: 1.4rem;
        white-space: normal; /* Allow wrapping on very small screens */
        max-width: 150px;
        line-height: 0.9;
    }
}

.navbar.scrolled .brand-logo {
    height: 60px !important;
}

/* Navbar Scrolled State Fix */
.navbar.scrolled {
    background: #fff !important;
    backdrop-filter: blur(15px);
    padding: 0.2rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled .nav-link {
    color: var(--primary-green) !important;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #fff;
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }
    .navbar-nav .nav-link {
        color: var(--primary-green) !important;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
}

.nav-link {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--primary-green) !important;
    margin: 0 8px;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: var(--transition-smooth);
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(10, 77, 46, 0.95) 0%, rgba(25, 135, 84, 0.85) 100%), 
                url('../img/hero_bg.png') no-repeat center center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    padding-top: 140px; 
    padding-bottom: 60px;
    clip-path: ellipse(150% 100% at 50% 0%);
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 120px;
        text-align: center;
        clip-path: none; /* Simplify for mobile performance */
    }
    .hero-section .row {
        flex-direction: column-reverse;
    }
    .hero-section img {
        max-width: 80%;
        margin: 0 auto 30px;
    }
}

.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.btn-premium {
    background: var(--gold);
    color: var(--dark-green);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
    background: #e5be42;
}

/* Features/Services */
.feature-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #f1f1f1;
    transition: var(--transition-smooth);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--accent-green);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--soft-mint);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Testimonials Section Background */
#testimonials {
    background: #f8fafc !important; /* Soft off-white as in the screenshot */
}

/* Upgraded Testimonial Card Layout */
.testimonial-card {
    background: #ffffff;
    border-radius: 20px;
    border-bottom-right-radius: 65px; /* Premium asymmetric curve! */
    padding: 40px 35px 35px 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: visible; /* Elegant quote symbol overlap */
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.01);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(10, 77, 46, 0.06);
}

/* Green Floating Quote Element in Upper Right Corner */
.testimonial-card::before {
    content: '”';
    position: absolute;
    top: -2px;
    right: 25px;
    font-size: 90px;
    color: var(--primary-green);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1;
    z-index: 1;
    opacity: 0.95;
}

.testimonial-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.testimonial-stars {
    color: #ffb020; /* Beautiful soft yellow star color as in the screenshot */
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.testimonial-comment {
    font-size: 1.02rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 25px;
    font-style: normal !important; /* No italics as in screenshot */
    font-family: 'Montserrat', sans-serif; /* Clean sans-serif font */
}

.testimonial-student-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 2px;
    font-size: 1.15rem;
}

.testimonial-student-batch {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    text-decoration: none;
    animation: pulseWhatsApp 2s infinite;
}

.whatsapp-float::before {
    content: "Talk to us: " attr(data-number);
    position: absolute;
    right: 75px;
    background: white;
    color: var(--primary-green);
    font-size: 14px;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 30px;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid var(--primary-green);
}

.whatsapp-float:hover {
    color: white;
    transform: scale(1.1);
}

/* Footer */
footer {
    background: var(--dark-green);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
}

.footer-logo-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--accent-green);
    transform: translateY(-3px);
}
