/* ========================= */
/* NAVBAR BASE */
/* ========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #0a0a0a;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 0, 0, 0.2);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========================= */
/* LOGO */
/* ========================= */

.logo {
    text-decoration: none;
}

.logo h1 {
    font-family: Arial, sans-serif;
    font-size: 1.8rem;
    margin: 0;
    letter-spacing: 1px;

    background: linear-gradient(45deg,
            #ffffff 0%,
            #ff2b2b 45%);

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================= */
/* LINKS DESKTOP */
/* ========================= */

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links li {
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: #ccc;
    font-size: 1rem;
    font-weight: 500;
    transition: 0.2s;
}

.nav-links li a:hover {
    color: #fff;
}

/* ========================= */
/* BOTÃO */
/* ========================= */

.btn-nav {
    padding: 10px 18px;
    background-color: #ff0000;
    color: #fff;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-nav:hover {
    background-color: #cc0000;
}

/* ========================= */
/* ELEMENTOS MOBILE */
/* ========================= */

.mobile-menu-header,
.mobile-menu-footer,
.mobile-menu-icon {
    display: none;
}

/* ========================= */
/* HAMBURGER */
/* ========================= */

.mobile-menu-icon {
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-icon span {
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* ========================= */
/* RESPONSIVO */
/* ========================= */

@media (max-width: 992px) {

    .navbar-container {
        justify-content: space-between;
    }

    .btn-desktop {
        display: none;
    }

    .mobile-menu-icon {
        display: flex;
    }

    .mobile-menu-header,
    .mobile-menu-footer {
        display: flex;
        width: 100%;
    }

    .mobile-menu-header {
        margin-bottom: 30px;
    }

    .mobile-menu-header h2 {
        font-size: 2rem;
        background: linear-gradient(45deg,
                #ffffff 0%,
                #ff2b2b 45%);

        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .mobile-menu-footer {
        margin-top: 30px;
    }

    .mobile-menu-footer .btn-nav {
        width: 100%;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: #0a0a0a;

        flex-direction: column;
        align-items: flex-start;

        padding: 90px 30px;

        gap: 20px;

        transition: right 0.4s ease;
        z-index: 1050;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        font-size: 1rem;
        color: #fff;
        width: 100%;
        display: block;
    }
}

/* ========================= */
/* ANIMAÇÃO X */
/* ========================= */

.mobile-menu-icon.toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-icon.toggle span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-icon.toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}