/* ========== HEADER BAR ========== */

.site-header {
  height: 120px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* LOGO */
.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 80px;   /* desktop default */
  width: auto;    /* keep proportions */
  object-fit: contain;
}

/* CENTERED NAV MENU (DESKTOP) */
.menu {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 20px;
  align-items: center;
}

/* NAV LINKS */
.nav-link {
  font-weight: 500;
  font-size: 16px;
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  transition: color 0.3s ease, background 0.3s ease;
  border: none;
  background: none;
  display: flex;
  align-items: center;
}
.nav-link:hover {
  color: #9e42f5;
}

/* ✅ Active page highlight */
.nav-link[aria-current="page"] {
  color: #9e42f5;
  font-weight: 600;
}

/* DROPDOWN (DESKTOP) */
.desktop-dropdown { position: relative; }
.desktop-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0, 0, 0, 0.95);
  padding: 10px;
  border-radius: 10px;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
  z-index: 1001;
}
.desktop-dropdown-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  color: white;
}
.desktop-dropdown-menu a:hover {
  background: rgba(255,255,255,0.1);
}
.desktop-dropdown:hover .desktop-dropdown-menu { display: block; }

/* SOCIAL ICONS (RIGHT - DESKTOP ONLY) */
.social-icons {
  display: flex;
  gap: 14px;
  align-items: center;
}
.social-icons img {
  width: 40px;
  height: 40px;
  opacity: 0.9;
  transition: filter 0.3s ease, opacity 0.3s ease;
  object-fit: contain;
}
.social-icons img:hover {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(25%) sepia(97%) saturate(747%) hue-rotate(245deg) brightness(100%) contrast(100%) opacity(1.0);
}

/* HAMBURGER MENU BUTTON (MOBILE) */
.menu-button {
  display: none;
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 36px;
  font-weight: 400;
  cursor: pointer;
  z-index: 3001; /* Higher than overlay */
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1;
}

/* Hamburger icon bars */
.menu-button .hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 30px;
  position: relative;
  z-index: 1001;
  transition: transform 0.4s ease;
}

.menu-button .bar {
  width: 100%;
  height: 5px;
  background-color: white;
  margin: 3px 0;
  border-radius: 5px;
  transition: 0.4s ease;
}

/* Transform hamburger into X when active */
.menu-button.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}
.menu-button.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-button.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ========== RESPONSIVE ========== */

/* Mobile mode up to 1108px */
@media (max-width: 1108px) {
  .menu-button {
    display: block;
  }

  .menu {
    display: none;
  }

  .social-icons {
    display: none;
  }

  /* ✅ Mobile logo tweaks */
  .logo {
    height: 60px;   /* smaller on mobile */
    width: auto;
  }
  .logo-link {
    justify-content: flex-start; /* back to left alignment */
    flex: 0; /* no stretching */
  }
}

/* Desktop from 1109px and up */
@media (min-width: 1109px) {
  .menu {
    display: flex;
  }

  .social-icons {
    display: flex;
  }

  .menu-button {
    display: none;
  }
}