:root {
    --primary: #008080; /* Teal */
    --primary-dark: #004d40;
    --secondary: #00bcd4; /* Cyan */
    --accent: #ff4081; /* Pink accent */
    --background: #f4f7f6;
    --text: #333;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.4);
    --shadow: 0 8px 32px 0 rgba(0, 128, 128, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --primary: #80cbc4;
    --primary-dark: #004d40;
    --secondary: #4dd0e1;
    --background: #121212;
    --text: #e0e0e0;
    --white: #1e1e1e;
    --glass: rgba(30, 30, 30, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glass Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-book {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-book:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 128, 128, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.1) 0%, rgba(0, 188, 212, 0.1) 100%);
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.cta-group {
    display: flex;
    gap: 15px;
}

.hero-img {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-img img {
    width: 100%;
    max-width: 500px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

/* Appointment Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow);
    max-height: 90vh;
    overflow-y: auto;
}

/* Interactive Odontogram Chart */
.dental-chart {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--white) 0%, var(--background) 100%);
}

.odontogram-container {
    margin: 40px auto;
    max-width: 900px;
    background: white;
    padding: 30px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    overflow-x: auto;
    display: flex;
    justify-content: center;
}

.odontogram-svg {
    width: 100%;
    height: auto;
    min-width: 600px;
}

.arch {
    transition: var(--transition);
}

.tooth-group {
    cursor: pointer;
    transition: var(--transition);
}

.tooth-path {
    fill: #ffffff;
    stroke: #d1d5db;
    stroke-width: 1.5;
    transition: var(--transition);
}

.tooth-detail {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 1;
    pointer-events: none;
    transition: var(--transition);
}

.tooth-group:hover .tooth-path {
    fill: #f0fdfa;
    stroke: var(--primary);
    filter: drop-shadow(0 0 5px rgba(0, 128, 128, 0.2));
}

.tooth-group:hover .tooth-detail {
    stroke: #99f6e4;
}

.tooth-group.active .tooth-path {
    fill: var(--primary);
    stroke: var(--primary-dark);
}

.tooth-group.active .tooth-detail {
    stroke: rgba(255, 255, 255, 0.3);
}

.tooth-label {
    fill: #9ca3af;
    font-size: 10px;
    font-weight: 700;
    pointer-events: none;
    text-anchor: middle;
    transition: var(--transition);
}

.tooth-group:hover .tooth-label {
    fill: var(--primary);
    font-size: 11px;
}

.tooth-group.active .tooth-label {
    fill: var(--primary-dark);
    font-weight: 800;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.service-card {
    padding: 30px;
    background: var(--background);
    border-radius: 25px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.service-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 60px 0;
    text-align: center;
}

/* Scroll reveal simulation */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle { display: block; }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 50px;
    }

    .nav-links.active {
        display: flex;
        animation: slideIn 0.3s ease-out;
    }

    @keyframes slideIn {
        from { transform: translateX(100%); }
        to { transform: translateX(0); }
    }

    .nav-btn { display: none; } /* Hide the booking button from header on mobile */

    .hero-container { 
        flex-direction: column; 
        text-align: center; 
        gap: 30px;
    }
    
    .hero { 
        height: auto; 
        padding: 120px 20px 60px; 
    }

    .hero h1 { font-size: 2.2rem; }
    .hero p { margin: 0 auto 20px; font-size: 1rem; }
    .cta-group { justify-content: center; flex-direction: column; width: 100%; }
    .cta-group button { width: 100%; }

    .hero-img { width: 100%; }
    .hero-img img { max-width: 100%; }

    .teeth-container {
        gap: 8px;
    }

    .tooth {
        width: 50px;
        height: 70px;
        font-size: 0.9rem;
    }

    .splash-logo { width: 140px; }
    .splash-text { font-size: 1.4rem; }

    .brand-badge { font-size: 0.8rem; padding: 8px 15px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .container { padding: 0 15px; }
}
/* Branding & Splash Screen */
#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 1s ease-out;
}

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

.splash-logo {
    width: 200px;
    opacity: 0;
    transform: scale(0.8);
    animation: fadeInScale 1s forwards;
}

.splash-text {
    color: white;
    margin-top: 20px;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeIn 1.5s 0.5s forwards;
}

@keyframes fadeInScale {
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.brand-signature {
    margin-top: 40px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.brand-signature img {
    height: 30px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.brand-badge {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.brand-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}
