/* 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;
    background-color: #fff;
}

.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;
    color: #008080;
}

h3 {
    font-size: 1.8rem;
    color: #006666;
}

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, #ff4500 0%, #ff6347 100%);
    color: white;
}

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

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #008080;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 128, 128, 0.3);
}

.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: 1rem;
    margin-right: auto;
    padding-left: 0.5rem;
}

.nav-logo h2 {
    color: #ffffff;
    margin: 0;
    font-size: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

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

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

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

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #000000;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

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

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

.hero-video::after {
    content: '';
    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;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInUp 1s ease;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-align: center;
}

.hero-doctors {
    margin-bottom: 1.5rem;
}

.doctors-names {
    font-size: 1.8rem;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    line-height: 1.3;
    position: relative;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background-color: rgba(0, 128, 128, 0.1);
    box-shadow: 0 0 20px rgba(0, 128, 128, 0.3);
    animation: highlightPulse 3s ease-in-out infinite;
}

.hero-discount {
    margin: 2rem 0;
    text-align: center;
}

.discount-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ff6600;
    background: linear-gradient(135deg, #ff6600 0%, #ff8800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(255, 102, 0, 0.4);
    padding: 1rem 2rem;
    border: 2px solid #ff6600;
    border-radius: 50px;
    display: inline-block;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 102, 0, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
    }
}

.doctors-names::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #40e0d0, #008080, #006666, #40e0d0);
    background-size: 400% 400%;
    border-radius: 12px;
    z-index: -1;
    animation: sparkleRotate 4s linear infinite;
    opacity: 0.7;
}


.hero-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 2.5rem;
    text-align: center;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
}

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

.section-header h2 {
    margin-bottom: 1rem;
    font-weight: 800;
    font-size: 2.5rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #333;
    font-weight: 700;
}

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

.about::before {
    content: '🦷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25rem;
    color: #f4c2a1;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
    filter: drop-shadow(0 0 15px rgba(244, 194, 161, 0.4));
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.about-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-text h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.about-text p {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
}

.about-text p strong {
    color: #666;
    font-weight: 700;
}

.qualifications {
    margin-top: 2rem;
}

.qualifications h4 {
    color: #008080;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.qualifications ul {
    list-style: none;
    padding-left: 0;
}

.qualifications li {
    padding: 0.7rem 0;
    color: #333;
    position: relative;
    padding-left: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

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

.doctors-images {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.doctor-profile-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

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

.doctor-photo {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
}

.doctor-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
}

.doctor-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f8f8 0%, #e0f0f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #008080;
    font-size: 3rem;
    border: 2px dashed #008080;
}

.doctor-info {
    background: #008080;
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.doctor-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    letter-spacing: 1px;
}

.doctor-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
}

.about-stats {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    justify-content: space-between;
}

.stat {
    text-align: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, #008080 0%, #006666 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 128, 128, 0.3);
    transition: transform 0.3s ease;
    flex: 1;
}

.stat h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.stat p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

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

.service-category {
    margin-bottom: 4rem;
}

.service-category:last-child {
    margin-bottom: 0;
}

.service-category-title {
    text-align: center;
    color: #008080;
    margin-bottom: 2rem;
    font-size: 2rem;
    position: relative;
}

.service-category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #008080 0%, #006666 100%);
    border-radius: 2px;
}

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

/* Special layout for Conservative Dentistry with 5 cards */
.service-category:nth-of-type(2) .services-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin: 0 auto;
    justify-items: center;
}

/* For the last 2 cards in Conservative Dentistry, center them */
.service-category:nth-of-type(2) .services-grid .service-card:nth-child(n+4) {
    grid-column: span 1;
}

/* Center the last 2 cards in a row */
.service-category:nth-of-type(2) .services-grid .service-card:nth-child(4) {
    grid-column: 2;
}

.service-category:nth-of-type(2) .services-grid .service-card:nth-child(5) {
    grid-column: 2;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.service-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

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

.service-image:hover img {
    transform: scale(1.1);
}

.service-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.service-card li {
    padding: 0.3rem 0;
    color: #666;
    position: relative;
    padding-left: 1.2rem;
}

.service-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

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

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

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

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

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f8f8 0%, #e0f0f0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #008080;
    font-size: 2rem;
}

