/* ─────────────── HEADER & NAVIGATION ─────────────── */

#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

/* ── Top Bar ── */
.top-bar {
    height: 56px;
    min-height: 56px;
    background: #040710;
    border-bottom: 1px solid rgba(0, 200, 224, 0.12);
    display: flex;
    align-items: center;
    transition: height 0.35s ease, opacity 0.35s ease, min-height 0.35s ease;
}

.top-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 36px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b82a0;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.top-item svg {
    width: 15px;
    height: 15px;
    stroke: var(--cyan);
    flex-shrink: 0;
}

.top-item:hover {
    color: #fff;
}

.top-sep {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.top-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #3d5070;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-link svg {
    width: 15px;
    height: 15px;
}

/* Instagram – gradient pink/purple */
.social-link[title="Instagram"] {
    color: #C13584;
    border-color: rgba(193, 53, 132, 0.2);
}

.social-link[title="Instagram"]:hover {
    background: rgba(193, 53, 132, 0.15);
    border-color: #C13584;
    box-shadow: 0 0 12px rgba(193, 53, 132, 0.35);
    transform: translateY(-2px) scale(1.1);
}

/* Facebook – blue */
.social-link[title="Facebook"] {
    color: #1877F2;
    border-color: rgba(24, 119, 242, 0.2);
}

.social-link[title="Facebook"]:hover {
    background: rgba(24, 119, 242, 0.15);
    border-color: #1877F2;
    box-shadow: 0 0 12px rgba(24, 119, 242, 0.35);
    transform: translateY(-2px) scale(1.1);
}

/* LinkedIn – professional blue */
.social-link[title="LinkedIn"] {
    color: #0A66C2;
    border-color: rgba(10, 102, 194, 0.2);
}

.social-link[title="LinkedIn"]:hover {
    background: rgba(10, 102, 194, 0.15);
    border-color: #0A66C2;
    box-shadow: 0 0 12px rgba(10, 102, 194, 0.35);
    transform: translateY(-2px) scale(1.1);
}

/* Twitter/X – white */
.social-link[title="Twitter / X"] {
    color: #e7e9ea;
    border-color: rgba(231, 233, 234, 0.15);
}

.social-link[title="Twitter / X"]:hover {
    background: rgba(231, 233, 234, 0.1);
    border-color: rgba(231, 233, 234, 0.5);
    box-shadow: 0 0 12px rgba(231, 233, 234, 0.2);
    transform: translateY(-2px) scale(1.1);
}

/* ── Nav base ── */
#nav {
    height: 88px;
    background: rgba(8, 12, 22, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Scroll state: top bar slides away, nav gets glass effect */
#header.scrolled .top-bar {
    height: 0;
    min-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

#header.scrolled #nav {
    height: 72px;
    background: rgba(8, 12, 22, 0.92);
    backdrop-filter: blur(24px) saturate(2);
    -webkit-backdrop-filter: blur(24px) saturate(2);
    border-bottom: 1px solid rgba(0, 200, 224, 0.1);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

@media(max-width: 900px) {
    .top-bar {
        display: none !important;
    }

    #nav {
        height: 74px !important;
    }

    :root {
        --top-h: 0px;
        --nav-h: 74px;
    }
}

.nav-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 36px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

@media(max-width:640px) {
    .nav-wrap {
        padding: 0 20px;
    }
}

/* ── Logo Premium Animation ── */
@keyframes premium-shine {
    0% {
        left: -150%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    35% {
        left: 150%;
        opacity: 1;
    }

    45% {
        left: 150%;
        opacity: 0;
    }

    100% {
        left: 150%;
        opacity: 0;
    }
}

@keyframes logo-surface {

    0%,
    10% {
        filter: brightness(1) drop-shadow(0 0 0 rgba(0, 200, 224, 0));
    }

    22% {
        filter: brightness(1.15) drop-shadow(0 0 15px rgba(0, 200, 224, 0.3));
    }

    40%,
    100% {
        filter: brightness(1) drop-shadow(0 0 0 rgba(0, 200, 224, 0));
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    overflow: hidden;
    padding: 8px 15px;
    margin: -8px -15px;
    border-radius: 14px;
}

.nav-logo img {
    height: 60px;
    display: block;
    transition: height 0.4s ease;
    position: relative;
    z-index: 2;
    animation: logo-surface 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

#header.scrolled .nav-logo img {
    height: 48px;
}

.nav-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 120%;
    height: 100%;
    background: linear-gradient(100deg,
            transparent 20%,
            rgba(0, 200, 224, 0.05) 35%,
            rgba(255, 255, 255, 0.6) 48%,
            rgba(0, 200, 224, 0.4) 50%,
            rgba(0, 200, 224, 0.05) 65%,
            transparent 80%);
    transform: skewX(-20deg);
    z-index: 3;
    animation: premium-shine 4s cubic-bezier(0.3, 0.1, 0.3, 1) infinite;
    filter: blur(2px);
    pointer-events: none;
}

@keyframes logo-reveal {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nav-logo {
    animation: logo-reveal 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* ── Desktop menu ── */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

@media(max-width:1000px) {
    .nav-menu {
        display: none;
    }
}

.nav-menu>li {
    position: relative;
}

.nav-menu>li>a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text2);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    position: relative;
}

.nav-menu>li>a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--cyan);
    border-radius: 99px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
}

