body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0d0d0d; /* Fondo aún más oscuro */
    color: #e0e0e0; /* Texto claro */
    line-height: 1.6;
    overflow-x: hidden;
    background-image: linear-gradient(to bottom, #0d0d0d, #111, #0d0d0d);
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

header {
    background: linear-gradient(135deg, #030312, #0d0d30, #030312);
    color: #ffffff;
    padding-top: 30px;
    min-height: 70px;
    border-bottom: #ff8c00 3px solid; /* Naranja CS */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: moveStar 15s linear infinite, twinkleStar 2s ease-in-out infinite alternate;
}

.star:nth-child(1) { top: 10%; left: 15%; animation-delay: 0s; }
.star:nth-child(2) { top: 20%; left: 35%; animation-delay: 1s; }
.star:nth-child(3) { top: 25%; left: 55%; animation-delay: 2s; }
.star:nth-child(4) { top: 15%; left: 70%; animation-delay: 3s; }
.star:nth-child(5) { top: 30%; left: 85%; animation-delay: 4s; }
.star:nth-child(6) { top: 45%; left: 10%; animation-delay: 5s; }
.star:nth-child(7) { top: 50%; left: 25%; animation-delay: 6s; }
.star:nth-child(8) { top: 40%; left: 45%; animation-delay: 7s; }
.star:nth-child(9) { top: 60%; left: 65%; animation-delay: 8s; }
.star:nth-child(10) { top: 55%; left: 80%; animation-delay: 9s; }
.star:nth-child(11) { top: 75%; left: 15%; animation-delay: 10s; }
.star:nth-child(12) { top: 70%; left: 35%; animation-delay: 11s; }
.star:nth-child(13) { top: 65%; left: 55%; animation-delay: 12s; }
.star:nth-child(14) { top: 80%; left: 75%; animation-delay: 13s; }
.star:nth-child(15) { top: 85%; left: 90%; animation-delay: 14s; }

.star:nth-child(5n+1) { width: 3px; height: 3px; } /* Estrellas más grandes */
.star:nth-child(7n+1) { background-color: rgba(255,255,255,0.9); box-shadow: 0 0 3px #fff; } /* Estrellas brillantes */

.shooting-star {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%);
    box-shadow: 0 0 5px #fff, 0 0 10px #fff;
    transform: rotate(45deg);
    top: 20%;
    left: -5%;
    opacity: 0;
    z-index: 1;
    animation: shootingStar 8s linear infinite;
}

@keyframes moveStar {
    0% {
        transform: translateY(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100px);
        opacity: 0;
    }
}

@keyframes twinkleStar {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

@keyframes shootingStar {
    0% {
        transform: translateX(-100px) translateY(-100px) rotate(45deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    20% {
        transform: translateX(calc(100vw + 100px)) translateY(100px) rotate(45deg);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightning-icon {
    font-size: 2.5em;
    color: white;
    text-shadow: 0 0 10px #ffcc00, 0 0 20px #ffcc00;
    margin-right: 10px;
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #ffcc00, 0 0 10px #ffcc00;
    }
    to {
        text-shadow: 0 0 10px #ffcc00, 0 0 20px #ffcc00, 0 0 30px #ffcc00;
    }
}

header h1 {
    font-family: 'Orbitron', sans-serif; /* Fuente gamer */
    margin: 0;
    font-size: 2.5em;
    letter-spacing: 2px;
    color: #ff8c00;
}

header p {
    font-size: 1.1em;
    color: #cccccc;
}

#hero {
    min-height: 400px;
    background: url('images/cs2.jpg') no-repeat center center/cover; /* Usamos la imagen real de CS2 */
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Overlay oscuro para legibilidad */
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 2;
    padding: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(255, 140, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 140, 0, 0.3);
    max-width: 800px;
    margin: 0 auto;
}

.glowing-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 3em;
    margin-bottom: 20px;
    color: #ff8c00;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.7), 0 0 20px rgba(255, 140, 0, 0.5);
    animation: textPulse 2s infinite alternate;
}

@keyframes textPulse {
    from {
        text-shadow: 0 0 10px rgba(255, 140, 0, 0.7), 0 0 20px rgba(255, 140, 0, 0.5);
    }
    to {
        text-shadow: 0 0 15px rgba(255, 140, 0, 0.9), 0 0 30px rgba(255, 140, 0, 0.7), 0 0 40px rgba(255, 140, 0, 0.5);
    }
}

#hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    font-family: 'Orbitron', sans-serif;
    display: inline-block;
    background: linear-gradient(45deg, #ff8c00, #ff6f00); /* Gradiente naranja CS */
    color: #121212; /* Texto oscuro para contraste */
    padding: 18px 36px;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.6);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    z-index: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cta-button::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: all 0.6s ease;
    z-index: -1;
}

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

.cta-button:hover {
    background: linear-gradient(45deg, #ff6f00, #ff8c00); /* Gradiente invertido */
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

#about, #rules {
    padding: 60px 0;
    background-color: #1a1a1a; /* Fondo de sección ligeramente diferente */
    text-align: center;
    position: relative;
    z-index: 1;
}

#about::before, #rules::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 140, 0, 0.1) 0%, transparent 70%);
    z-index: -1;
}

#about h2, #rules h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #ff8c00;
}

.feature {
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(145deg, #242424, #1a1a1a);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    border-left: 3px solid #ff8c00;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: #ff8c00;
    transform: scaleY(1);
    transition: transform 0.4s ease;
}

.feature:hover::before {
    transform: scaleY(1.1);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.6);
}

.feature h3 {
    font-family: 'Orbitron', sans-serif;
    color: #ffaf40; /* Naranja más claro para subtítulos */
    margin-bottom: 10px;
}

.community-image {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}

.community-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.community-image img:hover {
    transform: scale(1.03);
}

#rules ul {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 0 auto 30px auto;
    text-align: left;
}

#rules li {
    background: #2a2a2a;
    margin-bottom: 15px;
    padding: 20px 25px;
    border-radius: 10px;
    border-left: 5px solid #ff8c00;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

#rules li:hover {
    transform: translateX(5px);
    background: #323232;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

#rules li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: rgba(255, 140, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
}

