

:root {
    --navy:          #0f2a4f;   
    --body-blue:     #d6eaff;    
    --accent-blue:   #2d79ba;    
    --pink-logout:   #ff9ec6;    
    --anim-speed:    0.3s;      
    --bar-width:     28px;      
    --bar-height:    3px;       
    --bar-gap:       5px;       
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--navy);
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 30px rgba(15, 42, 79, 0.3);
    z-index: 1000;
}

.nav-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 85px;
    padding: 0 40px;
    box-sizing: border-box;
}


.logo {
    position: relative;
    display: block;
    width: 28%;
    max-width: 100%;
}


.nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.nav-menu li a {
    position: relative;
    display: inline-block;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    text-decoration: none;
    padding-bottom: 4px;
    transition: color 0.2s ease, transform 0.2s ease;
}

/* Hovered link turns soft pink and lifts slightly (underline grows below) */
.nav-menu li a:hover,
.nav-menu li a:focus-visible {
    color: #ffc6de;
    transform: translateY(-2px);
}

.nav-menu li a:focus-visible::after {
    width: 100%;
}

/* Logo: gentle grow on hover */
.logo,
.sidebar-logo {
    transition: transform 0.25s ease;
}

.logo-container a:hover .logo {
    transform: scale(1.04);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--pink-logout);
    transform: translateX(-50%);
    transition: width var(--anim-speed) ease;
}

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


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

/* "Build Now" — the main call to action, a cream pill like the Home page button */
.nav-build {
    display: inline-flex;
    align-items: center;
    padding: 9px 22px;
    border-radius: 999px;
    background-color: #FCF5BE;
    color: #1c2b4b;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-build:hover,
.nav-build:focus-visible {
    background-color: #a7c7e7;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(167, 199, 231, 0.45);
}

/* Small laptops / tablets: tighter links so they don't run into Build Now */
@media (min-width: 769px) and (max-width: 1023px) {
    .nav-menu { gap: 20px; }
    .nav-menu li a { font-size: 0.95rem; }
    .nav-build { padding: 7px 14px; font-size: 0.82rem; }
}

/* Highlighted first item in the mobile menu */
.nav-item.nav-item--build {
    color: #FCF5BE;
    background: rgba(252, 245, 190, 0.1);
    padding-left: 12px;
    padding-right: 12px;
}

.nav-item.nav-item--build .nav-icon {
    filter: none;   /* keep the cream sparkle colour */
}

.nav-item.nav-item--build:hover,
.nav-item.nav-item--build:focus-visible {
    color: #FCF5BE;
    background: rgba(252, 245, 190, 0.18);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}


.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
    transform: scale(1.1);
}

.icon-btn img {
    width: 35px;
    height: 35px;
}


.hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--bar-gap);
    position: fixed;
    top: 24px;
    right: 16px;
    z-index: 3001;
    width: 44px;
    height: 44px;
    background: rgba(255, 158, 198, 0);
    border: none;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    transition: all var(--anim-speed) ease-in-out, background var(--anim-speed) ease;
}

.hamburger:hover {
    background: rgba(255, 158, 198, 0.18);
}

.hamburger .bar {
    display: block;
    width: var(--bar-width);
    height: var(--bar-height);
    background-color: #ffffff;
    border-radius: 10px;
    transition: all var(--anim-speed) ease-in-out;
}

.hamburger.open .bar:nth-child(1) {
    transform: translateY(calc(var(--bar-gap) + var(--bar-height))) rotate(45deg);
}

.hamburger.open .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open .bar:nth-child(3) {
    transform: translateY(calc(-1 * (var(--bar-gap) + var(--bar-height)))) rotate(-45deg);
}



.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 18, 40, 0.45);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--anim-speed) ease, visibility 0s linear var(--anim-speed);
    z-index: 1990;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity var(--anim-speed) ease;
}

body.menu-open {
    overflow: hidden;
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
    height: 120px;
    width: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: rgba(7, 18, 40, 0.98);
    border-radius: 0 24px 24px 0;
    box-shadow: none; /* shadow only while open — otherwise it bleeds onto the page edge */
    z-index: 2000;
    transition: right var(--anim-speed) ease-in-out, transform var(--anim-speed) ease-in-out;
    transform: translateX(0);
}

.mobile-sidebar.active {
    right: 0;
    transform: translateX(0);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 24px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 0;
    text-decoration: none;
    color: #b6b6b6;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: 16px;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.08);
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

/* Hovered item lights up and nudges right (instead of fading out) */
.nav-item:hover,
.nav-item:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(6px);
}

.nav-item .nav-icon {
    transition: transform 0.2s ease;
}

.nav-item:hover .nav-icon,
.nav-item:focus-visible .nav-icon {
    transform: scale(1.15);
}

.nav-icon {
    width: 24px;
    margin-right: 20px;
    flex-shrink: 0;
    filter: invert(1) brightness(1.8);
}

.sidebar-footer {
    margin-top: auto;
    padding: 0 24px;
}

.dark-mode-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    margin-top: 20px;
}

.dark-mode-label {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}


.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
    margin-left: auto;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    background-color: #cccccc;
    border-radius: 34px;
    cursor: pointer;
    transition: background-color 0.4s ease;
}

.slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.switch input:checked + .slider {
    background-color: var(--accent-blue);
}

.switch input:checked + .slider::before {
    transform: translateX(22px);
}


@media (max-width: 768px) {

    
    .nav-menu {
        display: none;
    }

    
    .navbar {
        border-radius: 0  0 25px 25px;
    }

    
    .logo-container {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        width: auto;
        max-width: 100%;
        height: 100px;
    }

    .logo-container a {
        display: flex;
        align-items: center;
        height: 100%;
    }

    .logo {
        width: auto;
        height: 100%;
        max-width: 100%;
        object-fit: contain;
        object-position: left center;
    }

    
    .nav-right {
        gap: 0;
    }

    /* Phones: Build Now lives in the menu instead (first, highlighted) */
    .nav-build {
        display: none;
    }


    .nav-icons {
        gap: 10px;
        transform: translate(-55%, 4%);
    }

    .icon-btn img {
        width: 28px;
        height: 28px;
    }

    
    .hamburger {
        display: flex;
    }

}
