/* --- Google Fonts & Variables --- */
:root {
    --primary-color: #1e1b4b; /* Deep Indigo */
    --secondary-color: #f59e0b; /* Amber/Gold */
    --text-color: #333333;
    --light-bg: #f9fafb;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { color: var(--text-color); line-height: 1.6; overflow-x: hidden; }
html { scroll-behavior: smooth; }

/* --- Reusable Classes --- */
.section-title { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; font-weight: 700; }
.center { text-align: center; }
.mt-10 { margin-top: 10px; }
.btn {
    display: inline-block; padding: 12px 28px; border-radius: 30px;
    text-decoration: none; font-weight: 600; transition: var(--transition);
    cursor: pointer; border: none;
}
.btn-primary { background: var(--secondary-color); color: var(--white); box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3); }
.btn-primary:hover { background: #d97706; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4); }
.btn-outline { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: var(--white); transform: translateY(-3px); }
.btn-google { background: #ffffff; color: #db4437; border: 2px solid #db4437; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.btn-google:hover { background: #db4437; color: #ffffff; transform: translateY(-3px); }

/* --- Navbar --- */
.navbar {
    position: fixed; top: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); z-index: 1000; transition: var(--transition);
}
.navbar.solid-nav {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.nav-container { max-width: 1200px; margin: 0 auto; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 50px; }
.nav-links a { text-decoration: none; color: var(--primary-color); margin-left: 25px; font-weight: 600; position: relative; transition: var(--transition); }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; background: var(--secondary-color); bottom: -5px; left: 0; transition: var(--transition); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--secondary-color); }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary-color); }

/* --- Hero Section --- */
.hero { height: 100vh; background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%); display: flex; align-items: center; justify-content: center; padding: 0 5%; overflow: hidden; }
.hero-content { flex: 1; max-width: 600px; }
.hero-content h1 { font-size: 3.5rem; color: var(--primary-color); line-height: 1.2; margin-bottom: 20px; }
.hero-content h1 span { color: var(--secondary-color); }
.hero-content p { font-size: 1.1rem; margin-bottom: 30px; color: #555; }
.hero-image { flex: 1; display: flex; justify-content: center; position: relative; }
.hero-image img { max-width: 100%; border-radius: 20px; animation: float 6s ease-in-out infinite; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0px); } }

/* --- About Section --- */
.about { padding: 100px 5%; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 50px; }
.about-text { flex: 1; }
.about-list { list-style: none; margin-top: 20px; }
.about-list li { margin-bottom: 10px; font-weight: 600; color: var(--primary-color); }
.about-list i { color: var(--secondary-color); margin-right: 10px; }
.about-video { flex: 1; position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 30px rgba(0,0,0,0.15); cursor: pointer; }
.about-video img { width: 100%; display: block; transition: var(--transition); }
.about-video:hover img { transform: scale(1.05); }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 70px; height: 70px; background: var(--secondary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.5rem; box-shadow: 0 0 20px rgba(245, 158, 11, 0.6); transition: var(--transition); }
.about-video:hover .play-btn { transform: translate(-50%, -50%) scale(1.1); }

/* --- Facilities Section & Carousel (Dynamic PHP Ready) --- */
.facilities { padding: 80px 0; background: var(--light-bg); overflow: hidden; }
.carousel-container { width: 100%; overflow: hidden; white-space: nowrap; position: relative; padding: 10px 0; }

.carousel-track { 
    display: inline-flex; 
    gap: 30px; 
    animation: scrollCarousel 25s linear infinite; 
    width: max-content; /* Dynamic fix */
}
.carousel-track.reverse { 
    animation: scrollCarouselReverse 25s linear infinite; 
}

.facility-card {
    min-width: 420px;
    background: var(--white); border-radius: 15px; overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: var(--transition);
}
.facility-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.facility-card img { width: 100%; height: 280px; object-fit: cover; display: block; }
.facility-card h3 { text-align: center; padding: 15px; font-size: 1.2rem; color: var(--primary-color); }

/* Dynamic Carousel Animations (-50% allows exact looping of doubled PHP arrays) */
@keyframes scrollCarousel { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(calc(-50% - 15px)); } 
}
@keyframes scrollCarouselReverse { 
    0% { transform: translateX(calc(-50% - 15px)); } 
    100% { transform: translateX(0); } 
}

/* --- Vision & Mission Section --- */
.vision-mission { padding: 100px 5%; background: linear-gradient(135deg, var(--primary-color) 0%, #312e81 100%); position: relative; overflow: hidden; }
.vision-mission::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; background: rgba(245, 158, 11, 0.2); border-radius: 50%; filter: blur(80px); }
.vm-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; position: relative; z-index: 2; }
.vm-card { background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.15); padding: 50px 40px; border-radius: 20px; color: var(--white); transition: var(--transition); }
.vm-card:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.12); }
.vm-icon { font-size: 3rem; color: var(--secondary-color); margin-bottom: 25px; }
.vm-card h2 { font-size: 2.2rem; margin-bottom: 20px; color: var(--white); }
.vm-card p { font-size: 1rem; color: #e2e8f0; line-height: 1.8; }
.vm-list { list-style: none; }
.vm-list li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; font-size: 1.05rem; line-height: 1.6; color: #e2e8f0; }
.vm-list li i { color: var(--secondary-color); margin-top: 5px; font-size: 1rem; }

/* --- Gallery Section --- */
.gallery { padding: 80px 5%; background: var(--light-bg); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
}
.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    aspect-ratio: 16 / 9;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}
.gallery-item:hover img { transform: scale(1.1); }

