/* Navbar */
.navbar {
  background-color: #ffffff; /* dark from your palette */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid #5d5852; /* subtle warm gray border */
  z-index: 1000;
}

/* Inner layout — links left, logo right */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  padding: 0 90px;
  height: 80px;
}

/* Logo */
.logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

/* 3D Animation */
.nav-links li a {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  text-decoration: none;
  color: #000000; /* dark text for contrast */
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.nav-links li a:hover {
  transform: translateY(-5px) scale(1.05) rotateX(10deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.nav-links li a:hover::before {
  animation: shine 0.6s forwards;
}

@keyframes shine {
  100% {
    left: 125%;
  }
}

/* Responsive — still always visible */
@media (max-width: 768px) {
  .nav-inner {
    flex-direction: row-reverse;
    padding: 0 20px;
    height: auto;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
  }
}
/* =========================
   HAMBURGER
========================= */
.hamburger {
  display: none; /* hidden on desktop */
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1100; /* above menu */
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animate hamburger into X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================
   RESPONSIVE
========================= */

/* Tablet */
@media (max-width: 1024px) {
  .nav-inner {
    padding: 0 30px;
  }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .hamburger {
    display: flex; /* show hamburger */
  }

  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    display: none; /* hidden by default */
    z-index: 2000; /* 🚀 force it above navbar */
  }

  .nav-links.show {
    display: flex !important; /* ensure visible */
  }
}

