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

body {
    background: #0b0e13;
    background-repeat: no-repeat;
    background-size: contain;
    transition: background-image 0.4s ease;
    color: white;
    overflow-x: hidden;
}

.container {
    width: 1200px;
    max-width: 90%;
    margin: auto;
}

header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: 0.3s;
}

header.scrolled {
    background: #0c0f15;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ff4747;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

nav a {
    margin: 0 15px;
    color: white;
    text-decoration: none;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #ff4747;
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.play {
    background: #ff4747;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.play:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px #ff4747;
}

.menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

#nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0c0f15;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

#nav.active a {
    margin: 10px 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 700px;
}

.hero h1 {
    font-size: 60px;
    margin-bottom: 20px;
}

.hero p {
    opacity: 0.8;
    margin-bottom: 30px;
}

.buttons button {
    padding: 15px 30px;
    margin: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-main {
    background: #ff4747;
    color: white;
    transition: 0.3s;
}

.btn-main:hover {
    box-shadow: 0 0 20px #ff4747;
    transform: translateY(-3px);
}

.btn-secondary {
    background: #5865F2;
    color: white;
}

.stats {
    padding: 100px 0;
    background: #12161d;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat h2 {
    font-size: 40px;
    color: #ff4747;
}

.features {
    padding: 100px 0;
    background: #0b0e13;
}

.title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 60px;
}

/* Contenedor para centrar el grid */
.features-grid-container {
    width: 1200px;
    max-width: 90%;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-content: center;
    align-items: stretch;
}

.card {
    background: #151a22;
    padding: 30px;
    border-radius: 10px;
    transition: 0.4s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    background: #1b2029;
}

footer {
    background: #07090d;
    padding: 40px;
    text-align: center;
    opacity: 0.6;
}

.scroll-indicator {
    margin-top: 50px;
    font-size: 50px;
    color: #ff4747;
    animation: bounce 2s infinite;
}

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

/* scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: 1s;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.feature-card {
    padding: 40px 30px;
    text-align: center;
    background: #1a1f2b;
    border: 1px solid rgba(255, 71, 71, 0.2);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 15px;
    height: 100%;
    width: 100%;
}

.feature-card:hover {
    transform: translateY(-15px);
    background: #222835;
    border-color: #ff4747;
    box-shadow: 0 20px 30px rgba(255, 71, 71, 0.15);
}

/* Estilo para los iconos */
.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    background: rgba(255, 71, 71, 0.15);
    border-radius: 50%;
    transition: 0.3s;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

.feature-icon::before {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    line-height: 1;
    font-size: 3.5rem;
    margin: 0;
    padding: 0;
}

.feature-card:hover .feature-icon {
    background: #ff4747;
    color: #0b0e13;
    transform: scale(1.1);
}

/* Colores específicos de iconos */
.discord-card .feature-icon {
    color: #5865F2;
}
.ts-card .feature-icon {
    color: #4F5B6B;
}
.launcher-card .feature-icon {
    color: #ff4747;
}

/* Títulos de las tarjetas */
.feature-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #fff;
}

/* Párrafo de las tarjetas */
.feature-card p {
    color: #b0b7c5;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Enlaces/botones dentro de las tarjetas */
.feature-link {
    display: inline-block;
    padding: 12px 25px;
    background: transparent;
    border: 2px solid;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    margin-top: auto;
    width: auto;
    min-width: 160px;
}

/* Estilos individuales para cada enlace */
.discord-link {
    border-color: #5865F2;
    color: #5865F2;
}
.discord-link:hover {
    background: #5865F2;
    color: #fff;
}

.ts-link {
    border-color: #4F5B6B;
    color: #4F5B6B;
}
.ts-link:hover {
    background: #4F5B6B;
    color: #fff;
}

.launcher-link {
    border-color: #ff4747;
    color: #ff4747;
}
.launcher-link:hover {
    background: #ff4747;
    color: #fff;
}

.ts-link i, .launcher-link i {
    margin-right: 8px;
}

/* Estilos específicos para la tarjeta de TS3 */
.ts-server {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
}

.ts-address {
    background: rgba(79, 91, 107, 0.2);
    padding: 8px 15px;
    border-radius: 50px;
    font-family: monospace;
    font-size: 1rem;
    color: #8a9bb5;
    border: 1px solid rgba(79, 91, 107, 0.3);
}

.ts-connect-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #4F5B6B;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1.2rem;
}

.ts-connect-btn:hover {
    background: #ff4747;
    transform: scale(1.1);
    box-shadow: 0 0 15px #ff4747;
}

.ts-actions {
    width: 100%;
    margin-top: 10px;
}

/* Video Showcase Section */
.video-showcase {
    padding: 100px 0;
    background: #12161d;
}

.video-container {
    max-width: 900px;
}

.youtube-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    background: #1a1f2b;
    border: 1px solid rgba(255, 71, 71, 0.2);
}

.youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

/* Media Queries */
@media(min-width: 1400px) {
    .container, .features-grid-container {
        width: 1400px;
    }
    
    .hero h1 {
        font-size: 70px;
    }
    
    .grid {
        gap: 50px;
    }
}

@media(max-width: 1200px) {
    .container, .features-grid-container {
        width: 95%;
    }
    
    .hero h1 {
        font-size: 50px;
    }
}

@media(max-width: 900px) {
    body {
        background-size: cover;
    }
    
    .nav {
        padding: 15px 0;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .play {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .stats .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    nav {
        display: none;
    }
    
    .menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 40px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .buttons button {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .stat h2 {
        font-size: 32px;
    }
    
    .title {
        font-size: 28px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .feature-icon {
        font-size: 3rem;
        width: 80px;
        height: 80px;
        padding: 15px;
    }
    
    .feature-card h3 {
        font-size: 1.8rem;
    }

    .youtube-wrapper {
        padding-bottom: 56.25%;
    }
}

@media(max-width: 600px) {
    .nav {
        padding: 10px 0;
    }
    
    .logo {
        font-size: 18px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .play {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .stats .grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero {
        height: 90vh;
    }
    
    .hero h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .buttons button {
        padding: 10px 20px;
        font-size: 13px;
        width: 200px;
    }
    
    .stat h2 {
        font-size: 28px;
    }
    
    .title {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    .feature-card {
        padding: 35px 25px;
    }
    
    .feature-icon {
        font-size: 3.5rem;
        width: 90px;
        height: 90px;
        padding: 18px;
    }
    
    .feature-card h3 {
        font-size: 2rem;
    }
    
    .feature-link {
        min-width: 140px;
        padding: 10px 20px;
    }
    
    .stats, .features {
        padding: 60px 0;
    }
    
    footer {
        padding: 20px;
    }
    
    .scroll-indicator {
        font-size: 30px;
        margin-top: 30px;
    }
}