/* VARIABLES */
:root {
    --nav-height: 49px;
}

/* STANDARD */
html {
    -webkit-text-size-adjust: none;
    height: 100%;
    overflow: hidden;
}

/* REMOVE - ADD TO EACH PAGE */
body {
    font-family: Arial, sans-serif;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}


/* NAVIGATION BAR */
.nav-bar {
    height: var(--nav-height);
    position: sticky;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 21px;     
    background: linear-gradient(135deg, #101010 0%, #141414 50%, #1d1d1d 100%);
    color: white;
    top: 0;         
    z-index: 100;
}

/* Navigation Bar Logo (Top Left) */
.nav-logo {
    margin: 0;
    font-size: 1.45rem;
    font-weight: bold;
    color: white;
    text-decoration: none; /* remove default underline */
    cursor: pointer; /* indicates it’s clickable */
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo:hover {
    color: #eeeeee;
    transform: scale(1.05); /* subtle pop effect */
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.05rem;
    position: relative; /* needed for underline */
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, color; /* performance optimization */
}

.nav-links a:hover {
    color: #eeeeee;
    transform: scale(1.05); /* subtle pop effect */
}

/* Animated underline */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgb(188, 9, 9);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* RESPONSIVE (mobile) */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* hide desktop menu */
    }
}

/* HAMBURGER MENU */
.nav-hamburger {
    display: none; /* hidden on desktop */
    position: relative;
    width: 30px;
    height: 24px;
    cursor: pointer;
}

/* Hamburger bars */
.nav-hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px; /* thin bars */
    background-color: white;
    border-radius: 2px; /* curved edges */
    transition: all 0.15s ease-in-out;
}

/* Position of the bars */
.nav-hamburger span:nth-child(1) { top: 0; }
.nav-hamburger span:nth-child(2) { top: 10px; }
.nav-hamburger span:nth-child(3) { top: 20px; }

/* RESPONSIVE (mobile) */
@media (max-width: 768px) {
    .nav-hamburger {
        display: block; /* show hamburger */
    }
}

/* X Animation when open */
.nav-open span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px; /* center it */
}

.nav-open span:nth-child(2) {
    opacity: 0; /* hide middle bar */
}

.nav-open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px; /* center it */
}

/* MOBILE DROPDOWN MENU */
.mobile-menu {
    display: flex; /* needed for transition */
    flex-direction: column; /* force vertical layout */
    background: linear-gradient(315deg, #101010 0%, #141414 50%, #1d1d1d 100%);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    position: fixed;
    top: var(--nav-height); /* below navbar */
    left: 0;
    width: 100%;
    z-index: 100;
    max-height: 0; /* hide initially */
    overflow: hidden;
    transition: max-height 0.25s ease-in-out;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);
}

/* Show mobile menu */
.mobile-menu.show {
    max-height: 500px;
    transition: max-height 0.35s ease-in-out; /* slower expand */
}

.mobile-menu.show a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.show a:nth-child(2) { transition-delay: 0.10s; }
.mobile-menu.show a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.show a:nth-child(4) { transition-delay: 0.20s; }

.mobile-menu a {
    font-size: 1.1rem;
    padding: 15px 20px;
    border-top: 1px solid #333;
    color: white;
    text-decoration: none;
    position: relative;

    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animate links individually */
.mobile-menu.show a {
    opacity: 1;
    transform: translateY(0);
}

/* Animated underline for mobile links */
.mobile-menu a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgb(0, 0, 0);
    border-radius: 2px;
    opacity: 0.1;
    transition: width 0.5s ease;
}

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

.mobile-menu a:hover {
    background-color: rgba(188, 9, 9, 0.7);
}

/* SCROLL CONTAINER AND BAR */
@media (max-width: 768px) {
    .scroll-container {
        padding-right: 5%;
        padding-left: 5%;
    }
}

/* Custom scrollbar */
.scroll-container::-webkit-scrollbar {
    width: 6px;
}

.scroll-container::-webkit-scrollbar-track {
    background: transparent; /* hide track */
}

.scroll-container::-webkit-scrollbar-thumb {
    background-color: rgba(100,100,100,0.6);
    border-radius: 3px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(100,100,100,0.9);
}

/* Firefox */
.scroll-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(100,100,100,0.6) transparent;
}