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

:root {
    --primary-pink: #ff006e;
    --secondary-pink: #ff4b8b;
    --accent-purple: #8b00ff;
    --dark-bg: #0a0a0f;
    --darker-bg: #050507;
    --text-light: #ffffff;
    --text-gray: #b8b8c8;
    --gradient-1: linear-gradient(135deg, #ff006e 0%, #8b00ff 100%);
    --gradient-2: linear-gradient(135deg, #ff4b8b 0%, #ff006e 100%);
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-pink);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: rgba(255, 0, 110, 0.1);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s ease;
}

/* Canvas for animated stars */
#stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -4;
    background: #000;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

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

.logo {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

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

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

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

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

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

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

/* Animated Background */
.stars,
.twinkling,
.clouds {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.twinkling {
    background: transparent;
    z-index: -2;
    animation: move-twink-back 200s linear infinite;
    opacity: 0.3;
}

.clouds {
    background: transparent;
    z-index: -1;
    opacity: 0.1;
    animation: move-clouds-back 200s linear infinite;
}

@keyframes move-twink-back {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -10000px 5000px;
    }
}

@keyframes move-clouds-back {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 10000px 0;
    }
}

/* Hero Content */
.hero-content {
    text-align: center;
    z-index: 10;
    animation: fadeInUp 1s ease;
}

.glitch {
    font-family: 'Orbitron', monospace;
    font-size: 8rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    color: var(--text-light);
    letter-spacing: 5px;
    animation: glitch 2s linear 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(--primary-pink);
    z-index: -1;
}

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

@keyframes glitch {

    0%,
    100% {
        text-shadow:
            0 0 10px var(--primary-pink),
            0 0 20px var(--primary-pink),
            0 0 30px var(--primary-pink);
    }

    50% {
        text-shadow:
            0 0 20px var(--primary-pink),
            0 0 30px var(--primary-pink),
            0 0 40px var(--primary-pink);
    }
}

@keyframes glitch-1 {

    0%,
    100% {
        clip: rect(42px, 9999px, 44px, 0);
        transform: skew(0.13deg);
    }

    5% {
        clip: rect(12px, 9999px, 59px, 0);
        transform: skew(0.6deg);
    }
}

@keyframes glitch-2 {

    0%,
    100% {
        clip: rect(63px, 9999px, 90px, 0);
        transform: skew(0.42deg);
    }

    5% {
        clip: rect(25px, 9999px, 3px, 0);
        transform: skew(0.23deg);
    }
}

.tagline {
    font-size: 2rem;
    margin: 1rem 0;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--gradient-1);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.5);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 5;
}

.planet {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-1);
    opacity: 0.6;
}

.planet1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation: float 20s infinite ease-in-out;
}

.planet2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation: float 25s infinite ease-in-out reverse;
}

.planet3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 30%;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-30px) rotate(120deg);
    }

    66% {
        transform: translateY(30px) rotate(240deg);
    }
}

/* Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--darker-bg);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 0, 110, 0.3);
    transition: all 0.3s ease;
    text-align: center;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-pink);
    box-shadow: 0 20px 40px rgba(255, 0, 110, 0.3);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon {
    width: 40px;
    height: 40px;
    stroke-width: 2;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.about-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Games Section */
.games {
    padding: 5rem 0;
    background: var(--dark-bg);
}

.games-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 0, 110, 0.3);
}

.game-card:hover {
    transform: scale(1.05);
    border-color: var(--primary-pink);
    box-shadow: 0 20px 40px rgba(255, 0, 110, 0.3);
}

.game-card.featured {
    grid-column: span 2;
}

.game-image {
    height: 250px;
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
}

.game-image.valorant {
    background-image: url('https://mmos.com/wp-content/smush-webp/2021/06/valorant-heroes-grayscale-banner.jpg.webp');
}

.game-image.overwatch {
    background-image: url('https://cdn2.steamgriddb.com/logo/c81e728d9d4c2f636f067f89cc14862c.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.game-image.marvel {
    background-image: url('https://preview.redd.it/how-is-the-hype-for-marvel-rivals-v0-94g0oczqtbsc1.jpeg?auto=webp&s=cb2b48bc6a5612386bef7e16917d9bcc41566ec7');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.game-image.cs2 {
    background-image: url('https://media.esportsedition.com/wp-content/uploads/2019/12/csgo-banner2-1.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.game-image.variety {
    background-image: url('https://i.pinimg.com/736x/72/11/5b/72115b42b3c71958c4fe3e2c01d4e0f7.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.game-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}

.game-card:hover .game-image::after {
    opacity: 0;
}

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', monospace;
}

.game-info p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Join Section */
.join {
    padding: 5rem 0;
    background: var(--darker-bg);
    position: relative;
    overflow: hidden;
}

.join::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 0, 110, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.join-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.join-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.requirements {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 0, 110, 0.3);
}

.requirements h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-pink);
}

.requirements ul {
    list-style: none;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.requirements li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-gray);
}

.requirements li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--primary-pink);
    font-size: 1.2rem;
}

.cta-wrapper {
    margin-top: 3rem;
}

.apply-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    background: var(--gradient-1);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.apply-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 0, 110, 0.5);
}

.apply-button .arrow {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.apply-button:hover .arrow {
    transform: translateX(5px);
}

.cta-note {
    margin-top: 1rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: var(--darker-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.footer p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient-1);
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: var(--text-light);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Responsive */
@media (max-width: 1024px) {
    .game-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .glitch {
        font-size: 4rem;
    }

    .tagline {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

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

    .cursor,
    .cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }

    .games-showcase {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .glitch {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }
}