:root {
    /* Color Palette */
    --color-primary: #0F2147;
    /* Deep Navy */
    --color-accent: #E3AD60;
    /* Gold */
    --color-white: #FFFFFF;
    --color-light: #F4F7FA;
    /* Light Gray */
    --color-text-dark: #333333;
    --color-text-light: #666666;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-gold {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-gold:hover {
    background-color: #d49c4a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 173, 96, 0.4);
}

.btn-outline-light {
    background-color: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

.btn-outline-light:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition-fast);
    background-color: transparent;
    /* Starts transparent */
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.dr-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    /* Gold on transparent? Check contrast. */
}

.navbar.scrolled .dr-name {
    color: var(--color-primary);
}

.clinic-loc {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-white);
}

.navbar.scrolled .clinic-loc {
    color: var(--color-text-light);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--color-white);
    font-weight: 500;
    position: relative;
}

.navbar.scrolled .nav-link {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.navbar.scrolled .nav-toggle {
    color: var(--color-primary);
}

.mobile-only {
    display: none;
}


/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Hero Image */
    background: linear-gradient(rgba(15, 33, 71, 0.6), rgba(15, 33, 71, 0.4)), url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 33, 71, 0.4);
    /* Dark blue overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--color-white);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    font-size: 2rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

/* Trust Bar */
.trust-bar {
    background-color: var(--color-white);
    padding: 30px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
    margin-top: -50px;
    /* Overlap hero */
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
}

.trust-item i {
    font-size: 2rem;
    color: var(--color-accent);
}

.trust-item span {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animations */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Utility Classes === */
.section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--color-light);
}

.bg-dark {
    background-color: var(--color-primary);
}

.text-white {
    color: var(--color-white);
}

.text-gold {
    color: var(--color-accent);
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.sub-title {
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.section-heading {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto 50px;
    color: var(--color-text-light);
}

/* === About Section === */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: visible;
}

.about-image {
    width: 100%;
    height: 500px;
    /* Placeholder height */
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--color-white);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 4px solid var(--color-accent);
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.about-content .section-text {
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.about-features {
    margin: 30px 0;
}

.about-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.about-features i {
    color: var(--color-accent);
}

/* === Services Section === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-white);
    padding: 0;
    /* Remove padding to let image sit flush */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    height: 380px;
    /* Increased height */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card h3 {
    margin: 20px 30px 10px;
    /* Adjust margin since padding was removed */
    font-size: 1.5rem;
}

.service-card .short-desc {
    color: var(--color-text-light);
    margin: 0 30px 30px;
    /* Adjust margin */
}

.service-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}



.hover-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: top 0.4s ease;
}

.service-card:hover .hover-content {
    top: 0;
}

.service-link {
    margin-top: 20px;
    color: var(--color-accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* === Gallery Section === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 300px;
    background-color: #ddd;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-img-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(15, 33, 71, 0.9), transparent);
    color: var(--color-white);
    opacity: 1;
    /* Always visible or 0 for hover only? User asked for Instagram style, let's keep visible title */
}

/* === Testimonials Section === */
.testimonial-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.testimonial-slide {
    display: none;
    text-align: center;
    animation: fadeEffect 1s;
}

.testimonial-slide.active {
    display: block;
}

@keyframes fadeEffect {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

.quote-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 20px;
    opacity: 0.5;
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.8;
}

.testimonial-author h5 {
    color: var(--color-accent);
    margin-bottom: 5px;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.slider-controls button {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.slider-controls button:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: var(--color-accent);
}

/* === Appointment & Contact Section === */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(227, 173, 96, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-item h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--color-primary);
}

.booking-form-container {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-title {
    margin-bottom: 30px;
    text-align: center;
    color: var(--color-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: 0.3s;
    background-color: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(227, 173, 96, 0.1);
}

.btn-block {
    width: 100%;
}

/* === Footer === */
.footer {
    background-color: #0a1630;
    /* Darker than primary */
    color: var(--color-white);
    padding: 40px 0 20px;
    border-top: 3px solid var(--color-accent);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-links a:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* === Responsive Adjustments === */
@media (max-width: 900px) {

    .about-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        margin-bottom: 40px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        color: var(--color-primary);
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: block;
        z-index: 1001;
        /* Above menu */
    }

    .mobile-only {
        display: block;
    }


    .trust-bar {
        margin-top: 0;
        border-radius: 0;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .section-heading {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .booking-form-container {
        padding: 25px;
    }
}

/* Animation Utilities */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animate-active {
    opacity: 1;
    transform: translateY(0);
}