/* =========================
   GOOGLE FONTS IMPORT
========================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* =========================
   NAVBAR BASE (FIXED TOP SAFE)
========================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 15px 5%;
  min-height: 60px;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* =========================
   PREVENT CONTENT HIDING UNDER NAVBAR
========================= */
body {
  padding-top: 70px; /* matches navbar height */
}

/* =========================
   GOOGLE TRANSLATE SAFE OFFSET
   (only applies when translate bar is present)
========================= */
body.translated-ltr .navbar,
body.translated-rtl .navbar {
  top: 40px; /* pushes navbar below Google Translate bar */
}

/* =========================
   LOGO
========================= */
.logo {
  display: inline-flex;
  align-items: center;
  /* gap: 0.1rem; */
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  color: #000;
  letter-spacing: -0.3px;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: inline-block;
}

.logo-text {
  display: inline-block;
  line-height: 1;
  padding: 0;
  margin: 0;
}


/* =========================
   NAV LINKS (DESKTOP)
========================= */
.navbar ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.navbar ul li a {
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: #000;
  transition: 0.25s ease;
  letter-spacing: 0.2px;
}

.navbar ul li a:hover {
  color: #ff6f61;
}

.nav-links a.active {
  color: #ff6f61;
  position: relative;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #ff6f61;
  border-radius: 2px;
}

/* =========================
   BUTTONS
========================= */
.signup,
.login {
  padding: 7px 16px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.signup {
  border: 2px solid #000;
}

.signup:hover {
  background: #000;
  color: #fff;
}

.login:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-links a.active {
  color: #ff6f61;
  position: relative;
}

/* =========================
   HAMBURGER (DESKTOP HIDDEN)
========================= */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 22px;
  height: 2.5px;
  background: #000;
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* =========================
   OVERLAY (OPTIONAL)
========================= */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 900;
}

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

/* =========================
   MOBILE NAVBAR
========================= */
@media (max-width: 768px) {

  .hamburger {
    display: flex;
  }

  .navbar ul {
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;

    padding: 0;
    margin: 0;
  }

  .navbar ul li {
    margin: 6px 0;
  }

  .navbar ul li a {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
  }

  .navbar ul.active {
    max-height: 100vh;
    padding: 15px 0;
    overflow-y: auto;
  }
  
  .nav-links a.active {
    color: #ff6f61;
    position: relative;
  }

  .nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: #ff6f61;
    border-radius: 2px;
  }
}

/* =========================
   SCROLL LOCK (OPTIONAL)
========================= */
.no-scroll {
  overflow: hidden;
}

/* =========================
   ACTIVE PAGE HIGHLIGHT
========================= */
.nav-links a.active {
  color: #ff6f61;
  position: relative;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #ff6f61;
  border-radius: 2px;
}