/* ==========================================================================
   Base styles & Variables
   ========================================================================== */
   :root {
    --primary: #1A365D; /* Deep Navy Blue */
    --primary-dark: #0f2342;
    --primary-light: #f0f4f8;
    --secondary: #00B4D8; /* Medical Cyan */
    --logo-red: #E5194A; /* Raspam Red */
    --logo-green: #53A60C; /* Raspam Green */
    --accent: #25D366; /* WhatsApp Green */
    --accent-hover: #1da851;
    
    --text-main: #1A202C; /* Dark Charcoal */
    --text-muted: #4A5568; /* Slate Gray */
    --bg-main: #FFFFFF;
    --bg-light: #F8FAFC; /* Off-white for sections */
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ==========================================================================
   Typography & Elements
   ========================================================================== */
h1, h2, h3, h4 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.section-title {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-title p {
    font-size: 1.1rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp {
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-whatsapp:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: white;
    color: var(--text-main);
}

.btn-large {
    width: 100%;
    padding: 16px 30px;
    font-size: 1.1rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.top-bar {
    background-color: var(--primary-dark);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span, .top-contact a {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.top-contact a:hover {
    opacity: 1;
}

.whatsapp-text {
    color: #4CAF50;
    font-weight: 600;
}

header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.logo img {
    height: 70px; /* Enhanced size */
    width: auto;
    object-fit: contain;
}


.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 3%;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.slider-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(26, 54, 93, 0.9) 0%, rgba(26, 54, 93, 0.6) 45%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
}

.hero .badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 500;
}

.stat i {
    color: var(--secondary);
    font-size: 1.2rem;
}

/* ==========================================================================
   Services Section (Specialties)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-main);
    border-radius: var(--radius);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--secondary);
    transform: scaleY(0);
    transition: var(--transition);
    transform-origin: bottom;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.service-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.service-card .icon-box {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background: var(--primary);
    color: white;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-tag {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.8rem;
    padding: 6px 12px;
    background: #FFF3CD;
    color: #856404;
    border-radius: 50px;
    font-weight: 600;
}

.service-tag.highlight {
    background: #E2E3E5;
    color: #383D41;
}

/* ==========================================================================
   Doctors Section
   ========================================================================== */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.doctor-card {
    background: var(--bg-main);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.doc-header {
    height: 280px;
    background-size: cover;
    background-position: center top;
    background-color: var(--primary-light);
    position: relative;
    display: flex;
    align-items:flex-end;
}

.doc-bg-1 { background-image: url('img/dr_roy.png'); }
.doc-bg-2 { background-image: url('img/dr_maitra.png'); }
.doc-bg-3 { background-image: url('img/ms_shreyasi.png'); }

.doc-body {
    padding: 30px;
}

.doc-body h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.doc-body .specialty {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.doc-body .creds {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.doc-body hr {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin: 20px 0;
}

.doc-schedule {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.doc-schedule i {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-top: 3px;
}

.doc-schedule strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 2px;
}

.doc-schedule span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Booking & Contact
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info > p {
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.c-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.contact-list strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.contact-list span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.upi-payment-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    margin-top: 30px;
    border-left: 4px solid var(--accent);
}

.upi-payment-box .upi-qr {
    background: white;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 8px;
    flex-shrink: 0;
}

.upi-payment-box .upi-qr img {
    display: block;
    width: 90px;
    height: 90px;
}

.upi-details h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.upi-details p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.upi-id {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.upi-id strong {
    color: var(--text-main);
}

.contact-card {
    background: white;
    padding: 50px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.contact-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.contact-card p {
    margin-bottom: 40px;
}

.booking-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 10px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.divider span {
    padding: 0 10px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: var(--text-main);
    color: white;
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    margin-top: 20px;
    max-width: 400px;
}

.footer-logo {
    color: white;
}

.footer-logo span {
    color: white;
}

.footer-links h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.6);
    margin-bottom: 15px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-links p {
    color: rgba(255,255,255,0.6);
}

.text-muted {
    opacity: 0.5;
}

.mt-2 {
    margin-top: 10px;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sparkle Animations */
.sparkles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 12px 3px rgba(255,255,255,0.8);
    animation: twinkle 3s infinite ease-in-out alternate;
}

.s1 { top: 20%; left: 15%; animation-duration: 2.2s; }
.s2 { top: 60%; left: 80%; animation-duration: 3.8s; }
.s3 { top: 35%; left: 65%; animation-duration: 3.1s; }
.s4 { top: 80%; left: 25%; animation-duration: 2.5s; }
.s5 { top: 45%; left: 45%; animation-duration: 4s; }
.s6 { top: 15%; left: 85%; animation-duration: 2.8s; }

@keyframes twinkle {
    0% { opacity: 0.1; transform: scale(0.5) translateY(0); }
    100% { opacity: 1; transform: scale(1.5) translateY(-30px); }
}

/* Bubble Animations */
.bubbles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: rgba(0, 180, 216, 0.08); /* Medical Cyan */
    border-radius: 50%;
    animation: floatUp 15s infinite ease-in;
}

.b1 { width: 80px; height: 80px; left: 10%; animation-duration: 12s; animation-delay: 0s; }
.b2 { width: 40px; height: 40px; left: 25%; animation-duration: 9s; animation-delay: 2s; }
.b3 { width: 120px; height: 120px; left: 50%; animation-duration: 18s; animation-delay: 4s; }
.b4 { width: 60px; height: 60px; left: 70%; animation-duration: 11s; animation-delay: 1s; }
.b5 { width: 90px; height: 90px; left: 85%; animation-duration: 15s; animation-delay: 3s; }
.b6 { width: 30px; height: 30px; left: 35%; animation-duration: 8s; animation-delay: 5s; }

@keyframes floatUp {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; transform: translateY(-800px) scale(1.2); }
    100% { opacity: 0; transform: translateY(-1000px) scale(1.2); }
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .nav-links, .nav-btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-actions, .hero-stats {
        flex-direction: column;
    }
    
    .hero-stats {
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
