/* Dr. Vaidehi - Optimized CSS for Blazing Fast Loading */
/* Critical CSS - Above the fold styles */

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

:root {
    --primary: #00a651;
    --primary-dark: #008940;
    --secondary: #2196f3;
    --blue: #2196f3;
    --blue-light: #64b5f6;
    --dark: #1a1a1a;
    --light: #f0f9f4;
    --gray-light: #f8fcfa;
    --text-dark: #333333;
    --text-light: #666666;
    --emergency: #dc2626;
    --gradient-primary: linear-gradient(135deg, #00a651 0%, #2196f3 50%, #64b5f6 100%);
    --gradient-blue: linear-gradient(135deg, #2196f3 0%, #64b5f6 100%);
    --gradient-emergency: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    --gradient-gynec: linear-gradient(135deg, #00a651 0%, #2196f3 100%);
    --shadow: 0 10px 30px rgba(0, 166, 81, 0.15);
    --shadow-hover: 0 15px 40px rgba(0, 166, 81, 0.25);
}

/* Font Awesome Fix */
[class^="fa-"], [class*=" fa-"], .fas, .fab, .far {
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block !important;
}

.fab {
    font-family: "Font Awesome 6 Brands", "FontAwesome" !important;
    font-weight: 400 !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 70px;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header - Critical */
.header {
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    will-change: transform;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

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

.doctor-name-header {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.call-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.3);
}

.call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 166, 81, 0.4);
}

/* Hero Section - Critical */
.hero {
    margin-top: 65px;
    padding: 40px 0;
    background: var(--gradient-gynec);
    position: relative;
    overflow: hidden;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.doctor-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    margin: 0 auto 20px;
    display: block;
}

.hero h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.specialty {
    font-size: 18px;
    margin-bottom: 8px;
    opacity: 0.95;
}

.qualifications {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.experience-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 14px;
    min-width: 140px;
    justify-content: center;
}

.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

/* Section Styles */
.section {
    padding: 50px 0;
}

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

.section-title {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 15px;
}

/* Location Coverage Section */
.location-coverage {
    background: var(--light);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 166, 81, 0.1);
}

.location-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.location-title {
    font-weight: 600;
    color: var(--primary);
    flex-shrink: 0;
}

.location-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.location-tags span {
    background: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    color: var(--text-dark);
    border: 1px solid rgba(0, 166, 81, 0.2);
    transition: all 0.3s ease;
}

.location-tags span:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* About Section */
.about {
    background: var(--gray-light);
}

.about-content {
    display: grid;
    gap: 30px;
    text-align: center;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    max-width: 600px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 15px;
}

.about-doctor-image {
    display: none;
    margin-bottom: 30px;
}

.desktop-doctor-img {
    width: 100%;
    max-width: 280px;
    height: 320px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 166, 81, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.desktop-doctor-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 166, 81, 0.3);
}

.about-right-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: white;
    padding: 25px 15px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* Popular Searches Section */
.popular-searches {
    background: white;
}

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

.search-card {
    background: var(--gray-light);
    padding: 25px;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.search-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.search-card i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 15px;
}

.search-card h3 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 10px;
}

.search-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.search-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

/* Services Section */
.services {
    background: var(--gray-light);
}

.services-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: 1fr;
}

.service-category {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-gynec);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.category-header h3 {
    font-size: 20px;
    color: var(--dark);
    margin: 0;
}

.procedures-list {
    display: grid;
    gap: 12px;
}

.procedure-item {
    background: var(--gray-light);
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 3px solid transparent;
}

.procedure-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 3px solid var(--primary);
}

.procedure-item i {
    color: var(--primary);
    font-size: 14px;
    flex-shrink: 0;
}

.procedure-item i.fa-check-circle {
    color: #4caf50;
}

/* FAQs Section */
.faqs {
    background: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--gray-light);
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.faq-question {
    background: var(--gray-light);
    border: none;
    padding: 20px;
    width: 100%;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.faq-question:hover {
    background: var(--light);
    color: var(--primary);
}

.faq-question.active {
    background: var(--primary);
    color: white;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-answer.active {
    padding: 20px;
    max-height: 300px;
}

.faq-answer p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: var(--gray-light);
}

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

.contact-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gynec);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin: 0 auto 15px;
}

.contact-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark);
}

.contact-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-phone {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}

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

/* Map Container */
.map-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    margin-top: 30px;
    width: 100%;
}

.map-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-top: 15px;
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Mobile CTA Bar - Single Button */
.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    display: flex;
    padding: 10px 15px;
    border-top: 1px solid #eee;
}

.cta-btn {
    flex: 1;
    padding: 15px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white;
}

.cta-btn i {
    font-size: 20px;
}

.cta-call {
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(0, 166, 81, 0.3);
}

.cta-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 166, 81, 0.4);
}

/* Desktop Floating Call Bar */
.desktop-floating-bar {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        bottom: -100px;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

.floating-call-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 30px rgba(0, 166, 81, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.floating-call-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.floating-call-btn:hover::before {
    width: 300px;
    height: 300px;
}

.floating-call-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 166, 81, 0.5);
}

.floating-call-btn i {
    font-size: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.floating-call-btn span {
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 40px 0 90px;
}

.footer-content {
    display: grid;
    gap: 30px;
    text-align: center;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary);
}

.footer-section p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section p i {
    margin-right: 8px;
    color: var(--primary);
    width: 16px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.footer-social a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
}

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

/* Animations */
html {
    scroll-behavior: smooth;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 375px) {
    .doctor-name-header {
        font-size: 14px;
    }
    
    .call-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .location-tags span {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .cta-btn {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .cta-btn i {
        font-size: 18px;
    }
}

@media (min-width: 480px) {
    .search-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .doctor-image {
        width: 220px;
        height: 220px;
    }

    .specialty {
        font-size: 22px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 36px;
    }

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

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

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

    .mobile-cta-bar {
        display: none;
    }
    
    .desktop-floating-bar {
        display: block;
    }

    body {
        padding-bottom: 20px;
    }

    .footer {
        padding: 40px 0 100px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }
    
    .footer-social {
        justify-content: flex-start;
    }
    
    .location-bar {
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 60px 0;
    }

    .section {
        padding: 80px 0;
    }

    .about-content {
        grid-template-columns: 1.2fr 0.8fr;
        text-align: left;
        align-items: start;
        gap: 40px;
    }

    .about-text {
        max-width: none;
        margin: 0;
    }

    .about-doctor-image {
        display: block;
    }

    .about-right-section {
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 20px;
    }

    .stat-card {
        padding: 20px 15px;
    }
    
    .search-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}