/* Custom styles for Allegheny Health Network */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #233254;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #354a70;
}

/* Selection color */
::selection {
    background: rgba(94, 234, 212, 0.3);
    color: #f0f4f8;
}

/* Scroll reveal base - content always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only animate when JS adds the class and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animated {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar glass effect */
.navbar-scrolled {
    background: rgba(5, 12, 22, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(35, 50, 84, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.hero-card-1 { animation: float 6s ease-in-out infinite; }
.hero-card-2 { animation: float 7s ease-in-out infinite 0.5s; }
.hero-card-3 { animation: float 5s ease-in-out infinite 1s; }
.hero-card-4 { animation: float 6.5s ease-in-out infinite 0.3s; }
.hero-card-5 { animation: float 5.5s ease-in-out infinite 0.8s; }

/* Gold shimmer for accent elements */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Subtle pulse for status indicators */
@keyframes soft-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Ensure all text is readable */
h1, h2, h3, h4, h5, h6 {
    color: #f0f4f8;
}

p, span, a, li, label, input, select, textarea, option {
    /* Colors set per context above */
}

/* Button hover glow */
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(94, 234, 212, 0.3) !important;
}

/* Card hover lift */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}
#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

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