/* Custom Styles for Legendary Fades */

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

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

::-webkit-scrollbar-track {
    background: #0a192f;
}

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

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

/* Service card hover animation */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Gallery hover effect */
.gallery-item {
    position: relative;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

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

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 1px 0 rgba(212, 175, 55, 0.1);
}

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

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .gallery-item img {
        transition: none;
    }
    
    .service-card {
        transition: none;
    }
}

/* Custom select styling */
select option {
    background: #fff;
    color: #0a192f;
}

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
    border-color: #d4af37;
    outline: none;
}

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

/* Apply float animation to stat cards with staggered delays */
.absolute.top-12.left-0 {
    animation: float 4s ease-in-out infinite;
}

.absolute.bottom-24.right-8 {
    animation: float 4s ease-in-out infinite 1s;
}

.absolute.bottom-0.left-8 {
    animation: float 4s ease-in-out infinite 2s;
}

/* Selection color */
::selection {
    background: #d4af37;
    color: #0a192f;
}
