/* Custom styles for Blood Donor Center */

/* Smooth transitions for interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Custom selection color */
::selection {
    background-color: rgba(192, 57, 43, 0.2);
    color: #4a1410;
}

/* Navbar scroll effect */
.nav-scrolled {
    background-color: rgba(254, 248, 247, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(74, 20, 16, 0.08);
}

.nav-scrolled .font-serif,
.nav-scrolled .font-sans {
    color: #4a1410 !important;
}

.nav-scrolled .menu-line {
    background-color: #4a1410 !important;
}

/* Hero section adjustments */
#hero {
    scroll-margin-top: 0;
}

/* FAQ icon rotation */
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Fade-up animation for scroll reveals */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    transform: translateX(0);
}

/* Button hover effects */
.pulse-btn {
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(192, 57, 43, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(192, 57, 43, 0); }
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.float-anim {
    animation: float 4s ease-in-out infinite;
}

/* Reduced motion preference */
@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;
    }
    
    .fade-up {
        opacity: 1;
        transform: none;
    }
}

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

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

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

::-webkit-scrollbar-track {
    background: #fdf0ed;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #92271f;
}
