/* ==========================================
   Mike Johnson Fitness - Custom Styles
   Design Concept: POWER SHIFT
   ========================================== */

/* Custom Properties */
:root {
    --midnight: #0A0A0F;
    --charcoal: #1C1C24;
    --lime: #CAFF04;
    --lime-dark: #9ACC00;
    --soft-gray: #94949C;
    --light-section: #F5F5F7;
    --white: #FFFFFF;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.font-display {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.05em;
}

.font-body {
    font-family: 'Inter', sans-serif;
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%) translateX(-50%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0) translateX(-50%);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-fade-up {
    animation: fadeUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-300 {
    animation-delay: 0.3s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

.animation-delay-500 {
    animation-delay: 0.5s;
}

/* Header Styles */
#header {
    background: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#header.scrolled {
    background: var(--midnight);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Navigation Links */
.nav-link {
    position: relative;
}

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

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

/* Hero Section */
#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--midnight), transparent);
    z-index: 15;
}

/* Button Glow Effect */
.glow-button {
    box-shadow: 0 4px 20px rgba(202, 255, 4, 0.3);
    transition: all 0.3s ease;
}

.glow-button:hover {
    box-shadow: 0 6px 30px rgba(202, 255, 4, 0.5);
    transform: translateY(-2px);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Stats Counter Animation */
.counter {
    display: inline-block;
}

/* FAQ Accordion */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active {
    border-left: 3px solid var(--lime);
    padding-left: 16px;
    margin-left: -16px;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-content {
    max-height: 500px;
}

/* Slider Styles */
.results-slider,
.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.results-track,
.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

/* Form Styles */
input, select, textarea {
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--lime);
    box-shadow: 0 0 0 3px rgba(202, 255, 4, 0.15);
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394949C'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
}

/* Cookie Consent */
#cookieConsent {
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Menu Animation */
#mobileMenu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobileMenu.hidden {
    opacity: 0;
    visibility: hidden;
}

#mobileMenu:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.4s ease forwards;
}

#mobileMenu:not(.hidden) .mobile-menu-link:nth-child(1) { animation-delay: 0.1s; }
#mobileMenu:not(.hidden) .mobile-menu-link:nth-child(2) { animation-delay: 0.15s; }
#mobileMenu:not(.hidden) .mobile-menu-link:nth-child(3) { animation-delay: 0.2s; }
#mobileMenu:not(.hidden) .mobile-menu-link:nth-child(4) { animation-delay: 0.25s; }
#mobileMenu:not(.hidden) .mobile-menu-link:nth-child(5) { animation-delay: 0.3s; }
#mobileMenu:not(.hidden) .mobile-menu-link:nth-child(6) { animation-delay: 0.35s; }

/* Hamburger Menu Icon Animation */
#mobileMenuBtn .menu-icon,
#mobileMenuBtn .close-icon {
    transition: opacity 0.3s ease;
}

#mobileMenuBtn.active .menu-icon {
    display: none;
}

#mobileMenuBtn.active .close-icon {
    display: block;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

/* Responsive Image Mirror */
.mirror-image {
    transform: scaleX(-1);
}

/* Selection Style */
::selection {
    background: var(--lime);
    color: var(--midnight);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--midnight);
}

::-webkit-scrollbar-thumb {
    background: var(--charcoal);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--lime-dark);
}

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--lime);
    color: var(--midnight);
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--lime) 0%, var(--lime-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-dark {
    background: linear-gradient(180deg, var(--midnight) 0%, var(--charcoal) 100%);
}

/* Media Queries */
@media (max-width: 768px) {
    .font-display {
        letter-spacing: 0.03em;
    }
    
    /* Adjust hero for mobile */
    #hero {
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    /* Mobile-specific slider behavior */
    .results-slide,
    .testimonial-slide {
        width: 100% !important;
    }
    
    /* Adjust FAQ for mobile */
    .faq-item.active {
        padding-left: 12px;
        margin-left: -12px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .testimonial-slide {
        width: 50% !important;
    }
}

@media (min-width: 1025px) {
    .testimonial-slide {
        width: 33.333% !important;
    }
}

/* Print Styles */
@media print {
    header, footer, #cookieConsent {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --lime: #00FF00;
        --soft-gray: #FFFFFF;
    }
    
    body {
        background: #000000;
    }
}
/* Image Mirroring for uniqueness */
.img-mirrored {
    transform: scaleX(-1);
}
