/* Navigation & Menu Styles */

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(30, 64, 175, 0.1);
  box-shadow: 0 2px 20px rgba(30, 64, 175, 0.08);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.nav-logo:hover {
  transform: scale(1.02);
}

img.logo {
  height: 40px;
  margin-right: 10px;
  transition: transform 0.2s ease;
}

.nav-logo h2 {
  color: rgb(35, 35, 90);
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  transition: transform 0.2s ease;
}

.nav-toggle:hover {
  transform: scale(1.1);
}

.bar {
  width: 25px;
  height: 3px;
  background: rgb(35, 35, 90);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Menu toggle animation */
.nav-toggle.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Fullscreen Menu Overlay - Blue & Dark Theme */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(30, 64, 175, 0.9) 50%,
    rgba(15, 23, 42, 0.95) 100%
  );
  backdrop-filter: blur(10px);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Simplified background pattern */
.menu-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 25% 25%, rgba(30, 64, 175, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
  background-size: 400px 400px;
  animation: backgroundFloat 15s ease-in-out infinite alternate;
}

@keyframes backgroundFloat {
  0% {
    background-position: 0% 0%, 100% 100%;
  }
  100% {
    background-position: 100% 0%, 0% 100%;
  }
}

.overlay-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  padding: 12px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  color: #3b82f6;
  transform: rotate(90deg) scale(1.1);
}

.close-btn:focus {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
}

.overlay-menu {
  text-align: center;
  max-width: 600px;
  width: 100%;
  padding: 2rem;
}

.overlay-link {
  display: block;
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 400;
  text-decoration: none;
  margin: 1.2rem 0;
  padding: 1rem 2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.menu-overlay.active .overlay-link {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays */
.overlay-link:nth-child(1) {
  transition-delay: 0.1s;
}
.overlay-link:nth-child(2) {
  transition-delay: 0.15s;
}
.overlay-link:nth-child(3) {
  transition-delay: 0.2s;
}
.overlay-link:nth-child(4) {
  transition-delay: 0.25s;
}
.overlay-link:nth-child(5) {
  transition-delay: 0.3s;
}
.overlay-link:nth-child(6) {
  transition-delay: 0.35s;
}

.overlay-link:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateX(10px);
  color: #93c5fd;
}

.overlay-link:focus {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
}

/* Remove complex background images and floating elements */
.menu-bg-images,
.menu-bg-image,
.link-icon {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-container {
    padding: 1rem 1.5rem;
  }

  .overlay-link {
    font-size: 1.5rem;
    margin: 1rem 0;
    padding: 0.8rem 1.5rem;
  }

  .close-btn {
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .nav-container {
    padding: 1rem;
  }

  .overlay-menu {
    padding: 1rem;
  }

  .overlay-link {
    font-size: 1.3rem;
    padding: 0.6rem 1rem;
  }

  .close-btn {
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .menu-overlay,
  .overlay-link,
  .nav-toggle,
  .close-btn {
    transition-duration: 0.01ms !important;
  }

  .menu-overlay::before {
    animation: none !important;
  }
}
