/* =======================
   NAVBAR VARIABLES
======================= */
:root {
  --primary: #5f88c4;
  --primary-light: #8eb9e3;
  --primary-dark: #355c9d;

  --text-dark: #0b1220;
  --text-medium: #5b667a;

  --bg-white: #ffffff;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .12);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, .18);

  --radius-sm: 12px;
  --radius-md: 20px;

  --transition: .4s cubic-bezier(.4, 0, .2, 1);
}
/* ===== FIX: remove the square box around hamburger ===== */
header .mobile-toggle,
#header .mobile-toggle {
  background: transparent !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

header .mobile-toggle:focus,
header .mobile-toggle:active {
  outline: none !important;
  box-shadow: none !important;
}


/* =======================
   HEADER
======================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  transition: var(--transition);
}

header.scrolled {
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-sm);
}

.navwrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  max-width: 1200px;
  margin: auto;
  width: calc(100% - 48px);
}

/* =======================
   BRAND
======================= */
.brand img {
  height: 36px;
  transition: var(--transition);
}

.brand:hover img {
  transform: scale(1.05);
}

/* =======================
   MOBILE TOGGLE
======================= */
.mobile-toggle {
  display: none;
  flex-direction: column;

  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =======================
   NAV MENU
======================= */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navlinks {
  list-style: none;
  display: flex;

  gap: 26px;
}

.navlinks a {
  font-size: 13px;
    text-decoration: none;
    color: var(--text-dark);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  position: relative;
  padding: 10px 6px;
}

.navlinks a::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: 6px;
  width: 0;
  height: 2px;
  color : linear-gradient(90deg, var(--primary-light), var(--primary)); 
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  transition: var(--transition);
}

.navlinks a:hover::after,
.navlinks a.active::after {
  width: calc(100% - 12px);
    color : linear-gradient(90deg, var(--primary-light), var(--primary)); 

}

/* =======================
   RIGHT AREA
======================= */
.navright {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dropdown {
  position: relative;
}

.translate-pill {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(15, 23, 42, .12);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.translate-pill:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: 120%;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: var(--transition);
  min-width: 140px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
    text-decoration: none;
    color: var(--text-dark);
  border-radius: var(--radius-sm);
}

.dropdown-menu a:hover {
  background: rgba(142, 185, 227, .15);
  color: var(--primary);
}
/* =======================
   MOBILE
======================= */
@media (max-width: 768px) {

  /* SHOW HAMBURGER */
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-toggle span {
    width: 26px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
  }

  /* MOBILE MENU PANEL */
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    width: calc(100% - 32px);
    max-width: 420px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
    z-index: 10000;
  }

  .nav-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  /* LINKS */
  .navlinks {
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }

  .navlinks a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    padding: 6px 0;
    color: var(--text-dark);
  }

  /* REMOVE DESKTOP UNDERLINE */
  .navlinks a::after {
    display: none;
  }

  /* ACTIVE LINK INDICATOR (SUBTLE LINE) */
  .navlinks a.active {
    color: var(--primary);
    position: relative;
  }

  .navlinks a.active::before {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 26px;
    height: 2px;
    background: var(--primary);
    transform: translateX(-50%);
  }

  /* TRANSLATE BUTTON CENTERED */
  .navright {
    margin-top: 8px;
    justify-content: center;
  }
}
