/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #ff6b00;
    --primary-dark: #cc5500;
    --secondary: #5c13e6;
    --dark-800: #111111;
    --dark-900: #050505;
    --accent: #00e5ff;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

/* Preloader Styles */
.preloader {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #050505; 
    z-index: 9999; 
    display: flex; 
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
}


.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Simple Spinner Animation */
.loader-spinner {
    border: 6px solid rgba(255, 107, 0, 0.3); 
    border-top: 6px solid var(--primary); 
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

/* Optional Loading Text Style */
/*
.loading-text {
    margin-top: 15px;
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
}
*/

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* HTML: <div class="loader"></div> */
.loader {
    width: 50px;
    aspect-ratio: 1;
    display: grid;
    border: 4px solid #0000;
    border-radius: 50%;
    border-right-color: #ff6b00;
    animation: l15 1s infinite linear;
  }
  .loader::before,
  .loader::after {    
    content: "";
    grid-area: 1/1;
    margin: 2px;
    border: inherit;
    border-radius: 50%;
    animation: l15 2s infinite;
  }
  .loader::after {
    margin: 8px;
    animation-duration: 3s;
  }
  @keyframes l15{ 
    100%{transform: rotate(1turn)}
  }
.font-gaming {
    font-family: 'Orbitron', sans-serif;
}

.container {
    max-width: 1200px;
}

/* Navigation */
.nav-link {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    font-family: 'Orbitron', sans-serif;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--secondary);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary);
    font-family: 'Orbitron', sans-serif;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(92, 19, 230, 0.3);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    font-family: 'Orbitron', sans-serif;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background-color: #000;
    position: relative;
    padding: 120px 0 60px;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(92, 19, 230, 0.1) 0%, rgba(0, 0, 0, 0.8) 70%);
    z-index: 0;
    opacity: 0.6;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" width="100" height="100"/><rect fill="%23FFFFFF" opacity="0.1" width="1" height="1"/></svg>');
    animation: starsAnimation 20s linear infinite;
}

@keyframes starsAnimation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 500px 500px;
    }
}

.logo-container {
    position: relative;
}

.glitch {
    position: relative;
    color: #fff;
    letter-spacing: 0.02em;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.8);
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    color: var(--primary);
    z-index: -1;
    animation: glitch-animation 3s infinite linear alternate-reverse;
}

.glitch::after {
    color: var(--accent);
    z-index: -2;
    animation: glitch-animation 2s infinite linear alternate-reverse;
}

@keyframes glitch-animation {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

.hero-image-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.hero-image {
    border-radius: 12px;
    border: 2px solid var(--primary);
    transform: perspective(1000px) rotateY(-15deg);
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0);
}

.hero-image-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: var(--primary);
    filter: blur(20px);
    opacity: 0.5;
    z-index: 0;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.3;
        transform: scale(0.97);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.03);
    }
    100% {
        opacity: 0.3;
        transform: scale(0.97);
    }
}

/* Countdown Timer */
.countdown-container {
    border: 1px solid rgba(255, 107, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.2);
}

.countdown-item {
    text-align: center;
    min-width: 60px;
}

/* Section Headers */
.section-header {
    text-align: center;
    position: relative;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.section-divider {
    height: 4px;
    width: 80px;
    background: var(--primary);
    margin: 10px auto 0;
    position: relative;
}

.section-divider::before, .section-divider::after {
    content: '';
    position: absolute;
    height: 4px;
    width: 15px;
    background: var(--primary);
}

.section-divider::before {
    left: -20px;
}

.section-divider::after {
    right: -20px;
}

/* Team Cards */
.team-card {
    background-color: var(--dark-800);
    border-radius: 8px;
    overflow: hidden;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
    border-color: var(--primary);
}

.team-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 107, 0, 0.5);
}

