/* Custom styles for Fairway */

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

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

::-webkit-scrollbar-track {
    background: #040B18;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #2DB382;
}

/* Selection color */
::selection {
    background: rgba(45, 179, 130, 0.3);
    color: #F0FBF7;
}

/* Hero animations - only for content below fold */
@media (prefers-reduced-motion: no-preference) {
    #heroEyebrow {
        animation: fadeInUp 0.8s ease forwards;
        animation-delay: 0.2s;
        opacity: 0;
    }
    
    #heroHeadline {
        animation: fadeInUp 0.8s ease forwards;
        animation-delay: 0.4s;
        opacity: 0;
    }
    
    #heroSub {
        animation: fadeInUp 0.8s ease forwards;
        animation-delay: 0.6s;
        opacity: 0;
    }
    
    #heroCTAs {
        animation: fadeInUp 0.8s ease forwards;
        animation-delay: 0.8s;
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal - progressive enhancement, content visible without JS */
.reveal-section {
    /* Content is visible by default - JS adds the animation */
}

.reveal-section.animated {
    animation: revealUp 0.7s ease forwards;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transitions */
#mobileMenu {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: auto;
}

/* Nav link underline effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2DB382;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile nav links */
.mobile-nav-link {
    position: relative;
}

/* Navbar background transition */
#navbar.scrolled {
    background: rgba(4, 11, 24, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Service card hover lift */
.group:hover {
    transform: translateY(-4px);
}

.group {
    transition: transform 0.5s ease;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0A1628 inset !important;
    -webkit-text-fill-color: #fff !important;
}

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