:root {
    --primary: #008080;
    --primary-light: #00a3a3;
    --secondary: #ffffff;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background: #f5f5f5;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background);
    transition: var(--transition);
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: bold;
}

.logo i {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

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

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-light);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.whatsapp-btn {
    background: #25d366;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 992px) {
    .logo span {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.5rem 5%;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: var(--primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 1000;
        padding: 2rem 0;
        overflow-x: hidden;
    }

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

    .nav-menu a {
        font-size: 1.2rem;
        padding: 1rem;
        width: 100%;
        text-align: center;
    }

    .logo {
        font-size: 1rem;
    }
    
    .logo span {
        font-size: 0.8rem;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.8), rgba(0, 163, 163, 0.8)), url('dental-bg1.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    z-index: 5;
    padding: 3rem;
    background-color: rgba(0, 128, 128, 0.7);
    border-radius: 15px;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
    backdrop-filter: blur(5px);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.cta-primary,
.cta-secondary {
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    font-size: 1.1rem;
}

.cta-primary {
    background: #25d366;
    color: white;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.cta-primary:hover,
.cta-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Fixed Appointment Button */
.fixed-appointment {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.cta-large {
    display: inline-block;
    background: #25d366;
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

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

/* About Section */
.about {
    padding: 5rem 10%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--secondary);
}

.doctor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--background);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.doctor-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-avatar i {
    font-size: 5rem;
    color: var(--text-light);
}
/* Add this CSS to make the photo round */
.rounded-photo {
    width: 150px; /* Adjust size as needed */
    height: 150px; /* Adjust size as needed */
    border-radius: 50%;
    object-fit: cover; /* Ensures the image covers the entire area without distortion */
    border: 2px solid #fff; /* Optional: add a border */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional: add a shadow */
}
.doctor-info h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.credentials {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.certification {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 500;
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.about-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Why Choose Us */
.why-choose-us {
    background: var(--primary-light);
    padding: 1.5rem;
    border-radius: 15px;
    color: var(--text-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.why-choose-us h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.why-choose-us ul {
    list-style: none;
}

.why-choose-us li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.why-choose-us li i {
    color: var(--text-light);
}

/* Services Section */
.services {
    padding: 5rem 10%;
    background: var(--background);
    text-align: center;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

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

.service-card {
    background: var(--secondary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.service-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.service-card p {
    color: var(--text-dark);
}

/* Other Services Card */
.other-services {
    background: var(--primary-light);
    color: var(--text-light);
    border: 3px solid var(--primary);
}

.other-services h3 {
    color: var(--text-light);
    font-size: 1.8rem;
}

.other-services i {
    color: var(--text-light);
}

/* Other Services List */
.other-services-list {
    list-style: none;
    text-align: left;
    margin-top: 1rem;
}

.other-services-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.other-services-list li i {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Expertise Section */
.expertise {
    padding: 5rem 10%;
    background: var(--secondary);
    text-align: center;
}

.expertise h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

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

.expertise-item {
    background: var(--background);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.expertise-item i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.expertise-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Gallery Section */
.gallery {
    padding: 5rem 10%;
    background: var(--background);
    text-align: center;
}

.gallery h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

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

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 280px;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

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

/* Reviews Section */
.reviews {
    padding: 5rem 10%;
    background: var(--secondary);
    text-align: center;
}

.reviews h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

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

.testimonial-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

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

.testimonial-card i.fa-quote-left {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.stars {
    color: #ffc107;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    position: relative;
    margin-top: 1.5rem;
}

.stars::before {
    content: '';
    display: block;
    width: 25px;
    height: 25px;
    background-color: var(--primary);
    border-radius: 50%;
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.stars::after {
    content: '\f005';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: white;
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    z-index: 1;
}

.review-content {
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.review-content p {
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.review-content h4 {
    color: var(--primary);
    font-weight: 600;
}

/* Contact Section */
.contact {
    padding: 5rem 10%;
    background: var(--background);
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.timing p {
    margin-bottom: 0.5rem;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-light);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.3);
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--text-light);
    padding: 3rem 10%;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

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

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

/* Performance Optimizations */
[data-aos] {
    will-change: transform, opacity;
}

img {
    will-change: transform;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .fixed-appointment {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    .services-grid,
    .gallery-grid,
    .reviews-carousel,
    .expertise-content {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-primary, 
    .cta-secondary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .cta-large {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .fixed-appointment {
        bottom: 15px;
        right: 15px;
    }
    
    .gallery-item {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .services, 
    .expertise, 
    .gallery, 
    .reviews, 
    .contact {
        padding: 3rem 5%;
    }
    
    .about {
        padding: 3rem 5%;
        gap: 2rem;
    }
}