@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
@import url('/css/fonts/FontAwesome/css/fontawesome.css');
@import url('/css/fonts/FontAwesome/css/brands.css');
@import url('/css/fonts/FontAwesome/css/solid.css');

header {
    width: 93%;
    height: 40pt;
    background: rgba(200, 200, 200, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0px 1px 6px #00000029, 0px 3px 6px #00000029;
    border: 1px solid rgba(238, 238, 238, 0.47);
    border-radius: 49px;
    opacity: 1;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    top: 1.2%;
    position: fixed;
    padding: 5pt 0 0 0;
    left: 50%;
    transform: translate(-50%, 20%);
    text-align: center;
    z-index: 1000;
}

.navlogo {
    color: #cdcccd;
    width: 45pt;
    margin: 0 20pt 0 20pt;
}

.mobLogo {
    display: none;
    position: static;
    left: auto;
    transform: none;
}

.nav {
    display: flex;
    align-items: center;
    width: 100%;
}

.nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

.btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    z-index: 1;
    opacity: 0;
    margin: 0;
    padding: 0;
    pointer-events: auto;
}

.btn::before {
    display: none;
}

.nav ul li {
    margin: 1em;
}

.nav ul li a {
    text-decoration: none;
    padding: 0.2em 1.2em 0.9em 1.2em;
    border-radius: 10px 10px 0 0;
    color: #cdcccd;
    transition: all 0.6s;
    position: relative;
    z-index: 2;
}

.nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 46px;
    border-radius: 2pt 2pt 2pt 2pt;
    transform-origin: bottom;
    background-image: linear-gradient(166deg, rgba(174, 174, 174, 0.6) 32%, rgba(179, 179, 179, 0.65) 63%, rgba(230, 230, 230, 0.7) 89%);
    transform: scaleY(0.05);
    z-index: -1;
    transition: all 0.4s;
    animation: ease 0.4s;
    inset: 1px;
    box-shadow: inset 0px 1px 6px #00000029, 0px 3px 6px #00000029;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: rgba(205, 204, 205, 0.6);
}

.nav ul li a:hover::before {
    transform: scaleY(1.32);
    opacity: 1;
}

.nav ul li a:hover {
    color: black;
}

.btn:active {
    transform: translateY(-50%) scale(0.95);
}

input:checked ~ .expand-text {
    color: rgba(240, 240, 240, 0.9);
    opacity: 1;
}

