/* 🚀 Ensure header container takes full width & stays fixed */
.top-container {
  display: flex;
  justify-content: space-between; /* Keeps logo left & navbar right */
  align-items: center;
  width: 100%;
  height: 80px;
  padding: 50px 50px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-sizing: border-box;
}

/* 🚀 Default Navbar Background - White for All Pages Except Index */
.top-container {
  background-color: white;
  transition: background-color 0.3s ease-in-out;
}

/* 🚀 Transparent Navbar for Index Page */
.index-page .top-container {
  background-color: transparent;
}

/* 🚀 Sticky Navbar (Only for Design, Studio, and Project-Info Pages) */
.top-container.sticky {
  height: 60px; /* Reduce height when scrolling */
  padding: 10px 50px;
  background-color: white; /* Keep white when sticky */
}

/* 🚀 Keep the logo visible & prevent disappearing */
.top-container .logo {
  height: 45px;
  width: auto;
  transition: height 0.3s ease-in-out;
}

.top-container.sticky .logo {
  height: 30px;
}

/* 🚀 Navbar Alignment */
.top-container .navbar {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Ensures navbar stays on the right */
  width: auto;
  flex-grow: 1;
}

/* 🚀 Keep nav-links visible */
.top-container .nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.top-container .nav-links a {
  font-size: 18px;
  color: black;
  text-decoration: none;
  white-space: nowrap;
}

/* 🚀 Index Page Navbar - White Text */
.index-page .navbar a {
  color: white;
}

/* 🚀 Logo & Navbar Spacing */
.logo-container {
  display: flex;
  align-items: center;
}

/* 🚀 Navbar Toggle (Hamburger Menu) */
.navbar-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 24px;
  color: black;
  cursor: pointer;
  z-index: 3;
}

/* 🚀 Nav-Link Hover Effect */
.navbar a {
  text-decoration: none;
  font-size: 18px;
  color: black;
  font-weight: bold;
  text-transform: uppercase;
  position: relative;
  transition: all 0.3s ease;
}

.navbar a:hover {
  color: black;
}

.navbar a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background-color: #a8b137;
  transition: width 0.3s ease-in-out;
  position: absolute;
  bottom: -5px;
  left: 0;
}

.navbar a:hover::after {
  width: 100%;
}

/* 🚀 Tablet View Adjustments */
@media (max-width: 768px) {
  .top-container .logo {
    height: 40px;
  }

  .top-container {
    padding: 15px 30px; /* Reduce padding */
  }

  .logo-container {
    display: flex;
    align-items: center;
  }

  .logo {
    height: 40px; /* Adjust logo size */
  }

  .navbar-toggle {
    display: block;
    margin-left: 20px; /* Increase spacing between logo & hamburger */
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: #a8b137;
    padding: 10px 15px;
    border-radius: 5px;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
  }

  .navbar.active .nav-links {
    max-height: 200px;
    visibility: visible;
    opacity: 1;
  }

  .nav-links li {
    border-bottom: 1px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    color: white;
    font-size: 18px;
    text-align: center;
  }
}

/* 🚀 Mobile View Adjustments */
@media (max-width: 480px) {
  .top-container .logo {
    height: 35px;
  }
  .top-container {
    padding: 12px 20px; /* Reduce padding for mobile */
  }

  .logo {
    height: 35px; /* Reduce logo size for mobile */
  }

  .navbar-toggle {
    display: block;
    margin-left: 25px; /* Further increase spacing */
  }

  .nav-links {
    gap: 10px;
  }

  .nav-links a {
    font-size: 14px;
  }
}
