.ltt-header,
.ltt-header * {
  box-sizing: border-box;
}

.ltt-header {
  --ltt-border: rgba(255, 255, 255, 0.1);
  --ltt-accent: #00e5ff;
  --ltt-text: #ffffff;
  --ltt-text2: #a0aec0;

  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.4;

  border-bottom: 1px solid var(--ltt-border);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background: rgba(5, 8, 16, 0.92);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.ltt-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Logo */
.ltt-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.ltt-logo-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ltt-spin 20s linear infinite;
}

@keyframes ltt-spin {
  to { transform: rotate(360deg); }
}

.ltt-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--ltt-text);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.ltt-logo-text span {
  color: var(--ltt-accent);
}

/* Desktop Navigation */
.ltt-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  flex-shrink: 0;
  margin-left: auto;
  gap: 4px;
  align-items: center;
}

.ltt-nav a {
  color: var(--ltt-text2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 6px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  border: 1px solid transparent;
  white-space: nowrap;
}

.ltt-nav a:hover,
.ltt-nav a.ltt-active {
  color: var(--ltt-accent);
  border-color: rgba(0, 229, 255, 0.3);
  background: rgba(0, 229, 255, 0.08);
}

.ltt-nav a:focus-visible,
.ltt-logo:focus-visible,
.ltt-toggle:focus-visible {
  outline: 2px solid var(--ltt-accent);
  outline-offset: 2px;
}

/* Hamburger button (44x44 touch target) */
.ltt-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -9px; /* visually aligns lines with page edge */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
}

.ltt-toggle span {
  position: absolute;
  left: 9px;
  width: 26px;
  height: 2px;
  background-color: var(--ltt-text);
  border-radius: 2px;
  transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out;
}

/* line centers: 15px, 22px, 29px  -> 7px apart */
.ltt-toggle span:nth-child(1) { top: 14px; }
.ltt-toggle span:nth-child(2) { top: 21px; }
.ltt-toggle span:nth-child(3) { top: 28px; }

/* --- MOBILE & TABLET --- */
@media (max-width: 1250px) {
  .ltt-inner {
    padding: 8px 16px;
  }

  .ltt-logo-text { font-size: 18px; }
  .ltt-logo-icon { font-size: 22px; }

  .ltt-toggle { display: block; }

  /* X icon */
  .ltt-toggle.ltt-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .ltt-toggle.ltt-open span:nth-child(2) { opacity: 0; }
  .ltt-toggle.ltt-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Dropdown menu */
  .ltt-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    width: auto;
    margin-left: 0;
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    background: rgba(10, 15, 30, 0.98);
    border: 1px solid var(--ltt-border);
    border-radius: 12px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out, visibility 0.2s;
  }

  .ltt-nav.ltt-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .ltt-nav a {
    font-size: 15px;
    padding: 12px 16px;
    display: block;
    border-radius: 8px;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ltt-logo-icon { animation: none; }
  .ltt-toggle span,
  .ltt-nav { transition: none; }
}

/* Injected header wrapper: layout se hata do taaki sticky poore page par chale */
#header { display: contents; }