@media (max-width: 850px) {
    .mobLogo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
        cursor: default;
        height: 100%;
        display: flex;
        align-items: center;
        transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
        pointer-events: none;
    }

    .navlogo {
        width: 35pt;
        height: 35pt;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .nav-container {
        position: relative;
        width: 60%;
        height: 40pt;
        margin-top: 1.2%;
        background: rgba(159, 159, 159, 0.51);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(238, 238, 238, 0.47);
        border-radius: 49px;
        transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
        transform-origin: center;
        will-change: transform, height, width;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: visible;
        z-index: 0;
    }

    .nav-buttons {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 10px;
        padding: 30px 0;
        transform: translateY(-20px) scale(0.95);
        transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
        transition-delay: 0.1s;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        will-change: transform, opacity;
        opacity: 0;
        pointer-events: none;
        height: 100%;
        margin: 0 auto;
    }

    .nav-button {
        display: flex;
        align-items: center;
        padding: 12px 20px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        color: #F0F0F0;
        text-decoration: none;
        transform: translateY(20px) scale(0.95);
        transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
        transition-delay: calc(0.05s * var(--i, 0));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        min-width: 120px;
        justify-content: center;
        will-change: transform, opacity;
        gap: 8px;
        margin: 5px;
        opacity: 0;
    }

    input:checked ~ .nav-buttons .nav-button {
        transform: translateY(0) scale(1);
        opacity: 1;
        transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .nav-button:nth-child(1) { --i: 1; }
    .nav-button:nth-child(2) { --i: 2; }
    .nav-button:nth-child(3) { --i: 3; }
    .nav-button:nth-child(4) { --i: 4; }
    .nav-button:nth-child(5) { --i: 5; }

    .nav-button:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px) scale(1.02);
        color: #FDC401;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .nav-button:active {
        transform: translateY(0) scale(0.98);
        transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .button-icon {
        font-size: 1.2em;
        width: 20px;
        text-align: center;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        transform: scale(0.9);
    }

    .nav-button:hover .button-icon {
        transform: scale(1.1) rotate(5deg);
    }

    .expand-text {
        position: absolute;
        right: 60px;
        top: 50%;
        transform: translateY(-50%);
        color: rgba(240, 240, 240, 0.7);
        font-size: 0.8em;
        font-weight: 500;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        pointer-events: none;
        opacity: 0.7;
        z-index: 2;
    }

    .btn:active ~ .nav-container,
    .nav-container:active {
        transform: scale(0.98);
        transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .btn:active ~ .expand-text,
    .nav-container:active .expand-text {
        transform: translateY(-50%) scale(0.95);
        opacity: 0.5;
        transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    input:checked ~ .nav-container {
        width: 60%;
        height: 200pt;
        transform: scale(1.02);
        background: rgba(159, 159, 159, 0.51);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 49px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
        position: relative;
        overflow: visible;
    }

    input:checked ~ .nav-container::before {
        content: '';
        position: absolute;
        inset: -3px;
        background: linear-gradient(90deg,
            rgba(253, 196, 1, 0.8),
            rgba(255, 255, 255, 0.5),
            rgba(253, 196, 1, 0.8)
        );
        border-radius: 52px;
        z-index: -1;
        animation: glow 2s ease-in-out;
        opacity: 0;
        filter: blur(8px);
        pointer-events: none;
    }

    @keyframes glow {
        0% {
            opacity: 0;
            filter: blur(8px);
        }
        50% {
            opacity: 1;
            filter: blur(12px);
        }
        100% {
            opacity: 0;
            filter: blur(8px);
        }
    }

    input:checked ~ .nav-container::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60%;
        background: linear-gradient(180deg,
            transparent 0%,
            rgba(253, 196, 1, 0.15) 50%,
            rgba(253, 196, 1, 0.3) 100%
        );
        pointer-events: none;
        z-index: 1;
    }

    input:checked ~ .nav-buttons {
        transform: translateY(0) scale(1);
        opacity: 1;
        pointer-events: auto;
        height: auto;
        padding: 50pt 0 10pt 0;
        transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    input:checked ~ .expand-text {
        color: rgba(240, 240, 240, 0.9);
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }

    input:checked ~ .mobLogo {
        transform: translateX(-50%) scale(0.95);
    }

    header {
        display: flex;
        background: transparent;
        transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
        justify-content: center;
        align-items: center;
        box-shadow: none;
        border: none;
        opacity: 1;
        padding: 0;
    }

    .deskLogo {
        display: none !important;
    }

    .nav {
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        display: flex;
        justify-content: center;
        background: transparent;
        height: 100%;
        z-index: 99;
        pointer-events: none;
    }

    .nav-button {
        display: flex;
        align-items: center;
        padding: 12px 20px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 15px;
        color: #F0F0F0;
        text-decoration: none;
        transform: translateY(20px);
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        transition-delay: calc(0.08s * var(--i, 0));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        min-width: 120px;
        justify-content: center;
        will-change: transform;
        gap: 8px;
    }

    .nav-button:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(0) scale(1.02);
        color: #FDC401;
    }

    .button-icon {
        font-size: 1.2em;
        width: 20px;
        text-align: center;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .button-text {
        font-size: 1em;
        font-weight: 500;
    }

    .nav-button:hover .button-icon {
        transform: scale(1.1);
    }

    input:checked ~ .nav {
        transform: scale(1, 1);
        visibility: visible;
        height: auto;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        box-shadow: none;
    }

    input:checked ~ .nav .nav-buttons {
        transform: translateY(0);
    }

    input:checked ~ .nav .nav-button {
        transform: translateY(0);
    }

    input:checked ~ .mobLogo .navlogo {
        transform: scale(0.95);
    }

    /* Override desktop styles for mobile */
    .nav ul {
        display: none;
    }

    .nav ul li a::before {
        display: none;
    }
}

.nav-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border-radius: 49px;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, height, width;
    overflow: visible;
    z-index: 0;
    margin: 0;
}

input:checked ~ .nav-container {
    width: 100%;
    height: 200pt;
    background: rgba(200, 200, 200, 0.75);
    border-radius: 49px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: visible;
}

.nav-buttons {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    background: transparent;
    border-radius: 24px;
    padding: 0;
    box-shadow: none;
    opacity: 1;
    transform: scaleX(0.7);
    transition:
        background 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#nav.nav-expanded .nav-buttons {
    background: rgba(30, 30, 40, 0.72);
    box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 1.5px 6px rgba(0,0,0,0.08);
    padding: 50pt 0 10pt 0;
    border-radius: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: scaleX(1);
}

.nav-button:first-child { margin-left: 0; }
.nav-button:last-child { margin-right: 0; }

.nav-button {
    opacity: 0;
    transform: scale(0.96);
    transition:
        opacity 0.44s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.44s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

#nav.nav-expanded .nav-button {
    opacity: 1;
    transform: scale(1);
}

#nav.nav-expanded .nav-button:nth-child(1) { transition-delay: 0.04s; }
#nav.nav-expanded .nav-button:nth-child(2) { transition-delay: 0.10s; }
#nav.nav-expanded .nav-button:nth-child(3) { transition-delay: 0.16s; }
#nav.nav-expanded .nav-button:nth-child(4) { transition-delay: 0.22s; }

.nav-container.holding {
    transform: scale(0.985);
    transition:
        transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1),
        box-shadow 0.5s cubic-bezier(0.4, 0.0, 0.2, 1),
        filter 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 1.5px 6px rgba(0,0,0,0.08);
    filter: brightness(1.04);
}

