/* CSS Variables for Blue Theme */
:root {
    --primary-blue: #0f2c59;
    --secondary-blue: #1a4a8c;
    --accent-blue: #60a5fa;
    --text-light: #f8fafc;
    --text-muted: #cbd5e1;
    --nav-bg: #ffffff;
    --nav-text: #0f2c59;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-blue);
    color: var(--text-light);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-attachment: fixed;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

@keyframes flashTarget {
    0% { background-color: rgba(96, 165, 250, 0.3); }
    100% { background-color: transparent; }
}
section:target { animation: flashTarget 1.5s ease-out; }

/* ----- NAVIGATION ----- */
header {
    background-color: var(--nav-bg);
    color: var(--nav-text);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--primary-blue);
    line-height: 1.1;
}
.logo-text span {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

nav ul li a {
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}
nav ul li a:hover { color: var(--accent-blue); }

.btn-book {
    background-color: var(--secondary-blue);
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 74, 140, 0.4);
    text-align: center;
}
.btn-book:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
}

/* ----- SHARED SECTION STYLES ----- */
section {
    padding: 80px 5%;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid var(--card-border);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
    color: #fff;
}
.section-title span { color: var(--accent-blue); }

/* ----- HERO SECTION ----- */
.hero {
    text-align: center;
    padding-top: 120px;
    padding-bottom: 100px;
    min-height: 90vh;
}

