/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- VIDEO BACKGROUND (HERO SECTION) ---------- */
.homevideo {
  position: relative;
  width: 100%;
  height: 100svh; /* FIX: stable across laptop & monitor */
  overflow: hidden;
  z-index: 1; /* fixed */
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #bcedf6, #087E8B);
  color: #333;
}
.homevideo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.homevideo::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1; /* FIX: was -1 → caused items to fall behind */
  pointer-events: none; /* important: don't block clicks */
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 35px 60px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 80px;
  align-items: center;
  font-size: x-large;
}

.navbar a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.navbar a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.navbar a:hover::after {
  width: 100%;
}

/* Always underline active page */
.navbar a.current-page::after {
  width: 100%;
}

/* Dropdown container */
.navbar .dropdown {
  position: relative; /* anchor for submenu */
}

/* Dropdown menu hidden by default */
.navbar .dropdown-menu {
  position: absolute;
  top: 100%; /* directly under Contact button */
  left: 0;
  display: none; /* hidden initially */
  flex-direction: column;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 0px 0;
  min-width: 30px;
  z-index: 2000;
}

/* Remove list bullets */
.navbar .dropdown-menu li {
  list-style: none;
}

/* Links styling */
.navbar .dropdown-menu a {
  padding: 12px 20px;
  display: block;
  color: white;
  font-size: 1rem;
  white-space: nowrap;
  text-decoration: none;
}

.navbar .dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Show dropdown when hovering Contact or the menu itself */
.navbar .dropdown:hover .dropdown-menu {
  display: flex;
}



.logo {
  justify-self: start;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
}

/* ---------- CENTER TEXT ON VIDEO ---------- */
.content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 20;
  width: 100%;
  max-width: 900px;
  padding: 0 20px;
}

.quizbox {
  background: rgba(0, 0, 0, 0.55);
  padding: 40px;
  border-radius: 12px;
  max-width: 800px;
  margin: 0 auto;
}

/* ---------- BOTTOM LINK BOXES ---------- */
.bottom-links {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 60px;
  text-align: center;
  color: white;
  z-index: 30; /* FIX: must be above pseudo-element */
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
}

.linkitem {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 220px;
}

.linkbox {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 220px;
  height: 220px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 25px;
  text-decoration: none;
  color: #fff;
  font-size: 3rem;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}

.linkbox:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-10px);
}

.linkitem p {
  margin-top: 15px;
  font-size: 1.1rem;
  color: #fff;
  max-width: 220px;
  line-height: 1.4;
}

/* ---------- FOOTER ---------- */
footer {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
}

/* ---------- WELCOME INTRO ---------- */
#intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4em;
  z-index: 9999;
  opacity: 1;
  transition: opacity 2s ease;
}

#intro.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ---------- FADE-IN ---------- */
body.loaded .homevideo,
body.loaded .navbar,
body.loaded .content,
body.loaded footer,
body.loaded .bottom-links {
  opacity: 1;
  transition: opacity 2s ease;
}

.homevideo,
.navbar,
.content,
footer,
.bottom-links {
  opacity: 0;
  transition: opacity 1s ease;
}
