/*
Theme Name: BadlandZ
Author: BadlandZ
Version: 1.3
*/

/* ========================= */
/* RESET */
/* ========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    background: #000;
    color: white;
    animation: badlandFade 0.8s ease forwards;
    opacity: 0;
}

@keyframes badlandFade {
    to {
        opacity: 1;
    }
}


/* ========================= */
/* LAYOUT BASE */
/* ========================= */

.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 20px 80px;
    background: url('../assets/img/hero.png') center 42% / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

.content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


/* ========================= */
/* NAVBAR */
/* ========================= */

.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 30px clamp(20px, 6vw, 120px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.nav-logo img {
    height: clamp(55px, 5vw, 80px);
    width: auto;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-logo a:hover img {
    transform: scale(1.05);
    filter:
        drop-shadow(0 0 10px rgba(255, 0, 0, 0.6))
        drop-shadow(0 0 20px rgba(255, 0, 0, 0.4));
}

.navbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.navbar nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.navbar nav a:hover {
    color: #ff1a1a;
    text-shadow:
        0 0 8px rgba(255, 0, 0, 0.6),
        0 0 16px rgba(255, 0, 0, 0.4);
}


/* ========================= */
/* HERO CONTENT */
/* ========================= */

.tagline {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    margin-bottom: 20px;
    opacity: 0.9;
}

.logo {
    width: min(90%, 900px);
    height: auto;
    margin-bottom: 20px;
    filter:
        drop-shadow(0 15px 40px rgba(0, 0, 0, 0.8))
        drop-shadow(0 0 15px rgba(255, 0, 0, 0.25));
}


/* ========================= */
/* SERVER WIDGET */
/* ========================= */

.server-widget {
    position: absolute;
    bottom: 25px;
    right: clamp(15px, 4vw, 40px);
    z-index: 3;
}

.server-widget img {
    max-width: 100%;
    height: auto;
    padding: 6px 8px;
}


/* ========================= */
/* RESPONSIVE */
/* ========================= */

/* Tablet */

@media (max-width: 1024px) {

    .hero {
        background-position: center 35%;
    }

    .navbar {
        padding: 20px 30px;
    }

    .server-widget {
        bottom: 20px;
    }
}


/* ========================= */
/* MOBILE – ACCESSIBLE LAYOUT */
/* ========================= */

@media (max-width: 768px) {

    .navbar {
        position: absolute;
        width: 100%;
        padding: 18px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.85),
            rgba(0,0,0,0.5)
        );
    }

    .nav-logo img {
        height: 45px;
    }

    .navbar nav {
        display: flex;
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar nav a {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .hero {
        min-height: 100vh;
        padding: 40px 20px 60px;
        padding-top: 120px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        background-position: center 32%;
    }

    .hero::before {
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.85) 0%,
            rgba(0,0,0,0.6) 40%,
            rgba(0,0,0,0.5) 100%
        );
    }

    .content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 22px;
        width: 100%;
        max-width: 420px;
        z-index: 2;
    }

    .logo {
        width: 100%;
        max-width: 360px;
    }

    /* neutraliza el absoluto en móvil */

    .server-widget {
        position: relative;
        bottom: auto;
        right: auto;
        left: auto;
        width: 100%;
        display: flex;
        justify-content: center;
        padding-bottom: 40px;
    }

    .server-widget img {
        display: block;
        width: auto;
        max-width: 320px;
        height: auto;
    }
}


/* ========================= */
/* BADLANDZ CUSTOM SCROLLBAR */
/* ========================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        to bottom,
        #5a0000,
        #a10000
    );
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(255,0,0,0.35);
}

::-webkit-scrollbar-thumb:hover {
    background: #ff1a1a;
    box-shadow: 0 0 14px rgba(255,0,0,0.7);
}

/* Firefox */

* {
    scrollbar-width: thin;
    scrollbar-color: #a10000 #0a0a0a;
}