/* ==========================================================================
   NAVBAR
   ========================================================================== */

.main-header {
    width: 100%;
    padding: 14px 5%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(5, 12, 27, 0.84);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: padding 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease;
}

.main-header.shrink {
    padding: 8px 5%;
    background: rgba(5, 11, 23, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.logo:hover {
    transform: scale(1.02);
    filter: brightness(1.14);
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar ul li a {
    color: #f0f4ff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
    transition: color 0.22s ease, background-color 0.22s ease;
}

.navbar ul li a:hover {
    color: #26d6e9;
    background: rgba(255, 255, 255, 0.08);
}

.btn-contact {
    display: inline-block;
    border-radius: 999px;
    padding: 9px 16px;
    font-weight: 700;
    background: linear-gradient(120deg, #2b6fff, #26d6e9);
    color: #fff !important;
    border: none;
    white-space: nowrap;
}

.btn-contact:hover {
    filter: brightness(1.08);
    background: linear-gradient(120deg, #2b6fff, #26d6e9) !important;
}

.mobile-menu-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-icon span {
    width: 100%;
    height: 2px;
    border-radius: 8px;
    background-color: #ffffff;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-icon.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-icon.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-icon.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 900px) {
    .mobile-menu-icon {
        display: flex;
    }

    .navbar {
        position: absolute;
        top: 76px;
        right: 5%;
        width: min(290px, 88vw);
        border-radius: 14px;
        padding: 12px;
        background: rgba(7, 16, 35, 0.97);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar ul {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .navbar ul li a {
        display: block;
        width: 100%;
    }
}