/* ============================
   CSS Variables & Reset
   ============================ */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #ef4444;
    --whatsapp: #25d366;
    --whatsapp-dark: #128c7e;
    --dark: #1f2937;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --bg-light: #f3f4f6;
    --bg-blue-light: #eff6ff;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: 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-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

/* ============================
   Utility Classes
   ============================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-primary {
    color: var(--secondary);
}

/* ============================
   Buttons
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

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

.btn-primary:hover {
    background: #dc2626;
    box-shadow: var(--shadow-lg);
}

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

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

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

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

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

.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    box-shadow: var(--shadow-lg);
}

/* ============================
   Navigation
   ============================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    font-weight: bold;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo span {
    font-size: 16px;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: var(--transition);
    white-space: nowrap;
}

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

.nav-phone {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-phone:hover {
    color: var(--primary-dark);
}

.nav-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-social a {
    color: var(--text-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.nav-social a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* ============================
   Hero Slider Section
   ============================ */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.85) 0%, rgba(239, 68, 68, 0.75) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-top: 80px;
    color: white;
}

.slide-content h1 {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.slide-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.slide-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-arrow:hover {
    background: white;
    color: var(--primary);
}

.slider-prev {
    left: 30px;
}

.slider-next {
    right: 30px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* ============================
   Section Styles
   ============================ */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    font-size: clamp(0.95rem, 2vw, 18px);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================
   Services Section
   ============================ */
.services {
    padding: 80px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: linear-gradient(135deg, var(--bg-blue-light), var(--white));
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid #bfdbfe;
    cursor: pointer;
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.service-card .icon {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: var(--shadow);
}

.service-card .icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.service-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    transition: var(--transition);
}

.service-card:hover h3 {
    color: var(--primary);
}

.service-card p {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.service-card .doctor-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-card .view-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 500;
    font-size: 13px;
    transition: var(--transition);
}

.service-card:hover .view-btn {
    gap: 10px;
}

/* ============================
   Professionals Section
   ============================ */
.professionals {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-blue-light));
    overflow: hidden;
}

.professionals-carousel-wrapper {
    position: relative;
    padding: 0 60px;
    max-width: 100%;
}

.professionals-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Fix flickering */
    transform: translateZ(0);
    will-change: scroll-position;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.professionals-carousel::-webkit-scrollbar {
    display: none;
}

.professional-card {
    flex: 0 0 280px;
    min-width: 280px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    /* Fix flickering */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.professional-card:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.professional-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f3f4f6;
}

.professional-info {
    padding: 20px;
}

.professional-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.professional-info .title {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.professional-info .qualification {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.4;
}

.professional-info .department-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-blue-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.professional-info .btn {
    width: 100%;
    margin-top: 15px;
}

.professionals-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: var(--shadow);
}

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

.professionals-prev {
    left: 0;
}

.professionals-next {
    right: 0;
}

/* ============================
   Facilities Section
   ============================ */
.facilities {
    padding: 80px 0;
    background: #f8fafc;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.facility-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.facility-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.facility-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    color: white;
    transition: transform 0.3s ease;
}

.facility-card:hover .facility-icon {
    transform: scale(1.1) rotate(5deg);
}

.facility-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.facility-card p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
}

/* ============================
   Appointment Section
   ============================ */
.appointment {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-blue-light));
}

.appointment-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 40px;
    border: 1px solid var(--border);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
    margin-top: 24px;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: none;
}

.form-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.form-divider {
    color: var(--text-lighter);
}

/* ============================
   Gallery Section
   ============================ */
.gallery {
    padding: 80px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    background: var(--bg-light);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-title {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 4px;
}

.gallery-item-category {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    text-transform: capitalize;
}

.gallery-item-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-icon {
    transform: translate(-50%, -50%) scale(1);
}

/* ============================
   Lightbox
   ============================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox-caption {
    color: var(--white);
    text-align: center;
    margin-top: 16px;
    font-size: 16px;
}

/* ============================
   About Section
   ============================ */
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

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

.about-text h2 {
    font-size: clamp(1.75rem, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 24px;
}

.about-text p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    line-height: 1.8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.value-icon {
    font-size: 24px;
}

.value-text strong {
    display: block;
}

.value-text span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.about-stat {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.about-stat-number {
    font-size: clamp(1.5rem, 4vw, 36px);
    font-weight: 700;
}

.about-stat-label {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================
   Testimonials Section
   ============================ */
.testimonials {
    padding: 80px 0;
    background: var(--white);
}

/* Testimonials Carousel */
.testimonials-carousel-wrapper {
    position: relative;
    padding: 0 60px;
    max-width: 100%;
}

.testimonials-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonials-carousel::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 350px;
    min-width: 350px;
    background: linear-gradient(135deg, var(--bg-blue-light), var(--white));
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid #bfdbfe;
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-xl);
}

.testimonials-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: var(--shadow);
}

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

.testimonials-prev {
    left: 0;
}

.testimonials-next {
    right: 0;
}

.testimonial-card {
    background: linear-gradient(135deg, var(--bg-blue-light), var(--white));
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid #bfdbfe;
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-xl);
}

.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.star {
    color: #fbbf24;
    font-size: 18px;
}

.testimonial-card p {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.8;
}

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

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.author-info strong {
    display: block;
    color: var(--text-dark);
}

.author-info span {
    font-size: 14px;
    color: var(--text-light);
}

/* ============================
   Contact Section
   ============================ */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-blue-light));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact-icon-blue { background: var(--primary); }
