/* ================= NAV ================= */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  display: flex;
  align-items: center;

  padding: 1rem 2rem;
  background: #f5f0e8;
  border-bottom: 3px solid #1a1a1a;

  z-index: 1000;
}

/* LOGO */
.nav-logo {
  font-family: "Unbounded", sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: #ff6b35;
}

/* DESKTOP LINKS */
.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #1a1a1a;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  color: #ff6b35;
}

/* ACTIVE (desktop) */
.nav-links a.active {
  color: #ff6b35;
}

/* ================= HAMBURGER ================= */

.menu-toggle {
  margin-left: auto;
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.line {
  fill: none;
  stroke: #1a1a1a;
  stroke-width: 6;
  transition: 0.35s ease;
}

.menu-toggle.active .top {
  transform: translateY(20px) rotate(45deg);
}
.menu-toggle.active .middle {
  opacity: 0;
}
.menu-toggle.active .bottom {
  transform: translateY(-20px) rotate(-45deg);
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    padding: 1rem 1.2rem;
  }
}

/* ================= BODY OFFSET ================= */

body {
  padding-top: 72px;
}

/* ================= LOCK SCROLL ================= */

body.menu-open {
  overflow: hidden;
}

/* ================= OVERLAY ================= */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);

  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;

  z-index: 1100;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ================= FULLSCREEN MENU ================= */

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;

  width: 100%;
  height: 100dvh;

  background: #f8fafc;
  backdrop-filter: blur(12px);

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 90px 28px 40px;

  z-index: 1200;

  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* ================= SCROLL ================= */

.menu-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;

  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ================= MENU GROUP ================= */

.menu-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ================= SECTION TITLE ================= */

.menu-title {
  font-family: "Unbounded", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  color: #94a3b8;
  margin-bottom: 6px;
}

/* ================= LINKS ================= */

.menu-group a {
  font-family: "Unbounded", sans-serif;
  font-size: 1rem;
  font-weight: 600;

  letter-spacing: 0.04em;
  text-transform: none;

  color: #0f172a;
  text-decoration: none;

  padding-left: 6px;
  position: relative;

  transition: all 0.25s ease;
}

/* ACTIVE LINK */
.menu-group a.active {
  color: #ff6b35;
  font-weight: 700;
}

/* ACTIVE GROUP TITLE */
.menu-group .menu-title.active {
  color: #ff6b35;
}

/* HOVER */
.menu-group a:hover {
  color: #ff6b35;
  transform: translateX(8px);
}

/* underline effect */
.menu-group a::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #ff6b35;
  transition: width 0.25s ease;
}

.menu-group a:hover::after {
  width: 40%;
}

/* ================= DIVIDER ================= */

.menu-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0,0,0,0.15),
    transparent
  );
}

/* ================= FOOTER ================= */

.menu-footer {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 20px;
  font-size: 0.7rem;
  color: #64748b;
  font-family: "Space Mono", monospace;
}

/* ================= ANIMATION ================= */

.mobile-menu.open .menu-group {
  animation: fadeSlide 0.4s ease forwards;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}