/* Header base */
.header {
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 12px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

/* Logo */
.logo{
	width: 50px;
	height: 50px;
}
.logo img {
  height: 100%;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  display: block;

}

/* Desktop nav (default) */
.nav {
  position: static; /* IMPORTANT: static by default so it's visible on desktop */
}

.nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  padding: 8px 0;
  transition: color 0.18s ease;
}

.nav a:hover,
.nav a:focus {
  color: var(--color-primary);
  outline: none;
}

/* Hamburger - hidden on desktop */
.hamburger {
  display: none;
  width: 36px;
  height: 28px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.hamburger span {
  display: block;
  height: 3px;
  min-height: 3px;
  width: 100%;
  background: #353535;
  border-radius: 3px;
  transition: transform 0.28s ease, opacity 0.2s ease;
  margin: 4px 0;
}

/* hamburger active -> X */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- MOBILE: override styles ---------- */
@media (max-width: 768px) {

  /* show hamburger */
  .hamburger {
    display: flex;
  }

  /* make nav a sliding drawer */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;             /* hidden by default */
    width: 78%;
    max-width: 340px;
    height: 100vh;
    background: var(--color-bg);
    box-shadow: -10px 0 30px rgba(10,10,10,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.34s cubic-bezier(.22,.9,.3,1);
    z-index: 999;
  }

  .nav.open {
    right: 0;
  }

  .nav ul {
    flex-direction: column;
    gap: 20px;
  }

  .nav a {
    font-size: 1.05rem;
    color: var(--color-text);
  }

  /* Slightly dim the page when menu is open:
     We won't add an overlay element in HTML; if you want an overlay,
     you can add it or use ::before on body. Keeping simple now. */
}

/* small polish: ensure header doesn't obscure top of sections when jumping */
:root {
  --header-height: 64px;
}
/* If your header height differs, update --header-height */
body {
  scroll-padding-top: var(--header-height);
}
