/* Premium Medical Design System */
:root {
    /* Light Theme (Default) */
    --primary-color: #0F172A;
    /* Deep Navy */
    --primary-light: #1E293B;
    --accent-color: #C5A059;
    /* Metallic Gold */
    --accent-hover: #B08D4C;
    --bg-body: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-surface: #FFFFFF;
    --text-main: #334155;
    --text-muted: #64748B;
    --border-color: #E2E8F0;

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

    /* Effects */
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --backdrop-blur: blur(12px);
    --radius-md: 12px;
    --radius-lg: 20px;
}

[data-theme="dark"] {
    /* Dark Theme Override */
    --primary-color: #F1F5F9;
    --primary-light: #CBD5E1;
    --accent-color: #D4AF37;
    --accent-hover: #E5C158;
    --bg-body: #0F172A;
    --bg-secondary: #1E293B;
    --bg-surface: #1E293B;
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    --border-color: #334155;

    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --shadow-strong: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
    --glass-bg: rgba(15, 23, 42, 0.95);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.25;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Components */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: #0F172A;
    color: #FFF;
    border: 2px solid #0F172A;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.3);
}

[data-theme="dark"] .btn-primary {
    background: #F8FAFC;
    color: #0F172A;
    border-color: #F8FAFC;
}

.btn-primary:hover {
    background: transparent;
    color: #0F172A;
    transform: translateY(-2px);
}

[data-theme="dark"] .btn-primary:hover {
    background: transparent;
    color: #F8FAFC;
}

.btn-accent {
    background: var(--accent-color);
    color: #FFFFFF;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}

.btn-accent:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 0.8rem;
    transition: all 0.3s ease;
}

[data-theme="dark"] .theme-toggle {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    transform: rotate(15deg);
}

/* Typography Utilities */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-subtitle {
    display: block;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-soft);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: height 0.4s ease;
}

.header.scrolled .nav {
    height: 70px;
}

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

.logo i {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-main);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

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

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-surface);
    min-width: 260px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-strong);
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: left;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--accent-color);
    padding-left: 2rem;
}

.dropdown-item:last-child {
    border-bottom: none;
}


.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Slider (Full Width) */
.hero-slider-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
    /* Header is fixed, but we want slider to be top level */
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

/* Overlay for text readability */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(8, 16, 32, 0.9) 0%, rgba(8, 16, 32, 0.7) 50%, rgba(8, 16, 32, 0.2) 100%);
    z-index: 1;
}

.hero-slider .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 700px;
    color: #FFF;
    /* Always white on slider */
}

.hero-content .section-subtitle {
    color: var(--accent-color);
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.3s;
}

.slide.active .hero-content h1 {
    opacity: 1;
    transform: translateY(0);
}

.hero-content .hero-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.5s;
}

.slide.active .hero-content .hero-text {
    opacity: 1;
    transform: translateY(0);
}

.hero-actions {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.7s;
}

.slide.active .hero-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Slider Controls */
.slider-nav {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #FFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--accent-color);
    color: #FFF;
}

.prev-btn {
    left: 4rem;
}

.next-btn {
    right: 4rem;
}


/* Page Header (For Sub-pages) */
.page-header {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
    padding-top: 80px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    /* Dark Overlay */
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3.5rem;
    color: #FFF;
    margin-bottom: 1rem;
}

.breadcrumb {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.breadcrumb a {
    color: #FFF;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}


/* Rest of styles (Services, About, Footer) remain similar but refactored to match */
/* Services */
.services {
    background: var(--bg-secondary);
}

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

.service-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 3rem;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: #FFF;
}

[data-theme="dark"] .service-card:hover .service-icon {
    background: var(--accent-color);
    color: #FFF;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-list {
    list-style: none;
    margin-top: 1.5rem;
}

.service-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.service-list li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* About Section */
.about {
    background-color: var(--bg-surface);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-img-group {
    position: relative;
}

.about-main-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    width: 90%;
}

.about-experience {
    position: absolute;
    bottom: 30px;
    right: 0;
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    text-align: center;
    border-left: 4px solid var(--accent-color);
    border: 1px solid var(--border-color);
}

.about-experience .years {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
    line-height: 1;
}

.about-experience span {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Appointment / CTA */
.appointment {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('../assets/images/surgery-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #FFF;
    text-align: center;
    position: relative;
}

.appointment h2,
.appointment p {
    color: #FFF;
}

/* Footer */
.footer {
    background: #0F172A;
    color: #FFF;
    padding-top: 5rem;
}

[data-theme="dark"] .footer {
    background: #0B1120;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h2 {
    color: #FFF;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent-color);
}

.footer-links h3,
.footer-contact h3 {
    color: #FFF;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
}

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

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
}

.contact-info-item i {
    color: var(--accent-color);
    margin-top: 5px;
}

.footer-bottom {
    padding: 2rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 991px) {
    .section-title {
        font-size: 2.5rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
        box-shadow: var(--shadow-strong);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    /* Mobile Dropdown Handling */
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background: var(--bg-secondary);
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .prev-btn,
    .next-btn {
        display: none;
    }
}