.contact-icon-green { background: var(--whatsapp); }
.contact-icon-red { background: #ef4444; }
.contact-icon-purple { background: #8b5cf6; }

.contact-text strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.contact-text p {
    color: var(--text-light);
}

.contact-buttons {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    height: 400px;
    min-height: 300px;
}

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

/* ============================
   Footer
   ============================ */
.footer {
    background: #111827;
    color: var(--white);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr repeat(3, auto);
    gap: 48px;
}

.footer-brand p {
    color: #9ca3af;
    margin-top: 16px;
    font-size: 14px;
}

.footer-links,
.footer-services,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links strong,
.footer-services strong,
.footer-contact strong {
    margin-bottom: 8px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-services span {
    color: #9ca3af;
}

.footer-contact p {
    color: #9ca3af;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 32px;
    padding-top: 24px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* ============================
   Modal
   ============================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
}

.modal-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-icon-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: white;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: clamp(1rem, 3vw, 24px);
    margin-bottom: 4px;
}

.modal-header p {
    font-size: 14px;
    opacity: 0.9;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 24px;
}

.modal-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

/* Doctor Slider in Modal */
.modal-doctors {
    display: block;
}

.modal-doctors-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #e5e7eb;
    /* Fix flickering */
    transform: translateZ(0);
    will-change: scroll-position;
    backface-visibility: hidden;
}

.modal-doctors-slider::-webkit-scrollbar {
    height: 6px;
}

.modal-doctors-slider::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 3px;
}

.modal-doctors-slider::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.modal-doctor-card {
    flex: 0 0 280px;
    min-width: 280px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
}

.modal-doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.modal-doctor-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f3f4f6;
}

.modal-doctor-info {
    padding: 20px;
}

.modal-doctor-info h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.modal-doctor-info .title {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.modal-doctor-info .qualification {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.modal-doctor-info .expertise {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modal-doctor-info .timings {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #16a34a;
    font-weight: 500;
    padding: 8px 12px;
    background: #f0fdf4;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
    margin-bottom: 15px;
}

.modal-doctor-info .btn {
    width: 100%;
    text-align: center;
}

/* Slider Navigation Buttons */
.doctor-slider-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.doctor-slider-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    background: white;
    border-radius: 50%;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.no-doctors {
    text-align: center;
    padding: 48px;
    color: var(--text-light);
}

/* ============================
   Floating Buttons
   ============================ */
.floating-btn {
    position: fixed;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 900;
    transition: var(--transition);
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.floating-whatsapp {
    bottom: 24px;
    right: 24px;
    background: var(--whatsapp);
    animation: bounce 2s infinite;
}

.floating-call {
    bottom: 24px;
    left: 24px;
    background: var(--primary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ============================
   Responsive Design
   ============================ */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 14px;
    }
    
    .nav-link, .nav-phone {
        font-size: 12px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .facilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        gap: 12px;
    }
    
    .nav-link, .nav-phone {
        font-size: 12px;
    }
    
    .nav-social {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        order: -1;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .professionals-carousel-wrapper {
        padding: 0 50px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 12px;
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        align-items: flex-start;
    }

    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        font-size: 14px;
        width: 100%;
        padding: 8px 0;
    }
    
    .nav-phone {
        font-size: 14px;
        padding: 8px 0;
    }
    
    .nav-social {
        padding: 8px 0;
        gap: 16px;
    }
    
    .nav-social a {
        padding: 8px;
    }

    .nav-toggle {
        display: flex;
    }
    
    .logo span {
        font-size: 14px;
    }
    
    .logo-img {
        height: 35px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-doctor-card {
        flex: 0 0 260px;
        min-width: 260px;
    }
    
    .professionals-carousel-wrapper {
        padding: 0 10px;
    }
    
    .professionals-nav-btn {
        display: none;
    }
    
    .professional-card {
        flex: 0 0 260px;
        min-width: 260px;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .contact-buttons .btn {
        width: 100%;
    }
    .testimonials-carousel-wrapper {
    padding: 0 10px;
}

.testimonials-nav-btn {
    display: none;
}

.testimonial-card {
    flex: 0 0 300px;
    min-width: 300px;
}
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .facilities-grid {
        grid-template-columns: 1fr;
    }
    
    .facility-card {
        padding: 25px 20px;
    }
    
    .slide-buttons {
        flex-direction: column;
    }
    
    .slide-buttons .btn {
        width: 100%;
    }
    
    .hero-slider {
        min-height: 500px;
    }
    
    .slide-content {
        padding: 80px 20px 100px;
    }
    
    .slider-dots {
        bottom: 20px;
    }
    
    .appointment-form {
        padding: 24px;
    }
    
    .form-buttons {
        flex-direction: column;
    }

    .form-buttons .btn {
        width: 100%;
    }
    
    .form-divider {
        display: none;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-icon-img {
        width: 48px;
        height: 48px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-doctor-card {
        flex: 0 0 240px;
        min-width: 240px;
    }
    
    .professional-card {
        flex: 0 0 240px;
        min-width: 240px;
    }
    .testimonial-card {
    flex: 0 0 280px;
    min-width: 280px;
    padding: 24px;
}
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .logo span {
        font-size: 14px;
    }
    
    .logo-img {
        height: 36px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 24px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .professionals-carousel {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    
    .professional-card {
        scroll-snap-align: start;
    }
    
    .modal-doctors-slider {
        scroll-snap-type: x mandatory;
    }
    
    .modal-doctor-card {
        scroll-snap-align: start;
    }
    
    .gallery-item-overlay {
        opacity: 1;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .facility-card:hover {
        transform: none;
    }
}
/* Footer Social Icons */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

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

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