/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #0ea5e9; /* Sky Blue */
    --primary-dark: #0284c7;  /* Darker Blue */
    --secondary-color: #0f172a; /* Dark Navy */
    --accent-color: #f59e0b; /* Amber/Gold */
    --text-color: #334155;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Poppins', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header - White Theme */
header {
    background: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links li a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--secondary-color);
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.nav-links li a:hover::after {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: #0f172a; /* Dark Navy Background */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

/* Hero Animation - Skeleton/Medical Scan */
.hero-bg-anim {
    position: absolute;
    width: 50%;
    right: 5%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.digital-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    z-index: 1;
    mask-image: radial-gradient(circle, black 40%, transparent 80%);
}

/* Skeleton Image Styling */
.skeleton-container {
    position: relative;
    width: 450px;
    height: 650px;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.skeleton-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: screen; /* Assumes video has black background to blend */
    mask-image: radial-gradient(circle, white 60%, transparent 95%); /* Soft edges */
    opacity: 0.9;
}

.hologram-rings {
    position: absolute;
    bottom: -30px;
    width: 400px;
    height: 100px;
    left: 50%;
    transform: translateX(-50%) perspective(500px) rotateX(60deg);
}

.ring {
    position: absolute;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--primary-color);
    opacity: 0.5;
}

.ring1 { width: 100%; height: 100%; animation: spin 10s linear infinite; }
.ring2 { width: 70%; height: 70%; animation: spin 15s linear infinite reverse; }

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}


.hero-content {
    width: 45%;
    padding-left: 5%;
    color: var(--white);
    z-index: 10;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight-text {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #cbd5e1;
    max-width: 600px;
    line-height: 1.8;
}

.btn-hero {
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-hero:hover {
    transform: scale(1.05);
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.6);
}

/* Section Styling */
.section {
    padding: 6rem 5%;
}

.bg-light {
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-title p {
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Contact Embedded */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.contact-info-panel {
    background: linear-gradient(135deg, var(--secondary-color), #2c3e50);
    padding: 3rem;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 1.5rem;
    margin-top: 5px;
}

.contact-form-panel {
    padding: 3rem;
    background: #fff;
}

.form-group label {
    font-weight: 600;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.service-card p {
    color: #64748b;
    font-size: 0.95rem;
}


/* Doctors Slider Styles */
.doctors-slider {
    padding: 1rem;
    padding-bottom: 3rem; /* Space for pagination */
    max-width: 1200px;
    margin: 0 auto;
}

.doctor-card {
    background: var(--white);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
    height: 100%;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.doctor-img-wrapper {
    height: 350px;
    overflow: hidden;
    background: #e2e8f0;
}

.doctor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s;
}

.doctor-card:hover .doctor-img {
    transform: scale(1.05);
}

.doctor-info {
    padding: 1.5rem;
    text-align: center;
}

.doctor-info h3 {
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
    font-size: 1.3rem;
}

.doctor-info span {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.doctor-info p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Footer (Updated) */
footer {
    background-color: var(--secondary-color);
    color: #94a3b8;
    padding: 5rem 5% 1rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    animation: zoomIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ====== MAP SECTION ====== */
.map-section {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.map-container {
    width: 100%;
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.3s ease;
}

.map-section:hover .map-container iframe {
    filter: grayscale(0%) contrast(1);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.3) 60%, transparent 100%);
    z-index: 10;
    display: flex;
    align-items: center;
    padding-left: 5%;
    pointer-events: none;
}

.map-info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 400px;
    pointer-events: all;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-info-card h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.map-info-card h3 i {
    color: var(--primary-color);
}

.map-info-card p {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.map-info-card .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ====== RESPONSIVE DESIGN ====== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .navbar {
        padding: 0.8rem 3%;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .hero-content {
        width: 50%;
    }
    
    .hero-bg-anim {
        width: 45%;
    }
    
    .skeleton-container {
        width: 350px;
        height: 500px;
    }
    
    .services-grid, .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
}

/* Mobile Landscape / Small Tablet (max-width: 900px) */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 3rem;
    }
    
    .hero-content {
        width: 100%;
        padding: 0 1.5rem;
        margin-bottom: 2rem;
        order: 1;
    }
    
    .hero-bg-anim {
        position: relative;
        width: 100%;
        height: 350px;
        right: auto;
        order: 2;
    }
    
    .skeleton-container {
        width: 300px;
        height: 350px;
    }
    
    .hologram-rings {
        width: 250px;
        bottom: -20px;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        padding: 2rem;
        gap: 1.5rem;
        z-index: 999;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 4rem 4%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .map-section {
        height: 450px;
    }
    
    .map-overlay {
        padding: 2rem;
        justify-content: center;
    }
    
    .map-info-card {
        max-width: 350px;
    }
}

/* Mobile Portrait (max-width: 600px) */
@media (max-width: 600px) {
    .navbar {
        padding: 0.8rem 4%;
    }
    
    .logo img {
        height: 45px;
    }
    
    .hero {
        padding-top: 90px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-hero {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
    
    .hero-bg-anim {
        height: 280px;
    }
    
    .skeleton-container {
        width: 250px;
        height: 280px;
    }
    
    .hologram-rings {
        width: 200px;
        height: 60px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .section-title p {
        font-size: 0.95rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .doctors-slider {
        padding: 0.5rem;
    }
    
    .doctor-img-wrapper {
        height: 280px;
    }
    
    .doctor-info h3 {
        font-size: 1.1rem;
    }
    
    .contact-container {
        border-radius: 1rem;
    }
    
    .contact-info-panel,
    .contact-form-panel {
        padding: 2rem 1.5rem;
    }
    
    .contact-form-panel form > div:first-child {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    footer {
        padding: 3rem 4% 1rem;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .map-section {
        height: 400px;
    }
    
    .map-overlay {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 50%, transparent 100%);
        align-items: flex-start;
        padding: 1.5rem;
    }
    
    .map-info-card {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .map-info-card h3 {
        font-size: 1.3rem;
    }
    
    .map-info-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

/* Extra Small Devices (max-width: 400px) */
@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .btn-primary {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section {
        padding: 3rem 3%;
    }
    
    .section-title {
        margin-bottom: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .skeleton-container {
        width: 200px;
        height: 220px;
    }
}

