/* ================= Base & Variables ================= */
:root {
    --primary: #D90429;
    --primary-hover: #b00320;
    --secondary: #4A4A4A;
    --bg-color: #F8F9FA;
    --card-bg: #FFFFFF;
    --text-main: #2b2b2b;
    --text-light: #6c757d;
    --white: #FFFFFF;
    --border-color: #e9ecef;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-btn: 'Montserrat', sans-serif;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-main: #f8f9fa;
    --text-light: #adb5bd;
    --secondary: #2a2a2a;
    --border-color: #333333;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.4);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--card-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header h2 span {
    color: var(--primary);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ================= Buttons & Forms ================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-btn);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(217, 4, 41, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(217, 4, 41, 0.5);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary) !important;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white) !important;
    transform: translateY(-3px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Ripple Effect */
.ripple-btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-anim {
    to { transform: scale(4); opacity: 0; }
}

/* ================= UI Components ================= */
/* Loader */
#loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}
.loader-spinner {
    width: 50px; height: 50px;
    border: 5px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Scroll Progress */
#progress-bar {
    position: fixed;
    top: 0; left: 0; height: 4px;
    background: var(--primary);
    width: 0%;
    z-index: 10000;
    transition: width 0.1s;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}
#navbar.scrolled {
    background: var(--card-bg);
    padding: 15px 0;
    box-shadow: var(--shadow-md);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo {
    font-size: 1.5rem; font-weight: 700;
    font-family: var(--font-heading); color: var(--primary);
    display: flex; align-items: center; gap: 10px;
}
#navbar.scrolled .logo, #navbar.scrolled .nav-menu li a {
    color: var(--text-main);
}
.nav-menu { display: flex; gap: 25px; align-items: center; }
.nav-menu li a {
    color: var(--white); font-weight: 500; transition: var(--transition); position: relative;
}
.nav-menu li a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: var(--transition);
}
.nav-menu li a:hover::after { width: 100%; }
#navbar.scrolled .nav-menu li a:hover { color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 15px; }
.icon-btn {
    background: transparent; border: none; font-size: 1.2rem;
    color: var(--white); cursor: pointer; transition: var(--transition);
}
#navbar.scrolled .icon-btn { color: var(--text-main); }
.menu-toggle { display: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }
#navbar.scrolled .menu-toggle { color: var(--text-main); }

/* Hero Section */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1568667256549-094345857637?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white); overflow: hidden;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(18, 18, 18, 0.7);
}
#particles-js { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.particle { position: absolute; background: rgba(255,255,255,0.3); border-radius: 50%; }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 20px; }
.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

/* Stats */
.stats-section {
    background: var(--primary); padding: 40px 0; color: white;
    position: relative; margin-top: -30px; z-index: 10;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 20px; }
.stat-card i { font-size: 2rem; margin-bottom: 10px; opacity: 0.8; }
.stat-card h3 { font-size: 2.5rem; font-weight: 700; color: white; margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-image { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); }
.experience-badge {
    position: absolute; bottom: -20px; right: -20px; background: var(--card-bg);
    padding: 20px 30px; border-radius: 15px; box-shadow: var(--shadow-lg); text-align: center;
}
.experience-badge .years { font-size: 1.5rem; font-weight: 700; color: var(--primary); display: block; }
.about-content .section-title { text-align: left; margin-bottom: 20px; }
.about-features { margin-top: 30px; }
.about-features li { margin-bottom: 15px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.about-features i { color: var(--primary); font-size: 1.2rem; }

/* Facilities */
.facilities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.facility-card {
    background: var(--bg-color); padding: 30px 20px; border-radius: 15px;
    text-align: center; transition: var(--transition); border: 1px solid var(--border-color);
}
.facility-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: transparent; }
.facility-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; transition: var(--transition); }
.facility-card:hover i { transform: scale(1.1); }
.facility-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.facility-card p { color: var(--text-light); font-size: 0.95rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; align-items: center; }
.pricing-card {
    background: var(--card-bg); padding: 40px 30px; border-radius: 20px;
    text-align: center; border: 1px solid var(--border-color); transition: var(--transition);
    position: relative; overflow: hidden;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-10px); }
