/* === Global Styles === */
body {
  margin: 0;
  font-family: sans-serif;
  background-color: #f5f5f5;
  color: #333;
  transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
  background-color: #111;
  color: #eee;
}

/* === Header & Logo === */
header {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: fixed;
  top: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(-45deg, #001f3f, #0074D9, #7FDBFF, #39CCCC);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  mask-image: linear-gradient(to bottom, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 96%, transparent 100%);
  transition: -webkit-mask-image 0.5s ease, mask-image 0.5s ease;
}

header.mask-disabled {
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.logo-wrapper {
  position: absolute;
  top: 0;
  width: 100%;
  text-align: center;
  pointer-events: none;
  z-index: 0;
}

.logo-wrapper img,
.logo-wrapper video {
  pointer-events: auto;
  height: 150px;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.5));
}

/* === Fluid Header & Logo Scaling === */
header {
  height: clamp(90px, 18vw, 150px); /* min: 90px, max: 150px */
}

.logo-wrapper img,
.logo-wrapper video {
  height: clamp(90px, 18vw, 150px); /* scales with header */
}


/* === Navbar === */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  width: 100%;
  z-index: 1001;
  position: relative;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 4rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.nav-links li a {
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  padding: 0.4rem 0;
}

.nav-links li a:hover {
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

#themeToggle {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: white;
  cursor: pointer;
  padding: 0.25rem 2rem;
  transition: opacity 0.3s;
}

#themeToggle:hover {
  opacity: 0.8;
}

body.dark-mode header {
  background: linear-gradient(-45deg, #111, #222, #444, #333);
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* === Section Content === */
section {
  font-size: 1.1rem;
  line-height: 1.6;
  padding: 14rem 1rem 3rem;
  max-width: 800px;
  margin: auto;
}

/* === Contact Form === */
.contact-container {
  max-width: 600px;
  margin: 14rem auto 4rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1;
  position: relative;
}

body.dark-mode .contact-container {
  background: rgba(30, 30, 30, 0.9);
  color: white;
}

.contact-container h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.contact-container form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-container label {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
}

.contact-container input,
.contact-container textarea {
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-container button {
  width: fit-content;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  background: black;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-container button:hover {
  background: #333;
}






/* === Responsive Mobile Nav === */

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    font-size: 1.2rem;
  }


  /* Hamburger Menu Style */
.McButton {
  width: 18px;
  height: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  padding: 8px;
  top: 1px;
  z-index: 1002; /* Ensure it's clickable */
}

.McButton b {
  display: block;
  width: 20px;
  height: 2px;
  background-color: white;
  transition: all 0.3s ease;
  transform-origin: center;
}

.McButton.active b:nth-child(1) {
  transform: rotate(45deg) translateY(9px);
}

.McButton.active b:nth-child(2) {
  opacity: 0;
}

.McButton.active b:nth-child(3) {
  transform: rotate(-45deg) translateY(-9px);
}


button.McButton {
  all: unset; /* removes all native browser styling */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 14px;
  padding: 8px;
  top: 1px;
  cursor: pointer;
  position: relative;
  z-index: 1002;
}
/* Bottom of Hamburger styling */

  header {
    height: clamp(70px, 15vw, 120px);
  }

  .logo-wrapper img,
  .logo-wrapper video {
    height: clamp(70px, 15vw, 120px);
  }

  #themeToggle {
    font-size: 1.2rem;
    padding: 0.25rem 1.6rem;
  }

  .nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.808);
  position: absolute;
  top: 100%;
  left: .8rem;
  right: .9rem;
  gap: .5rem;
  z-index: 9999;
  transform: translateX(-14px);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.nav-links.show {
  max-height: 185px; /* Adjust height if you add more links */
  
  opacity: 1;
}

  .nav-links li {
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: center;
  line-height: 1;           /* Ensures no extra vertical spacing */
  border-bottom: none;      /* Remove if you're not using it */
}
.nav-links li a {
  display: block;
  padding: 0.6rem 0;         /* Adjust this up/down for link height */
  width: 100%;
  color: white;
  font-size: 1rem;
  text-align: center;
  background-color: #000;
  transition: background-color 0.3s ease;
}

  .nav-links li a:hover {
    background-color: #222;
  }

  .contact-container {
    margin-top: 18rem;
  }
  

  .navbar {
    justify-content: space-between;
  }

  .nav-left {
    position: relative;
    left: -0.6rem;
    top: 0.5rem;
    bottom: 0rem;
  }

  .nav-right {
    position: relative;
    transform: none;
    left: 0rem;
    bottom: 0rem;
    top: 0.4rem;
  }

  /* Dark Mode Styling for drop-down panels */
body.dark-mode .nav-links {
  background: linear-gradient(to bottom, #2a1e12, #FF6B35);
   
}

body.dark-mode .nav-links li a {
  background: linear-gradient(to right, #FF6B35, #FF914D);
  color: white;
}

body.dark-mode .nav-links li a:hover {
  background: #FF7F50; /* a slightly lighter orange on hover */
}

body.dark-mode .nav-links li a {
  background-color: #FF6B35;
  color: white;
  border: 1px solid #FF944D;
  border-radius: 6px;
  transform: translateX(-14px);
  margin: 4px 12px; /* spacing between buttons */
  padding: 0.6rem 0rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

body.dark-mode .nav-links li a:hover {
  background-color: #FF7F50;
  transform: translateY(-1px); /* small lift effect on hover */
  
}
body.dark-mode .nav-links {
  padding: 0.5rem 0.2rem;
  background-color: #FF6B35;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Light Mode Styling for drop-down panels */

body:not(.dark-mode) .nav-links {
  background: linear-gradient(to bottom, #685e48, #171746, #001f3ffd);
  padding: .5rem 0.2rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transform: translateX(-14px);
}

body:not(.dark-mode) .nav-links li a {
  background: linear-gradient(to right, #222, #000);
  color: white;
  border: 1px solid #FFBB66;
  border-radius: 6px;
  transform: translateX(-14px);
  margin: 4px 12px;
  padding: 0.6rem 0rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

body:not(.dark-mode) .nav-links li a:hover {
  background: #38342d;
  
  transform: translateY(-2px);
  
}

}

/* === Ultra-Wide Screen === */
@media (min-width: 1800px) {
 .navbar {
  position: relative;
  justify-content: center;
  left: -50rem;
}



  .nav-right {
  position: absolute;
  top: 40%;
  bottom: -4rem;
  left: 50%;
  transform: translate(100rem, -50%);
  display: flex;
  align-items: center;
}

  .nav-links {
    margin: 0;
    padding: 0rem;
    
    
  }
}
/* === Normal Desktop Layout (769px to 1799px) === */
@media (min-width: 769px) and (max-width: 1799px) {
 .navbar {
  justify-content: flex-start;
  padding-left: 1.6rem;
 
}

  .nav-left {
    position: absolute;
    left: 0rem;
    display: flex;
    align-items: center;
    
  }

  .nav-right {
    position: absolute;
    right: 2rem;
    bottom: .25rem;  /*  adjusts bottom padding for moon icon toggle */
    display: flex;
    align-items: center;
  }

  .nav-links {
    margin: 0;
    padding: 0;
  }
}

/* === Toast Message === */
.toast-message {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 9999;
}

.toast-message.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-20px);
}