/* --- Video Embed Section --- */
.video-section { padding: 80px 5%; max-width: 1000px; margin: 0 auto; }
.video-container {
    position: relative; width: 100%; padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 20px; overflow: hidden; box-shadow: 0 15px 30px rgba(0,0,0,0.15); background: #000;
}
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* --- Testimonials Section --- */
.testimonials { padding: 80px 0; background: var(--light-bg); overflow: hidden; }
.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    position: relative;
    border-top: 5px solid var(--secondary-color);
    transition: var(--transition);
    min-width: 420px;
    white-space: normal; /* CRITICAL: Allows paragraph text to wrap nicely */
}
.testimonial-card:hover { transform: translateY(-5px); }
.quote-icon { font-size: 2rem; color: #eee; position: absolute; top: 20px; right: 20px; }
.testimonial-card p { font-style: italic; color: #555; margin-bottom: 20px; position: relative; z-index: 1; }
.testimonial-card h4 { color: var(--primary-color); }
.stars { color: var(--secondary-color); margin-top: 5px; }

/* --- Contact Form Section (Supports Static & PHP Dynamic Forms) --- */
.contact-section { display: flex; max-width: 1200px; margin: 80px auto 100px; padding: 0 5%; gap: 50px; align-items: stretch; }
.contact-map { flex: 1; min-height: 450px; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.contact-form-container { flex: 1; background: var(--white); padding: 40px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.contact-form, .dynamic-contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form input, .contact-form textarea, .dynamic-contact-form input, .dynamic-contact-form textarea { 
    width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 10px; font-size: 1rem; transition: var(--transition); 
}
.contact-form input:focus, .contact-form textarea:focus, .dynamic-contact-form input:focus, .dynamic-contact-form textarea:focus { 
    border-color: var(--secondary-color); outline: none; box-shadow: 0 0 8px rgba(245, 158, 11, 0.2); 
}
.dynamic-contact-form button:disabled { background: #cccccc; cursor: not-allowed; transform: none; box-shadow: none; }

/* --- Footer --- */
footer { background: var(--primary-color); color: var(--white); padding: 60px 5% 20px; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 40px; }
.footer-logo { height: 60px; margin-bottom: 20px; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); color: var(--white); margin-right: 10px; margin-top: 15px; text-decoration: none; transition: var(--transition); }
.socials a:hover { background: var(--secondary-color); transform: translateY(-3px); }
.footer-col h3 { font-size: 1.3rem; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--secondary-color); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 15px; color: #ccc; }
.footer-col ul li a { color: #ccc; text-decoration: none; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--secondary-color); padding-left: 5px; }
.footer-col ul li i { margin-right: 10px; color: var(--secondary-color); }
.footer-bottom { text-align: center; padding-top: 20px; color: #aaa; font-size: 0.9rem; }

/* --- Floating WhatsApp Icon Fix --- */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px;
    background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center;
    font-size: 30px; box-shadow: 2px 2px 15px rgba(0,0,0,0.2); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); animation: pulse-green 2s infinite;
    text-decoration: none !important; border: none; outline: none;
}
.whatsapp-float:hover { 
    transform: scale(1.1); background-color: #1ebe5d; color: white; 
    text-decoration: none; 
}
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================================
   OTHER PAGES CSS (Contact Page & Privacy Policy Page)
   ========================================================= */
.page-header { background: linear-gradient(135deg, var(--primary-color) 0%, #312e81 100%); color: var(--white); padding: 150px 5% 80px; text-align: center; }
.page-header h1 { font-size: 3rem; color: var(--secondary-color); margin-bottom: 10px; }
.contact-page-content, .privacy-content { max-width: 1200px; margin: 80px auto; padding: 0 5%; }

/* Contact Page Specific */
.contact-info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.info-card { text-align: center; background: var(--white); padding: 40px 20px; border-radius: 15px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: var(--transition); }
.info-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-bottom: 3px solid var(--secondary-color); }
.info-card i { font-size: 2.5rem; color: var(--secondary-color); margin-bottom: 20px; }
.info-card h3 { color: var(--primary-color); margin-bottom: 10px; }

/* Privacy Policy Specific */
.privacy-content .text-container { background: var(--white); padding: 50px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.privacy-content h2 { color: var(--primary-color); margin: 30px 0 15px; }

/* --- Responsive Design --- */
@media (max-width: 991px) {
    .hero { flex-direction: column; text-align: center; padding-top: 100px; height: auto; padding-bottom: 50px; }
    .hero-content { margin-bottom: 40px; }
    .about, .contact-section, .vm-container { flex-direction: column; }
    .nav-links { display: none; }
    .hamburger { display: block; }
    .nav-links.active {
        display: flex; flex-direction: column; position: absolute;
        top: 70px; left: 0; width: 100%; background: var(--white);
        padding: 20px; box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active a { margin: 15px 0; }
    /* Gallery mobile fallback */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .hero-content h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .vm-card { padding: 30px 20px; }
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; font-size: 25px; }
    .contact-map { min-height: 300px; }
    .privacy-content .text-container { padding: 25px 20px; }
    /* Gallery mobile full width fallback */
    .gallery-grid { grid-template-columns: 1fr; }
    /* Mobile carousel fix */
    .facility-card, .testimonial-card { min-width: 320px; }
}