body {
  margin: 0;
  font-family: 'Comic Neue', cursive;
}

/* Navbar Base */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem 1.2rem;
  box-shadow: 0 4px 16px rgba(74, 144, 226, 0.08);
  border-bottom: 1.5px solid #e3eaf3;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.navbar-logo a {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: #4a90e2;
  text-decoration: none;
}

/* Hamburger Animation */
.hamburger {
  display: none;
  width: 2.2rem;
  height: 2.2rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1100;
  background: none;
  border: none;
  padding: 0;
  transition: transform 0.3s cubic-bezier(.4,2,.6,1);
}
.hamburger .bar {
  display: block;
  width: 28px;
  height: 3px;
  margin: 4px 0;
  background: #4a90e2;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(.4,2,.6,1);
}
.hamburger.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu Animation */
.navbar-menu {
  display: flex;
  align-items: center;
  transition: all 0.4s cubic-bezier(.4,2,.6,1);
}

/* Menu Links */
.navbar-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.navbar-links li {
  position: relative;
}

/* Menu Item Hover/Active Animation */
.navbar-links a {
  position: relative;
  text-decoration: none;
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.5rem 0.8rem;
  transition: color 0.3s cubic-bezier(.4,2,.6,1);
}
.navbar-links a::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #4a90e2;
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(.4,2,.6,1);
}
.navbar-links a:hover,
.navbar-links a:focus {
  color: #4a90e2;
}
.navbar-links a:hover::after,
.navbar-links a:focus::after {
  width: 100%;
}

/* Responsive */

/* < 768px — Mobile */
@media (max-width: 767px) {
  .hamburger {
    display: block;
  }

  .navbar-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.45s cubic-bezier(.4,2,.6,1);
  }
  .navbar-menu.active {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .navbar-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.2rem 1.5rem 1.2rem 1.5rem;
  }
  .navbar-links li {
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s, transform 0.4s;
  }
  .navbar-menu.active .navbar-links li {
    opacity: 1;
    transform: translateY(0);
  }
  .navbar-menu.active .navbar-links li:nth-child(1) { transition-delay: 0.10s; }
  .navbar-menu.active .navbar-links li:nth-child(2) { transition-delay: 0.22s; }
  .navbar-menu.active .navbar-links li:nth-child(3) { transition-delay: 0.34s; }
  .navbar-logo a {
    font-size: 1.5rem;
  }
}

/* Breakpoints for fine-tuning text/padding */
@media (min-width: 576px) and (max-width: 767px) {
  .navbar-logo a { font-size: 1.4rem; }
  .navbar-links a { font-size: 0.95rem; }
}

@media (min-width: 768px) and (max-width: 991px) {
  .navbar-logo a { font-size: 1.6rem; }
  .navbar-links { gap: 0.5rem; }
  .navbar-links a { font-size: 1rem; }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .navbar-logo a { font-size: 1.8rem; }
  .navbar-links { gap: 0.5rem; }
  .navbar-links a { font-size: 1.05rem; }
}

@media (min-width: 1200px) {
  .navbar-logo a { font-size: 2rem; }
  .navbar-links { gap: 1.5rem; }
  .navbar-links a { font-size: 1.1rem; }
}
