/* ============ ROOT VARIABLES ============ */
:root {
    --primary: #1e3c72;
    --secondary: #2a5298;
    --accent: #c9a961;
    --dark: #0a1929;
    --light: #f8f9fa;
    --text: #333;
    --gold: #d4af37;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; }

/* ============ NAVBAR ============ */
.brand-title { color: var(--primary); font-size: 1.3rem; }
.logo-icon {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; display: flex; align-items: center; justify-content: center;
    border-radius: 10px; font-size: 1.5rem;
}
.navbar-nav .nav-link {
    font-weight: 500; margin: 0 8px; color: var(--dark);
    position: relative; transition: all 0.3s;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--primary);
}
.navbar-nav .nav-link.active::after {
    content: ''; position: absolute; bottom: -5px; left: 50%;
    transform: translateX(-50%); width: 30px; height: 2px;
    background: var(--accent);
}
.btn-appointment {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff !important; border-radius: 30px;
    padding: 8px 22px !important; font-weight: 500;
    transition: all 0.3s;
}
.btn-appointment:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(30,60,114,0.4); }

/* ============ HERO SECTION ============ */
.hero-section {
    background: linear-gradient(135deg, rgba(10,25,41,0.85), rgba(30,60,114,0.85)),
                url('https://images.unsplash.com/photo-1589994965851-a8f479c573a9?w=1600') center/cover;
    color: #fff; padding: 100px 0 80px; position: relative; overflow: hidden;
}
.hero-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23ffffff10' stroke-width='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero-title { font-size: 3.5rem; font-weight: 900; line-height: 1.2; margin-bottom: 20px; }
.hero-title span { color: var(--gold); }
.hero-subtitle { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }

.hero-stats { display: flex; gap: 30px; margin-top: 40px; }
.stat-item { text-align: center; }
.stat-item h2 { color: var(--gold); font-size: 2.5rem; font-weight: 900; }
.stat-item p { font-size: 0.9rem; opacity: 0.9; }

