/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #40E0D0 0%, #0d9488 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #FF4500;
    border: 2px solid #FF4500;
}

.btn-secondary:hover {
    background: #FF4500;
    color: white;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #40E0D0 !important;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(64, 224, 208, 0.2);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-left: -40px;
}

.logo-container {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #40E0D0 0%, #0d9488 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(64, 224, 208, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.logo-container:hover::before {
    left: 100%;
}

.logo-container:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(64, 224, 208, 0.4);
}

.logo-image {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    z-index: 1;
    position: relative;
}

.nav-logo h2 {
    color: black;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: black;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #333;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: black;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: white;
    font-size: 5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
    color: #40E0D0;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
    font-size: 1.6rem !important;
    color: #40E0D0 !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6) !important;
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.4rem !important;
    color: #e0e0e0 !important;
    font-weight: 500 !important;
    margin-bottom: 2rem !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}


/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: #faf9f7;
    position: relative;
    overflow: hidden;
}

.about .section-header {
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeInDown 1s ease-out 0.2s forwards;
}

.about .section-header h2 {
    position: relative;
    margin-bottom: 2rem;
}

.about .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #6B7280, transparent);
    border-radius: 2px;
}

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

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='1200' height='200' viewBox='0 0 1200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,200 Q300,50 600,100 T1200,80 L1200,200 Z' fill='%234A5568' fill-opacity='0.25'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
    z-index: 0;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg width='1200' height='100' viewBox='0 0 1200 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,100 Q300,20 600,40 T1200,30 L1200,100 Z' fill='%235A67D8' fill-opacity='0.2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
    z-index: 0;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 3rem;
    min-height: 600px;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.doctor-image {
    width: 100%;
    height: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.doctor-image:hover {
    transform: translateY(-5px);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px; /* Always visible */
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.9) 0%, rgba(13, 148, 136, 0.8) 100%);
    border-radius: 0 0 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: all 0.4s ease;
    overflow: hidden;
}

.image-overlay.active {
    opacity: 1;
    visibility: visible;
    height: 120px;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    padding: 20px;
}

.image-overlay.active .overlay-content {
    transform: translateY(0);
}

.overlay-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.overlay-content p {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 1;
    color: black;
}

.about-text h3 {
    color: #dc2626;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.doctor-title {
    color: black;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.7;
    font-weight: 600;
}

.qualifications {
    margin-top: 2rem;
}

.qualifications h4 {
    color: #8B4513;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.qualifications ul {
    list-style: none;
}

.qualifications li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 0.2rem 0;
}

.qualifications li:hover {
    background-color: rgba(64, 224, 208, 0.1);
    color: #0d9488;
    transform: translateX(5px);
    padding-left: 1.8rem;
}

.qualifications li:active {
    transform: scale(0.98);
    background-color: rgba(64, 224, 208, 0.2);
}

.qualifications li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #40E0D0;
    font-weight: bold;
    font-size: 1rem;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f0fdfa 0%, #e6fffa 50%, #f0fdfa 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(64, 224, 208, 0.15);
    min-width: 150px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid rgba(64, 224, 208, 0.2);
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(64, 224, 208, 0.3), transparent);
    transition: left 0.6s ease;
}

.stat:hover::before {
    left: 100%;
}

.stat:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(64, 224, 208, 0.3);
    border-color: #40E0D0;
    background: linear-gradient(135deg, #e6fffa 0%, #ccfbf1 50%, #e6fffa 100%);
}

.stat h3 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #0d9488 0%, #40E0D0 50%, #0891b2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.stat p {
    color: #0f766e;
    font-weight: 600;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: #f8f9fa;
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid #40E0D0;
}

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

.service-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Service Card Touch Effects */
.service-card:active {
    transform: translateY(-5px) scale(0.98);
    box-shadow: 0 20px 40px rgba(64, 224, 208, 0.4);
    background: #40E0D0 !important;
    border: 2px solid rgba(64, 224, 208, 0.8);
}

