/* Reset and Base Styles for Navbar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Navigation Styles */
.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 0.75rem clamp(1rem, 4vw, 2rem);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
}

.logo-section {
  flex-shrink: 0;
  z-index: 1001;
}

.logo-placeholder {
  width: clamp(80px, 12vw, 120px);
  height: clamp(80px, 12vw, 120px);
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.logo-placeholder img {
  width: clamp(100px, 15vw, 150px);
  height: clamp(100px, 15vw, 150px);
  border-radius: 50%;
  object-fit: cover;
  transform: translateY(2px);
}

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

.nav-item {
  margin: 0;
}

.nav-link {
  color: #27ae60;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  white-space: nowrap;
  display: block;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.nav-link:hover {
  background: rgba(39, 174, 96, 0.1);
  transform: translateY(-2px);
  color: #1e3a2e;
}

.nav-link.active {
  background: #27ae60;
  color: white;
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  z-index: 1002;
  position: relative;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: #27ae60;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

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

/* Mobile Navigation */
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-list {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    gap: 1rem;
  }
  
  .navbar.mobile-menu-open .nav-list {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-item {
    width: auto;
  }
  
  .nav-link {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 12px;
    min-width: 200px;
    text-align: center;
  }
  
  .nav-link:hover {
    background: rgba(39, 174, 96, 0.1);
    transform: scale(1.05);
  }
}

@media (max-width: 400px) {
  .navbar {
    padding: 0.5rem 1rem;
    min-height: 70px;
  }
  
  .logo-placeholder {
    width: clamp(80px, 12vw, 100px);
    height: clamp(80px, 12vw, 100px);
  }
  
  .logo-placeholder img {
    width: clamp(100px, 15vw, 120px);
    height: clamp(100px, 15vw, 120px);
  }
}

/* Focus styles for accessibility */
.nav-link:focus {
  outline: 2px solid #27ae60;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .nav-link {
    border: 2px solid #27ae60;
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .nav-link,
  .mobile-menu-toggle,
  .hamburger-line {
    transition-duration: 0.01ms !important;
  }
}