/* Custom styles for Lyerly Neurosurgical Associates */

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

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

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

::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}

/* Navigation active state */
.nav-link.active {
    color: #0d9488;
}

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(var(--rotation, 0deg));
    }
    50% {
        transform: translateY(-15px) rotate(var(--rotation, 0deg));
    }
}

/* Apply floating to hero cards */
.hero-card {
    animation: float 4s ease-in-out infinite;
}

.hero-card:nth-child(2) {
    animation-delay: 0.5s;
}

.hero-card:nth-child(3) {
    animation-delay: 1s;
}

/* Service card hover effect */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

#mobile-menu.closed {
    opacity: 0;
    visibility: hidden;
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

/* Button hover glow */
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(13, 148, 136, 0.4);
}

/* 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;
    }
}

/* Print styles */
@media print {
    nav,
    #mobile-menu-btn,
    button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero-card {
        display: none;
    }
}
