/* ----------------------------------------
   Header Styles
---------------------------------------- */

/* Header Container */
#header {
  position: relative;
  width: 100%;
  background: #333;
  color: white;
  padding: 0;
  margin: 0;
}

/* Navigation Bar Styling */
#nav {
  position: fixed;
  top: 2.5em;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 1000;
}

#nav > ul {
  display: inline-block;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 0.35em;
  box-shadow: inset 0px 0px 1px 1px rgba(255, 255, 255, 0.25);
  padding: 0 1.5em;
}

#nav > ul > li {
  display: inline-block;
  padding: 0 1.5em;
}

#nav > ul > li > a {
  display: block;
  color: #e97770;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.9em;
  letter-spacing: 0.25em;
  height: 3em;
  line-height: 3em;
  transition: all 0.25s ease-in-out;
}

#nav > ul > li:hover > a {
  color: #fff;
}

#nav > ul > li.active > a {
  color: #fff;
}

/* Hamburger Menu */
#navPanel {
  display: none;
  position: fixed;
  left: 0;
  top: 2.5em;
  width: auto;
  margin: 0 1em;
  /* color: #e97770; */
  background: rgba(44, 50, 63, 0.95);
  padding: 1.25em 1em;
  box-shadow: inset -3px 0 4px rgba(0, 0, 0, 0.1);
  z-index: 10002;
  overflow-y: auto;
}

body.navPanel-visible #navPanel {
  display: block;
}

#navPanel ul {
  list-style: none;
  padding: 0;
}

#navPanel li {
  margin: 0;
  padding: 0;
}

#navPanel a {
  display: block;
  padding: 0.5em 0;
  text-transform: uppercase;
  font-size: 1em;
  color: #e97770;
  text-decoration: none;
}

/* Hamburger Menu Toggle */
#titleBar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 44px;
  width: 100%;
  /* background: rgba(92, 95, 103, 0.5); */
  z-index: 10001;
  text-align: left;
  padding: 0.5em 0.5em;
}

#titleBar .toggle {
  display: block;
  width: 44px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  color: #e97770;
  background: rgba(92, 95, 103, 0.5);
  border-radius: 0.25em;
  transition: background 0.15s ease-in-out;
  cursor: pointer;
}

#titleBar .toggle:hover {
  background: rgba(92, 95, 103, 0.75);
}

/* Logo and Header Image */
#logo {
  position: relative;
  text-align: center;
}

#logo .overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: clamp(2em, 5vw, 3em);
  font-weight: bold;
  /* text-shadow: 3px 3px 3px #e97770; */
  text-shadow: 1px 1px 2px black, 0 0 25px #e97770, 0 0 15px #e97770;
  white-space: pre-wrap;
  text-align: center;
  line-height: 1.4;
  max-width: 80%;
}

#logo .header-image {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

/* Responsive Adjustments */

/* Screens 426px and smaller */
@media screen and (max-width: 426px) {
  #logo .overlay-text {
    font-size: clamp(1.4em, 3.5vw, 2.2em);
    max-width: 90%; /* Constrain width for wrapping */
    line-height: 1.2; /* Adjust line spacing */
  }

  #nav {
    display: none; /* Hide desktop menu */
  }

  #titleBar {
    display: block; /* Show hamburger menu */
  }

  #navPanel a {
    font-size: 0.9em; /* Adjust menu font size */
    padding: 0.4em 0;
  }

  #logo .header-image {
    height: 60vh; /* Reduce header image height */
  }
}

/* Screens 427px to 768px */
@media screen and (min-width: 427px) and (max-width: 768px) {
  #logo .overlay-text {
    font-size: clamp(1.8em, 4.5vw, 2.5em);
    max-width: 85%; /* Ensure wrapping */
    line-height: 1.3;
  }

  #nav {
    display: none; /* Keep hamburger menu */
  }

  #titleBar {
    display: block;
  }

  #navPanel a {
    font-size: 1em; /* Slightly larger menu font */
    padding: 0.5em 0;
  }

  #logo .header-image {
    height: 70vh; /* Slightly larger header image */
  }
}

/* Tablets (769px to 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  #logo .overlay-text {
    font-size: clamp(2em, 5vw, 2.8em);
    max-width: 80%; /* Restrict for wrapping */
  }

  #nav {
    display: block; /* Show desktop menu */
  }

  #titleBar {
    display: none; /* Hide hamburger menu */
  }

  #nav ul {
    gap: 1.5em; /* Adjust spacing between menu items */
    font-size: 0.8em;
  }

  #logo .header-image {
    height: 80vh; /* Larger header image */
  }
}

/* Large Screens (1025px to 1366px) */
@media screen and (min-width: 1025px) and (max-width: 1366px) {
  #logo .overlay-text {
    font-size: clamp(2.2em, 6vw, 3em);
    max-width: 75%; /* Slightly wider */
    line-height: 1.4;
  }

  #nav ul {
    gap: 1.5em; /* Adjust menu spacing */
  }
}

/* Extra Large Screens (1367px to 1439px) */
@media screen and (min-width: 1367px) and (max-width: 1439px) {
  #logo .overlay-text {
    font-size: clamp(2.8em, 6vw, 3.5em);
    max-width: 70%; /* Adjust width */
    line-height: 1.5;
  }

  #nav ul {
    gap: 2em; /* More spacing for menu items */
  }
}

/* Ultra Large Screens (1440px to 2559px) */
@media screen and (min-width: 1440px) and (max-width: 2559px) {
  #logo .overlay-text {
    font-size: clamp(3.8em, 6vw, 4.5em);
    max-width: 60%; /* Restrict for wrapping */
    line-height: 1.3;
  }

  #nav ul {
    gap: 2.5em; /* Add more space between menu items */
    font-size: 1.4em; /* Larger menu font size */
    padding: 0 2em;
  }
}

/* 4K Ultra HD Screens (2560px and above) */
@media screen and (min-width: 2560px) {
  #logo .overlay-text {
    max-width: 100%; /* Remove width restriction */
    white-space: nowrap; /* Prevent wrapping */
    font-size: clamp(7.5em, 8vw, 8em); /* Larger scaling */
    line-height: 1.2; /* Adjust spacing */
  }

  #nav ul {
    gap: 3em; /* Extra spacing for menu */
    font-size: 2.3em; /* Ultra-large font size */
    padding: 0 3em;
  }
}
