/* ===========================
   HEADER
=========================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: transparent;
    transition: all .4s ease;
}

.site-header.scrolled {
    background: rgba(5, 5, 5, .95);
    backdrop-filter: blur(20px);
    box-shadow:
        0 15px 40px rgba(0,0,0,.45);
}

/* ===========================
   CONTAINER
=========================== */

.header-container {
    height: 100px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* ===========================
   LOGO
=========================== */

.site-logo {
    flex-shrink: 0;
}

.site-logo img {
    width: 180px;
    height: auto;
    object-fit: contain;
}

/* ===========================
   NAVIGATION
=========================== */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-menu a {
    position: relative;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    transition: .3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--primary);
    transition: .3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* ===========================
   HEADER CTA
=========================== */

.header-cta {
    background: var(--primary);
    color: #000;
    padding: 14px 26px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 800;
    transition: .3s;
    white-space: nowrap;
}

.header-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===========================
   MOBILE TOGGLE
=========================== */

.menu-toggle {
    display: none;

    background: transparent;
    border: none;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 30px;
    height: 3px;

    background: var(--primary);

    margin: 6px 0;
    border-radius: 20px;

    transition: .3s;
}

/* animation */

.menu-toggle.active span:nth-child(1) {
    transform:
        rotate(45deg)
        translateY(12px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform:
        rotate(-45deg)
        translateY(-12px);
}

/* ===========================
   TABLET
=========================== */

@media(max-width:1200px) {

    .nav-menu {
        gap: 22px;
    }

    .nav-menu a {
        font-size: 13px;
    }

    .header-cta {
        padding: 12px 18px;
        font-size: 13px;
    }
}

/* ===========================
   MOBILE
=========================== */

@media(max-width:992px) {

    .menu-toggle {
        display: block;
    }

    .header-cta {
        display: none;
    }

    .nav-menu {
        position: fixed;

        top: 100px;
        left: 0;

        width: 100%;
        background: #0b0b0b;

        flex-direction: column;
        align-items: center;

        gap: 0;

        max-height: 0;
        overflow: hidden;

        transition: .5s ease;
    }

    .nav-menu.show {
        max-height: 700px;
        padding: 25px 0;
        border-top: 1px solid rgba(255,255,255,.08);
    }

    .nav-menu a {
        width: 100%;
        padding: 18px;
        text-align: center;
    }

    .nav-menu a::after {
        display: none;
    }
}

@media(max-width:768px) {

    .header-container {
        height: 85px;
    }

    .site-logo img {
        width: 150px;
    }

    .nav-menu {
        top: 85px;
    }
}