.gallery-placeholder p {
    margin-top: 1rem;
    font-size: 1rem;
    color: #666;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}


.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

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

.gallery-item {
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.gallery-modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.gallery-modal img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gallery-modal-caption {
    margin-top: 1rem;
    color: white;
}

.gallery-modal-caption h3 {
    font-size: 1.5rem;
    color: white;
    margin: 0;
}

.gallery-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.gallery-modal-close:hover {
    color: #ff4500;
}

/* Mobile responsive gallery modal */
@media (max-width: 768px) {
    .gallery-modal-content {
        width: 95%;
        max-width: 90vw;
        padding: 1rem;
    }
    
    .gallery-modal img {
        border-radius: 8px;
    }
    
    .gallery-modal-close {
        top: -30px;
        font-size: 1.8rem;
    }
    
    .gallery-modal-caption h3 {
        font-size: 1.2rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.call-btn {
    background: linear-gradient(135deg, #ff4500 0%, #ff6347 100%);
    animation-delay: 0s;
    z-index: 1002;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    animation-delay: 0.5s;
    z-index: 1001;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        left: 20px;
        gap: 12px;
    }
    
    .floating-btn {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
}

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

.testimonials-container {
    overflow: hidden;
    margin-top: 3rem;
}

.testimonials-grid {
    display: flex;
    gap: 2rem;
    animation: scrollTestimonials 30s linear infinite;
    width: calc(300% + 4rem);
}

@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-33.333% - 1.33rem));
    }
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 3px solid #ff4500;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    flex-shrink: 0;
    width: 300px;
}


.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.patient-info h4 {
    color: #2c3e50;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

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

.google-review {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.2rem;
}

.stars i {
    color: #ffc107;
    font-size: 1rem;
}

.google-logo i {
    color: #4285f4;
    font-size: 1.2rem;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 0;
    color: #555;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: #999;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ffffff' fill-opacity='0.15'/%3E%3C/svg%3E") repeat;
    background-size: 1200px 120px;
    animation: wave 20s linear infinite;
    z-index: 1;
}

.contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z' fill='%23ffffff' fill-opacity='0.1'/%3E%3C/svg%3E") repeat;
    background-size: 1200px 120px;
    animation: wave 25s linear infinite reverse;
    z-index: 1;
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-1200px);
    }
}

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

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

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #008080 0%, #006666 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    color: #000000;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.contact-details p {
    margin: 0;
    color: #000000;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.6;
}

.contact-details a {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

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

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

.contact-form h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    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: #667eea;
}

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

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background: url('F&Q/Untitled design (9).png') center center/cover no-repeat;
    position: relative;
}

.faq-container {
    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);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    border: 2px solid transparent;
    position: relative;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 128, 128, 0.2);
    border-color: rgba(0, 128, 128, 0.3);
}

.faq-item:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.1s ease;
}

.faq-item.active {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 128, 128, 0.3);
    border-color: #008080;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.faq-question:hover {
    background: linear-gradient(135deg, #f0f8f8 0%, #e8f5f5 100%);
    transform: scale(1.02);
}

