:root {
    --primary: #0A4D68;
    --primary-dark: #088395;
    --secondary: #05BFDB;
    --accent: #00FFCA;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-soft-blue: #f0f9ff;
    --glass: rgba(255, 255, 255, 0.82);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
    --border-radius: 12px;
    --border-radius-lg: 24px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
}

h1, h2, h3, h4, .logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* Typography Helpers */
span.highlight {
    color: var(--primary);
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-soft-blue);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(10, 77, 104, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
    border: none;
    font-family: 'Inter', sans-serif;
}

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

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

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

.btn-secondary:hover {
    background: var(--bg-soft-blue);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

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

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

.w-100 {
    width: 100%;
}

.mt-20 {
    margin-top: 20px;
}

/* Top Bar */
.top-bar {
    background: var(--primary);
    color: white;
    padding: 10px 0;
    font-size: 0.85rem;
}

.top-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.top-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Header & Nav */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: transparent;
    padding: 15px 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    margin-top: 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-white);
    padding: 8px 12px 8px 24px;
    border-radius: 100px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

header.scrolled .nav-wrapper {
    background: var(--glass);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-premium);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
}

.logo-text {
    font-size: 1.2rem;
    color: var(--primary);
    line-height: 1;
}

.logo-text span {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

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

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 150px 0 180px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; /* Default text to white for video bg */
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 77, 104, 0.6), rgba(10, 77, 104, 0.7));
    backdrop-filter: blur(5px);
    z-index: -1;
}

.hero-container {
    width: 100%;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-content.centered {
    text-align: center;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: white;
}

.hero-content h1 span {
    color: var(--accent);
    position: relative;
}

.hero-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 40px;
    max-width: 700px;
}

.hero-actions, .trust-indicators {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.center-flex {
    justify-content: center;
}

.rating {
    display: flex;
    flex-direction: column;
}

.stars {
    color: #f59e0b;
    margin-bottom: 5px;
}

.rating span {
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    background: white;
    padding: 15px;
    box-shadow: var(--shadow-premium);
}

.main-img {
    border-radius: calc(var(--border-radius-lg) - 10px);
    width: 100%;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 12px 18px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 5;
    animation: float 6s ease-in-out infinite;
}

.patient-card {
    top: 25%;
    left: -40px;
}

.tech-card {
    bottom: 15%;
    right: -30px;
    animation-delay: 2s;
}

.floating-card .icon {
    width: 35px;
    height: 35px;
    background: var(--bg-soft-blue);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.floating-card h4 {
    font-size: 1rem;
    color: var(--primary);
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Services */
.services {
    padding: 100px 0;
    background: white;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header span {
    color: var(--primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-soft-blue);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    background: white;
    border-color: rgba(10, 77, 104, 0.15);
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: white;
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1e293b;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.service-link {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* About */
.about {
    padding: 100px 0;
    background: var(--bg-soft-blue);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* About Section Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.about-img-item {
    height: 400px;
    overflow: hidden;
}

.about-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
    z-index: 5;
}

.experience-badge.small {
    padding: 15px 20px;
}

.experience-badge span {
    font-size: 2rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.experience-badge p {
    font-size: 0.8rem;
    opacity: 0.9;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.about-list {
    margin-bottom: 40px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-weight: 500;
}

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

.doctors-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.doctor {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.doctor h4 {
    color: var(--primary);
}

.doctor p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Why Us */
.why-us {
    padding: 120px 0;
    background: white;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.features-list {
    margin-top: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-soft-blue);
    color: var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--bg-soft-blue);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
}

.stat-card.accent {
    background: var(--primary);
    color: white;
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-card p {
    font-weight: 600;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: var(--bg-soft-blue);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    margin: 20px 0;
    color: var(--text-main);
}

.patient-info h5 {
    color: var(--primary);
    font-size: 1.1rem;
}

.patient-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Gallery */
.gallery {
    padding: 100px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Contact & Maps */
.contact {
    padding: 100px 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.info-card, .hours-card {
    background: var(--bg-soft-blue);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 30px;
    border: 1px solid rgba(10, 77, 104, 0.05);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item:last-child {
    margin-bottom: 0;
}

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

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary);
}

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

.hours-card h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    color: var(--primary);
}

.hour-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px border var(--primary);
    border-bottom: 1px solid rgba(10, 77, 104, 0.1);
}

.hour-row:last-child {
    border-bottom: none;
}

.hour-row strong {
    text-align: right;
    font-weight: 600;
}

.hour-row.Sunday strong {
    color: #ef4444;
}

.map-wrapper {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    margin-bottom: 20px;
    height: 450px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
}

/* CTA */
.cta-section {
    padding: 100px 0;
    background: url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?q=80&w=2070&auto=format&fit=crop') center/cover;
    position: relative;
    color: white;
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 77, 104, 0.9), rgba(10, 77, 104, 0.95));
}

.cta-content {
    position: relative;
    z-index: 5;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Footer */
.footer {
    background: #0f172a;
    color: white;
    padding: 80px 0 30px;
}

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

.footer-logo {
    background: white;
    padding: 8px 16px;
    border-radius: 50px;
    width: fit-content;
    margin-bottom: 25px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
}

.footer-col p {
    color: #94a3b8;
    margin-bottom: 15px;
    display: flex;
    gap: 12px;
}

.footer-col i {
    color: var(--secondary);
    margin-top: 5px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: #94a3b8;
}

.footer-col ul a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.emergency {
    color: #f87171 !important;
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 0.9rem;
}

.map-link a {
    color: var(--secondary);
    font-weight: 600;
}

/* WhatsApp Float */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 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: 0 4px 15px rgba(37, 211, 102, 0.5);
    z-index: 100;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1) translateY(-5px);
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transition: 1s cubic-bezier(0.5, 0, 0, 1);
}

[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="bottom"] { transform: translateY(50px); }

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* Tablet & Mobile Responsive */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-content h1 {
        font-size: 3.8rem;
    }
}

@media (max-width: 1024px) {
    .hero-container, .about-container, .grid-2, .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-content {
        text-align: center;
        padding-top: 50px;
    }
    
    .hero-actions, .trust-indicators {
        justify-content: center;
    }
    
    .about-image {
        order: -1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .map-wrapper {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .header {
        padding: 10px 0;
    }
    
    .nav-links, .nav-cta {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 150px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
        word-break: break-word; /* Crucial for long words like 'Speciality' */
    }
    
    .hero-content p {
        font-size: 1.15rem;
    }

    .hero-actions, .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        gap: 15px;
    }
    
    .hero-actions .btn, .cta-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .services, .about, .why-us, .testimonials, .gallery, .contact, .cta-section {
        padding: 80px 0;
    }
    
    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-wrapper {
        padding: 8px 16px;
        border-radius: 40px;
    }

    .logo-img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.4rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-img-item {
        height: 300px;
    }
    
    .info-card, .hours-card {
        padding: 25px;
    }
    
    .hour-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .hour-row strong {
        text-align: left;
        font-size: 1.1rem;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Menu Active Styling */
.nav-active .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80%;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 100px 40px;
    box-shadow: -10px 0 30px rgba(10, 77, 104, 0.15);
    z-index: 999;
    animation: slideIn 0.4s ease-out forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.nav-active {
    overflow: hidden; /* Prevent background scroll when menu is open */
}

.nav-active .hamburger span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.nav-active .hamburger span:nth-child(2) { opacity: 0; }
.nav-active .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
