/* Global Styles */
:root {
    --primary-color: #0f4c81;
    --primary-dark: #1a5db6;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --accent-color: #ff6b6b;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --border-radius-sm: 5px;
    --section-spacing: 100px;
    --mobile-section-spacing: 60px;
    --container-padding: 0 20px;
    --light-text: #fff;
    --dark-bg: #1a1a1a;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    --section-padding: 80px 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
    touch-action: manipulation;
}

/* Optimized tap targets for mobile */
a, button, .btn, input[type="button"], input[type="submit"] {
    min-height: 44px;
    min-width: 44px;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    display: block;
    will-change: transform; /* Optimization for animations */
    opacity: 0.7;
    transition: opacity 0.5s ease, transform 0.3s ease;
}

img.loaded, img.doctor-img.loaded {
    opacity: 1;
}

/* Image lazy loading */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* Disable hover effects on mobile */
@media (hover: hover) {
    .btn:hover, 
    a:hover,
    .expertise-card:hover,
    .stat-item:hover, 
    .contact-card:hover,
    .social-icons a:hover,
    .whatsapp-btn:hover {
        transform: translateY(-3px);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    position: relative;
}

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

.underline {
    height: 4px;
    width: 80px;
    background-color: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

section {
    padding: var(--section-spacing) 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
    gap: 10px;
    font-size: 1rem;
}

.btn i {
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(37, 116, 209, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 116, 209, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(37, 116, 209, 0.15);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 116, 209, 0.3);
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px var(--container-padding);
}

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

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

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

nav ul li a:hover::after, 
nav ul li a.active::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-color);
}

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

