/* =========================================================
   HEADER.CSS — Full Header + Navbar + Dropdown Styling
   Sixmoons Corporate Theme
========================================================= */

/* ---------------------------------------------------------
   MAIN HEADER
--------------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: all 0.3s ease;
    background: transparent;
}

.header-inner {
    padding: 18px 0;
    transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

/* Header becomes white on scroll */
.main-header.scrolled .header-inner {
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    padding: 10px 0;
}

/* Brand */
.navbar-brand img {
    height: 75px !important;
    width: auto;
    object-fit: cover;
}


/* ---------------------------------------------------------
   NAVBAR LINKS
--------------------------------------------------------- */
.cool-link {
    position: relative;
    font-weight: 600;
    color: var(--sm-blue-dark) !important;
    font-size: 15px;
}

/* Hover underline */
.cool-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--sm-blue), var(--sm-gold));
    transition: width 0.25s ease;
}

.cool-link:hover::after {
    width: 100%;
}

/* ---------------------------------------------------------
   TRANSPARENT HEADER (HERO OVERLAY MODE)
--------------------------------------------------------- */
.main-header:not(.scrolled) .navbar,
.main-header:not(.scrolled) .header-inner {
    background: transparent !important;
    box-shadow: none;
}

.main-header:not(.scrolled) .cool-link,
.main-header:not(.scrolled) .brand-text {
    color: #ffffff !important;
}

/* ---------------------------------------------------------
   DESKTOP DROPDOWN (3D EXPAND)
--------------------------------------------------------- */
.threeD-menu {
    opacity: 0;
    visibility: hidden;
    transform-origin: top;
    transform: perspective(600px) rotateX(-15deg) scale(0.92);
    transition: all 0.28s ease;
    border-radius: 14px;
    padding: 12px 0;
    border: 1px solid #e5e7eb;
    box-shadow: 0 25px 45px rgba(0,0,0,0.18);
    background: #ffffff;
    min-width: 240px;
}

.threeD-dropdown:hover .threeD-menu {
    opacity: 1;
    visibility: visible;
    transform: perspective(600px) rotateX(0deg) scale(1);
}

.threeD-menu .dropdown-item {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--sm-blue-dark);
    transition: 0.25s ease;
    position: relative;
}

/* Left blue bar */
.threeD-menu .dropdown-item:hover {
    padding-left: 28px;
    background: #eef4ff;
    color: #0056d1;
}

.threeD-menu .dropdown-item:hover::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: #0056d1;
    border-radius: 10px;
}

/* Transparent menu for hero */
.main-header:not(.scrolled) .threeD-menu {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(6px);
    box-shadow: 0 22px 40px rgba(0,0,0,0.25);
}

/* Remove Bootstrap arrow */
.dropdown-toggle::after {
    display: none !important;
}

/* ---------------------------------------------------------
   ARROW ROTATION
--------------------------------------------------------- */
.arrow-animate {
    display: inline-flex;
    transition: transform 0.25s ease;
}
.threeD-dropdown.show .arrow-animate {
    transform: rotate(180deg);
}

/* ---------------------------------------------------------
   MOBILE / TABLET NAVIGATION
--------------------------------------------------------- */
@media (max-width: 991.98px) {

    /* Mobile menu wrapper */
    .navbar-collapse {
        background: linear-gradient(135deg, #0b3e8e, #1c64d6);
        padding: 18px 20px;
        border-radius: 14px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        border: 1px solid rgba(255,255,255,0.2);
    }

    /* Mobile links */
    .navbar-nav .nav-link {
        color: #ffffff !important;
        font-weight: 600;
        font-size: 16px;
        padding: 12px 10px;
    }

    /* Arrow */
    .navbar-nav .dropdown-toggle .arrow-animate svg {
        stroke: #ffffff !important;
    }

    /* Dropdown on mobile */
    .threeD-menu {
        background: rgba(255,255,255,0.08) !important;
        border: 1px solid rgba(255,255,255,0.25) !important;
        backdrop-filter: blur(10px);
        border-radius: 18px !important;
        box-shadow: 0 14px 40px rgba(0,0,0,0.25) !important;
    }

    .threeD-menu .dropdown-item {
        color: #ffffff !important;
        opacity: 0.9;
    }

    .threeD-menu .dropdown-item:hover {
        background: rgba(255,255,255,0.15) !important;
        padding-left: 28px;
        color: #ffffff !important;
        opacity: 1;
    }

    .threeD-menu .dropdown-item:hover::before {
        background: #ffffff !important;
    }

    /* Force full opacity for header on mobile */
    .main-header {
        background: #ffffff;
    }
    .main-header .cool-link,
    .main-header .brand-text {
        color: var(--sm-blue-dark) !important;
    }
}
