/* Custom styles for Hudson Neurosciences PC */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Prevent scroll-reveal from hiding content by default (progressive enhancement) */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

/* Scroll-reveal active state (applied by JS) */
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Scroll-reveal hidden state (applied by JS) */
.scroll-reveal.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Custom selection color */
::selection {
    background-color: #f9d8cc;
    color: #8a2c1e;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .scroll-reveal.reveal-hidden {
        opacity: 1 !important;
        transform: none !important;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Navbar glass effect when scrolled */
.nav-scrolled {
    background: rgba(253, 252, 250, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf6ef;
}
::-webkit-scrollbar-thumb {
    background: #e9d8b4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d2aa6d;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero decorative pulse */
@keyframes softPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

/* Floating animation for cards */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Print styles */
@media print {
    nav, #backToTop, .scroll-reveal { display: none; }
    body { background: white; color: black; }
}