#rules li:hover::after {
    opacity: 1;
}

.rule-highlight {
    font-weight: bold;
    color: #ff8c00;
}

.ban-warning {
    font-size: 1.1em;
    color: #ff4d4d; /* Rojo para advertencias */
    font-weight: bold;
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(255, 77, 77, 0.1);
    border: 1px solid #ff4d4d;
    border-radius: 5px;
    display: inline-block;
}

/* Particle effect styling */
.particle-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.6), 0 0 20px rgba(255, 140, 0, 0.4);
    animation: particleFloat 15s infinite linear;
    opacity: 0;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 30%; top: 40%; animation-delay: 1s; animation-duration: 15s; }
.particle:nth-child(3) { left: 50%; top: 10%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(4) { left: 70%; top: 30%; animation-delay: 3s; animation-duration: 14s; }
.particle:nth-child(5) { left: 20%; top: 60%; animation-delay: 4s; animation-duration: 16s; }
.particle:nth-child(6) { left: 60%; top: 80%; animation-delay: 5s; animation-duration: 13s; }
.particle:nth-child(7) { left: 80%; top: 50%; animation-delay: 6s; animation-duration: 17s; }
.particle:nth-child(8) { left: 40%; top: 70%; animation-delay: 7s; animation-duration: 19s; }

@keyframes particleFloat {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}

/* Player count styling */
.player-count {
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 140, 0, 0.3);
}

.online-icon {
    width: 10px;
    height: 10px;
    background-color: #00cc00;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px #00cc00;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 204, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 204, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 204, 0, 0); }
}

.count-text {
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
}

/* Discord button icon */
.cta-container {
    margin: 30px 0;
}

.btn-icon {
    margin-right: 10px;
    animation: iconPulse 1.5s infinite alternate;
}

@keyframes iconPulse {
    from { opacity: 0.7; }
    to { opacity: 1; transform: scale(1.2); }
}

/* Estilos para la sección de juegos */
#games {
    padding: 60px 0;
    background-color: #1a1a1a;
    text-align: center;
    position: relative;
    z-index: 1;
}

#games::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 140, 0, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.games-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.game-card {
    background: linear-gradient(145deg, #242424, #1a1a1a);
    border-radius: 15px;
    padding: 30px;
    width: 280px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    border: 2px solid rgba(255, 140, 0, 0.3);
}

.game-image {
    width: 100%;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.game-card h3 {
    font-family: 'Orbitron', sans-serif;
    color: #ffaf40;
    margin-bottom: 15px;
}

.game-card p {
    color: #ddd;
    font-size: 0.9em;
    line-height: 1.6;
}

footer {
    background: #1f1f1f;
    color: #aaaaaa;
    text-align: center;
    padding: 20px 0;
    border-top: #ff8c00 1px solid;
    margin-top: 30px;
}

/* Responsive */
@media(max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    #hero h2 {
        font-size: 2.2em;
    }

    #hero p {
        font-size: 1em;
    }

    .cta-button {
        font-size: 1em;
        padding: 12px 25px;
    }

    .container {
        width: 90%;
    }

    #about h2, #rules h2 {
        font-size: 2em;
    }

    #rules li {
        font-size: 1em;
    }
}