input:checked ~ .nav-buttons .nav-button {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 8px 14px;
    min-width: 90px;
    font-size: 0.95em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.nav-button {
    transition:
        transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1),
        filter 0.4s cubic-bezier(0.4, 0.0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.nav-button:active {
    transform: scale(0.96);
    filter: brightness(1.08);
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

/* Border glow: force hide when expanded */
input:checked ~ .nav-container::before {
    opacity: 0 !important;
}

/* Navbar background: force solid color and no animation when folded */
.navbar-gradient-bg {
    background: #0D0D0D !important;
    animation: none !important;
    background-size: initial !important;
    opacity: 1;
    transition:
        background 0.5s cubic-bezier(0.4, 0.0, 0.2, 1),
        opacity 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Show gradient pan only when expanded */
input:checked ~ .nav-container .navbar-gradient-bg {
    background: linear-gradient(120deg,
        #00c3ff 0%,
        #4853cf 25%,
        #3a47d5 50%,
        #a259ff 75%,
        #ff3fb2 100%
    ) !important;
    background-size: 300% 300% !important;
    animation: navbar-gradient-pan 8s ease-in-out infinite alternate !important;
    opacity: 0.85;
}

.nav-container {
    position: relative;
    z-index: 0;
}
.nav-container::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 52px;
    z-index: -2;
    pointer-events: none;
    background: linear-gradient(120deg,
        #00c3ff 0%,
        #4853cf 25%,
        #3a47d5 50%,
        #a259ff 75%,
        #ff3fb2 100%
    );
    background-size: 300% 300%;
    filter: blur(8px) brightness(1.12);
    opacity: 1;
    animation: navbar-gradient-pan 8s ease-in-out infinite alternate;
    transition: opacity 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}
/* Hide border glow when nav is expanded */
input:checked ~ .nav-container::before {
    opacity: 0;
}

@keyframes navbar-gradient-pan {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.gradient-inactive {
    background: #0D0D0D !important;
    animation: none !important;
    background-size: initial !important;
    opacity: 1;
    transition: background 0.5s, opacity 0.8s;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.gradient-active {
    background: linear-gradient(120deg,
        #00c3ff 0%,
        #4853cf 25%,
        #3a47d5 50%,
        #a259ff 75%,
        #ff3fb2 100%
    ) !important;
    background-size: 300% 300% !important;
    animation: navbar-gradient-pan 8s ease-in-out infinite alternate !important;
    opacity: 0.85;
}
#nav.nav-expanded .nav-container::before {
    opacity: 0 !important;
}
#nav.nav-collapsed .nav-container::before {
    opacity: 1 !important;
}

@media (min-width: 851px) {
    header {
        width: 93%;
        height: 50pt;
        background: rgba(159, 159, 159, 0.51);
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 3px 16px rgba(0,0,0,0.08);
        border: 1px solid rgba(238, 238, 238, 0.47);
        border-radius: 49px;
        opacity: 1;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        top: 1.2%;
        position: fixed;
        left: 50%;
        transform: translate(-50%, 0);
        z-index: 1000;
        padding: 0;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    header:hover {
        background: rgba(159, 159, 159, 0.75);
    }

    header:hover .nav-container::before {
        opacity: 0;
    }

    .nav-container {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border-radius: 49px;
        box-shadow: none;
        padding: 0 32px;
        margin: 0;
        overflow: visible;
        position: relative;
    }

    .mobLogo {
        display: none !important;
    }

    .deskLogo {
        display: flex !important;
        position: static !important;
        transform: none !important;
        height: 100%;
        align-items: center;
        z-index: 2;
        margin: 0 20px;
    }

    .navlogo {
        width: 35pt;
        height: 35pt;
        margin: 0;
    }

    .btn, .expand-text {
        display: none !important;
    }

    .nav-buttons {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        background: transparent;
        box-shadow: none;
        padding: 0;
        border-radius: 0;
        margin: 0;
        transform: none !important;
        transition: none;
        gap: 8px;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
    }

    .nav-button {
        display: flex !important;
        align-items: center;
        padding: 8px 16px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        color: #F0F0F0;
        text-decoration: none;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        min-width: 100px;
        justify-content: center;
        gap: 6px;
        margin: 0 4px;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        transform: none !important;
        opacity: 1 !important;
    }

    .nav-button:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: scale(1.02);
        color: #FDC401;
    }

    .button-icon {
        font-size: 1.1em;
        width: 18px;
        text-align: center;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .button-text {
        font-size: 0.9em;
        font-weight: 500;
    }

    .nav-button:hover .button-icon {
        transform: scale(1.1);
    }

    /* Override any mobile-specific styles */
    .nav ul {
        display: none !important;
    }

    .nav ul li a::before {
        display: none !important;
    }
}