/* =========================================
   Variables & Theme
   ========================================= */
:root {
    /* Colors */
    --clr-primary: #2A7DE1;
    /* Medical Blue */
    --clr-primary-dark: #1E66C0;
    --clr-secondary: #4CC9C0;
    /* Soft Teal */
    --clr-accent: #A8E6CF;
    /* Soft Mint */
    --clr-bg-white: #FFFFFF;
    --clr-bg-section: #F5F7FA;

    /* Text */
    --clr-text-main: #333333;
    --clr-text-muted: #6B7280;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* UI Adjustments */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-pill: 50px;

    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px rgba(42, 125, 225, 0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--clr-text-main);
    line-height: 1.6;
    background-color: var(--clr-bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--clr-text-main);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--clr-text-muted);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================================
   Utilities
   ========================================= */
.text-primary {
    color: var(--clr-primary);
}

.text-secondary {
    color: var(--clr-secondary);
}

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

.section-padding {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--clr-bg-section);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--clr-primary-dark);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--clr-primary);
    color: var(--clr-primary);
}

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

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    transition: all var(--transition-normal);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
}

.nav-link:hover {
    color: var(--clr-primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--clr-text-main);
    cursor: pointer;
}

/* Responsive Nav */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--clr-bg-white);
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        transition: left var(--transition-normal);
    }

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

    .mobile-toggle {
        display: block;
    }
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('../images/hero_bg.png') center/cover no-repeat;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--clr-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--clr-text-main);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-btn-outline {
    background-color: var(--clr-bg-white);
    border: 2px solid var(--clr-primary);
}

.trust-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-soft);
    display: inline-flex;
}

.trust-avatars {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--clr-bg-section);
    border: 2px solid var(--clr-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--clr-primary);
    margin-left: -10px;
}

.avatar:first-child {
    margin-left: 0;
}

.plus-avatar {
    background-color: var(--clr-accent);
    color: var(--clr-text-main);
}

/* =========================================
   About Section
   ========================================= */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--clr-primary);
    color: var(--clr-bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-hover);
}

.exp-years {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.exp-text {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
}

.about-subtitle {
    font-size: 1.5rem;
    color: var(--clr-secondary);
    margin-bottom: 1.5rem;
}

.about-features {
    margin: 2rem 0;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.about-features i {
    background-color: rgba(76, 201, 192, 0.1);
    padding: 0.5rem;
    border-radius: 50%;
}

.dentist-bio {
    border-top: 1px solid #E5E7EB;
    padding-top: 1.5rem;
}

.dr-name {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.dr-title {
    color: var(--clr-primary);
    font-weight: 500;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.85) 100%);
    }

    .hero-content {
        margin: 0 auto;
        text-align: center;
    }

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

/* =========================================
   Services Section
   ========================================= */
.section-header {
    margin-bottom: 3rem;
}

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

.service-card {
    background-color: var(--clr-bg-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--clr-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
    z-index: -1;
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(42, 125, 225, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--clr-primary);
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    background-color: var(--clr-primary);
    color: var(--clr-bg-white);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-desc {
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--clr-primary);
    font-family: var(--font-heading);
}

.service-link:hover {
    color: var(--clr-secondary);
}

.service-link i {
    transition: transform var(--transition-fast);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* =========================================
   Why Choose Us Section
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--clr-bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-normal);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: rgba(76, 201, 192, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--clr-secondary);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* =========================================
   Testimonials Section
   ========================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--clr-bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.stars {
    color: #FBBF24;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--clr-text-main);
}

.patient-name {
    font-size: 1rem;
    color: var(--clr-primary);
    font-weight: 600;
}

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

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform var(--transition-normal);
}

.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}

.placeholder-img {
    background-color: var(--clr-bg-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
    font-size: 1.25rem;
    font-weight: 500;
    border: 2px dashed rgba(42, 125, 225, 0.3);
}

.placeholder-img i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--clr-secondary);
}

/* =========================================
   Booking Section
   ========================================= */
.booking-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.booking-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.booking-info {
    font-size: 1.1rem;
}

.booking-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.booking-info i {
    color: var(--clr-primary);
}

.booking-form-wrapper {
    background-color: var(--clr-bg-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

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

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--clr-text-main);
}

input,
select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(42, 125, 225, 0.1);
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* =========================================
   Contact Section
   ========================================= */
.contact {
    padding: 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 100%;
    padding: 0;
}

.contact-info {
    padding: 5rem 10%;
}

.contact-methods {
    margin: 3rem 0;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--clr-bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--clr-primary);
    box-shadow: var(--shadow-soft);
    flex-shrink: 0;
}

.contact-method h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.contact-method p {
    margin-bottom: 0;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25D366;
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: var(--font-heading);
}

.whatsapp-btn:hover {
    background-color: #20BA56;
    color: white;
}

.contact-map {
    min-height: 400px;
    background-color: #E5E7EB;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--clr-text-muted);
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: var(--clr-text-main);
    color: var(--clr-bg-white);
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* =========================================
   Animations (Fade & Slide)
   ========================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.5s;
}

.delay-4 {
    animation-delay: 0.7s;
}

/* Stagger animations for grid items */
.services-grid .service-card:nth-child(2) {
    transition-delay: 0.1s;
}

.services-grid .service-card:nth-child(3) {
    transition-delay: 0.2s;
}

.services-grid .service-card:nth-child(4) {
    transition-delay: 0.3s;
}

.services-grid .service-card:nth-child(5) {
    transition-delay: 0.4s;
}

.services-grid .service-card:nth-child(6) {
    transition-delay: 0.5s;
}

.features-grid .feature-card:nth-child(2) {
    transition-delay: 0.1s;
}

.features-grid .feature-card:nth-child(3) {
    transition-delay: 0.2s;
}

.features-grid .feature-card:nth-child(4) {
    transition-delay: 0.3s;
}

/* Subtle pulse for the booking button on Hero */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(42, 125, 225, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(42, 125, 225, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(42, 125, 225, 0);
    }
}

.hero .btn-primary {
    animation: pulseGlow 2s infinite;
}

.hero .btn-primary:hover {
    animation: none;
}

/* Responsive Styles */
@media (max-width: 900px) {
    .booking-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .booking-form-wrapper {
        padding: 2rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding: 4rem 1.5rem;
    }

    .contact-map {
        min-height: 300px;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}