.team-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.team-country {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Match Cards */
.matches-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .matches-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.match-card {
    background-color: var(--dark-800);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
    border-color: var(--primary);
}

.match-time {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.date {
    font-weight: 700;
    color: var(--primary);
}

.time {
    color: #ccc;
}




    .match-teams {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 15px;
    }
    
    .team {
        display: flex;
        align-items: center;
        flex: 1;
    }
    
    .team:first-child {
        justify-content: flex-start;
        text-align: left;
    }
    
    .team:last-child {
        justify-content: flex-end;
        text-align: right;
        flex-direction: row-reverse;
    }
    
    .team-logo-small {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid rgba(255, 107, 0, 0.5);
        margin: 0 10px;
    }
    
    .team-name-small {
        font-weight: 600;
        font-size: 0.9rem;
    }
    
    .vs {
        background-color: var(--primary);
        color: #fff;
        font-weight: 700;
        font-size: 0.8rem;
        padding: 5px 8px;
        border-radius: 4px;
    }
    
    .match-group {
        align-self: flex-end;
        font-size: 0.8rem;
        color: #aaa;
    }
    
    /* News Cards */
    .news-card {
        background-color: var(--dark-800);
        border-radius: 8px;
        overflow: hidden;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
        border-color: var(--primary);
    }
    
    .news-image {
        width: 100%;
        height: 200px;
        overflow: hidden;
    }
    
    .news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    
    .news-card:hover .news-image img {
        transform: scale(1.05);
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-date {
        font-size: 0.8rem;
        color: var(--primary);
        margin-bottom: 8px;
        font-weight: 600;
    }
    
    .news-title {
        font-family: 'Orbitron', sans-serif;
        font-size: 1.2rem;
        margin-bottom: 10px;
        font-weight: 600;
    }
    
    .news-excerpt {
        color: #ccc;
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .news-link {
        color: var(--primary);
        font-weight: 600;
        font-size: 0.9rem;
        display: inline-block;
        position: relative;
        padding-right: 20px;
        transition: all 0.3s ease;
    }
    
    .news-link:hover {
        color: #fff;
    }
    
    .news-link::after {
        content: '→';
        position: absolute;
        right: 0;
        top: 0;
        transition: all 0.3s ease;
    }
    
    .news-link:hover::after {
        right: -5px;
    }
    
    /* Sponsors */
    .sponsors-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 30px;
    }
    
    .sponsor {
        background-color: rgba(255, 255, 255, 0.05);
        padding: 15px;
        border-radius: 8px;
        transition: all 0.3s ease;
        filter: grayscale(100%);
        opacity: 0.6;
    }
    
    .sponsor:hover {
        filter: grayscale(0);
        opacity: 1;
        transform: scale(1.05);
    }
    
    /* Footer */
    .footer-title {
        font-family: 'Orbitron', sans-serif;
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 20px;
        position: relative;
        display: inline-block;
        padding-bottom: 10px;
    }
    
    .footer-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 30px;
        height: 3px;
        background-color: var(--primary);
    }
    
    .footer-link {
        color: #ccc;
        transition: all 0.3s ease;
        display: inline-block;
    }
    
    .footer-link:hover {
        color: var(--primary);
        transform: translateX(5px);
    }
    
    .social-icons {
        display: flex;
        gap: 15px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        transition: all 0.3s ease;
        font-size: 1.2rem;
    }
    
    .social-icon:hover {
        background-color: var(--primary);
        transform: translateY(-3px);
    }
    
    .newsletter-input {
        background-color: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 8px 12px;
        color: #fff;
        border-radius: 4px 0 0 4px;
        width: 70%;
    }
    
    .newsletter-btn {
        background-color: var(--primary);
        color: #fff;
        border: none;
        padding: 8px 15px;
        font-weight: 600;
        border-radius: 0 4px 4px 0;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .newsletter-btn:hover {
        background-color: var(--primary-dark);
    }
    
    /* Responsive Adjustments */
    @media (max-width: 768px) {
        .hero-section {
            padding: 100px 0 40px;
        }
        
        .glitch {
            font-size: 2.5rem;
        }
        
        .sponsors-container {
            gap: 15px;
        }
        
        .sponsor {
            flex: 0 0 calc(50% - 15px);
        }
        
        .newsletter-input {
            width: 60%;
        }
    }
    
    @media (max-width: 576px) {
        .countdown-item {
            min-width: 40px;
        }
        
        .countdown-item .text-4xl {
            font-size: 1.5rem;
        }
        
        .team-logo {
            width: 80px;
            height: 80px;
        }
        
        .sponsor {
            flex: 0 0 100%;
        }
        
        .newsletter-input {
            width: 70%;
        }
    }
    
    /* Dark Theme Elements */
    .bg-dark-800 {
        background-color: var(--dark-800);
    }
    
    .bg-dark-900 {
        background-color: var(--dark-900);
    }
    
    .border-primary {
        border-color: var(--primary);
    }
    
    .text-primary {
        color: var(--primary);
    }
    
    /* Additional Animation Effects */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .fade-in {
        animation: fadeIn 0.5s ease forwards;
    }
    
    @keyframes float {
        0% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
        100% { transform: translateY(0px); }
    }
    
    .float {
        animation: float 5s ease-in-out infinite;
    }
    
    /* Custom Scrollbar */
    ::-webkit-scrollbar {
        width: 10px;
    }
    
    ::-webkit-scrollbar-track {
        background: #111;
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 5px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-dark);
    }