/* --- CSS Reset & Custom Properties --- */
:root {
    /* Color Palette */
    --primary: #1E3A8A; /* Deep Blue */
    --primary-light: #3B82F6;
    --secondary: #0D9488; /* Teal */
    --secondary-light: #14B8A6;
    --accent: #25D366; /* WhatsApp Green */
    --accent-hover: #1EBE5D;
    
    /* Neutral Colors */
    --bg-color: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;

    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Layout */
    --container-max-width: 1100px;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Buttons --- */
.btn-primary, .btn-secondary, .btn-outline, .btn-whatsapp-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background-color: #f1f5f9;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-whatsapp-large {
    background-color: var(--accent);
    color: white;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    margin: 1rem 0;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-large:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

/* --- Navigation --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

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

/* --- Hero Section --- */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: #dbeafe;
    color: var(--primary-light);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero .highlight {
    color: var(--primary);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.blob-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--primary-light) 100%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite;
    z-index: 0;
    opacity: 0.2;
}

.hero-img {
    position: relative;
    z-index: 1;
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 8px solid white;
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}

/* --- Specializations --- */
.specializations {
    padding: 6rem 0;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.spec-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.spec-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.spec-card:hover::before {
    opacity: 1;
}

.spec-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--secondary);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    transition: all 0.5s ease;
    box-shadow: 0 5px 15px rgba(13, 148, 136, 0.1);
}

.spec-card:hover .icon-wrapper {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: white;
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 15px 30px rgba(13, 148, 136, 0.3);
}

.spec-card:hover .icon-wrapper i {
    animation: iconPulse 1s infinite alternate;
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.spec-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.spec-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- OPD Timings Section --- */
.opd-timings {
    padding: 5rem 0;
    background-color: #f1f5f9;
}

.timings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.timing-card {
    background: var(--card-bg);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
    border-top: 5px solid var(--border-color);
}

.timing-card.highlight-card {
    border-top-color: var(--secondary);
}

.timing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.timing-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.timing-card h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.location-area {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.timing-card hr {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin-bottom: 1.5rem;
}

.timing-details {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.timing-details li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    font-size: 1.05rem;
}

.timing-details i {
    color: var(--secondary);
    width: 20px;
    text-align: center;
}

.fee-badge {
    display: inline-flex !important;
    background-color: #dcfce7;
    color: #166534 !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 20px;
    font-size: 0.9rem !important;
    font-weight: 600;
    margin-top: 0.5rem;
}

.fee-badge.evening {
    background-color: #e0e7ff;
    color: #3730a3 !important;
}

.fee-badge i {
    color: inherit !important;
}

/* --- Contact Section --- */
.contact {
    padding: 5rem 0;
}

.contact-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.contact-info {
    background-color: var(--primary);
    color: white;
    padding: 4rem;
}

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

.contact-info > p {
    color: #cbd5e1;
    margin-bottom: 3rem;
}

.contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-details i {
    font-size: 1.5rem;
    color: var(--secondary-light);
    margin-top: 0.2rem;
}

.contact-details strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.contact-details span, .contact-details a {
    color: #e2e8f0;
}

.contact-details a:hover {
    color: white;
    text-decoration: underline;
}

.contact-cta {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #f8fafc;
}

.contact-cta h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.contact-cta p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.whatsapp-number {
    font-weight: 500;
    color: var(--text-main);
}

/* --- Footer --- */
footer {
    background-color: #0f172a;
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #334155;
    padding-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.footer-brand p {
    color: #94a3b8;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 1.2rem;
}

.footer-links a:hover {
    background-color: var(--secondary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */

/* Tablets & Small Laptops */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .contact-card {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple hidden for mobile */
    }

    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .specializations, .opd-timings, .contact {
        padding: 3.5rem 0;
    }
    
    .contact-info, .contact-cta {
        padding: 2rem 1.5rem;
    }
    
    .hero-img, .blob-bg {
        width: 260px;
        height: 260px;
    }

    .timings-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Very Small Phones (e.g. iPhone SE) */
@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.85rem;
    }
    
    .hero-img, .blob-bg {
        width: 220px;
        height: 220px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* --- Top Announcement Banner --- */
.top-banner {
    background-color: var(--primary);
    color: white;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    z-index: 1001;
    position: relative;
}

.banner-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
    text-align: center;
    min-width: 0;
}

.close-banner {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 0 0 1rem;
    transition: var(--transition);
}

.close-banner:hover {
    color: white;
    transform: scale(1.1);
}

.marquee-container {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    min-width: 0;
}

#bulletin-content {
    display: inline-block;
    white-space: nowrap;
}

.marquee-active {
    animation: marquee 15s linear infinite;
    padding-left: 100%;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- Dark Mode (System Preference) --- */
@media (prefers-color-scheme: dark) {
    :root {
        --primary: #60A5FA; /* Lighter blue for dark contrast */
        --primary-light: #93C5FD;
        --secondary: #2DD4BF; /* Lighter teal */
        --secondary-light: #5EEAD4;
        
        --bg-color: #0F172A; /* Deep dark slate */
        --card-bg: #1E293B; /* Slightly lighter for cards */
        --text-main: #F8FAFC;
        --text-muted: #94A3B8;
        --border-color: #334155;
    }

    .hero {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
    
    .blob-bg {
        opacity: 0.1;
    }
    
    .specializations {
        background-color: var(--bg-color);
    }
    
    .opd-timings {
        background-color: #0B1120; /* Very dark for contrast */
    }
    
    .contact-cta {
        background-color: #1E293B;
    }
    
    .navbar {
        background-color: rgba(15, 23, 42, 0.95);
    }
    
    .btn-secondary {
        background-color: var(--card-bg);
        color: var(--primary);
    }
    
    .btn-secondary:hover {
        background-color: #334155;
    }
    
    .badge {
        background-color: rgba(96, 165, 250, 0.15);
        color: var(--primary);
    }

    .icon-wrapper {
        background-color: rgba(45, 212, 191, 0.1);
    }
    
    .fee-badge {
        background-color: rgba(22, 101, 52, 0.3);
        color: #4ade80 !important;
    }

    .fee-badge.evening {
        background-color: rgba(55, 48, 163, 0.3);
        color: #818cf8 !important;
    }
    
    .bulletin-card {
        background-color: #451a03;
        border-left: 6px solid #fbbf24;
        box-shadow: none;
    }
    
    .bulletin-header, .bulletin-content {
        color: #fef3c7;
    }
}

