/* ============================================
   APEX GYM — Custom Styles
   ============================================ */

/* Navbar glassmorphism & scroll states */
#navbar {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Scroll-spy active states */
.nav-link.active {
    color: #DC2626 !important;
}

/* Program card hover */
.program-card {
    transition: all 0.3s ease;
}

/* Pricing popular card glow */
.pricing-popular {
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.15), 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pricing-popular:hover {
    box-shadow: 0 0 50px rgba(220, 38, 38, 0.25), 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Pricing toggle */
.pricing-toggle {
    transition: all 0.3s ease;
}

/* CTA Banner diagonal clip-path */
.cta-banner {
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

/* Gallery lightbox */
#lightbox {
    transition: opacity 0.3s ease;
}

#lightbox.show {
    display: flex;
}

/* Back to top button */
#backToTop {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Animated counter */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Testimonial Swiper pagination */
.testimonial-swiper .swiper-pagination-bullet {
    background: #DC2626;
    opacity: 0.3;
}

.testimonial-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #DC2626;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Mobile AOS override — disable fade-left/right to prevent horizontal overflow */
@media (max-width: 1023px) {
    [data-aos="fade-left"],
    [data-aos="fade-right"] {
        transform: none !important;
        opacity: 1 !important;
    }
    [data-aos] {
        transition-duration: 400ms !important;
    }
}

/* Smooth scroll offset for fixed navbar */
html {
    scroll-padding-top: 80px;
}

/* Swiper container fix */
.swiper {
    width: 100%;
    overflow: hidden;
}

/* Form select styling */
select option {
    background: #1A1A1A;
    color: #FAFAFA;
}

/* Mobile menu — solid background outside navbar */
#mobileMenu {
    background: #0A0A0A;
}
