/* Mobile Menu Styles */
.burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 10;
}

.burger div {
  width: 30px;
  height: 3px;
  background: white;
  border-radius: 5px;
  transition: all 0.3s ease;
  position: relative;
  transform-origin: center;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  text-align: center;
  position: relative;
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav ul li {
  margin: 30px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.mobile-nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 28px;
  font-weight: 500;
  padding: 10px 20px;
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-nav ul li a:hover {
  color: #007bf7;
  transform: translateX(10px);
}

.mobile-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #007bf7;
  transition: width 0.3s ease;
}

.mobile-nav ul li a:hover::after {
  width: 100%;
}

.close-btn {
  position: absolute;
  top: -80px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 10px;
}

.close-btn:hover {
  color: #007bf7;
  transform: rotate(90deg);
}

/* Burger animation */
.burger.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle .line2 {
  opacity: 0;
}

.burger.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Nav link animation */
@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Prevent scrolling when menu is open */
.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* Responsive Design */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-overlay.active .mobile-nav ul li {
    opacity: 1;
    transform: translateY(0);
  }
  
  .mobile-menu-overlay.active .mobile-nav ul li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .mobile-menu-overlay.active .mobile-nav ul li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .mobile-menu-overlay.active .mobile-nav ul li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .mobile-menu-overlay.active .mobile-nav ul li:nth-child(4) {
    transition-delay: 0.4s;
  }
}