
/* Navbar */
.navbar {
  position: fixed !important;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 18vh;
  width: 100%;
  background-color: rgb(90, 87, 87);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 1000;
  top: 0; /* Position it at the top */
  left: 0; /* Align it to the left edge */


}

/* Active page link */
.nav-menu a.active {
  color: #00BFFF !important; 
}

/* Logo */
.logo {
  text-decoration: none;
  margin: 2rem;
  width: 90px;
  height: 90px;
}
.logo a img{
    margin-right: 2rem;
    background-color: white;
    width: 100%;
    height: 100%;
    
}

/* Nav Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: white;
  font-weight: lighter;
  font-size: 17px;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #00BFFF;
}

/* Dropdown Menu Container */
.dropdown {
  position: relative;
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; /* Position directly below the parent */
  left: 0;
  background: rgba(0, 0, 0);
  padding: 0.6rem ;
  border-radius: 0 0 4px 4px;
  list-style: none;
  min-width: 200px;
  width: 350px;
  z-index: 1001;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Keep dropdown visible when hovering over it */
.dropdown-menu:hover {
  display: block;
}

/* Dropdown menu items */
.dropdown-menu li {
  padding: 0.6rem;
}

.dropdown-menu li a {
  display: block;
  text-align: left;
  color: white;
  font-size: 15px;
  text-decoration: none;
  line-height: .5rem;
  transition: color 0.3s ease;
}

.dropdown-menu li a:hover {
  color: #00BFFF;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile/Tablet View */
@media only screen and (max-width: 1023px) {
  .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
    padding: 0;
  }

  .dropdown.active .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
  }
}


/* CTA Button */
.button {
  background:#00BFFF;
  color: #fff !important;
  padding: 20px 30px;
  border-radius: 4px;
  text-decoration: none; 
}

.button:hover {
    background-color:red;

}

/* CTA Button - Mobile/Tablet */
@media only screen and (max-width: 1023px) {
  /* Add the button inside the mobile menu */
  .nav-menu.active .cta-button-mobile {
    display: block;
    margin: 2rem auto;
    text-align: center;
  }

  .cta-button-mobile .button {
    display: inline-block;
    padding: 20px 30px;
    font-size: 1rem;
  }
}


/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  margin-right: 1.8rem;
}

.bar {
  display: block;
  width: 25px;
  height: 2.5px;
  margin: 5px auto;
  background: white;
  transition: all 0.3s ease;
}

/* Mobile/Tablet View */
@media only screen and (max-width: 1023px) {
  .hamburger {
    display: block;
  }

  .navbar {
  justify-content: space-between; 
  width: 100%;
  top: 0;
  left: 0;
  right: 0;

  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background-color: rgb(90, 87, 87);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.5s ease;
    z-index: 1000;
    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.1);
  }
   .nav-menu a{
    color: white;
   }
  .nav-menu.active {
    left: 0;
  }

  .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    text-align: center;
    padding: 0;
    box-shadow: none;
  }

  .dropdown:hover .dropdown-menu {
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
  }

  /* Hamburger Animation */
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}
