/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-dark: #0b0c15;
    --bg-card: rgba(20, 22, 35, 0.6);
    --primary: #00f3ff;
    /* Neon Cyan */
    --secondary: #ff00ff;
    /* Neon Magenta */
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --font-main: 'Rajdhani', sans-serif;
    --font-header: 'Orbitron', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* =========================================
   2. UTILITIES & ANIMATIONS
   ========================================= */
/* =========================================
   2. UTILITIES & ANIMATIONS
   ========================================= */
/* =========================================
   2. UTILITIES & ANIMATIONS
   ========================================= */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(11, 12, 21, 0.6), #0b0c15);
    /* Increased opacity slightly */
    z-index: -2;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
    padding: 10px 0;
}

header.scrolled {
    background: rgba(11, 12, 21, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    padding: 5px 0;
}

.logo a {
    font-family: var(--font-header);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0;
}

.nav-links a {
    font-size: 18px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    box-shadow: 0 0 10px var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary);
}

/* Login Button in Nav */
.login-btn-nav {
    border: 1px solid var(--primary);
    padding: 5px 15px !important;
    border-radius: 4px;
    color: var(--primary) !important;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    /* Ensure pointer cursor */
}

.login-btn-nav:hover {
    background: var(--primary);
    color: #000 !important;
    box-shadow: 0 0 15px var(--primary);
}

.login-btn-nav::after {
    display: none;
}

/* Search Bar */
.search-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    width: 150px;
    font-family: var(--font-main);
}

.search-bar button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.search-bar button:hover {
    color: var(--primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

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

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    /* Adjusted opacity */
    filter: contrast(1.1) brightness(0.8);
    /* Adjusted brightness */
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.main-title {
    font-family: var(--font-header);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.main-title span {
    color: transparent;
    -webkit-text-stroke: 2px var(--primary);
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

/* Hero Buttons Grid */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-btn {
    position: relative;
    background: rgba(20, 22, 35, 0.9);
    /* More solid background */
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    /* Thicker border */
    padding: 15px 25px;
    border-radius: 8px;
    font-family: var(--font-header);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-btn i {
    font-size: 1.2rem;
}

.hero-btn span {
    color: white;
    font-weight: 700;
}

/* Button Specific Colors */
.btn-esport {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-esport:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary);
}

.btn-lore {
    border-color: #ff9f43;
    color: #ff9f43;
}

.btn-lore:hover {
    background: #ff9f43;
    color: #000;
    box-shadow: 0 0 20px #ff9f43;
}

.btn-videos {
    border-color: #ff3c3c;
    color: #ff3c3c;
}

.btn-videos:hover {
    background: #ff3c3c;
    color: white;
    box-shadow: 0 0 20px #ff3c3c;
}

.btn-mini {
    border-color: #54a0ff;
    color: #54a0ff;
}

.btn-mini:hover {
    background: #54a0ff;
    color: white;
    box-shadow: 0 0 20px #54a0ff;
}

.btn-music {
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-music:hover {
    background: var(--secondary);
    color: white;
    box-shadow: 0 0 20px var(--secondary);
}

.btn-offers {
    border-color: #1dd1a1;
    color: #1dd1a1;
}

.btn-offers:hover {
    background: #1dd1a1;
    color: #000;
    box-shadow: 0 0 20px #1dd1a1;
}

/* =========================================
   5. SERVICES SECTION
   ========================================= */
.services {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-family: var(--font-header);
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(20, 22, 35, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.service-icon {
    font-size: 35px;
    color: var(--primary);
}

.service-card:hover .icon-wrapper {
    background: rgba(0, 243, 255, 0.1);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.service-title {
    font-family: var(--font-header);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.service-text {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link i {
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Coming Soon Badge */
.coming-soon {
    opacity: 0.7;
}

.badge-soon {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   6. FOOTER
   ========================================= */
.footer {
    background: #080910;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px;
    margin-top: 50px;
    position: relative;
    z-index: 10;
    /* Ensure footer is above background */
}

.footer-logo {
    font-family: var(--font-header);
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--primary);
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

@media (min-width: 768px) {
    .social-icons {
        justify-content: flex-end;
    }
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    color: white;
    font-size: 0.9rem;
}

/* =========================================
   7. LOGIN MODAL
   ========================================= */
.login-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.login-content {
    background: #141623;
    margin: 10% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
    border: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
    text-align: center;
}

.login-content h3 {
    font-family: var(--font-header);
    margin-bottom: 30px;
    color: white;
}

.login-content h3 i {
    color: var(--primary);
    margin-right: 10px;
}

.input-group {
    margin-bottom: 20px;
}

.login-content input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: white;
    font-family: var(--font-main);
    transition: var(--transition);
}

.login-content input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.btn-glow {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    font-family: var(--font-header);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-glow:hover {
    background: white;
    box-shadow: 0 0 20px var(--primary);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--secondary);
}

/* =========================================
   8. RESPONSIVE ADJUSTMENTS
   ========================================= */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #0b0c15;
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

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

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
        backdrop-filter: blur(3px);
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   7. MODERN TABLE STYLES
   ========================================= */
.table-modern {
    background: transparent;
    border-collapse: separate;
    border-spacing: 0 10px;
    /* Space between rows */
}

.table-modern thead th {
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary);
    font-family: var(--font-header);
    text-transform: uppercase;
    border: none;
    padding: 15px;
    letter-spacing: 1px;
}

.table-modern tbody tr {
    background: rgba(20, 22, 35, 0.6);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.table-modern tbody tr:hover {
    background: rgba(20, 22, 35, 0.9);
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.1);
}

.table-modern td {
    border: none;
    padding: 15px;
    vertical-align: middle;
    color: var(--text-main);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-modern td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    color: var(--primary);
    font-weight: bold;
}

.table-modern td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.btn-glow-small {
    background: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    transition: var(--transition);
}

.btn-glow-small:hover {
    background: var(--secondary);
    color: white;
    box-shadow: 0 0 10px var(--secondary);
}

.alert-custom {
    background: rgba(255, 60, 60, 0.1);
    border: 1px solid #ff3c3c;
    color: #ff3c3c;
    border-radius: 10px;
    padding: 20px;
    font-family: var(--font-header);
}

/* =========================================
   8. MARQUEE ANIMATION
   ========================================= */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scroll 20s linear infinite;
}

.game-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-family: var(--font-header);
    font-size: 1.2rem;
    white-space: nowrap;
    transition: var(--transition);
}

.game-logo i {
    color: var(--primary);
    font-size: 1.5rem;
}

.game-logo:hover {
    color: white;
    text-shadow: 0 0 10px var(--primary);
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}