html { outline: 10px solid red; }

:root {
  --primary: #FDDC5C;
  --dark: #996515;
  --nav-h: 90px;
}

/* TOPBAR */
.topbar {
  background: var(--dark);
  padding: 6px 0;
  color: white;
}

/* HEADER BACKGROUND IMAGE */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  transition: 0.3s ease;
  background-image: url("assets/digital_archieve.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
} 


.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10; /* higher than video, overlay, hero content */
  background: transparent;
  pointer-events: auto;
}
/* When scrolled: fade white overlay but keep image behind */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}


/* NAVBAR */
.main-nav {
  background: transparent !important;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: 0.3s ease;
}

/* Brand */
.navbar-brand {
  color: var(--dark);
  font-weight: 700;
  font-size: 1.6rem;
  transition: 0.3s;
  }
  .navbar-brand:hover {
color: rgba(29, 28, 28, 0.75)
}
.site-header.scrolled .navbar-brand {
  color: var(--dark);
}

/* NAV LINKS */
.nav-link {
  text-decoration: none !important;
  white-space: nowrap;
  color: primary;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 6px;
  transition: 0.3s;
  position: relative;
  line-height: 1;
}

.nav-link:hover,
.nav-link:active,
.nav-link:focus {
  text-decoration: none !important;
}

/* Animated underline */
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--dark));
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.site-header.scrolled .nav-link {
  color: var(--primary);
  text-shadow: none;
}

.site-header.scrolled .nav-link.active {
  color: var(--dark);
}


/* Glow over video (top state only) */
.site-header:not(.scrolled) .nav-link,
.site-header:not(.scrolled) .navbar-brand {
  color: #ffffff;
  text-shadow:
    0 2px 8px rgba(0,0,0,0.55),
    0 0 14px rgba(255,255,255,0.25);
}


/* HAMBURGER */
.custom-toggler {
  border: none;
  background: transparent;
  display: none;
}
.hamburger {
  width: 24px;
  height: 20px;
  position: relative;
}
.hamburger span {
  position: absolute;
  width: 100%;
  height: 2px;
  background: white;
  left: 0;
  transition: 0.3s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }

.site-header.scrolled .hamburger span {
  background: var(--dark);
}

.custom-toggler.open .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.custom-toggler.open .hamburger span:nth-child(2) {
  opacity: 0;
}
.custom-toggler.open .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media(max-width: 992px){
  .navbar-toggler { display: block; }
  .navbar-collapse {
    background: white;
    padding: 20px;
  }
  .nav-link {
    color: var(--dark) !important;
  }
}

/* HERO */

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #000; /* shows if video doesn't fill */
}

/* Video behaves like background-size: contain */
#bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;   /* this is the key */
  object-position: center;
  z-index: 1;
}

/* Optional dark layer for readability */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 2;
}

/* Content always above video */
.hero .content {
  position: relative;
  z-index: 3;
  padding-top: 40px;   /* adjust as needed */
}

   /* === 2V PACK STYLE FOR MOBILE NAV === */
@media (max-width: 991px) {
  .navbar-collapse {
    margin-top: 8px;
    border-radius: 14px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
      0 10px 25px rgba(0,0,0,0.12),
      0 2px 6px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.4);
  }

  .navbar-collapse .nav-link {
    padding: 14px 18px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .navbar-collapse .nav-link:last-child {
    border-bottom: none;
  }

  .navbar-collapse .nav-link:hover {
    background: rgba(0,0,0,0.04);
  }

  .navbar-collapse .dropdown-menu {
    border-radius: 10px;
    margin: 6px 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  }
}
  