/* Mobile menu when active */
@media (max-width: 768px) {
    nav ul.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 999;
        animation: slideDown 0.3s ease forwards;
    }

    nav ul.active li {
        margin: 15px 0;
        text-align: center;
    }
    
    nav ul.active li a {
        font-size: 1.1rem;
        padding: 10px;
        display: block;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Hero Section */
.hero {
    padding: 0;
    height: 100vh;
    min-height: 600px;
    background: url('images/hero.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.8), rgba(26, 93, 182, 0.7));
    z-index: 0;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDIiPjwvcmVjdD4KPC9zdmc+') repeat;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-left: 10%;
}

.hero-content {
    width: 100%;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 20px;
    color: white;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 500;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.qualification-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.qualification-badges span {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* About Section */
.about {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.about-image {
    flex: 0 0 auto;
    max-width: 500px;
    min-width: 450px;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
}

.doctor-img {
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--hover-shadow);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    z-index: 2;
    animation: imageAppear 1s ease forwards;
}

.doctor-img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

@keyframes imageAppear {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.experience-badge {
    position: absolute;
    bottom: 40px;
    left: -20px;
    width: 85%;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 3;
    transition: all 0.3s ease;
}

.experience-badge span {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    position: relative;
    display: inline-block;
    margin-bottom: 5px;
}

.experience-badge span::after {
    content: "+";
    position: absolute;
    top: 0;
    right: -20px;
    font-size: 1.8rem;
    height: 45px;
    margin-top: -5px;
}

.experience-badge p {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
    letter-spacing: 0.5px;
    margin: 0;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.about-text .underline {
    margin: 0 0 25px 0;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.stat-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-light);
}

/* Expertise Section */
.expertise {
    background-color: var(--light-color);
}

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

.expertise-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-color);
    opacity: 0.05;
    transition: var(--transition);
    z-index: -1;
}

.expertise-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.expertise-card:hover::before {
    height: 100%;
}

.icon-container {
    width: 80px;
    height: 80px;
    background-color: rgba(37, 116, 209, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 25px;
}

.expertise-card .icon-container i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.expertise-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

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

/* Testimonials Section */
.testimonials {
    background-color: white;
    position: relative;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.testimonial-item {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    text-align: center;
    position: relative;
}

.quote {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 20px;
}

.testimonial-item p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 25px;
    color: var(--text-color);
}

.patient-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.patient-info span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.prev-btn, .next-btn {
    background-color: white;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    border: none;
    transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
    width: 25px;
    border-radius: 10px;
}

/* Contact Section */
.contact {
    background-color: var(--light-color);
    padding: var(--section-spacing) 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-wrapper {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.contact-info-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-info-header i {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.contact-info-header h3 {
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    color: var(--dark-color);
}

.address-info {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 30px;
    padding-left: 3px;
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 10px;
}

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

.contact-item i {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-right: 15px;
    min-width: 25px;
    margin-top: 2px;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.contact-item a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.05rem;
}

.contact-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-item p {
    color: var(--text-light);
    margin-bottom: 5px;
    font-size: 1rem;
}

.map-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100%;
    min-height: 450px;
    box-shadow: var(--card-shadow);
}

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

@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .map-wrapper {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .contact-info-wrapper {
        padding: 30px;
    }
    
    .contact-info-header i {
        font-size: 1.8rem;
    }
    
    .contact-info-header h3 {
        font-size: 1.6rem;
    }
    
    .address-info {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .contact-grid {
        gap: 20px;
    }
    
    .map-wrapper {
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .contact-info-wrapper {
        padding: 25px 20px;
    }
    
    .contact-info-header {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info-header i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .address-info {
        text-align: center;
        border-left: none;
        padding-left: 0;
        border-bottom: 2px solid var(--primary-color);
        padding-bottom: 15px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .map-wrapper {
        min-height: 300px;
    }
}

/* Footer Section */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo, .footer-links, .footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.footer-logo .social-icons {
    margin-top: 25px;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.footer-links ul li a, .footer-contact a {
    color: #ddd;
}

.footer-links ul li a:hover, .footer-contact a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
    min-width: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
    transform-origin: center;
    -webkit-tap-highlight-color: transparent;
}

.whatsapp-btn:active {
    transform: scale(0.95);
    background-color: #20ba5a;
}

.whatsapp-btn:hover {
    background-color: #20ba5a;
    transform: scale(1.1) rotate(10deg);
    color: white;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* WhatsApp button pulse animation */
.whatsapp-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Hide pulse animation on mobile for better performance */
@media (max-width: 768px) {
    .whatsapp-btn::after {
        animation: none;
    }
    
    /* Add bottom safe area for iPhone X and newer */
    .whatsapp-btn {
        bottom: max(30px, env(safe-area-inset-bottom, 30px) + 10px);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    :root {
        --section-spacing: 80px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .expertise-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    :root {
        --section-spacing: 70px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .about-text h2 {
        font-size: 2.2rem;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-image {
        margin: 0 auto 30px;
    }
    
    .about-text {
        text-align: center;
    }
    
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: var(--mobile-section-spacing);
        --container-padding: 20px;
    }
    
    body {
        font-size: 15px;
    }
    
    .container {
        width: 95%;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-header p {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .underline {
        width: 60px;
        height: 3px;
    }
    
    nav ul {
        display: none;
    }

    .mobile-menu {
        display: block;
    }
    
    .hero {
        text-align: center;
        min-height: 500px;
        height: auto;
        padding: 150px 0 100px;
        background-position: center;
    }
    
    .hero .container {
        margin: 0 auto;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        justify-content: center;
        margin-bottom: 25px;
        align-items: center;
    }
    
    .qualification-badges {
        justify-content: center;
    }
    
    .qualification-badges span {
        padding: 5px 12px;
        font-size: 0.85rem;
    }
    
    .about-image {
        max-width: 400px;
        min-width: 300px;
        margin: 0 auto 20px;
    }
    
    .doctor-img {
        max-height: 500px;
    }
    
    .experience-badge {
        bottom: 25px;
        width: 90%;
        padding: 12px 20px;
    }
    
    .experience-badge span {
        font-size: 2.5rem;
    }
    
    .experience-badge span::after {
        height: 35px;
        margin-top: -2px;
    }
    
    .experience-badge p {
        font-size: 1rem;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .about-text .underline {
        margin: 0 auto 20px;
    }
    
    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-item i {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .stat-item h3 {
        font-size: 1.1rem;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial-item {
        padding: 30px 20px;
    }
    
    .testimonial-item p {
        font-size: 1rem;
    }
    
    .contact-info {
        width: 100%;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
    }
    
    .location-card {
        padding: 25px 20px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .contact-card .icon {
        font-size: 1.8rem;
        margin-right: 15px;
    }
    
    .contact-card .info h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .map-container {
        height: 350px;
        width: 100%;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-logo, .footer-links, .footer-contact {
        text-align: center;
        width: 100%;
    }
    
    .footer-links h3::after, .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .whatsapp-btn {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-spacing: 50px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
        padding: 0 10px;
    }
    
    .hero {
        padding: 130px 0 80px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .qualification-badges span {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    
    .expertise-card {
        padding: 25px 15px;
    }
    
    .icon-container {
        width: 60px;
        height: 60px;
    }
    
    .expertise-card .icon-container i {
        font-size: 1.8rem;
    }
    
    .expertise-card h3 {
        font-size: 1.2rem;
    }
    
    .testimonial-item {
        padding: 25px 15px;
    }
    
    .quote {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .testimonial-item p {
        font-size: 0.95rem;
    }
    
    .patient-info h4 {
        font-size: 1.1rem;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 20px 15px;
    }
    
    .contact-card .icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .about-image {
        max-width: 320px;
        min-width: 280px;
    }
    
    .doctor-img {
        max-height: 450px;
    }
    
    .experience-badge {
        bottom: 20px;
        width: 92%;
        padding: 10px 15px;
    }
    
    .experience-badge span {
        font-size: 2.2rem;
    }
    
    .experience-badge span::after {
        height: 35px;
        margin-top: -2px;
    }
    
    .experience-badge p {
        font-size: 1rem;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .location-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 20px 15px;
    }
    
    .location-card .icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .map-container {
        height: 300px;
    }
}

.experience-badge.shimmer::before {
    animation: shimmer 1.5s ease-in-out;
}

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

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
} 