/* Custom styles for South County Tennis Shop */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0b1120;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.animate-fade-in {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Service card hover glow */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.3), transparent, rgba(13, 148, 136, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(13, 148, 136, 0.1);
}

/* Mobile menu active state */
#mobileMenu.active {
    opacity: 1;
    pointer-events: all;
}

/* Menu button animation */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav link animation */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobileMenu.active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.active .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.active .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.active .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.active .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.active .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }

/* Intersection observer reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Input focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Gold accent hover for specific elements */
.gold-hover:hover {
    color: #fbbf24;
}

/* Subtle pattern overlay for hero */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(ellipse at 30% 50%, rgba(13, 148, 136, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Image hover zoom container */
.group img {
    will-change: transform;
}

/* Print styles */
@media print {
    #navbar, #mobileMenu, .service-card, #gallery {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
}