.nav-menu>li>a:hover,
.nav-menu>li.has-open>a {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.nav-menu>li>a:hover::after,
.nav-menu>li.active>a::after {
    transform: scaleX(1);
}

.nav-menu>li.active>a {
    color: var(--cyan);
}

.nav-chev {
    width: 14px;
    height: 14px;
    opacity: 0.5;
    transition: transform 0.25s, opacity 0.2s;
    flex-shrink: 0;
}

.nav-menu>li.has-open .nav-chev,
.nav-menu>li:hover .nav-chev {
    transform: rotate(180deg);
    opacity: 1;
}

/* ── Mega Dropdown ── */
.mega-drop {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #0D1426;
    border: 1px solid rgba(0, 200, 224, 0.15);
    border-radius: 20px;
    padding: 10px;
    min-width: 650px;
    padding-top: 10px;
    margin-top: 10px;
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 0 60px rgba(0, 200, 224, 0.05);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 600;
}

.mega-drop::after {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.mega-drop::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: #0D1426;
    border-top: 1px solid rgba(0, 200, 224, 0.15);
    border-left: 1px solid rgba(0, 200, 224, 0.15);
}

.nav-menu>li:hover .mega-drop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-inner {
    display: grid;
    gap: 10px;
}

.mega-inner.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.mega-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 15px;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text2);
    transition: all 0.22s;
    cursor: pointer;
}

.mega-item:hover {
    background: rgba(0, 200, 224, 0.08);
    color: var(--white);
}

.mega-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    transition: all 0.22s;
}

.mega-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--white);
    display: block;
    margin-bottom: 4px;
    line-height: 1.2;
}

.mega-sub {
    font-size: 0.77rem;
    color: var(--text3);
    line-height: 1.4;
    display: block;
}

.mega-arr {
    color: var(--cyan);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s;
    align-self: center;
}

.mega-item:hover .mega-arr {
    opacity: 1;
    transform: translateX(0);
}

/* ── Mini Dropdown ── */
.mini-drop {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #0D1426;
    border: 1px solid rgba(0, 200, 224, 0.15);
    border-radius: 18px;
    padding: 10px;
    min-width: 280px;
    margin-top: 10px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 600;
}

.mini-drop::after {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.mini-drop::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: #0D1426;
    border-top: 1px solid rgba(0, 200, 224, 0.15);
    border-left: 1px solid rgba(0, 200, 224, 0.15);
}

.nav-menu>li:hover .mini-drop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mini-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text2);
    transition: all 0.2s;
}

.mini-item:hover {
    background: rgba(0, 200, 224, 0.08);
    color: var(--white);
}

.mini-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}

.mini-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
}

/* ── Nav right ── */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--cyan2), var(--cyan));
    color: var(--navy);
    transition: all 0.4s;
    box-shadow: 0 8px 25px rgba(0, 200, 224, 0.25);
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    text-decoration: none;
}

.btn-nav:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 200, 224, 0.45);
}

/* ── Hamburger ── */
.nav-ham {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    padding: 12px 14px;
    transition: all 0.3s;
}

.nav-ham:hover {
    border-color: var(--cyan);
    background: rgba(0, 200, 224, 0.05);
}

.nav-ham span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 99px;
    transition: all 0.3s;
}

.nav-ham.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-ham.open span:nth-child(2) {
    opacity: 0;
}

.nav-ham.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media(max-width:1000px) {
    .nav-ham {
        display: flex;
    }
}

/* ── Mobile drawer ── */
.mob-drawer {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: var(--navy2);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 110px 24px 40px;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow-y: auto;
}

.mob-drawer.open {
    transform: translateX(0);
}

.mob-links {
    list-style: none;
}

.mob-links li {
    border-bottom: 1px solid var(--border);
}

.mob-links li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text2);
    text-decoration: none;
    transition: color 0.2s;
}

.mob-links li a:hover {
    color: var(--cyan);
}

.mob-sub {
    padding: 4px 0 12px 20px;
    display: none;
}

.mob-sub.open {
    display: block;
}

.mob-sub a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text3);
    border-bottom: none !important;
    font-weight: 600;
}

.mob-sub a:hover {
    color: var(--cyan);
}

.mob-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}

.mob-btn-tel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text2);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
}

.mob-btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: 16px;
    color: #25D366;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
}