/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #ff0033;
    --secondary-red: #cc0026;
    --dark-red: #990019;
    --black: #000000;
    --dark-gray: #111111;
    --medium-gray: #222222;
    --light-gray: #333333;
    --white: #ffffff;
    --neon-red: #ff0066;
    --neon-pink: #ff1493;
    --cyber-blue: #00ffff;
    --cyber-green: #00ff41;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-red);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-red);
    text-shadow: 0 0 10px var(--primary-red);
}

.nav-logo i {
    margin-right: 10px;
    font-size: 2rem;
}

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

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-red);
    text-shadow: 0 0 10px var(--primary-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.login-btn {
    background: transparent;
    border: 2px solid var(--primary-red);
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

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

.join-btn {
    background: var(--primary-red);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--primary-red);
}

.join-btn:hover {
    background: var(--secondary-red);
    box-shadow: 0 0 20px var(--primary-red);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-red);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ff0033" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.hero-title-with-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
}

.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.hero-logo-img {
    width: auto;
    height: 4rem;
    min-width: 40px;
    min-height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 0, 51, 0.8));
    animation: heroLogoGlow 3s ease-in-out infinite alternate;
    display: block;
    max-width: 100%;
}

@keyframes heroLogoGlow {
    0% {
        filter: drop-shadow(0 0 15px rgba(255, 0, 51, 0.6)) brightness(1);
        transform: scale(1);
    }
    100% {
        filter: drop-shadow(0 0 25px rgba(255, 0, 51, 0.9)) brightness(1.3);
        transform: scale(1.05);
    }
}

.glitch {
    position: relative;
    color: var(--primary-red);
    text-shadow: 0 0 20px var(--primary-red);
    animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: var(--cyber-blue);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: var(--cyber-green);
    z-index: -2;
}

.subtitle {
    display: block;
    font-size: 2rem;
    color: var(--white);
    margin-top: 10px;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #cccccc;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

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

.btn-primary:hover {
    background: var(--secondary-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--primary-red);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--primary-red);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary-red);
}

.btn-outline:hover {
    background: var(--primary-red);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-red);
    text-shadow: 0 0 10px var(--primary-red);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--primary-red);
    border-bottom: 2px solid var(--primary-red);
    transform: rotate(45deg);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--dark-gray);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    color: var(--primary-red);
    text-shadow: 0 0 10px var(--primary-red);
}

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

.feature-card {
    background: var(--medium-gray);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,0,51,0.1), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: 0 20px 40px rgba(255,0,51,0.2);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--primary-red);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.feature-card p {
    color: #cccccc;
    line-height: 1.6;
}

/* Packages Preview */
.packages-preview {
    padding: 100px 0;
    background: var(--black);
}

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

.package-card {
    background: var(--medium-gray);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    border: 2px solid var(--light-gray);
    transition: all 0.3s ease;
    position: relative;
}

.package-card.featured {
    border-color: var(--primary-red);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255,0,51,0.3);
}

.package-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-red);
    color: var(--white);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.package-header {
    margin-bottom: 30px;
}

.package-header h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--white);
}

.package-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-red);
    text-shadow: 0 0 10px var(--primary-red);
}

.package-features {
    list-style: none;
    margin-bottom: 30px;
}

.package-features li {
    padding: 10px 0;
    color: #cccccc;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.package-features i {
    color: var(--cyber-green);
}

.package-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: 0 20px 40px rgba(255,0,51,0.2);
}

/* Tournaments Preview */
.tournaments-preview {
    padding: 100px 0;
    background: var(--dark-gray);
}

.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.tournament-card {
    background: var(--medium-gray);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
}

.tournament-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: 0 20px 40px rgba(255,0,51,0.2);
}

.tournament-image {
    height: 200px;
    background: linear-gradient(45deg, var(--primary-red), var(--neon-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tournament-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tournament-content {
    padding: 30px;
}

.tournament-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--white);
}

.tournament-date {
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 10px;
}

.tournament-prize {
    color: var(--cyber-green);
    font-weight: 600;
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background: var(--black);
    border-top: 2px solid var(--primary-red);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-red);
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--primary-red);
}

.footer-section p {
    color: #cccccc;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-red);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--medium-gray);
    color: var(--primary-red);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,0,51,0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
    color: #cccccc;
}

/* Animations */
@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, -2px); }
    40% { transform: translate(-2px, 2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--black);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        border-top: 2px solid var(--primary-red);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-logo i {
        font-size: 1.5rem;
        margin-right: 8px;
    }

    .hero-title-with-logo {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-logo-img {
        width: auto;
        height: 3rem;
        max-width: 80px;
        display: block;
        object-fit: contain;
    }

    .hero-logo-fallback {
        font-size: 3rem !important;
    }

    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

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

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

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title-with-logo {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .hero-logo-img {
        width: auto;
        height: 2.5rem;
        max-width: 60px;
        display: block;
        object-fit: contain;
    }

    .hero-logo-fallback {
        font-size: 2.5rem !important;
    }

    .hero-title {
        font-size: 1.8rem;
        text-align: center;
        line-height: 1.3;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .hero-content {
        padding: 0 15px;
    }

    .nav-logo {
        font-size: 1rem;
    }

    .nav-logo i {
        font-size: 1.2rem;
        margin-right: 6px;
    }
}

@media (max-width: 320px) {
    .hero-title-with-logo {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .hero-logo-img {
        width: auto;
        height: 2rem;
        max-width: 50px;
        display: block;
        object-fit: contain;
    }

    .hero-logo-fallback {
        font-size: 2rem !important;
    }

    .hero-title {
        font-size: 1.5rem;
        text-align: center;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .hero-content {
        padding: 0 10px;
    }

    .nav-logo {
        font-size: 0.9rem;
    }

    .nav-logo i {
        font-size: 1rem;
        margin-right: 5px;
    }
}
