/* Custom styles for Hole in 1 Golf LLC */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9f3;
}
::-webkit-scrollbar-thumb {
    background: #c41e3a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a01830;
}

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

/* Navbar transition states */
#navbar.scrolled {
    background: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(160, 24, 48, 0.08);
}

#navbar.scrolled .nav-link {
    color: #7a1225;
}

#navbar.scrolled .font-serif {
    color: #7a1225;
}

/* Service card hover glow */
.service-card:hover {
    box-shadow: 0 20px 60px rgba(196, 30, 58, 0.15);
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(160, 24, 48, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
    pointer-events: none;
}

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

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile nav links */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(196, 30, 58, 0.1);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Hero text animation - only below the fold animations */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

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

/* Scroll reveal animations - only for below-fold content */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

/* Print styles */
@media print {
    nav, #mobile-menu, .service-card, .gallery-item {
        display: none;
    }
    body {
        color: #1a0308;
        background: white;
    }
}