.service-card:active h3 {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.service-card:active p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Service Card Modal Overlay */
.service-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.service-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.service-modal {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-modal-overlay.active .service-modal {
    transform: scale(1);
}

.service-modal h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.service-modal p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.service-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.service-modal-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.service-modal-btn-primary {
    background: linear-gradient(135deg, #40E0D0 0%, #0d9488 100%);
    color: white;
}

.service-modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(64, 224, 208, 0.4);
}

.service-modal-btn-secondary {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
}

.service-modal-btn-secondary:hover {
    background: #f5f5f5;
    border-color: #40E0D0;
    color: #40E0D0;
}

.service-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.service-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.service-card h3 {
    color: #333;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Gallery Section */
.gallery {
    padding: 5rem 0;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: #f8f9fa;
}

.testimonials-container {
    overflow: hidden;
    padding: 1rem 0;
    position: relative;
}

.testimonials-grid {
    display: flex;
    gap: 2rem;
    animation: scroll 40s linear infinite;
    width: calc(200% + 2rem);
}

.testimonials-grid:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

.testimonials-grid::-webkit-scrollbar {
    height: 8px;
}

.testimonials-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.testimonials-grid::-webkit-scrollbar-thumb {
    background: #40E0D0;
    border-radius: 4px;
}

.testimonials-grid::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

.testimonial-card {
    background: linear-gradient(135deg, #f0fdfa 0%, #e6fffa 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    min-width: 300px;
    flex-shrink: 0;
    border: 4px solid black;
}

.testimonial-author {
    text-align: center;
    margin-bottom: 0.5rem;
}

.testimonial-author h4 {
    color: #333;
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.testimonial-stars {
    text-align: center;
    margin-bottom: 1rem;
}

.star {
    color: #FFD700;
    font-size: 1.2rem;
    margin: 0 2px;
    text-shadow: 0 1px 2px rgba(255, 215, 0, 0.3);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
}

.testimonial-patient-type {
    text-align: center;
}

.testimonial-patient-type span {
    color: #666;
    font-size: 0.9rem;
}

/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    bottom: 100px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.floating-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.floating-btn:hover::before {
    left: 100%;
}

.call-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    animation: pulse 2s infinite;
}

.call-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
    }
    50% {
        box-shadow: 0 4px 25px rgba(220, 38, 38, 0.4);
    }
    100% {
        box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
    }
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: linear-gradient(to bottom, white 0%, white 200px, #374151 200px, #374151 100%);
    position: relative;
    overflow: hidden;
}

.contact .section-header {
    position: relative;
    z-index: 2;
}

.contact .section-header h2 {
    color: black;
    font-weight: 800;
}

.contact .section-header p {
    color: black;
    font-weight: 600;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background-image: url("data:image/svg+xml,%3Csvg width='1200' height='200' viewBox='0 0 1200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,200 Q300,50 600,100 T1200,80 L1200,200 Z' fill='%236B7280' fill-opacity='0.15'/%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    z-index: 1;
}

.contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg width='1200' height='100' viewBox='0 0 1200 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,100 Q300,20 600,40 T1200,30 L1200,100 Z' fill='%2340E0D0' fill-opacity='0.1'/%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #40E0D0 0%, #0d9488 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(64, 224, 208, 0.3);
}

.contact-item:nth-child(4) .contact-icon {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.contact-details h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.contact-details a {
    color: #40E0D0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #0d9488;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #40E0D0;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background: url('Megha/F&q/eyes.avif') center center/cover no-repeat;
    position: relative;
}

.faq .section-header {
    position: relative;
    z-index: 2;
}

.faq .section-header h2 {
    color: white;
    font-weight: 800;
}

.faq .section-header p {
    color: white;
    font-weight: 600;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    position: relative;
    transition: all 0.3s ease;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(64, 224, 208, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.faq-item:hover::before {
    left: 100%;
}

.faq-item:active {
    transform: scale(0.98);
    box-shadow: 0 8px 25px rgba(64, 224, 208, 0.3);
    border-color: #40E0D0;
    background: linear-gradient(135deg, #f0fdfa 0%, #e6fffa 100%);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    color: #333;
    margin: 0;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.faq-item:active .faq-question h3 {
    color: #0d9488;
    transform: translateX(5px);
}

.faq-question i {
    color: #40E0D0;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.faq-item:active .faq-question i {
    color: #0d9488;
    transform: rotate(180deg) scale(1.1);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.faq-item:active .faq-answer {
    background: rgba(64, 224, 208, 0.05);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #40E0D0;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 1rem;
}

.footer-section p a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section p a:hover {
    color: #40E0D0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #40E0D0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-start;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-links a:nth-child(1) {
    background: linear-gradient(135deg, #E4405F 0%, #C13584 100%);
}

.social-links a:nth-child(2) {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.social-links a:nth-child(3) {
    background: linear-gradient(135deg, #40E0D0 0%, #0d9488 100%);
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-logo {
        gap: 1rem;
        margin-left: -15px;
    }

    .logo-container {
        width: 60px;
        height: 60px;
    }
    
    .logo-image {
        height: 40px;
    }

    .nav-logo h2 {
        font-size: 1.3rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .hero-tagline {
        font-size: 1.1rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-video video {
        object-position: center;
    }

    .hero-overlay {
        background: rgba(0, 0, 0, 0.5);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        min-height: auto;
    }

    .about-image {
        order: -1;
        height: 400px;
    }

    .doctor-image {
        width: 100%;
        height: 100%;
        max-height: 400px;
    }

    .image-overlay.active {
        height: 100px;
    }

    .overlay-content h2 {
        font-size: 1.5rem;
    }

    .overlay-content p {
        font-size: 0.9rem;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .stat {
        padding: 1rem;
    }

    .stat h3 {
        font-size: 1.8rem;
    }

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

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

    .testimonials-container {
        overflow: hidden;
    }
    
    .testimonials-grid {
        animation: scroll 30s linear infinite;
        width: calc(200% + 1rem);
    }
    
    .testimonial-card {
        min-width: 280px;
        flex-shrink: 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    /* Floating buttons mobile adjustments */
    .floating-buttons {
        bottom: 90px;
        left: 15px;
    }
    
    .floating-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-tagline {
        font-size: 1rem !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Testimonials mobile optimization for small screens */
    .testimonials-container {
        overflow: hidden;
        padding: 0.5rem 0;
    }
    
    .testimonials-grid {
        animation: scroll 25s linear infinite;
        width: calc(200% + 0.5rem);
    }
    
    .testimonial-card {
        min-width: 260px;
        padding: 1.5rem;
        flex-shrink: 0;
    }
    
    .testimonial-author h4 {
        font-size: 1rem;
    }
    
    .testimonial-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .testimonial-patient-type span {
        font-size: 0.8rem;
    }
    
    .logo-container {
        width: 55px;
        height: 55px;
    }
    
    .logo-image {
        height: 35px;
    }

    .about-image {
        height: 300px;
    }

    .doctor-image {
        width: 100%;
        height: 100%;
        max-height: 300px;
    }

    .image-overlay.active {
        height: 80px;
    }

    .overlay-content h2 {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .overlay-content p {
        font-size: 0.8rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .faq-question {
        padding: 1rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .nav-logo {
        gap: 0.8rem;
        margin-left: -10px;
    }

    .logo-image {
        height: 40px;
    }

    .nav-logo h2 {
        font-size: 1.1rem;
    }
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #40E0D0;
    outline-offset: 2px;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* About Section Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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