/* ========================================
   GSM Hearing Center — Custom Styles
   Premium Dark Luxury Theme
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0D0D0D;
}

::-webkit-scrollbar-thumb {
    background: #C0623B;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D4845E;
}

/* Selection */
::selection {
    background: #C0623B;
    color: #E8D5B7;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ========================================
   Scroll Reveal (Progressive Enhancement)
   Content is visible by default; JS adds animation
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

/* ========================================
   Navigation
   ======================================== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(232, 213, 183, 0.05);
}

/* ========================================
   Mobile Menu
   ======================================== */
#mobile-menu {
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
}

/* ========================================
   Form Styles
   ======================================== */
select option {
    background: #1A1A1A;
    color: #E8D5B7;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(192, 98, 59, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(192, 98, 59, 0.1) !important;
}

/* ========================================
   Utility
   ======================================== */
.font-display {
    letter-spacing: -0.02em;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}
