/* ===========================
This is the main css for Navigation, Background and etc. 
============================= */

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html,
body {
    height: 100%;
    width: 100%;
    color: white;
    background-color: #0a0a0a;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    z-index: 99;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

/* Default = Desktop Logo */
.logo img {
    content: url("/assets/logo/ArgusVRC-logo.png");
    height: 50px;
    width: auto;
    max-width: none;
    display: block;
    filter: drop-shadow(0 0 0.55rem rgba(255, 255, 255, 0.7));
}

/* Mobile logo */
@media (max-width: 768px) {
    .logo img {
        content: url("/assets/logo/argusvrcsmall-logo.png");
        height: 45px;
        width: auto;
    }
}

/* ================= NAV LINKS ================= */

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links li {
    position: relative;
}

/* Base Links */

.nav-links>li>a {
    position: relative;
    display: flex;
    align-items: center;

    color: #fff;
    text-decoration: none;
    font-weight: 500;

    padding-bottom: 6px;

    transition: color .3s ease;
}

/* Hover */

.nav-links>li>a:hover {
    color: #00c8ff;
}

/* Underline */

.nav-links>li>a::after {
    content: "";
    position: absolute;

    left: 50%;
    bottom: 0;

    width: 0;
    height: 3px;

    transform: translateX(-50%);

    border-radius: 2px;

    background: linear-gradient(90deg,
            #00c8ff,
            #0070ff);

    box-shadow: 0 0 8px rgba(0, 200, 255, .6);

    transition: .35s;
}

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

/* Current Page */

.nav-links>li>a.current-page {
    color: #00e1ff;
}

.nav-links>li>a.current-page::after {
    width: 100%;
    animation: navGlow 2.5s ease-in-out infinite;
}

@keyframes navGlow {

    0% {
        box-shadow: 0 0 6px rgba(0, 200, 255, .4);
    }

    50% {
        box-shadow: 0 0 14px rgba(0, 200, 255, .9);
    }

    100% {
        box-shadow: 0 0 6px rgba(0, 200, 255, .4);
    }

}

/* Hide mobile arrow on desktop */

.nav-links .mobile-arrow {
    display: none;
}

/* =========================
   DESKTOP DROPDOWN
========================= */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: -20px;
    /* Shift slightly left */
    width: 300px;
    /* Fixed width */
    padding: 10px 0;
    list-style: none;
    background: rgba(8, 15, 30, .98);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(0, 200, 255, .35);
    border-radius: 16px;
    box-shadow:
        0 0 25px rgba(0, 200, 255, .15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition:
        opacity .25s,
        transform .25s,
        visibility .25s;

    z-index: 999;
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -11px;
    left: 35px;
    width: 18px;
    height: 18px;
    background: rgba(8,15,30,.98);
    border-left: 2px solid rgba(0,200,255,.35);
    border-top: 2px solid rgba(0,200,255,.35);
    transform: rotate(45deg);
}

.dropdown:hover>.dropdown-menu {

    opacity: 1;
    visibility: visible;

    transform: translateY(0);

}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {

    display: block;
    align-items:center;
    padding: 15px 24px;
    color: #d9d9d9;
    text-decoration: none;
    transition: .25s;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: rgba(0, 200, 255, .08);
    color: #00c8ff;
    transform:translateX(8px);

}

/* ================= HAMBURGER ================= */

.hamburger {
    background: transparent;
    border: none;
    cursor: pointer;
    display: none;
}

.hamburger img {

    width: 32px;
    height: 48px;

    filter: drop-shadow(0 0 8px rgba(0, 200, 255, .7));

    animation: floatCrystal 3s ease-in-out infinite;

}

@keyframes floatCrystal {

    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0);
    }

}

/* ================= MOBILE MENU ================= */

.mobile-menu {

    position: fixed;

    top: 80px;
    left: 0;

    width: 100%;
    max-height: 80vh;

    display: flex;
    flex-direction: column;
    gap: 12px;

    padding: 20px;

    background: rgba(5, 10, 20, .95);

    backdrop-filter: blur(12px);

    border-top: 1px solid rgba(0, 200, 255, .4);
    border-bottom: 2px solid #00c8ff;

    box-shadow: 0 10px 30px rgba(0, 200, 255, .15);

    overflow-y: auto;

    opacity: 0;
    pointer-events: none;

    transform: translateY(-40px) scale(.95);

    transition: .35s;

    z-index: 999;

}

.mobile-menu.open {

    opacity: 1;

    pointer-events: auto;

    transform: translateY(0) scale(1);

}

.mobile-menu>a,
.mobile-link {

    display: flex;
    align-items: center;

    position: relative;

    color: white;

    text-decoration: none;

    font-weight: 600;

    letter-spacing: 1px;

    padding: 14px 18px;

    background: rgba(0, 200, 255, .05);

    border: 2px solid rgba(0, 200, 255, .35);

    clip-path: polygon(12px 0,
            100% 0,
            100% calc(100% - 12px),
            calc(100% - 12px) 100%,
            0 100%,
            0 12px);

    transition: .25s;

}

.mobile-menu>a:hover,
.mobile-link:hover {

    transform: translateX(6px);

    background: rgba(0, 200, 255, .12);

    border-color: #00c8ff;

    box-shadow: 0 0 15px rgba(0, 200, 255, .3);

}

/* Mobile Dropdown */

.mobile-menu .dropdown-menu {

    position: static;

    display: none;

    opacity: 1;
    visibility: visible;

    transform: none;

    margin-top: 8px;

    background: none;

    border: none;

    box-shadow: none;

    padding-left: 18px;

}

.mobile-menu .dropdown.open>.dropdown-menu {

    display: block;

}

.mobile-menu .dropdown-menu a {

    padding: 12px 18px;

    color: #cfcfcf;

    background: rgba(255, 255, 255, .03);

    border-radius: 8px;

}

.mobile-menu .dropdown-menu a:hover {

    padding-left: 28px;

    background: rgba(0, 200, 255, .08);

}

/* ================= RESPONSIVE ================= */

@media screen and (max-width:768px) {

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    /* Arrow only on mobile */

    .mobile-arrow {

        display: flex;

        margin-left: auto;

        transition: .3s;

    }

    .dropdown.open>.mobile-link .mobile-arrow {

        transform: rotate(90deg);

    }

}

/* Footer stays at bottom */
footer {
    background-color: rgba(0, 0, 0, 0.7);
    color: #ccc;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
    margin-top: auto;
    z-index: 999;
}

/* ======================================================
   SCROLLBAR
====================================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 200, 255, .35);
    border-radius: 30px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 200, 255, .7);
}