/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Style*/
body {
  font-family: Arial, sans-serif;
}

/* Navbar Styling */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #000000;
  position: fixed;
  width: 100%;
  z-index: 1000;
  font-family: "IBM Plex Sans", serif;
}

/* Left Branding Section */
.owner-name {
  font-size: 1.5rem;
  color: #FEFCFB;
  font-weight: bold;
  letter-spacing: 2px;
  padding-left: 25px;
}

.brand-title {
  font-size: 1rem;
  color: #FEFCFB;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Navigation Bar */
.navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  text-transform: uppercase;
}

/* Nav Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 1rem;
}

/* Dropdown Menu Link */
#dropdown-link {
  font-size: 15px;
  color: #FEFCFB;
}

/* Dropdown Label: Ensures visibility and usability */
.dropdown-label {
  color: #FEFCFB; 
  font-size: 1rem;
  font-weight: bold;
  padding: 10px;
  cursor: default; 
}

/* Nav Links Styling */
.nav-links li a {
  font-family: "IBM Plex Sans", serif;
  font-weight: bold;
  font-style: normal;
  color: #FEFCFB;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  padding: 10px;
  transition: color 0.3s;
  letter-spacing: 1px;
}

/* Desktop View: Applies styles for screens larger than 951px */
@media (min-width: 951px) {

/* Show Dropdown on Hover */
.nav-item:hover .dropdown-menu, .dropdown-menu.dropdown-menu.active  {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(5px);
}

/* Hover Underline Animation */
.nav-links li a:hover::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 2px;
  width: 100%;
  background: #f39c12;
  animation: underline 0.3s ease-in-out;
}

/* Keyframes for Underline Animation */
@keyframes underline {
  from { width: 0; }
  to { width: 100%; }
}

/* Dropdown Link Hover Effect */
.dropdown-menu a:hover {
  background-color: rgba(255, 215, 0, 0.9);
}

/* Hides Toggle Button in Desktop View */
.nav-links button{
  display: none;
}

/* Dropdown Menu Styling */
.nav-item {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background: #000000;
  width: 180px;
  border-radius: 5px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Dropdown Menu Link Styles */
.dropdown-menu a {
  display: block;
  color: #fff;
  padding: 10px;
  text-align: left;
  transition: background 0.3s;
}
}

/* Mobile View: Adjustments for screens smaller than 951px */
@media (max-width: 951px) {

  /* Mobile Menu Toggle Button */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
  }

  /* Menu Toggle Bars */
  .menu-toggle .bar {
    background: white;
    height: 3px;
    width: 25px;
    margin: 4px 0;
    transition: 0.4s;
  }

   /* Ensures proper dropdown positioning */
   .nav-item {
    position: relative;
  }

  /* Display dropdown toggle button in mobile */
  .nav-links button{
    display: contents;
    color: #FEFCFB;
    font-weight: bold;
  }

  /* Mobile Navigation Styles */
  .nav-links {
    position: absolute;
    top: 90px;
    left: 0;
    width: 250px;
    height: 100vh;
    background: #000000;
    flex-direction: column;
    align-items: flex-start;
    transform: translateX(-100%);
    transition: transform 0.4s ease-in-out;
  }

  /* Show Navigation on Active State */
  .nav-links.active {
    transform: translateX(0);
  }

  /* Adjusts padding and position for menu items */
  .nav-links li {
    padding: 15px;
    width: 100%;
    position: relative;
  }

  /* Mobile Dropdown Toggle Button */
  .dropdown-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: white;
    margin-left: 5px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Mobile Dropdown Menu */
  .dropdown-menu {
    display: none;
    flex-direction: column;
    background: none;
    padding-left: 15px;
    transition: max-height 0.4s ease-in-out;
  }

  /* Dropdown Menu Links */
  .dropdown-menu a {
    display: block;
    color: white;
    padding: 10px 15px;
    font-size: 1.2rem;
    transition: background 0.3s;
  }

  /* Dropdown Menu Hover Effect */
  .dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }

  /* Show Dropdown When Active */
  .dropdown-menu.active {
    display: flex;
  }
}

/* Mid-Sized Screens: Adjust font sizes between 951px - 1051px */
@media (min-width: 951px) and (max-width: 1051px) {
  .nav-links li a {
    font-size: 1.2rem;
  }

  .nav-links .dropdown-label {
    font-size: 1.2rem;
  }
}