/* ==========================================================================
   CSS Variables & Theming
   ========================================================================== */
:root {
    /* Colors - Light Mode (Default) */
    --primary: #0EA5E9; /* Sky Blue */
    --primary-dark: #0284C7;
    --secondary: #14B8A6; /* Teal */
    --accent: #38BDF8;
    
    --bg-main: #FAFAFA;
    --bg-secondary: #F0F9FF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.5);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
body.dark-mode {
    --bg-main: #0F172A;
    --bg-secondary: #1E293B;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
}

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

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

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

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

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

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

.section-padding { padding: 5rem 0; }
.bg-light { background-color: var(--bg-secondary); }
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }

/* ==========================================================================
   UI Components & Utilities
   ========================================================================== */
/* Glassmorphism */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn-primary, .btn-outline, .btn-whatsapp, .btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

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

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

.btn-whatsapp {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Section Titles */
.section-title, .section-header { margin-bottom: 3rem; }
.subtitle {
    display: block;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

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

.navbar.scrolled {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    font-size: 1.75rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
    line-height: 1;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: none;
    gap: 2rem;
}

@media (min-width: 992px) {
    .nav-links { display: flex; }
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width var(--transition-base);
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-main);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast);
}

.theme-toggle:hover { background-color: var(--bg-secondary); }

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

@media (min-width: 992px) {
    .mobile-menu-btn { display: none; }
}

.nav-btn { display: none; }
@media (min-width: 768px) {
    .nav-btn { display: inline-flex; }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-main);
    z-index: 999;
    padding: 6rem 2rem 2rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: right var(--transition-base);
}

.mobile-menu.active { right: 0; }

.mobile-menu a:not(.mobile-btn) {
    font-size: 1.25rem;
    font-weight: 500;
    border-bottom: 1px solid var(--bg-secondary);
    padding-bottom: 0.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 8rem 0 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
}

.sphere-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: var(--primary);
    animation: float 10s ease-in-out infinite alternate;
}

.sphere-2 {
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: var(--secondary);
    animation: float 12s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-container { grid-template-columns: 1fr 1fr; }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.badge i { color: #F59E0B; }

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat p {
    font-size: 0.875rem;
    margin: 0;
}

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    padding: 1rem;
    border-radius: 2rem;
}

.hero-img {
    border-radius: 1.5rem;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.floating-card {
    position: absolute;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.expert-card {
    top: 10%;
    left: -10%;
    animation: floatY 4s ease-in-out infinite;
}

.rating-card {
    bottom: 10%;
    right: -10%;
    animation: floatY 5s ease-in-out infinite reverse;
}

@keyframes floatY {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

.icon-box {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.floating-card h4 {
    margin: 0;
    font-size: 1rem;
    font-family: var(--font-body);
}

.floating-card p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stars i { color: #F59E0B; font-size: 0.9rem; }

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

@media (min-width: 992px) {
    .about-container { grid-template-columns: 1fr 1fr; }
}

.image-grid {
    position: relative;
    height: 500px;
}

.img-1, .img-2 {
    position: absolute;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.img-1 {
    width: 70%;
    height: 70%;
    top: 0;
    right: 0;
    z-index: 2;
}

.img-2 {
    width: 60%;
    height: 60%;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.feature-list i {
    color: var(--secondary);
    font-size: 1.25rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2rem;
    text-align: left;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    color: var(--primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: transform var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: white;
}

.service-card h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.25rem;
}

.service-card p { margin: 0; font-size: 0.95rem; }

/* ==========================================================================
   Why Choose Us
   ========================================================================== */
.why-us {
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="%23FAFAFA"/><circle cx="50" cy="50" r="2" fill="%230EA5E9" opacity="0.2"/></svg>');
}
body.dark-mode .why-us {
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="%230F172A"/><circle cx="50" cy="50" r="2" fill="%2338BDF8" opacity="0.2"/></svg>');
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-card {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.why-card h4 { font-family: var(--font-body); font-size: 1.1rem; }
.why-card p { font-size: 0.9rem; margin: 0; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 1.5rem;
    position: relative;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .testimonial-grid { grid-template-columns: 1fr 1fr; }
}

.testimonial-card {
    padding: 2.5rem 2rem;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.1;
}

.testimonial-card .stars { margin-bottom: 1rem; }

.review-text {
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.reviewer h4 { margin: 0; font-family: var(--font-body); font-size: 1rem; }
.reviewer span { font-size: 0.8rem; color: var(--text-muted); }

/* ==========================================================================
   Appointment Form
   ========================================================================== */
.appointment-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 992px) {
    .appointment-container { grid-template-columns: 1fr 1fr; }
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.method h4 { margin: 0; font-size: 1.1rem; font-family: var(--font-body); }
.method p { margin: 0; font-size: 0.9rem; }

.appointment-form-wrapper {
    padding: 3rem 2rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

@media (min-width: 768px) {
    .form-row { flex-direction: row; }
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--text-muted);
    border-radius: 0.5rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all var(--transition-fast);
    background: var(--card-bg);
    padding: 0 0.25rem;
}

/* Floating labels */
.form-control:focus ~ label,
.form-control:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

/* Specific styling for select and date/time */
select.form-control,
input[type="date"].form-control,
input[type="time"].form-control {
    color: var(--text-main);
}
select.form-control option { background: var(--bg-main); color: var(--text-main); }

.btn-submit {
    width: 100%;
    margin-top: 1rem;
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ==========================================================================
   Footer & Map
   ========================================================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--card-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 5rem 1.5rem 3rem;
}

@media (min-width: 768px) {
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .footer-content { grid-template-columns: 2fr 1fr 1.5fr 1.5fr; }
}

.footer-logo { margin-bottom: 1.5rem; }

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-col h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a:hover { color: var(--primary); }

.contact-col li {
    display: flex;
    gap: 0.75rem;
}
.contact-col i { color: var(--primary); margin-top: 0.25rem; }

.footer-bottom {
    padding: 1.5rem;
    border-top: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

/* ==========================================================================
   Floating Action Buttons
   ========================================================================== */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 99;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.float-btn:hover { transform: scale(1.1); }

.float-whatsapp { background: #25D366; }
.float-whatsapp:hover { background: #128C7E; }

.float-call { background: var(--primary); }
.float-call:hover { background: var(--primary-dark); }

/* Animation Classes */
.reveal-up { opacity: 0; transform: translateY(50px); }
.reveal-left { opacity: 0; transform: translateX(-50px); }
.reveal-right { opacity: 0; transform: translateX(50px); }
