/* Base Styles & Theme Variables */
:root {
    --primary: #007bff;
    --secondary: #6c757d;
    --dark: #212529;
    --light: #f8f9fa;
    --white: #ffffff;
    
    /* Dynamic Theme Colors */
    --bg-body: var(--white);
    --bg-section: var(--light);
    --bg-card: var(--white);
    --text-main: var(--dark);
    --nav-shadow: rgba(0,0,0,0.05);
}

/* Dark Theme Overrides */
body.dark-mode {
    --bg-body: #121212;
    --bg-section: #1a1a1a;
    --bg-card: #242424;
    --text-main: #e0e0e0;
    --dark: #ffffff;
    --nav-shadow: rgba(0,0,0,0.4);
}

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

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    transition: background 0.3s, color 0.3s;
}

html { scroll-behavior: smooth; }

/* Sticky Header */
header {
    background: var(--bg-card);
    padding: 1.2rem 10%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px var(--nav-shadow);
}

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

.logo { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.logo span { color: var(--text-main); }

.nav-links { display: flex; list-style: none; gap: 2.5rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
}

/* Theme Toggle Icon Color */
#theme-toggle {
    color: var(--text-main);
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&w=1350&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero h1 { font-size: 3rem; margin-bottom: 1.5rem; }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 2rem; }

.btn-primary {
    background: var(--primary);
    padding: 1rem 2rem;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 10px;
    display: inline-block;
}

/* Cards & Sections */
.services { padding: 80px 10%; background: var(--bg-section); }
.section-title { text-align: center; margin-bottom: 50px; font-size: 2.5rem; color: var(--text-main); }

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

.service-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px var(--nav-shadow);
    transition: 0.3s;
}

.service-card p {
    color: var(--text-main);
    line-height: 1.6;
    margin-top: 10px;
}

.service-card:hover { transform: translateY(-10px); }
.service-card i { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }

/* Responsive Form */
.appointment { padding: 80px 10%; background: var(--bg-body); }
.form-container {
    max-width: 550px;
    margin: 0 auto;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: 0 20px 40px var(--nav-shadow);
}

.form-container h2 { color: var(--text-main); margin-bottom: 20px; text-align: center; }

.input-group { margin-bottom: 1.5rem; }
input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    background: var(--bg-body);
    color: var(--text-main);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover { background: #0056b3; }

/* Footer */
footer {
    padding: 20px;
    text-align: center;
    background: var(--bg-card);
    color: var(--text-main);
}

/* Mobile Menu */
.hamburger { display: none; cursor: pointer; font-size: 1.5rem; color: var(--text-main); }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
}