:root {
    --primary-red: #FE0002;
    --primary-white: #F0F0F0;
    --primary-black: #000000;
    --dark-grey: #1a1a1a;
    --light-grey: #cccccc;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

body {
    background-color: var(--primary-black);
    color: var(--primary-white);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-black);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-logo img {
    height: 120px;
    width: auto;
    object-fit: contain;
    animation: pulseLogo 1.5s infinite alternate;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--dark-grey);
    border-top: 4px solid var(--primary-red);
    border-radius: 50%;
    margin-top: 30px;
    animation: spinLoader 1s linear infinite;
}

.loader-text {
    margin-top: 20px;
    font-family: var(--font-heading);
    color: var(--primary-red);
    font-size: 1.2rem;
    letter-spacing: 2px;
    animation: blinkText 1.5s infinite;
}

@keyframes pulseLogo {
    0% {
        transform: scale(0.95);
        filter: drop-shadow(0 0 10px rgba(254, 0, 2, 0.2));
    }

    100% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 25px rgba(254, 0, 2, 0.8));
    }
}

@keyframes spinLoader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes blinkText {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--primary-white);
    /* White navbar for freshness */
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-red);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 60px;
    /* Increased size visibility */
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--primary-black);
    /* Dark text on white navbar */
    font-weight: bold;
    font-size: 1.1rem;
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-black);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    z-index: 1;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Countdown */
.countdown-container {
    display: flex;
    gap: 2rem;
    /* margin-top: 2rem; */
    margin: 2rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary-red);
    font-family: 'Courier New', Courier, monospace;
    /* Placeholder for burning effect font */
    text-shadow: 0 0 10px var(--primary-red);
    position: relative;
}

/* Burning effect utility class (can be enhanced with JS/SVG) */
.burning {
    animation: burn 0.5s infinite alternate;
}

@keyframes burn {
    0% {
        text-shadow: 0 0 10px #ff0000, 0 0 20px #ff4500;
    }

    100% {
        text-shadow: 0 0 20px #ff0000, 0 0 40px #ff8c00;
    }
}

.countdown-label {
    font-size: 1rem;
    text-transform: uppercase;
}

/* Section General */
.section {
    padding: 5rem 5%;
}

.section-title {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--primary-white);
    margin: 1rem auto 0;
}

/* Carousel Section */
.events-reel {
    background-color: var(--primary-white);
    color: var(--primary-black);
    padding: 3rem 0;
}

.events-reel .section-title {
    color: var(--primary-black);
}

.events-reel .section-title::after {
    background: var(--primary-red);
}


.carousel-container {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 0 5%;
    -webkit-overflow-scrolling: touch;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.event-card {
    min-width: 320px;
    height: 450px;
    background-color: var(--primary-black);
    border: none;
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(254, 0, 2, 0.4);
}

.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: all 0.4s ease;
}


.event-card:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.event-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

/* Champions Section */
.champions-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.champion-card {
    background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
    padding: 2rem;
    text-align: center;
    border-bottom: 4px solid var(--primary-red);
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.champion-card:hover {
    transform: translateY(-5px);
}

.champion-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--primary-red);
    box-shadow: 0 0 15px rgba(254, 0, 2, 0.5);
}

.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(90deg, var(--primary-red), #d60000);
    color: var(--primary-white);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 2rem;
    border: none;
    /* cursor: pointer; */
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(254, 0, 2, 0.4);
    transition: all 0.3s ease;
    letter-spacing: 1px;
}


.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(254, 0, 2, 0.6);
}


/* Academies Section */
#academies.section {
    background-color: var(--primary-white);
    color: var(--primary-black);
}

#academies .section-title {
    color: var(--primary-black);
}

#academies .section-title::after {
    background: var(--primary-red);
}

/* Upcoming Events */
/* Upcoming Events */
.upcoming-event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-white);
    color: var(--primary-black);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    border-left: 8px solid var(--primary-red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 0 16px 16px 0;
    transition: transform 0.3s ease;
}

.upcoming-event-item:hover {
    transform: translateX(10px);
}


.event-date {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-red);
}

/* Footer */
footer {
    background-color: #000;
    color: #fff;
    padding: 3rem 5%;
    text-align: center;
    border-top: 2px solid var(--primary-red);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        padding: 1.5rem 0;
        text-align: center;
        border-top: 2px solid var(--primary-red);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--primary-white);
        display: block;
        padding: 1rem 0;
        font-size: 1.2rem;
    }

    .nav-links a:hover {
        background-color: rgba(254, 0, 2, 0.1);
        color: var(--primary-red);
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .countdown-number {
        font-size: 2.5rem;
    }

    .upcoming-event-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.3s ease;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary-red);
    text-decoration: none;
    cursor: pointer;
}

/* Lightbox Navigation */
.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: 2001;
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(254, 0, 2, 0.8);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
    }

    to {
        transform: scale(1);
    }
}