/* Custom styles for Flint Neuro Science Center */

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

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

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

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

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

/* Selection color */
::selection {
    background: #c45a35;
    color: white;
}

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

#navbar.scrolled {
    background: rgba(254, 253, 251, 0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Mobile menu animations */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Service card hover effects */
.group:hover .w-14 {
    transform: scale(1.05);
}

/* Button hover effects */
button:hover, a:hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(196, 90, 53, 0.1);
}

/* Image hover effects */
.group:hover img {
    transform: scale(1.02);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.absolute.-bottom-6 {
    animation: float 4s ease-in-out infinite;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .absolute.-bottom-6 {
        animation: none;
    }
    
    .group:hover img {
        transform: none;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    nav, #contact, footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* High contrast mode */
@media (forced-colors: active) {
    .bg-terracotta-600 {
        background-color: ButtonText;
    }
    
    .text-terracotta-600 {
        color: ButtonText;
    }
}

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

/* Loading state for form */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
