/* Force font-display:swap for Font Awesome icons to prevent FOIT */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-display: swap;
}
@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-display: swap;
}

:root {
    --primary-color: #d60000; /* Darker Blood Red for WCAG AA Contrast */
    --secondary-color: #000000; /* Black */
    --accent-color: #ffffff; /* White */
    --gray: #1a1a1a;
    --font-heading: 'Bebas Neue', cursive;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    scroll-snap-type: y proximity; /* Standard browser-level snapping */
    overflow-x: hidden;
    width: 100%;
}

body {
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    color: var(--accent-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* 1. Base Hidden State for Animations */
[class*="reveal-"] {
    opacity: 0;
    will-change: opacity; /* Simplified for mobile performance */
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at 70% 50%, rgba(214, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0) 100%),
                linear-gradient(135deg, #000 0%, #111 100%);
    position: relative;
}

/* Hero Subtitle */
.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.hero-subtitle span {
    color: var(--primary-color);
}

/* Disciplines Section */
.disciplines {
    background-color: #000;
}

.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.discipline-card {
    background: #0a0a0a;
    padding: 40px 20px;
    text-align: center;
    border: 1px solid #1a1a1a;
    transition: 0.3s;
    transform: skewX(-3deg);
}

.discipline-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.discipline-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.discipline-card:hover {
    border-color: var(--primary-color);
    background: #111;
    transform: skewX(-3deg) translateY(-10px);
}

/* Performance Section */
.performance {
    background: #080808;
}

.performance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.performance-column h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.perf-list {
    list-style: none;
}

.perf-list li {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.perf-list li i {
    color: var(--primary-color);
    width: 25px;
}

.beyond-card {
    background: #111;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.beyond-card h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.beyond-card p {
    color: #999;
}

/* Pricing Section */
.pricing {
    background: #000;
    text-align: center;
}

.pricing-intro {
    max-width: 700px;
    margin: 0 auto 50px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: #0a0a0a;
    padding: 50px 30px;
    border: 1px solid #222;
    position: relative;
    transition: 0.4s;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    z-index: 2;
    background: #111;
}

.pricing-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
}

.pricing-card p {
    color: #ccc;
    margin-bottom: 30px;
    min-height: 50px;
}

.price-tag {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 2px;
}

/* Why BOLD */
.why-bold {
    margin-bottom: 80px;
    text-align: center;
}

.why-grid p {
    font-size: 1.4rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    color: #ccc;
    font-style: italic;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float i {
    font-size: 1.8rem;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #20ba5a;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* Mobile Toggle Style - Hidden by default */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--accent-color);
    cursor: pointer;
}

/* --- MOBILE RESPONSIVENESS UPDATES --- */

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        border-left: 2px solid var(--primary-color);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .section {
        padding: 60px 0;
    }

    h1 {
        font-size: 3.5rem;
    }

    .performance-grid, .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float span {
        display: none; /* Hide text on small screens to save space */
    }

    .whatsapp-float {
        padding: 15px;
        border-radius: 50%;
        bottom: 20px;
        right: 20px;
    }

    /* Fix empty space caused by skews on small screens */
    .discipline-card, 
    .gallery-item, 
    .coach-card,
    .item-info {
        transform: none !important;
    }
    
    .image-box img {
        transform: scale(1.1) !important; /* Reset counter-skew scaling */
    }
}

/* Update Container Logic */
.scroll-container {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

.section {
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start; /* Snap each section to the window */
    position: relative;
    padding: 80px 0;
    overflow: hidden; /* Contain any skewed children causing overflow */
    z-index: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Glassmorphism Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: 0.3s;
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--primary-color);
    opacity: 1;
}

/* Hero Section */
.hero {
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 10;
}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 0.9;
    margin-bottom: 20px;
}

h1 span {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.reveal-subtext {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 40px;
    color: #ccc;
}

/* Spline Styling */
.spline-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Keep it behind text */
    background: radial-gradient(circle at 70% 50%, #1a0000 0%, #000 100%); /* Fallback for 403 error */
    pointer-events: none; /* This allows you to scroll even if your mouse is over the 3D model */
}

spline-viewer {
    width: 100%;
    height: 100%;
    pointer-events: auto; /* Re-enable 3D interaction only for the viewer itself */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-decoration: none;
    transition: 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

/* About Section */
.about {
    background-color: #080808;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #ccc;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.feature-item h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 0.9rem;
    color: #999;
}

.coach-card {
    background: #111;
    padding: 40px;
    border: 1px solid #222;
    border-left: 5px solid var(--primary-color);
    transform: skewX(-3deg);
}

.coach-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.coach-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.contact-box {
    background: #1a1a1a;
    padding: 15px 20px;
    display: inline-block;
}

.contact-box p {
    margin-bottom: 0;
    font-weight: 700;
    color: var(--accent-color);
}

.contact-box i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Responsive About */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .coach-card {
        transform: none;
    }
}

/* Gallery Section */
.gallery {
    background-color: #050505;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 50px;
    text-align: center;
}

.section-title span {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Back to 3 columns */
    gap: 20px;
    width: 100%;
}

.gallery-item {
    background: var(--gray);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: skewX(-5deg);
    filter: grayscale(100%);
    border: 1px solid #222;
    cursor: crosshair;
    width: 100%;
    visibility: visible;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
}

.gallery-item:hover::after {
    left: 150%; /* Creates a "light streak" flash when hovering over a fighter */
}

.gallery-item:hover {
    filter: grayscale(0%);
    transform: skewX(-5deg) scale(1.05) rotate(1deg);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
    z-index: 10;
}

.image-box {
    height: 400px;
    overflow: hidden;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
    transform: skewX(5deg) scale(1.3); /* Ensure the counter-skew doesn't cut off the fighter's face */
}

.gallery-item:hover .image-box img {
    transform: skewX(5deg) scale(1);
}

.item-info {
    padding: 20px;
    background: var(--secondary-color);
    border-top: 3px solid var(--primary-color);
    transform: skewX(5deg); /* Counter-skew for text */
}

.item-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Contact Section */
.contact {
    background: linear-gradient(to top, #000 0%, #0a0a0a 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    background: #0a0a0a;
    border: none;
    border-bottom: 2px solid #222;
    color: white;
    font-family: inherit;
    transition: 0.3s;
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: #444; /* Dimmed grey placeholder */
}

.contact-form input:focus, .contact-form textarea:focus {
    border-bottom-color: var(--primary-color); /* Sharp red highlight */
    outline: none;
    background: #111;
}

/* Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.scroll-indicator p {
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #666;
}

.mouse {
    width: 20px;
    height: 35px;
    border: 2px solid #333;
    border-radius: 20px;
    margin: 0 auto;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    animation: scrollMove 2s infinite;
}

@keyframes scrollMove {
    0% { top: 5px; opacity: 1; }
    100% { top: 25px; opacity: 0; }
}

footer {
    padding: 30px 0;
    text-align: center;
    background: #000;
    border-top: 1px solid #111;
    position: relative;
    z-index: 10;
}

/* Responsive */
@media (max-width: 992px) {
    .gallery-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero-content {
        text-align: center;
    }
    .hero-subtitle {
        margin: 0 auto 40px;
    }
    .section {
        height: auto;
        min-height: 100vh;
    }
    .scroll-container {
        scroll-snap-type: none;
    }
}