:root {
    --neon-yellow: #DAFF01;
    --dark-bg: #050505;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: white;
    overflow: hidden;
}

/* Fixed Background */
.fixed-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./background_new.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Header */
.fixed-header {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 100;
}

.header-text {
    font-family: 'Teko', sans-serif;
    font-size: 48px;
    letter-spacing: 4px;
    color: white;
    text-transform: uppercase;
    margin: 0;
    font-style: italic;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Carousel Container */
.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    perspective: 1000px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 60px;
    overflow-x: auto;
    padding: 0 50px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    height: 70%;
    align-items: center;
}

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

.tournament-card {
    min-width: 320px;
    width: 380px;
    height: 550px;
    animation: slideInFromRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
    background: transparent;
    border-radius: 30px;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s;
    scroll-snap-align: center;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.tournament-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.tournament-card:hover {
    transform: translateY(-20px) scale(1.05);
    border-color: var(--neon-yellow);
}

.tournament-card:hover img {
    transform: scale(1.1);
}

.tournament-card:nth-child(1) {
    animation-delay: 0.1s;
}

.tournament-card:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Arrows */
.nav-arrow {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    user-select: none;
    transition: color 0.3s;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.nav-arrow:hover {
    color: var(--neon-yellow);
}

.arrow-left {
    left: 40px;
}

.arrow-right {
    right: 40px;
}

/* Full Screen Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./background_new.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    backdrop-filter: blur(20px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    overflow-y: auto;
    background: transparent;
    text-align: left;
    transform: translateY(50px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 40px;
    scrollbar-width: none;
}

.modal-content::-webkit-scrollbar {
    display: none;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 1100;
    opacity: 0.7;
}

.close-btn:hover {
    opacity: 1;
    color: var(--neon-yellow);
}

/* Modal Elements */
.modal-title {
    font-family: 'Teko', sans-serif;
    font-size: 72px;
    color: var(--neon-yellow);
    margin: 0 0 30px;
    line-height: 0.9;
    text-transform: uppercase;
    text-align: center;
}

.video-container {
    width: 100%;
    aspect-ratio: 9/16;
    background: black;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    color: white;
    opacity: 0.8;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.modal-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #ddd;
    text-align: left;
    margin-bottom: 40px;
}

.team-section {
    text-align: left;
    margin-bottom: 30px;
    border-left: 3px solid var(--neon-yellow);
    padding-left: 20px;
}

.team-name {
    font-family: 'Teko';
    font-size: 32px;
    color: white;
    margin: 0;
    text-transform: uppercase;
}

.team-bio {
    color: #bbb;
    font-size: 14px;
    margin-top: 5px;
}

.cta-btn-modal {
    display: block;
    width: 100%;
    padding: 24px;
    background: var(--neon-yellow);
    color: black;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 20px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 0 20px rgba(218, 255, 1, 0.3);
    transition: all 0.3s;
    text-align: center;
}

.cta-btn-modal:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(218, 255, 1, 0.6);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s;
    cursor: pointer;
    z-index: 10;
}

.video-container:hover .play-overlay {
    opacity: 1;
}

@keyframes flashTag {
    0% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
        box-shadow: 0 0 20px var(--neon-yellow);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    }
}

.upcoming-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--neon-yellow);
    color: black;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 5;
    text-transform: uppercase;
    animation: flashTag 1.5s infinite ease-in-out;
}