/* ========================================
   TINTUN MEDICAL — Premium Dark Luxury
   Burgundy + Blush + Gold Palette
   ======================================== */

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-burgundy-400: #c96767;
    --color-burgundy-600: #943030;
    --color-burgundy-900: #541c1c;
    --color-burgundy-950: #2d0c0c;
    --color-gold-400: #eabf52;
    --color-gold-500: #b45309;
    --color-gold-600: #92400e;
    --color-dark-50: #f5f5f5;
    --color-dark-100: #e5e5e5;
    --color-dark-200: #d4d4d4;
    --color-dark-300: #a3a3a3;
    --color-dark-400: #737373;
    --color-dark-500: #525252;
    --color-dark-600: #404040;
    --color-dark-700: #2a2a2a;
    --color-dark-800: #1a1a1a;
    --color-dark-900: #111111;
    --color-dark-950: #0a0a0a;
}

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

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-dark-950);
}
::-webkit-scrollbar-thumb {
    background: var(--color-dark-700);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-500);
}

/* === NAVBAR === */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(180, 83, 9, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* === MOBILE MENU === */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

/* === HERO SCROLL INDICATOR === */
@keyframes scrollIndicator {
    0% {
        transform: translateY(-100%);
        opacity: 1;
    }
    100% {
        transform: translateY(200%);
        opacity: 0;
    }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* === SERVICE CARDS === */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-burgundy-600), var(--color-gold-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* === SECTION DIVIDERS === */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(180, 83, 9, 0.3), transparent);
}

/* === TEXT SELECTION === */
::selection {
    background: rgba(180, 83, 9, 0.3);
    color: var(--color-dark-100);
}

/* === FOCUS STYLES === */
:focus-visible {
    outline: 2px solid var(--color-gold-500);
    outline-offset: 2px;
}

/* === FORM INPUTS === */
input:focus,
textarea:focus {
    background: var(--color-dark-900) !important;
}

/* === ANIMATIONS (Progressive Enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* === PRINT STYLES === */
@media print {
    body {
        background: white;
        color: black;
    }
    
    #navbar,
    #mobile-menu,
    .animate-scroll-indicator {
        display: none !important;
    }
}
