/* =========================================
   ECHELON HIGH-STATUS NAVIGATION
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&display=swap');

:root {
    --nav-height: 90px;
    --nav-height-scrolled: 70px;
    --neon-blue: #29a0ff;
    --neon-yellow: #f6d60a;
    --neon-red: #ff3b3b;
    --neon-green: #6bd400;
    --glass-bg: rgba(0, 0, 0, 0.85);
    --nav-font: 'Montserrat', sans-serif;
    --rainbow: linear-gradient(90deg, #f6d60a 0%, #29a0ff 33%, #ff3b3b 66%, #6bd400 100%);
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 2000;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0);
}

.main-header.scrolled {
    height: var(--nav-height-scrolled);
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    max-width: 1400px;
    width: 95%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    position: relative;
    z-index: 2001;
}

.header-logo img {
    height: 45px;
    width: auto;
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 0px var(--neon-blue));
}

.main-header.scrolled .header-logo img {
    height: 38px;
}

.header-logo:hover img {
    filter: drop-shadow(0 0 8px var(--neon-blue));
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-family: var(--nav-font);
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
    line-height: 1;
}

.logo-text .main-title {
    font-size: 22px;
    background: var(--rainbow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text .subtitle {
    font-size: 10px;
    font-weight: 600;
    color: #888;
    letter-spacing: 4px;
    margin-top: 4px;
    text-transform: uppercase;
}

/* NAVIGATION */
.header-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.nav-list li a {
    text-decoration: none;
    color: #fff;
    font-family: var(--nav-font);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 10px 0;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.nav-list li a:hover {
    opacity: 1;
    color: #fff;
    letter-spacing: 1.5px;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--rainbow);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-list li a:hover::after {
    width: 100%;
}

.nav-list li a.active {
    opacity: 1;
}

.nav-list li a.active::after {
    width: 100%;
}

/* CONTACT BUTTON */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-contact {
    padding: 12px 28px;
    font-family: var(--nav-font);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    text-decoration: none;
    border: 2px solid #fff;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    background: transparent;
}

.btn-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #fff;
    z-index: -1;
    transition: width 0.3s ease;
}

.btn-contact:hover {
    color: #000;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-contact:hover::before {
    width: 100%;
}

/* MOBILE TOGGLE */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2002;
}

.mobile-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

/* RESPONSIVENESS */
@media (max-width: 1100px) {
    .nav-list {
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .mobile-toggle {
        display: flex;
    }

    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #000;
        z-index: 2000;
        transition: all 0.5s cubic-bezier(0.65, 0, 0.35, 1);
        justify-content: center;
        align-items: center;
    }

    .header-nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .nav-list li a {
        font-size: 24px;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .btn-contact {
        display: none;
    }

    .header-nav.active .btn-contact {
        display: block;
        margin-top: 40px;
    }
}

/* THIN ANIMATED ACCENT LINE */
.header-accent-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--rainbow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.main-header.scrolled .header-accent-line {
    transform: scaleX(1);
}