/* Navigation and Mobile Menu Styles */

/* Logo transparency animation */
#navigation img[alt="Reev Logo"] {
  transition: opacity 0.3s ease, filter 0.3s ease;
}

#navigation.at-top img[alt="Reev Logo"] {
  opacity: 1;
}

#navigation.scrolling img[alt="Reev Logo"] {
  opacity: 0;
}

/* Navigation Container */
#navigation-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: 120px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Hamburger Menu */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 12px;
  position: relative;
  z-index: 1000;
  min-width: 60px;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 12px;
  transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover {
  background-color: var(--primary-hover);
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-blue);
  margin: 3px 0;
  transition: 0.3s;
  display: block;
}

/* Hamburger animation */
.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -6px);
}

/* Mobile Modal Overlay */
.mobile-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh; /* Modern browsers with dynamic viewport units */
  height: calc(var(--vh, 1vh) * 100); /* Fallback for older browsers */
  max-width: 100vw;
  max-height: 100dvh; /* Modern browsers with dynamic viewport units */
  max-height: calc(var(--vh, 1vh) * 100); /* Fallback for older browsers */
  background-color: #f8fafc;
  z-index: 10000;
  color: var(--primary-blue);
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
}

.mobile-modal.active {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  line-height: 1.1;
  height: 100dvh; /* Modern browsers with dynamic viewport units */
  height: calc(var(--vh, 1vh) * 100); /* Fallback for older browsers */
  max-height: 100dvh;
  max-height: calc(var(--vh, 1vh) * 100);
}

/* Modal close button */
.modal-close {
  font-size: 3.5rem;
  line-height: 1;
  padding: 12px;
  cursor: pointer;
  color: var(--primary-blue);
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  font-weight: 200;
}

.modal-close:hover {
  background-color: var(--primary-hover);
}

/* Responsive sizes for mobile menu and close button */
@media (min-width: 768px) {
  .mobile-menu-btn, .modal-close {
    min-width: 70px;
    min-height: 70px;
    padding: 15px;
  }
  
  .modal-close {
    font-size: 4rem;
    width: 70px;
    height: 70px;
  }
  
  .mobile-menu-btn span {
    width: 30px;
    height: 4px;
  }
}

/* Desktop modal fixes */
@media (min-width: 1024px) {
  .mobile-modal {
    padding-bottom: 2rem;
  }
}

/* Body scroll lock */
.no-scroll {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

/* Navigation links */
.nav-link {
  font-size: 2.25rem;
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 12px;
}

.nav-link:hover {
  color: #6b7280;
  background-color: var(--primary-hover-light);
}

@media (min-width: 640px) {
  .nav-link {
    font-size: 1.25rem;
  }
}

@media (min-width: 768px) {
  .nav-link {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .nav-link {
    font-size: 2.625rem; /* 50% bigger than 1.75rem */
  }
}

@media (min-width: 1280px) {
  .nav-link {
    font-size: 3rem; /* 50% bigger than 2rem */
  }
}


/* Social icon links in mobile menu */
.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  min-width: 44px;
  min-height: 44px;
}

.social-icon-link:hover {
  background-color: var(--primary-hover-light);
}

.social-icon-blue {
  filter: brightness(0) saturate(100%) invert(13%) sepia(93%) saturate(1729%) hue-rotate(208deg) brightness(95%) contrast(101%);
  transition: filter 0.3s ease;
}

.social-icon-link:hover .social-icon-blue {
  filter: brightness(0) saturate(100%) invert(43%) sepia(7%) saturate(1678%) hue-rotate(185deg) brightness(99%) contrast(88%);
}