/* Base Styles */
:root {
    --primary-color: #2a7fba;
    --primary-dark: #1e5f8b;
    --secondary-color: #f47b20;
    --accent-color: #3bb77e;
    --text-color: #333;
    --text-light: #777;
    --light-color: #f9f9f9;
    --white: #ffffff;
    --dark-color: #222;
    --gray-light: #eaeaea;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;   /* centers the content */
    padding: 0 20px;  /* <-- adds space on left & right */
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

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

.section-header.center {
    text-align: center;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
}

.section-description {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
}

.text-center {
    text-align: center;
}



.header-top {
    
    padding: 10px 0;
    font-size: 14px;
    background-color: #0b1f3a; /* deep navy */
    color: var(--white);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-info a, .contact-info span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--white);
}

.contact-info i {
    font-size: 12px;
}

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

.social-links-header a {
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links-header a:hover {
    color: var(--secondary-color);
}

.header-main {
    padding: 20px 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 0;
}

.logo img {
    height: 60px;
    width: auto;
    border-radius: 40%;
}
#smile{
        color: var(--primary-color);
        font-weight: bolder;
        font-size: 1.5rem;

}

.navbar ul {
    display: flex;
    gap: 30px;
}

.navbar a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    font-size: 1.1em;
}

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

.navbar a:hover::after {
    width: 100%;
}

.header-cta {
    margin-left: 30px;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
 background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                url('images/dental.jpg') no-repeat center center/cover;    color: var(--white);
    padding: 150px 0;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}






/* About Section */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}


.about-content .lead {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 500;
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: var(--transition);
}

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

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

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

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

.feature-box h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.feature-box p {
    font-size: 14px;
    color: var(--text-light);
}



.experience-badge span {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.experience-badge p {
    font-size: 14px;
    text-align: center;
}

/* Services Section */

/* General section styling */
.services-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f0f9ff, #cbebff);
    font-family: 'Poppins', sans-serif;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #003049;
    margin-bottom: 0.5rem;
}

.section-description {
    max-width: 650px;
    margin: 0 auto;
    color: #5a7184;
    font-size: 1rem;
}

/* Grid layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Card styling */
.service-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #003049;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #1da1f2, #00b4d8);
    color: #fff;
}

/* Text color change on hover */
.service-card:hover h3,
.service-card:hover ul li {
    color: #fff;
}

/* Remove static featured style so all are uniform */
.service-card.featured {
    background: rgba(255, 255, 255, 0.75);
    color: #003049;
}

/* Icon styling */
.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, background 0.3s ease;
}

/* Icon hover effect */
.service-card:hover .service-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Text */
.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #003049;
}

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

.service-card ul li {
    font-size: 0.95rem;
    padding: 0.3rem 0;
    color: #5a7184;
}

/* Responsive typography */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.8rem;
    }
}























/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    transform: translateY(100%);
    transition: var(--transition);
}

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

.gallery-overlay h4 {
    margin-bottom: 5px;
    font-size: 18px;
}

.gallery-overlay p {
    font-size: 14px;
    opacity: 0.8;
}


/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-form-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form .mine {
    display: block;
    font-size: 22px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group.two-columns {
    flex-direction: row;
    gap: 15px;
}

input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
}

select {
    color: rgb(80, 80, 80);
    font-weight: 500;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(42, 127, 186, 0.25);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background-color: #1f6fa3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.contact-info-box, .hours-box {
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.contact-info-box h3, .hours-box h3 {
    margin-bottom: 20px;
    font-size: 22px;
    color: var(--primary-color);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item i {
    color: var(--primary-color);
    font-size: 20px;
    margin-top: 4px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--gray-light);
}

.emergency-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background-color: #fff8f8;
    border-radius: 8px;
    color: #d33;
}

.emergency-notice i {
    font-size: 20px;
}




/* Footer */
.footer-main {
background-color: #2F3E46;
    color: var(--white);
    padding: 80px 0 40px;
}

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

.footer-col h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-logo img {
    margin-bottom: 20px;
    width: 50px;
    border-radius: 50%;
}

.footer-col p {
    color: #aaa;
    margin-bottom: 20px;
    font-size: 14px;
}

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

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

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

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

.footer-col ul li a {
    color: #aaa;
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: #aaa;
    font-size: 14px;
}

.contact-list i {
    margin-top: 3px;
    color: var(--primary-color);
}

.footer-bottom {
    background-color: #111;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #aaa;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #aaa;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 99;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: var(--white);
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    position: relative;
}

.phone-btn {
    background-color: var(--primary-color);
}

.whatsapp-btn {
    background-color: #25D366;
}

.appointment-btn {
    background-color: var(--secondary-color);
    width: auto;
    padding: 0 25px;
    border-radius: 50px;
    display: none;
}

.appointment-btn span {
    margin-left: 10px;
    font-size: 16px;
    font-weight: 500;
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 42px;
    }
    
    .about-grid, .doctor-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .doctor-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .insurance-grid {
        grid-template-columns: 1fr;
    }
    
    .logos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .header-top .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 30px 30px;
        transition: var(--transition);
        z-index: 1000;
    }
    
    .navbar.active {
        right: 0;
    }
    
    .navbar ul {
        flex-direction: column;
        gap: 20px;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .hamburger-menu.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger-menu.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .header-cta {
        display: none;
    }
    
    .hero {
        padding: 120px 0;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .appointment-btn {
        display: flex;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 30px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .form-group {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .logos-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .credentials-grid {
        grid-template-columns: 1fr 1fr;
    }
}