/* ================= HEADER ================= */
header {
    width: 100%;
    background: #000;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.45s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid transparent;
}

header.header-visible {
    transform: translateY(0);
}

header.header-sticky {
    border-bottom-color: #1a1a1a;
    box-shadow: 0 4px 30px rgba(0,0,0,0.6);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
}

.header-inner {
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ================= BRAND ================= */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand img {
    height: 110px;
    object-fit: contain;
}

.brand-logo-fallback {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.brand-text h1 {
    font-size: 30px;
    font-weight: 700;
    background: linear-gradient(90deg, #f3f3f3, #aeaeae);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.brand-text span {
    font-size: 13px;
    color: #777;
    letter-spacing: 0.3px;
}

/* ================= NAV ================= */
nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

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

.nav-list li {
    position: relative;
}

.nav-list a {
    text-decoration: none;
    font-size: 15px;
    background: linear-gradient(90deg, #f3f3f3, #aeaeae);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 4px;
    white-space: nowrap;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f3f3f3, #aeaeae);
    transition: width 0.3s;
}

.nav-list a:hover::after { width: 100%; }

/* ================= LEVEL 1 DROPDOWN ================= */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    background: #111;
    list-style: none;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid #222;
    border-radius: 2px;
    z-index: 100;
}

.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    position: relative;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    font-size: 14px;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(90deg, #ccc, #888);
    -webkit-background-clip: text;
    background-clip: text;
    transition: background 0.2s;
    white-space: nowrap;
}

.dropdown-menu li a::after { display: none; }

.dropdown-menu li:hover > a {
    background: linear-gradient(90deg, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Arrow for items that have submenu */
.has-sub > a .sub-arrow {
    font-size: 10px;
    -webkit-text-fill-color: #666;
    margin-left: 8px;
    transition: transform 0.3s;
    display: inline-block;
    transform: rotate(180deg);
}

.has-sub:hover > a .sub-arrow {
    -webkit-text-fill-color: #aaa;
}

/* Dropdown arrow for top level */
.dropdown > a::before {
    content: " ▾";
    font-size: 10px;
    -webkit-text-fill-color: #777;
    vertical-align: middle;
}

/* ================= LEVEL 2 SUBMENU ================= */
.sub-menu {
    position: absolute;
    top: -1px;
    left: 0;
    transform: translateX(calc(-100% - 1px));
    background: #151515;
    list-style: none;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
    z-index: 200;
}

.has-sub:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}

.sub-menu li a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(90deg, #bbb, #777);
    -webkit-background-clip: text;
    background-clip: text;
    white-space: nowrap;
}

.sub-menu li:hover > a {
    background: linear-gradient(90deg, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
}

/* ================= CONTACT BUTTON ================= */
.contact-btn {
    position: relative;
    display: inline-block;
    overflow: hidden;
    padding: 12px 28px;
    background: transparent;
    color: #ccc;
    font-size: 14px;
    letter-spacing: 0.7px;
    text-decoration: none;
    border: 1.5px solid #666;
    transition: color 0.35s ease, transform 0.25s ease;
    z-index: 1;
    white-space: nowrap;
    -webkit-text-fill-color: #ccc;
}

.contact-btn::before {
    content: "";
    position: absolute;
    top: -70%;
    left: -140%;
    width: 140%;
    height: 260%;
    background: linear-gradient(120deg, transparent 43%, rgba(255,255,255,0.8), transparent 57%);
    transform: skewX(-22deg);
    transition: left 0.65s ease;
    z-index: 2;
}

.contact-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f3f3f3, #aeaeae);
    transform: skewX(-22deg) translateX(-120%);
    transition: transform 0.65s ease;
    z-index: -1;
}

.contact-btn:hover {
    color: #000;
    -webkit-text-fill-color: #000;
    transform: translateY(-2px);
    border-color: #aaa;
}

.contact-btn:hover::before { left: 140%; }
.contact-btn:hover::after { transform: skewX(-22deg) translateX(0); }
.contact-btn:active { transform: translateY(0); }

/* ================= HAMBURGER ================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    padding: 4px;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.35s ease;
    transform-origin: center;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ================= OVERLAY ================= */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    z-index: 900;
    backdrop-filter: blur(4px);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ================= MOBILE ================= */
@media (max-width: 992px) {

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #000;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 110px 0 40px;
        gap: 0;
        transition: right 0.45s ease;
        z-index: 1000;
        border-left: 1px solid #1a1a1a;
        overflow-y: auto;
    }

    nav.active { right: 0; }

    .nav-list {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0;
    }

    .nav-list > li { width: 100%; border-bottom: 1px solid #111; }

    .nav-list a {
        display: block;
        padding: 14px 24px;
        font-size: 17px;
    }

    /* Level 1 dropdown — mobile */
    .dropdown > a::before { content: " ▾"; }
    .dropdown.active > a::before { content: " ▴"; }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: #0a0a0a;
        border: none;
        border-top: 1px solid #1a1a1a;
    }

    .dropdown.active > .dropdown-menu { display: block; }

    .dropdown-menu li a {
        padding: 12px 36px;
        font-size: 14px;
        justify-content: center;
    }

    /* Level 2 submenu — mobile */
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: #050505;
        border: none;
        border-top: 1px solid #1a1a1a;
    }

    .has-sub.active > .sub-menu { display: block; }

    .has-sub > a::before { content: " ▾"; font-size: 10px; -webkit-text-fill-color: #777; }
    .has-sub.active > a::before { content: " ▴"; }

    .sub-menu li a {
        padding: 10px 52px;
        font-size: 13px;
        text-align: center;
    }

    /* Hide right-arrow on mobile */
    .sub-arrow { display: none !important; }

    .contact-btn {
        margin-top: 28px;
        display: inline-block;
    }

    .menu-toggle { display: flex; }
    .dropdown > a::after { display: none; }
}

@media (max-width: 576px) {
    header { height: 80px; }
    .brand img, .brand-logo-fallback { height: 55px; }
    .brand-text h1 { font-size: 18px; }
    .brand-text span { font-size: 10px; }
}
