@import url("https://fonts.googleapis.com/css2?family=Gilda+Display&display=swap");

.nav-container.home-nav {
  background-color: transparent !important;
  position: absolute;
  top: 10;
  left: 0;
  width: 100%;
  border-bottom: none;
}
.nav-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background-color: #ffffff;
  position: relative;
}

.nav-container-left {
  display: flex;
  align-items: center;
}

.nav-left {
  display: flex;
  justify-content: space-between;
  white-space: nowrap;
  width: 25%;
  z-index: 10;
}
.nav-right {
  display: flex;
  justify-content: space-between;
  white-space: nowrap;
  width: 25%;
  z-index: 10;
}

.home-nav .nav-title a,
.home-nav .nav-buttons a {
  color: #ffffff;
}

.home-nav .dropdown-menu a {
  color: #444 !important;
}
.nav-title {
  font-size: 1.8rem;
  font-weight: 100;
  text-transform: uppercase;
  color: #444;
  font-family: "Gilda Display", serif;
  text-align: center;
  margin: 0 2rem;
  z-index: 20;
}

.nav-title a {
  text-decoration: none;
}

.nav-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  gap: 20px;
  font-size: 0.9rem;
  color: #444;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-family: monospace;
  font-weight: bold;
}

.nav-buttons a {
  text-decoration: none;
  color: #444;
  transition: color 0.3s ease;
}

.nav-buttons a:hover {
  color: #000;
}

/* Dropdown styling */
.nav-dropdown {
  position: relative;
  padding-bottom: 5px;
}

.dropdown-toggle {
  cursor: pointer;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #f8f8f8;
  min-width: 180px;
  padding: 10px 0;
  z-index: 1000;
  border: 1px solid #ddd;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-left .dropdown-menu {
  left: 0;
  top: 100%;
}

.nav-right .dropdown-menu {
  right: 0;
  top: 100%;
}

.nav-bottom-portfolio .dropdown-menu:hover {
  background-color: aqua;
}

.dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background-color: #e8e8e8;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 13px 0;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background-color: #444;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #f8f8f8;
  z-index: 999;
  padding: 80px 40px 40px;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu .nav-buttons {
  align-items: center;
  gap: 20px;
  font-size: 1.1rem;
}

/* Mobile menu dropdowns */
.mobile-menu .nav-dropdown {
  width: 100%;
  text-align: center;
}

.mobile-menu .dropdown-menu {
  position: relative;
  display: none;
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 10px 0 0 0;
  min-width: auto;
}

.mobile-menu .dropdown-menu a {
  font-size: 0.9rem;
  padding: 8px 0;
}

.mobile-menu .nav-dropdown:hover .dropdown-menu,
.mobile-menu .nav-dropdown.active .dropdown-menu {
  display: block;
}

@media (max-width: 768px) {
  .nav-left,
  .nav-right {
    display: none;
  }

  .hamburger {
    display: flex;
    position: absolute;
    right: 20px;
    z-index: 1001;
  }

  .nav-title {
    font-size: 1.6rem;
    margin: 0;
    text-align: left;
  }

  .mobile-menu.active {
    display: flex;
  }

  .mobile-menu .nav-buttons {
    display: flex !important;
    flex-direction: column;
  }

  .mobile-menu a {
    padding: 15px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
  }
}

@media (max-width: 560px) {
  .nav-container {
    align-items: flex-start;
    padding: 20px;
  }

  .nav-title {
    font-size: 1.4rem;
    margin: 0;
    text-align: left;
    width: 80%;
  }
}

@media (max-width: 1070px) {
  .nav-buttons {
    font-size: 0.8rem;
  }
}