.tagline-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid var(--card-border);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero h1 .gradient-text {
    background: linear-gradient(90deg, #c4b5fd, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p.sub-hero {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-btn { padding: 15px 35px; font-size: 1.1rem; }

.btn-outline {
    background: transparent;
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}
.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    border-top: 1px solid var(--card-border);
    padding-top: 40px;
    flex-wrap: wrap;
}

.stat-box { text-align: center; }
.stat-box h3 { font-size: 3rem; font-family: 'Playfair Display', serif; margin-bottom: 5px; }
.stat-box p { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ----- ABOUT (DOCTORS) ----- */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.doc-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
}
.doc-card h3 {
    font-size: 1.8rem;
    color: var(--accent-blue);
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}
.doc-card .creds {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.4;
}
.doc-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.doc-hidden-details {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}
.doc-actions { margin-top:20px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn-action {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid var(--card-border);
    padding: 10px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.3s;
    flex: 1;
    text-align: center;
}
.btn-action:hover { background: rgba(255,255,255,0.2); }
.btn-wa { background: #25D366; border-color: #25D366; font-weight: bold; }
.btn-wa:hover { background: #1ebc59; }

/* ----- TECHNOLOGY ----- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}
.tech-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), transparent);
    border: 1px solid var(--card-border);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}
.tech-card h3 { font-size: 1.8rem; color: #fff; margin-bottom: 20px; font-family: 'Playfair Display', serif;}
.tech-card ul { list-style: none; padding: 0; text-align: left; margin-top: 20px;}
.tech-card ul li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--text-muted);}
.tech-card ul li::before { content: '✨'; margin-right: 10px; }

/* ----- SERVICES ----- */
.services-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 50px;
}
.s-icon-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 20px 10px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    transition: 0.3s;
    font-size: 0.9rem;
}
.s-icon-box:hover { transform: translateY(-5px); background: rgba(255,255,255,0.1); }
.s-icon-box span { display: block; font-size: 2rem; margin-bottom: 10px; }

.trimester-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.trimester-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: 10px;
    border-top: 3px solid var(--accent-blue);
}
.trimester-box h3 { color: var(--accent-blue); margin-bottom: 15px; font-size: 1.2rem;}
.trimester-sub { font-size: 0.85rem; color: #cbd5e1; font-weight: normal; }
.trimester-box ul { padding-left: 20px; color: var(--text-muted); line-height: 1.8; font-size: 0.95rem;}

/* ----- WHY US ----- */
.why-us-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}
.why-tag {
    background: var(--secondary-blue);
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ----- REVIEWS ----- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}
.review-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--card-border);
    position: relative;
}
.review-card::before {
    content: '"';
    font-size: 4rem;
    color: rgba(255,255,255,0.1);
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
}
.review-card p { position: relative; z-index: 1; color: var(--text-muted); font-style: italic; margin-bottom: 20px; font-size: 0.95rem;}
.review-card h5 { color: #fff; font-size: 1rem; }
.stars { color: #fbbf24; margin-bottom: 10px; }

/* ----- CONTACT ----- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}
.contact-details {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 15px;
    border: 1px solid var(--card-border);
}
.contact-details h3 { font-size: 1.5rem; margin-bottom: 20px; color: var(--accent-blue);}
.contact-details p { margin-bottom: 15px; color: var(--text-light); display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; }
.action-buttons { margin-top: 30px; display: flex; gap: 15px; flex-wrap: wrap;}
.action-buttons a { flex: 1; min-width: 140px; }
.btn-wa-contact { background: #25D366; }
.btn-map { background: #db4437; }

.map-container {
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    height: 100%;
    min-height: 350px;
}
.map-container iframe { width: 100%; height: 100%; border: none; }

/* ----- FOOTER & VISITOR COUNT ----- */
footer {
    background-color: var(--primary-blue);
    border-top: 1px solid var(--card-border);
    padding: 40px 5%;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.visitor-count {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--card-border);
    font-weight: 600;
    color: var(--accent-blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ----- POPUP FORM ----- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: var(--nav-bg);
    color: var(--nav-text);
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    position: relative;
}
.modal-content h2 { margin-bottom: 20px; font-family: 'Playfair Display', serif; font-size: 1.5rem;}
.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}
.form-group { margin-bottom: 15px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
}
.form-group button { width: 100%; padding: 12px; border-radius: 8px; }

/* ----- CHATBOT ----- */
.chatbot-btn {
    position: fixed;
    bottom: 25px; right: 25px;
    background: var(--secondary-blue);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 60px; height: 60px;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    z-index: 1500;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.chatbot-btn:hover { transform: scale(1.1); }

.chat-window {
    display: none;
    position: fixed;
    bottom: 95px; right: 25px;
    width: 300px;
    background: #fff;
    color: #333;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 1500;
    overflow: hidden;
    flex-direction: column;
}
.chat-header {
    background: var(--primary-blue);
    color: white;
    padding: 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}
.chat-body {
    padding: 15px;
    height: 320px;
    overflow-y: auto;
    background: #f8fafc;
}
.chat-msg {
    background: #e2e8f0;
    padding: 10px 15px;
    border-radius: 15px;
    border-bottom-left-radius: 2px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    line-height: 1.5;
}
.chat-option {
    display: block;
    background: #fff;
    border: 1px solid var(--secondary-blue);
    color: var(--secondary-blue);
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    transition: 0.2s;
}
.chat-option:hover {
    background: var(--secondary-blue);
    color: #fff;
}

/* ----- EXPLICIT MOBILE STACKING MEDIA QUERIES ----- */
@media (max-width: 768px) {
    /* STRICT VERTICAL STACKING FOR ALL GRIDS ON MOBILE */
    .doctors-grid, 
    .tech-grid, 
    .trimester-grid, 
    .reviews-grid,
    .why-us-grid,
    .contact-wrapper {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .map-container { min-height: 250px; }
    
    /* Typography Adjustments */
    .hero h1 { font-size: 2.8rem; }
    .hero p.sub-hero { font-size: 1rem; }
    .section-title { font-size: 2.2rem; }
    .stat-box h3 { font-size: 2.2rem; }
    
    /* Spacing Adjustments */
    section { padding: 50px 5%; }
    .hero { padding-top: 80px; padding-bottom: 60px; min-height: auto;}
    .stats-container { gap: 30px; }

    /* Mobile Navigation (Hamburger) */
    .mobile-menu-btn { display: block; }
    
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--nav-bg);
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        gap: 15px;
    }
    
    nav ul.active { display: flex; }
    
    nav ul li { width: 100%; text-align: center; }
    nav ul li a { display: block; padding: 10px; font-size: 1.1rem; }
    .btn-book { width: 80%; max-width: 300px; margin: 0 auto; }
}

@media (max-width: 480px) {
    .services-icons {
        grid-template-columns: 1fr;
    }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-btn { width: 100%; max-width: 300px; margin: 0 auto; }
    .logo-text h1 { font-size: 1.2rem; }
    .logo-text span { font-size: 0.65rem; }
    .chat-window { width: calc(100vw - 50px); right: 25px; bottom: 95px; }
}
