:root {
    --nh-bg: #0f0f0f;
    --nh-fg: #ffffff;
    --nh-accent: #ffd700;
    --nh-nav-h: 70px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--nh-bg);
    color: var(--nh-fg);
}
a { color: var(--nh-fg); text-decoration: none; }

/* Navigation bar */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nh-nav-h);
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.25) 0%, rgba(26, 26, 26, 0.25) 100%);
    border-bottom: 1px solid rgba(51,51,51,0.4);
    box-shadow: 0 2px 15px rgba(0,0,0,0.35);
    backdrop-filter: blur(15px);
    z-index: 1000;
    font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}
.nav-content {
    max-width: 95%;
    min-width: 0;
    margin: 0 auto;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.nav-left { display: flex; gap: 10px; align-items: center; }
.nav-back-btn {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 12px;
    border: none;
    border-radius: 4px;
    background: transparent;
    transition: 0.3s;
}
.nav-back-btn:hover { background: #333; transform: translateY(-1px); }
.nav-title { font-family: "Cinzel", serif; font-size: 0.9rem; font-weight: 600; letter-spacing: 1px; }

/* Dropdown */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-btn {
    color: #fff;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: 0.3s;
}
.nav-dropdown-btn:hover { background: #333; transform: translateY(-1px); }
.nav-dropdown.active .nav-dropdown-btn,
.nav-dropdown:hover .nav-dropdown-btn { background: #333; }
.nav-dropdown-btn:focus { outline: none; }
.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, rgba(17,17,17,0.25) 0%, rgba(26,26,26,0.25) 100%);
    backdrop-filter: blur(15px);
    min-width: 200px;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    margin-top: 0;
}

/* Desktop hover behavior */
@media (hover: hover) {
    .nav-dropdown:hover .nav-dropdown-content {
        display: block;
    }
}

/* Mobile touch behavior */
@media (hover: none) {
    .nav-dropdown-btn::after {
        content: "▼";
        font-size: 0.7em;
        margin-left: 6px;
    }
    .nav-dropdown.active .nav-dropdown-content {
        display: block;
    }
}

.nav-dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    border-bottom: 1px solid #333;
    transition: 0.3s;
    font-size: 0.85rem;
}
.nav-dropdown-content a:last-child { border-bottom: none; }
.nav-dropdown-content a:hover { background: rgba(255,255,255,0.08); color: #ffffff; }

/* Extend hover hitbox below dropdown label to prevent accidental close */
.nav-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;
}

.nav-right { display: flex; gap: 8px; align-items: center; }
.nav-discord-btn {
    background: linear-gradient(135deg,#5865F2 0%,#4752C4 100%);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    transition: 0.3s;
}
.nav-discord-btn:hover {
    background: linear-gradient(135deg,#4752C4 0%,#3c4296 100%);
    box-shadow: 0 6px 15px rgba(88,101,242,0.4);
    transform: translateY(-2px);
}
.nav-status-btn {
    background: linear-gradient(135deg,#333 0%,#444 100%);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    border: none;
    transition: 0.3s;
}
.nav-status-btn:hover {
    background: linear-gradient(135deg,#444 0%,#555 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

/* Generic page container that clears the fixed nav */
.nh-page { 
    padding: calc(var(--nh-nav-h) + 20px) 20px 40px 20px;
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure consistent typeface for all nav text regardless of page-specific body font */
.nav-bar * {
    font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}
.nav-title { font-family: "Cinzel", serif; }

/* uniform nav link font weight */
.nav-back-btn,
.nav-dropdown-btn,
.nav-dropdown-content a {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* === Footer Styles === */
.nh-footer {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 20px;
    color: #ffffff;
    font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    margin-top: 60px;
    position: relative;
    z-index: 1; /* Ensure footer is below bottom sheet */
}

.nh-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.nh-footer .footer-section {
    flex: 1 1 250px;
    min-width: 220px;
}

.nh-footer h3 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nh-footer p,
.nh-footer li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ffffff;
}

.nh-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nh-footer ul li {
    margin-bottom: 8px;
}

.nh-footer ul li:last-child {
    margin-bottom: 0;
}

.nh-footer strong {
    color: #ffffff;
    font-weight: 600;
}

.nh-footer a {
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nh-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .nh-footer .footer-container {
        flex-direction: column;
    }
}

/* === Nav Home Emblem === */
.nav-home {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}
.nav-emblem {
    height: 32px;
    width: 32px;
    object-fit: contain;
}

/* About Us link */
.nav-about-btn {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 12px;
    border: none;
    border-radius: 4px;
    background: transparent;
    transition: 0.3s;
}
.nav-about-btn:hover { background:#333; transform:translateY(-1px); }

/* Plain discord nav link */
.nav-discord-text { color: #7289da; }
.nav-discord-text:hover { color: #99a9ff; background: none; }

/* === MODERN PAGE TRANSITIONS === */
/* Subtle, contemporary approach - barely noticeable but polished */

/* Page content with modern entrance animation */
.nh-page {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
    animation: pageEnter 0.25s ease-out forwards;
}

@keyframes pageEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern loading state for navigation */
body.page-transitioning {
    overflow: hidden;
}

body.page-transitioning .nh-page {
    opacity: 0.8;
    transform: translateY(-2px);
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .nh-page {
        animation: none;
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    body.page-transitioning .nh-page {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

 