@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&display=swap');

.navbar-int {
  position: absolute; /* initially overlay hero */
  top: 0;
  width: 100%;
  background: transparent;
  box-shadow: none;
  color: white;
  z-index: 9999;
  font-family: 'Poppins', sans-serif;
  padding: 0px 0 0 0;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, position 0.35s ease;
}

.navbar-int-container {
  max-width: 1280px;
  margin: 0;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}

/* Logo and School Name container */
.navbar-int-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.navbar-int-logo, .navbar-int-school-name {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.navbar-int-logo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow:
    0 0 22px #72b7fbaa;
  cursor: pointer;
}

.navbar-int-top:hover .navbar-int-logo {
  transform: scale(1.15) rotate(3deg);
  box-shadow: 0 0 30px #4a90e2ff;
}

.navbar-int-school-name {
  font-weight: 800;
  font-size: 2.4rem;
  color: white;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 1px 1px 6px #8dd1ffbb;
  user-select: none;
}

/* Hide logo + name when scrolled */
.navbar-int.scrolled {
  position: fixed;
  background: rgba(2, 4, 75, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.12);
  color: #007acc;
  padding: 12px 0;
}

.navbar-int.scrolled .navbar-int-top {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  height: 0;
  margin: 0;
  overflow: hidden;
}

/* Change container flex direction for nav only when scrolled */
.navbar-int.scrolled .navbar-int-container {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 36px;
}

/* Hamburger menu styles */
.mobile-toggler {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 32px;
  height: 24px;
  justify-content: space-between;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.mobile-toggler span {
  height: 4px;
  background: #007acc;
  border-radius: 3px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.mobile-toggler.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
  background: #00bfff;
}

.mobile-toggler.open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggler.open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
  background: #00bfff;
}

/* Navigation links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  justify-content: center;
  width: 100%;
  animation: fadeSlideUp 0.65s ease 0.3s forwards;
  opacity: 0;
  margin: 0;
}

.nav-links.open {
  opacity: 1;
}

.nav-links li button {
  background: none;
  border: none;
  color: #bbdb04;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.35s ease, border-bottom-color 0.35s ease;
  padding: 8px 0;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 3px solid transparent;
  border-radius: 3px;
}

.nav-links li button.active,
.nav-links li button:hover {
  color: #00aaff;
  border-bottom-color: #00aaff;
  background-color: #e0f7ffcc;
  box-shadow: 0 2px 10px #80caffbb;
  transition: all 0.3s ease;
}

/* Animations */
@keyframes fadeSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .mobile-toggler {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 112px;
    left: 0;
    background: rgba(240, 248, 255, 0.96);
    width: 100%;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, opacity 0.45s ease;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }
  .nav-links.open {
    max-height: 540px;
    opacity: 1;
  }
  .nav-links li button {
    padding: 20px 0;
    border-bottom: 1px solid #cce9ff;
    font-size: 1.3rem;
    background-color: transparent;
    color: #007acc;
    border-radius: 0;
  }
  .nav-links li button.active,
  .nav-links li button:hover {
    background-color: #b3e0ffcc;
    border-bottom-color: #00aaff;
    box-shadow: none;
  }
}


@media (max-width: 480px) {
  .navbar-int-logo {
    width: 56px;
    height: 56px;
  }
  .navbar-int-school-name {
    font-size: 1.8rem;
    letter-spacing: 0.08em;
  }
  .nav-links li button {
    font-size: 1.1rem;
    padding: 16px 0;
  }
}
