@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700;800&display=swap');

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    color: var(--default-color);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 997;
    background-color: #ffffff;
    animation: headerDrop 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes headerDrop {
    from {
        transform: translateY(-110%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header .topbar {
    background: linear-gradient(100deg, #0d3fa6 0%, #175cdd 40%, #33b5f1 100%);
    height: 40px;
    padding: 0;
    font-size: 14px;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: height 0.5s ease, visibility 0.5s ease, opacity 0.5s ease;
    opacity: 1;
    animation: topbarReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes topbarReveal {
    from { opacity: 0; transform: translateY(-100%); }
    to   { opacity: 1; transform: translateY(0); }
}

.header .topbar .contact-info i {
    font-style: normal;
    color: var(--contrast-color);
    font-family: 'Jost', sans-serif;
}

.header .topbar .contact-info i a,
.header .topbar .contact-info i span {
    padding-left: 5px;
    color: var(--contrast-color);
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
}

@media (max-width: 575px) {
    .header .topbar .contact-info i a,
    .header .topbar .contact-info i span {
        font-size: 13px;
    }
}

.header .topbar .contact-info i a {
    line-height: 0;
    transition: opacity 0.25s ease;
    text-decoration: none;
}

.header .topbar .contact-info i a:hover {
    opacity: 0.75;
    color: var(--contrast-color);
    text-decoration: none;
}

.header .topbar .social-links a {
    color: rgba(255, 255, 255, 0.65);
    line-height: 0;
    transition: color 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-left: 20px;
    display: inline-block;
    text-decoration: none;
}

.header .topbar .social-links a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.header .branding {
    min-height: 70px;
    padding: 10px 20px;
    background-color: #ffffff;

    max-width: 100%; /* Reduce width */
    margin: 0 ; /* Center horizontally */

    border-radius: 0; /* Rounded corners */
}

.header .logo {
    line-height: 1;
    text-decoration: none;
}

.header .logo img {
    height: 48px;
    width: auto;
    max-height: none;
    object-fit: contain;
    margin-right: 8px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header .logo:hover img {
    transform: scale(1.07);
}

.header .logo h1 {
    font-family: 'Jost', sans-serif;
    font-size: 30px;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--heading-color);
    transition: color 0.3s ease;
    animation: logoReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

@keyframes logoReveal {
    from { opacity: 0; transform: translateX(-18px); filter: blur(4px); }
    to   { opacity: 1; transform: translateX(0);     filter: blur(0); }
}

.header .logo:hover h1 {
    color: var(--accent-color);
}

.scrolled .header .topbar {
    height: 0;
    visibility: hidden;
    overflow: hidden;
    opacity: 0;
}

/*--------------------------------------------------------------
# Global Header on Scroll
--------------------------------------------------------------*/
.scrolled .header {
    --background-color: #ffffff;
    box-shadow: 0 6px 32px rgba(8, 88, 236, 0.13);
}

/*--------------------------------------------------------------
# Navigation Menu — Desktop
--------------------------------------------------------------*/
@media (min-width: 1200px) {
    .navmenu {
        padding: 0;
    }

    .navmenu ul {
        margin: 0;
        padding: 0;
        display: flex;
        list-style: none;
        align-items: center;
        gap: 2px;
    }

    .navmenu li {
        position: relative;
    }

    .navmenu > ul > li {
        white-space: nowrap;
        padding: 15px 4px;
    }

    .navmenu > ul > li:last-child {
        padding-right: 0;
    }

    /* Stagger nav items on load */
    .navmenu > ul > li:nth-child(1) { animation: navItemIn 0.6s cubic-bezier(0.16,1,0.3,1) 0.55s both; }
    .navmenu > ul > li:nth-child(2) { animation: navItemIn 0.6s cubic-bezier(0.16,1,0.3,1) 0.63s both; }
    .navmenu > ul > li:nth-child(3) { animation: navItemIn 0.6s cubic-bezier(0.16,1,0.3,1) 0.71s both; }
    .navmenu > ul > li:nth-child(4) { animation: navItemIn 0.6s cubic-bezier(0.16,1,0.3,1) 0.79s both; }
    .navmenu > ul > li:nth-child(5) { animation: navItemIn 0.6s cubic-bezier(0.16,1,0.3,1) 0.87s both; }
    .navmenu > ul > li:nth-child(6) { animation: navItemIn 0.6s cubic-bezier(0.16,1,0.3,1) 0.95s both; }
    .navmenu > ul > li:nth-child(7) { animation: navItemIn 0.6s cubic-bezier(0.16,1,0.3,1) 1.03s both; }

    @keyframes navItemIn {
        from { opacity: 0; transform: translateY(-12px) scale(0.94); }
        to   { opacity: 1; transform: translateY(0)     scale(1); }
    }

    /* Nav link — highlight pill, NO underline */
    .navmenu a,
    .navmenu a:focus {
        font-family: 'Jost', sans-serif;
        color: var(--nav-color);
        font-size: 18px;
        padding: 7px 20px;
        font-weight: 600;
        letter-spacing: 0.04em;
        display: flex;
        align-items: center;
        justify-content: space-between;
        white-space: nowrap;
        border-radius: 3px;
        transition: color 0.25s ease,
                    background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                    box-shadow 0.3s ease;
        position: relative;
        text-decoration: none;
    }

    .navmenu a i,
    .navmenu a:focus i {
        font-size: 12px;
        line-height: 0;
        margin-left: 5px;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Highlight pill on hover — NO underline pseudo element */
    .navmenu li:hover > a {
        color: var(--nav-hover-color);
        background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
        box-shadow: 0 2px 14px color-mix(in srgb, var(--accent-color), transparent 80%);
    }

    .navmenu .active,
    .navmenu .active:focus {
        color: var(--accent-color);
        background-color: color-mix(in srgb, var(--accent-color), transparent 87%);
        font-weight: 600;
        box-shadow: 0 2px 14px color-mix(in srgb, var(--accent-color), transparent 80%);
    }

    /* Dropdown */
    .navmenu .dropdown ul {
        margin: 0;
        padding: 10px 8px;
        background: linear-gradient(135deg, #fbfcfd 0%, #fbfcfd 100%);
        display: block;
        position: absolute;
        visibility: hidden;
        left: 4px;
        top: 130%;
        opacity: 0;
        border-radius: 12px;
        z-index: 99;
        box-shadow: 0 20px 60px rgba(242, 243, 244, 0.25), 0 2px 8px rgba(239, 240, 243, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.12);
        transform: translateY(10px) scale(0.97);
        transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                    top 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .navmenu .dropdown ul li {
        min-width: 210px;
    }

    .navmenu .dropdown ul a {
        font-family: 'Jost', sans-serif;
        padding: 9px 14px;
        font-size: 14.5px;
        font-weight: 500;
        letter-spacing: 0.02em;
        text-transform: none;
        color: #ffffff;
        border-radius: 7px;
        transition: color 0.2s ease,
                    background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        text-decoration: none;
    }

    .navmenu .dropdown ul a i {
        font-size: 12px;
    }

    /* Dropdown highlight — NO underline */
    .navmenu .dropdown ul a:hover,
    .navmenu .dropdown ul .active:hover,
    .navmenu .dropdown ul li:hover > a {
        color: #ffffff;
        background-color: rgba(255, 255, 255, 0.15);
    }

    .navmenu .dropdown:hover > ul {
        opacity: 1;
        top: 100%;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .navmenu .dropdown .dropdown ul {
        top: 0;
        left: -90%;
        visibility: hidden;
        transform: translateX(10px) scale(0.97);
    }

    .navmenu .dropdown .dropdown:hover > ul {
        opacity: 1;
        top: 0;
        left: -100%;
        visibility: visible;
        transform: translateX(0) scale(1);
    }
}

/*--------------------------------------------------------------
# Navigation Menu — Mobile
--------------------------------------------------------------*/
@media (max-width: 1199px) {
    .mobile-nav-toggle {
        color: var(--nav-color);
        font-size: 28px;
        line-height: 0;
        margin-right: 10px;
        cursor: pointer;
        transition: color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .mobile-nav-toggle:hover {
        transform: scale(1.12);
        color: var(--accent-color);
    }

    .navmenu {
        padding: 0;
        z-index: 9997;
    }

    .navmenu ul {
        display: none;
        list-style: none;
        position: absolute;
        inset: 60px 20px 20px 20px;
        padding: 10px 8px;
        margin: 0;
        border-radius: 14px;
        background-color: var(--nav-mobile-background-color);
        border: 1px solid color-mix(in srgb, var(--accent-color), transparent 88%);
        box-shadow: 0 20px 60px rgba(17, 35, 68, 0.15);
        overflow-y: auto;
        transition: 0.3s;
        z-index: 9998;
    }

    .navmenu a,
    .navmenu a:focus {
        font-family: 'Jost', sans-serif;
        color: var(--nav-dropdown-color);
        padding: 11px 16px;
        font-size: 16px;
        font-weight: 500;
        letter-spacing: 0.03em;
        display: flex;
        align-items: center;
        justify-content: space-between;
        white-space: nowrap;
        border-radius: 8px;
        transition: color 0.25s ease,
                    background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        text-decoration: none;
    }

    /* Mobile highlight pill — NO underline */
    .navmenu a:hover,
    .navmenu .active,
    .navmenu .active:focus {
        color: var(--accent-color);
        background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    }

    .navmenu a i,
    .navmenu a:focus i {
        font-size: 12px;
        line-height: 0;
        margin-left: 5px;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    }

    .navmenu a i:hover,
    .navmenu a:focus i:hover {
        background-color: var(--accent-color);
        color: var(--contrast-color);
    }

    .navmenu a:hover,
    .navmenu .active,
    .navmenu .active:focus {
        color: var(--nav-dropdown-hover-color);
    }

    .navmenu .active i,
    .navmenu .active:focus i {
        background-color: var(--accent-color);
        color: var(--contrast-color);
        transform: rotate(180deg);
    }

    .navmenu .dropdown ul {
        position: static;
        display: none;
        z-index: 99;
        padding: 8px;
        margin: 6px 12px;
        background-color: var(--nav-dropdown-background-color);
        border-radius: 8px;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .navmenu .dropdown ul ul {
        background-color: rgba(33, 37, 41, 0.05);
    }

    .navmenu .dropdown > .dropdown-active {
        display: block;
        background-color: rgba(33, 37, 41, 0.02);
    }

    .mobile-nav-active {
        overflow: hidden;
    }

    .mobile-nav-active .mobile-nav-toggle {
        color: #fff;
        position: absolute;
        font-size: 32px;
        top: 15px;
        right: 15px;
        margin-right: 0;
        z-index: 9999;
    }

    .mobile-nav-active .navmenu {
        position: fixed;
        overflow: hidden;
        inset: 0;
        background: rgba(11, 28, 60, 0.82);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        transition: 0.3s;
    }

    .mobile-nav-active .navmenu > ul {
        display: block;
    }
}
@media (max-width: 1199px) {

    body:not(.mobile-nav-active) {
        overflow-y: auto !important;
        position: static !important;
    }

    .mobile-nav-active {
        overflow: hidden;
    }

}
@media (max-width: 768px) {

    .header .branding {
        min-height: 65px;
        padding: 8px 15px;
    }

    .header .logo {
        display: flex !important;
        align-items: center;
        z-index: 9999;
    }

    .header .logo img {
        display: block !important;
        height: 40px !important;
        width: auto !important;
        max-width: 180px;
        visibility: visible !important;
        opacity: 1 !important;
    }

}
body.mobile-nav-active {
    overflow: hidden;
}

body:not(.mobile-nav-active) {
    overflow-y: auto !important;
}