/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(13,13,13,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s ease;
}

/* CLICKABLE LOGO */
.logo-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
}

/* Header inner spacing */
.header-inner {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Logo + text wrapper */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Logo image */
.site-logo {
  height: 100px;
  display: block;
}

/* Logo text block */
.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
  width: max-content;
}

/* LEEDING EDGE */
.logo-line1 {
  font-family: 'Merriweather', serif;
  font-size: 46px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.8px;
  text-align: left;
}

/* TECHNOLOGIES */
.logo-line2 {
  font-family: 'Merriweather', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--primary);
  margin-top: -4px;
  letter-spacing: -0.4px;
  text-align: center;
}

/* Tagline */
.logo-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--secondary);
  font-weight: 500;
  margin-top: 0.35rem;
  letter-spacing: 0.3px;
  text-align: center;
}

/* NAVIGATION */
.nav-block {
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  align-items: center;
}

/* Nav link hover underline */
.nav-links a {
  color: var(--muted);
  padding-bottom: 0.2rem;
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary);
}

/* HEADER SOCIAL ICONS */
.header-social {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.4rem;
  margin-left: auto;
  transform: translateY(10px);
}

.header-social-icon {
  width: 22px;
  height: 22px;
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.2s ease;
}

.header-social-icon:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* MOBILE MENU */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: 0.3s ease;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #111;
  padding: 1.5rem;
  padding-top: 2rem;
  gap: 1rem;
  border-bottom: 1px solid #222;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .header-social {
    display: none;
  }

  /* Mobile logo scaling */
  .site-logo {
    height: 70px;
  }

  .logo-line1 {
    font-size: 32px;
  }

  .logo-line2 {
    font-size: 20px;
  }
}