/*CSS for main navigation bar on top
The bar is "fixed to the top of the viewport
It changes from transparent background to a dark color
upon scrolling*/
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 18px 40px;
  z-index: 1000;
  color: white;
  background: transparent;
  transition: background-color 0.4s ease;
}

/* Add black background only when scrolled */
.navbar.scrolled {
  background-color: rgba(100, 17, 30, 1);
}

/* ====== LEFT SECTION ====== */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-left img {
  height: 40px;
  width: auto;
}

.navbar-title, .navbar-title-s {
  font-weight: 400;
  font-family: "et-book";
  font-size: 22px;
  font-style: italic;
  letter-spacing: -0.5px;
}

.navbar-title a, 
.navbar-title-s a, 
.navbar-left a img {
  text-decoration: none;
  color: white;
  text-shadow: 2px 2px 4px black;
  transition: color 0.3s;
}

.navbar-title a:hover, 
.navbar-title-s a:hover {
  color: #cccccc;
  background-color: transparent;
}

/* ====== MAIN MENU ====== */
.navbar-menu {
  display: flex;
  gap: 24px;
  align-items: center;
}

.navbar-menu a {
  text-decoration: none;
  color: white;
  text-shadow: 2px 2px 4px black;
  font-weight: 500;  
  font-size: 18px;
  position: relative;
  transition: color 0.3s;
}
/*Main menu items on hover*/
.navbar-menu a:hover {
  color: #1CA590ff;
  font-size: 18.5px;
  text-shadow: 0px 0px 0px black;
  background-color: transparent;
}

/* ====== DESKTOP DROPDOWNS ====== */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(100, 17, 30, 1);
  padding: 10px 0;
  min-width: 180px;
  z-index: 1001;
  border-radius: 4px;
}

.dropdown-content a {
  display: block;
  padding: 10px 18px;
  color: white;
  font-size: 16px;
}

.dropdown-content a:hover {
  background-color: rgba(140, 24, 41, 0.4);
  color: white;
  font-size: 16.5px;
  text-shadow: 0px 0px 0px black;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ====== HAMBURGER ====== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 26px;
  height: 22px;
  justify-content: space-between;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ====== MOBILE NAV (LEFT SLIDE-IN) ====== */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -280px;
  width: 260px;
  height: 100vh;
  background-color: rgba(61, 10, 18, 0.9);
  backdrop-filter: blur(3px);
  transition: left 0.4s ease;
  padding: 60px 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1002;
}

.mobile-nav.open {
  left: 0;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 400;
  font-family: 'PT Sans Narrow', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav a:hover {
  color: #cccccc;
  background-color: transparent;
}

/* ====== COLLAPSIBLE SUBMENUS ====== */
.mobile-dropdown {
  display: flex;
  flex-direction: column;
}

.mobile-dropdown button {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 400;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 10px 0;
}

.mobile-dropdown button:hover {
  color: #cccccc;
  background-color: transparent;
}

.mobile-submenu {
  display: none;
  flex-direction: column;
  margin-left: 10px;
  border-left: 2px solid rgba(255,255,255,0.2);
  padding-left: 10px;
}

.mobile-submenu a {
  font-size: 18px;
  margin: 6px 0;
  opacity: 0.9;
}

.mobile-submenu.open {
  display: flex;
}

/* ====== OVERLAY BEHIND MOBILE MENU ====== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  z-index: 1001;
}

.overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* ====== RESPONSIVE ====== */
@media (min-width: 700px) {
  .navbar-title-s {
    display: none;
  }
}

@media (max-width: 701px) {
  .navbar-title {display: none;}
}

@media (max-width: 960px) {
  .navbar-menu {
    display: none;
  }
  .hamburger {
    display: flex;
  }  
}
