/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Segoe UI, Roboto, sans-serif;
}

/* Navbar */
.navbar {
  background: #2c3e50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 5%;
  position: relative;
}

.logo a {
  color: #fff;
  font-size: 1.3rem;
  text-decoration: none;
  font-weight: 600;
}

/* Menu Button */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animation when open */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Nav Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  padding: 8px 4px;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #f39c12;
}

/* Mobile Styles */
@media(max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #34495e;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
  }

  .nav-links.active {
    max-height: 400px;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links a {
    display: block;
    padding: 14px 5%;
  }
}

/* Desktop hide toggle */
@media(min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}
