/* Custom Styles for Davis Bar */

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

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

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Mobile Menu Animations */
.menu-line-1 {
    transition: transform 0.3s ease;
}

.menu-line-2 {
    transition: opacity 0.3s ease;
}

.menu-line-3 {
    transition: transform 0.3s ease;
}

#mobile-menu-btn.active .menu-line-1 {
    transform: translateY(8px) rotate(45deg);
}

#mobile-menu-btn.active .menu-line-2 {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line-3 {
    transform: translateY(-8px) rotate(-45deg);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .animate-float,
    .animate-float-delayed {
        animation: none;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

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

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

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

/* Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Button Hover Effects */
button,
a {
    transition: all 0.3s ease;
}

/* Image Hover Effects */
img {
    transition: transform 0.5s ease;
}

/* Card Hover Effects */
.bg-emerald-800\/50:hover {
    transform: translateY(-4px);
}

/* Navigation Background on Scroll */
nav.scrolled {
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.1);
}