.pricing-card.popular {
    border-color: var(--primary); box-shadow: var(--shadow-md); transform: scale(1.05); z-index: 2;
}
.pricing-card.popular:hover { transform: scale(1.05) translateY(-10px); }
.popular-badge {
    position: absolute; top: 15px; right: -35px; background: var(--primary); color: white;
    padding: 5px 40px; transform: rotate(45deg); font-size: 0.8rem; font-weight: 600;
}
.plan-header h3 { font-size: 1.2rem; color: var(--text-light); margin-bottom: 15px; }
.plan-header .price { font-size: 2.5rem; font-weight: 700; color: var(--text-main); margin-bottom: 30px; }
.price span { font-size: 1.2rem; vertical-align: super; }
.price .duration { font-size: 1rem; color: var(--text-light); font-weight: 400; vertical-align: baseline; }
.plan-features { margin-bottom: 30px; text-align: left; }
.plan-features li { margin-bottom: 15px; display: flex; gap: 10px; align-items: center; }
.plan-features i { color: #10b981; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.gallery-item {
    position: relative; border-radius: 15px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(217, 4, 41, 0.8); display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
}
.gallery-overlay span { color: white; font-size: 1.2rem; font-weight: 600; transform: translateY(20px); transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay span { transform: translateY(0); }

/* FAQ & Testimonials */
.two-col-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.accordion-item { border-bottom: 1px solid var(--border-color); margin-bottom: 10px; }
.accordion-header {
    width: 100%; text-align: left; padding: 20px 0; background: none; border: none;
    font-size: 1.1rem; font-weight: 600; color: var(--text-main); cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
}
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.accordion-content p { padding-bottom: 20px; color: var(--text-light); }
.accordion-header i { transition: transform 0.3s ease; }
.accordion-header.active i { transform: rotate(180deg); color: var(--primary); }

.testimonial-slider { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; }
.testimonial-slider::-webkit-scrollbar { height: 8px; }
.testimonial-slider::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
.testimonial-card {
    min-width: 100%; scroll-snap-align: start; background: var(--bg-color);
    padding: 30px; border-radius: 15px; border: 1px solid var(--border-color);
}
.testimonial-card .stars { color: #f59e0b; margin-bottom: 15px; }
.testimonial-card p { font-style: italic; margin-bottom: 20px; }

/* Contact Form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.info-item { display: flex; gap: 20px; margin-bottom: 30px; }
.info-item .icon {
    width: 50px; height: 50px; background: var(--bg-color); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.2rem;
}
.glass-card {
    background: var(--card-bg); padding: 40px; border-radius: 20px; box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}
.form-group { margin-bottom: 20px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 15px; border: 1px solid var(--border-color); border-radius: 10px;
    background: var(--bg-color); color: var(--text-main); font-family: var(--font-body);
    outline: none; transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; }

/* Footer */
footer { background: #111; color: #fff; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 40px; }
.footer-about p { color: #aaa; margin: 20px 0; }
.social-links a {
    display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: #222;
    align-items: center; justify-content: center; color: white; margin-right: 10px; transition: var(--transition);
}
.social-links a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-links ul li { margin-bottom: 10px; }
.footer-links a { color: #aaa; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.footer-contact p { color: #aaa; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #222; color: #777; }

/* Floating Elements */
.floating-whatsapp {
    position: fixed; bottom: 30px; left: 30px; width: 60px; height: 60px;
    background: #25D366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; box-shadow: var(--shadow-lg); z-index: 100; transition: transform 0.3s;
}
.floating-whatsapp:hover { transform: scale(1.1); }
#back-to-top {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
    background: var(--primary); color: white; border: none; border-radius: 50%; cursor: pointer;
    font-size: 1.2rem; box-shadow: var(--shadow-md); z-index: 100; opacity: 0; visibility: hidden; transition: var(--transition);
}
#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover { transform: translateY(-5px); }

/* Lightbox & Popup */
.lightbox, .popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 10000; display: none;
    align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s;
}
.lightbox.active, .popup-overlay.active { display: flex; opacity: 1; }
.lightbox-content { max-width: 90%; max-height: 90%; border-radius: 10px; }
.close-lightbox { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; cursor: pointer; }
.popup-content { background: var(--card-bg); padding: 40px; border-radius: 20px; text-align: center; max-width: 400px; }
.popup-icon { font-size: 4rem; color: #10b981; margin-bottom: 20px; }

/* Animations & Utilities */
.reveal { opacity: 0; transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0) translateX(0); }
.fade-up { transform: translateY(50px); }
.fade-right { transform: translateX(-50px); }
.fade-left { transform: translateX(50px); }

/* Responsive Media Queries */
@media (max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .about-grid, .two-col-layout, .contact-grid { grid-template-columns: 1fr; }
    .pricing-card.popular { transform: scale(1); }
    .pricing-card.popular:hover { transform: translateY(-10px); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 2.8rem; }
}
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-menu {
        position: absolute; top: 100%; left: 0; width: 100%; background: var(--card-bg);
        flex-direction: column; padding: 20px 0; box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: clip-path 0.4s ease;
    }
    .nav-menu.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    .nav-menu li a { color: var(--text-main) !important; display: block; padding: 10px 20px; }
    #navbar { background: var(--card-bg); padding: 15px 0; }
    .logo, .menu-toggle, .icon-btn { color: var(--text-main) !important; }
    .hero h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
}