/* Custom styles for Bowlers Junction */

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

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

::-webkit-scrollbar-track {
    background: #060b18;
}

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

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

/* Selection color */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: #f0d060;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes scroll-line {
    0% {
        height: 0;
        opacity: 0;
    }
    50% {
        height: 48px;
        opacity: 1;
    }
    100% {
        height: 48px;
        opacity: 0;
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

.animate-scroll-line {
    animation: scroll-line 2s ease-in-out infinite;
}

/* Service card shimmer effect */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(212, 175, 55, 0.03),
        transparent
    );
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

/* Gallery item transition */
.gallery-item {
    cursor: pointer;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(6, 11, 24, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

/* Mobile menu active state */
.mobile-menu-open #menuIcon span:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
}

.mobile-menu-open #menuIcon span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open #menuIcon span:nth-child(3) {
    transform: translateY(-3.5px) rotate(-45deg);
    width: 1.5rem;
}

.mobile-menu-open #mobileMenu {
    opacity: 1 !important;
    pointer-events: all !important;
}

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

/* Focus visible styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #5eead4;
    outline-offset: 2px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.1;
    }
}