.faq-question:active {
    background: linear-gradient(135deg, #e0f0f0 0%, #d8f0f0 100%);
    transform: scale(0.98);
}

.faq-question h4 {
    color: #008080;
    margin: 0;
}

.faq-question i {
    color: #008080;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    transform: translateY(-10px);
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.5rem 1.5rem;
    transform: translateY(0);
    opacity: 1;
}

.faq-answer p {
    color: #666;
    margin: 0;
    transition: color 0.3s ease;
}

/* Ripple effect for touch interactions */
.faq-question::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 128, 128, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.faq-question:active::before {
    width: 300px;
    height: 300px;
}

/* Enhanced icon animation */
.faq-question i {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.faq-question:hover i {
    transform: scale(1.2);
    color: #006666;
}

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

/* Footer */
.footer {
    background: linear-gradient(135deg, #006666 0%, #004d4d 100%);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

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

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

.footer-section ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

.footer-section ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.footer-section ul li a:hover::after {
    width: 100%;
}

.footer-section i {
    margin-right: 0.5rem;
    color: #40e0d0;
}

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

.footer-section p a:hover {
    color: #40e0d0;
    text-decoration: underline;
}

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

/* Footer responsive styles */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 1rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        margin-bottom: 0.8rem;
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 0 20px rgba(0, 128, 128, 0.3);
        background-color: rgba(0, 128, 128, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 128, 128, 0.6);
        background-color: rgba(0, 128, 128, 0.2);
    }
    100% {
        box-shadow: 0 0 20px rgba(0, 128, 128, 0.3);
        background-color: rgba(0, 128, 128, 0.1);
    }
}

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

@keyframes sparkleTwinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    25% {
        opacity: 0.7;
        transform: scale(1.2) rotate(90deg);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8) rotate(180deg);
    }
    75% {
        opacity: 0.8;
        transform: scale(1.1) rotate(270deg);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .logo-img {
        height: 75px;
    }
    
    .nav-logo h2 {
        font-size: 1.3rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #008080;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 128, 128, 0.3);
        padding: 2rem 0;
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

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

    .nav-menu a {
        padding: 1rem;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.1rem;
        font-weight: 500;
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }

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

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

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

    .hero-container {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-video video {
        object-fit: cover;
        object-position: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .doctors-names {
        font-size: 1.4rem;
    }
    
    .discount-text {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
    }

    .hero-buttons {
        justify-content: center;
        gap: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-left {
        gap: 1.5rem;
    }
    
    .doctors-images {
        flex-direction: row;
        justify-content: space-around;
        gap: 1rem;
    }
    
    .doctor-profile-card {
        flex: 1;
        max-width: 250px;
    }
    
    .doctor-photo {
        height: 200px;
    }
    
    .doctor-image-placeholder {
        font-size: 2rem;
    }
    
    .doctor-info {
        padding: 1rem;
    }
    
    .doctor-info h4 {
        font-size: 1rem;
    }
    
    .doctor-info p {
        font-size: 0.8rem;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
    }

    .stat {
        padding: 1rem;
    }

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

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

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
    
    /* Conservative Dentistry responsive layout */
    .service-category:nth-of-type(2) .services-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .service-category:nth-of-type(2) .services-grid .service-card:nth-child(4),
    .service-category:nth-of-type(2) .services-grid .service-card:nth-child(5) {
        grid-column: 1;
    }
    
    .service-card {
        padding: 2rem;
    }

    .service-category-title {
        font-size: 1.5rem;
    }

    .service-image {
        height: 180px;
        margin-bottom: 1rem;
    }
    
    .service-image img {
        object-fit: contain;
        object-position: center;
        background: #f8f9fa;
        padding: 0.5rem;
        border-radius: 8px;
    }

    .testimonials-grid {
        width: calc(600% + 10rem);
        animation-duration: 60s;
    }
    
    .testimonial-card {
        width: 280px;
    }

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

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 15px;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-placeholder {
        width: 200px;
        height: 200px;
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .doctors-names {
        font-size: 1.2rem;
    }
    
    .discount-text {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }
    
    .nav-menu {
        top: 60px;
        max-height: calc(100vh - 60px);
        padding: 1.5rem 0;
    }
    
    .nav-menu a {
        padding: 0.8rem;
        font-size: 1rem;
    }
    
    .hero {
        padding-top: 120px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
    
    .logo-img {
        height: 70px;
    }
    
    .nav-logo h2 {
        font-size: 1.1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

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

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .doctors-images {
        flex-direction: column;
    }
    
    .doctor-profile-card {
        max-width: none;
    }
    
    .doctor-photo {
        height: 180px;
    }
    
    .doctor-image-placeholder {
        font-size: 2rem;
    }
    
    .doctor-info {
        padding: 1rem;
    }
    
    .doctor-info h4 {
        font-size: 1rem;
    }
    
    .doctor-info p {
        font-size: 0.8rem;
    }

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

    .contact-form {
        padding: 1.5rem;
    }

    .hero-placeholder {
        width: 150px;
        height: 150px;
        font-size: 2rem;
    }

    .service-image {
        height: 160px;
        margin-bottom: 1rem;
    }
    
    .service-image img {
        object-fit: contain;
        object-position: center;
        background: #f8f9fa;
        padding: 0.4rem;
        border-radius: 6px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

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

/* Service Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: #667eea;
    background: white;
    transform: scale(1.1);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 400px;
}

.modal-image {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px 0 0 15px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 500px;
}

.modal-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modal-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

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

.modal-features {
    margin-bottom: 2rem;
}

.modal-features h4 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.modal-features ul {
    list-style: none;
    padding: 0;
}

.modal-features li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.modal-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-close-btn {
    background: #6c757d;
    color: white;
    border: none;
}

.modal-close-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Service Card Click Effect */
.service-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

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

.service-card:active {
    transform: translateY(-5px);
}

/* Book Now Button */
.book-now-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff4500 0%, #ff6347 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    display: block;
    text-align: center;
    box-sizing: border-box;
}

.book-now-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;
}

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

.book-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.3);
}

.book-now-btn:active {
    transform: translateY(0);
}

/* Booking Modal Styles */
.booking-modal-content {
    max-width: 600px;
    width: 90%;
}

.booking-modal-body {
    padding: 2rem;
}

.booking-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.booking-header h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.booking-header p {
    color: #667eea;
    font-weight: 500;
    margin: 0;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.booking-form .form-group {
    margin-bottom: 0;
}

.booking-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
}

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

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.booking-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox Styling */
.checkbox-group {
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    opacity: 0;
    position: absolute;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.booking-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.booking-actions .btn {
    flex: 1;
    max-width: 200px;
}

/* Mobile Booking Modal */
@media (max-width: 768px) {
    .booking-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .booking-modal-body {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .booking-actions {
        flex-direction: column;
    }
    
    .booking-actions .btn {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .booking-modal-body {
        padding: 1rem;
    }
    
    .booking-header h3 {
        font-size: 1.5rem;
    }
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-image {
        border-radius: 15px 15px 0 0;
        height: 200px;
    }
    
    .modal-info {
        padding: 1.5rem;
    }
    
    .modal-info h3 {
        font-size: 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 2% auto;
    }
    
    .modal-info {
        padding: 1rem;
    }
    
    .modal-image {
        height: 150px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .contact-form,
    .footer,
    .modal {
        display: none;
    }
    
    .hero {
        padding-top: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}
