/* navigation.css */

/* General Navbar Styles */
.navbar {
  display: flex;
  justify-content: center; 
  align-items: center;
  padding: 15px 30px;
  background: linear-gradient(135deg, rgba(0, 4, 40, 0.95), rgba(0, 4, 40, 0.85));
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  position: fixed;
  top: 0;
  width: 100%;
}

/* Logo Styles */
.logo {
  display: flex;
  align-items: center;
}

.logo-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.logo-button img {
  width: 150px; 
  height: auto; 
  transition: transform 0.3s ease;
}

.logo-button:hover img {
  transform: scale(1.1); 
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  margin: 0;
}

/* Navigation Buttons */
.nav-button {
  color: #fff;
  background: none;
  border: none;
  margin: 0 15px;
  font-size: 1.8rem;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
  font-weight: bold;
}

.nav-button:hover,
.nav-button.active {
  color: #6db7ec;
}

/* Underline Effect */
.nav-button::after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background-color: #A7D4F5;
  transition: width 0.3s;
  position: absolute;
  left: 0;
  bottom: -5px;
}

.nav-button:hover::after,
.nav-button.active::after {
  width: 100%;
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger .bar {
  height: 3px;
  width: 25px;
  background-color: #fff;
  margin: 4px 0;
  transition: 0.4s;
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Adjust Navbar */
  .navbar {
    padding: 10px 20px;
    gap: 20px;
  }

  /* Adjust Logo Size */
  .logo-button img {
    width: 120px;
  }

  /* Hide Nav Menu by Default */
  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 60px; 
    left: 0;
    width: 100%;
    background-color: rgba(0, 4, 40, 0.95);
    z-index: 999;
  }

  /* Show Nav Menu When Active */
  .nav-menu.active {
    display: flex;
  }

  /* Adjust Nav Buttons */
  .nav-button {
    margin: 15px 0;
    font-size: 1.5rem;
  }

  /* Display Hamburger Menu */
  .hamburger {
    display: flex;
  }

  /* Hamburger Animation When Active */
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