.hero-form-card {
    background: #fff; padding: 30px; border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

/* ============ SECTION STYLES ============ */
.section-padding { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h6 {
    color: var(--accent); font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; margin-bottom: 10px;
}
.section-title h2 { color: var(--primary); font-size: 2.5rem; font-weight: 700; }
.section-title p { color: #666; max-width: 700px; margin: 0 auto; }

/* ============ SERVICE CARDS ============ */
.service-card {
    background: #fff; border-radius: 15px; padding: 40px 25px;
    text-align: center; box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.4s; height: 100%; border: 1px solid #f0f0f0;
    position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: all 0.5s;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.service-card:hover::before { left: 0; }
.service-icon {
    width: 80px; height: 80px; margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 2rem;
    transition: all 0.4s;
}
.service-card:hover .service-icon { background: linear-gradient(135deg, var(--accent), #e8c068); }
.service-card h4 { color: var(--primary); margin-bottom: 15px; font-size: 1.3rem; }
.service-card p { color: #666; font-size: 0.95rem; }
.service-card .btn-link {
    color: var(--primary); text-decoration: none; font-weight: 600;
    margin-top: 15px; display: inline-block;
}

/* ============ ADVISOR CARDS ============ */
.advisor-card {
    background: #fff; border-radius: 15px; overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.4s; height: 100%;
}
.advisor-card:hover { transform: translateY(-10px); }
.advisor-img {
    height: 280px; background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 5rem; position: relative;
}
.advisor-img img { width: 100%; height: 100%; object-fit: cover; }
.advisor-info { padding: 25px; }
.advisor-info h4 { color: var(--primary); margin-bottom: 5px; }
.advisor-info .designation { color: var(--accent); font-size: 0.9rem; font-weight: 500; }
.advisor-info .exp { color: #666; font-size: 0.85rem; margin: 10px 0; }
.advisor-social { margin-top: 15px; }
.advisor-social a {
    width: 35px; height: 35px; display: inline-flex;
    align-items: center; justify-content: center;
    background: var(--light); color: var(--primary);
    border-radius: 50%; margin-right: 8px; transition: all 0.3s;
}
.advisor-social a:hover { background: var(--primary); color: #fff; }

/* ============ GALLERY ============ */
.gallery-item {
    position: relative; border-radius: 15px; overflow: hidden;
    margin-bottom: 25px; cursor: pointer; height: 280px;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: all 0.5s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(30,60,114,0.9), rgba(42,82,152,0.9));
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: all 0.4s; color: #fff; text-align: center;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ============ FOOTER ============ */
.footer { background: linear-gradient(135deg, #0a1929, #1e3c72) !important; }
.footer-title { color: var(--gold); font-weight: 600; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.7); text-decoration: none; transition: all 0.3s;
}
.footer-links a:hover { color: var(--gold); padding-left: 5px; }
.footer-contact a { text-decoration: none; }
.social-icons a {
    width: 40px; height: 40px; display: inline-flex;
    align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1); color: #fff;
    border-radius: 50%; margin-right: 10px; transition: all 0.3s;
}
.social-icons a:hover { background: var(--gold); transform: translateY(-3px); }

/* ============ FLOAT BUTTONS ============ */
.whatsapp-float, .call-float {
    position: fixed; bottom: 25px; z-index: 1000;
    width: 55px; height: 55px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.6rem; text-decoration: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: all 0.3s;
}
.whatsapp-float { right: 25px; background: #25d366; }
.whatsapp-float:hover { background: #128c7e; color: #fff; transform: scale(1.1); }
.call-float { left: 25px; background: var(--primary); }
.call-float:hover { background: var(--secondary); color: #fff; }

/* ============ APPOINTMENT PAGE ============ */
.appointment-form-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 60px 0;
}
.booking-card {
    background: #fff; border-radius: 20px; padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

/* ============ ADMIN PANEL ============ */
.admin-sidebar {
    background: linear-gradient(180deg, #1e3c72, #0a1929);
    min-height: 100vh; color: #fff; padding: 20px 0;
}
.admin-sidebar .brand {
    padding: 20px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8); padding: 12px 25px; border-radius: 0;
    border-left: 3px solid transparent; transition: all 0.3s;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.1); color: #fff;
    border-left-color: var(--gold);
}
.admin-main { background: #f4f6f9; min-height: 100vh; padding: 25px; }
.stat-card {
    background: #fff; border-radius: 15px; padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary);
}
.stat-card.primary { border-left-color: #4361ee; }
.stat-card.success { border-left-color: #06a77d; }
.stat-card.warning { border-left-color: #f4a261; }
.stat-card.danger { border-left-color: #e63946; }
.stat-card h3 { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-card p { margin: 0; color: #666; }
.stat-card i { font-size: 2.5rem; color: var(--accent); opacity: 0.5; }

/* ============ ABOUT PAGE ============ */
.about-img { border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.about-feature {
    padding: 20px; border-radius: 10px;
    background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px; transition: all 0.3s;
}
.about-feature:hover { transform: translateX(10px); }
.about-feature i {
    width: 50px; height: 50px; background: var(--primary);
    color: #fff; border-radius: 10px; display: flex;
    align-items: center; justify-content: center; font-size: 1.5rem;
}

/* ============ CONTACT PAGE ============ */
.contact-info-card {
    background: #fff; padding: 30px; border-radius: 15px;
    text-align: center; box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s; height: 100%;
}
.contact-info-card:hover { transform: translateY(-5px); }
.contact-info-card i {
    width: 70px; height: 70px; margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 1.8rem;
}

/* ============ CTA SECTION ============ */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; padding: 60px 0; text-align: center; position: relative;
}
.cta-section::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,128C1248,139,1344,181,1392,202.7L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat center/cover;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-stats { flex-wrap: wrap; }
    .stat-item { flex: 0 0 45%; }
    .section-title h2 { font-size: 1.8rem; }
}
