/* Custom styles for Orthopedic Associates of Great Neck */

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

body {
    background-color: #07080B;
}

/* Selection */
::selection {
    background-color: rgba(192, 98, 58, 0.3);
    color: #E8D5B7;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #07080B;
}
::-webkit-scrollbar-thumb {
    background: #1A1F2E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C0623A;
}

/* Navbar transitions */
#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background-color: rgba(7, 8, 11, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(232, 213, 183, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Nav links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #C0623A, #D4845E);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #E8D5B7 !important;
}

/* Mobile menu */
.mobile-nav-link {
    position: relative;
}

.mobile-nav-link:hover {
    letter-spacing: 0.02em;
}

#mobileMenu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Hamburger animation */
#menuBtn.active #bar1 {
    transform: translateY(4px) rotate(45deg);
}

#menuBtn.active #bar2 {
    opacity: 0;
    transform: scaleX(0);
}

#menuBtn.active #bar3 {
    transform: translateY(-4px) rotate(-45deg);
}

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal delays */
.reveal[data-reveal] {
    transition-delay: 0ms;
}

.reveal[data-reveal="1"] { transition-delay: 100ms; }
.reveal[data-reveal="2"] { transition-delay: 200ms; }
.reveal[data-reveal="3"] { transition-delay: 300ms; }
.reveal[data-reveal="4"] { transition-delay: 400ms; }
.reveal[data-reveal="5"] { transition-delay: 500ms; }

/* Form styles */
input:focus,
select:focus,
textarea:focus {
    border-color: rgba(192, 98, 58, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(192, 98, 58, 0.1) !important;
}

/* Button hover glow */
button[type="submit"]:hover {
    box-shadow: 0 0 30px rgba(192, 98, 58, 0.3) !important;
}

/* Back to top */
#backToTop.visible {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* Print */
@media print {
    #navbar,
    #backToTop,
    .reveal[data-reveal] {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #C0623A;
    outline-offset: 2px;
}

/* Utility */
.text-gradient {
    background: linear-gradient(135deg, #C0623A, #D4845E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
