html {
    position: relative;
    min-height: 100%;
    background: #141b2d;
    overflow-x: hidden;
}

html::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("halo2bg2.webp") repeat center center;
    filter: brightness(0.9);
    z-index: -1;
    pointer-events: none;
}

html, body {
    min-width: 260px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

/* === NAVBAR === */
.nav-banner, .nav-container, .nav-links, .nav-links-bar, .nav-link, .nav-hamburger {
	box-sizing: content-box !important;
}

.nav-banner {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0e0e0;
	background: linear-gradient(145deg, rgba(16, 26, 35, 0.95), rgb(22 31 40));
    border-bottom: 1px solid #2a4356;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
	margin-bottom: 15px;
}
  
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
	max-height: 60px; /* custom */
    margin: 0 auto;
    gap: 15px;
	overflow: clip;
}
  
.nav-main-logo {
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(123, 181, 233, 0.3));
    margin-right: 20px; /* custom - shift inward, just left of nav buttons */
    max-width: 100%;
    height: auto;
    max-height: 80px;
    width: auto;
}
  
.nav-main-logo-mobile {
    max-height: 60px;
    object-fit: contain;
    display: none;
    filter: drop-shadow(0 0 10px rgba(123, 181, 233, 0.3));
    margin-right: 10px; /* shift inward, just left of nav buttons */
}

@media (min-width: 831px) { /* custom */
	.nav-links-bar:not(:last-child)::after {
		content: '|';
		content: "\007C";
		margin-left: 4px;
	}
}

/* Center nav buttons */
.nav-links {
    display: flex;
    /* gap: 10px; */
	gap: 4px; /* custom */
    /* margin-right: 5px; custom */
    align-items: center;
    justify-content: center;
    flex: 1;
}
  
.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    white-space:nowrap;
    padding: 10px 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
    /* background: rgba(42, 67, 86, 0.3); custom */
    /* border: 1px solid transparent; custom */
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.4px;
}
  
.nav-link:hover {
    background: rgba(42, 67, 86, 0.6);
    border-color: #497294;
    color: #cfd6dc;
    box-shadow: 0 4px 8px rgba(92, 155, 209, 0.2);
}
  
/* Home button special style */
.nav-home {
    display: flex;
    align-items: center;
    gap: 8px;
}
  
.nav-logo {
    width: 28px;
    max-height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(123, 181, 233, 0.3));
}
  
/* === HAMBURGER MENU === */
.nav-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
  
.nav-hamburger span {
    width: 24px;
    height: 3px;
    background: #e0e0e0;
    border-radius: 2px;
    transition: 0.3s;
}
  
/* === MOBILE STYLES === */
@media (max-width: 830px) {
    .nav-container {
      justify-content: space-between;
    }
  
    .nav-links {
      position: absolute;
      top: 100%;
      right: 0;
      background: rgba(16, 26, 35, 0.98);
      flex-direction: column;
      justify-content: center;
      margin-right: 0;
      align-items: center;
      gap: 8px;
      width: 100%;
      padding: 12px 0;
      display: none;
    }

    .nav-main-logo {
        display: none;
        margin-right: 0;
    }

    .nav-main-logo-mobile {
        display: flex;
    }

    .nav-links.active {
      display: flex;
    }
  
    .nav-hamburger {
      display: flex;
    }
  
    .nav-home {
      font-size: 0.9em;
      padding: 6px 10px;
    }
  
    .nav-link {
      display: flex;
      max-width: 100%;  /* custom */
      justify-content: center;
      align-items: center;
      padding: 12px;
	  padding-left: 25vw; /* custom */
	  padding-right: 25vw; /* custom */
	  width: 200px; /* custom */
	  overflow: clip; /* custom */
      font-size: 1em;
    }
}

/* Responsive header layout */
@media (max-width: 768px) {
	.nav-main-logo {
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .nav-main-logo {
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 8px 12px;
        gap: 12px;
    }
    
    .nav-links {
        gap: 8px;
    }
    
    .nav-link {
        padding: 5px 10px;
        font-size: 0.8em;
		padding-left: 20vw; /* custom */
		padding-right: 20vw; /* custom */
    }
}
