/* ================================
   Header – Skanda Vishnu Sundar
   Dark Onioncore Professional
================================== */

header.site {
  background: rgba(5, 8, 20, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.55);
}

/* Inner Layout */
header .wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Dot Accent */
header .dot {
  width: 0.55rem;
  height: 0.55rem;
  display: inline-block;
  border-radius: 50%;
  margin-right: 0.35rem;
  background: var(--accent-teal);
  box-shadow:
    0 0 6px var(--accent-teal),
    0 0 12px var(--accent-teal),
    0 0 18px rgba(34, 211, 238, 0.75);
}

/* Brand / Name */
header .brand a {
  color: #f9fafb;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

header .brand a:hover {
  text-shadow: 0 0 12px var(--accent-teal);
}

/* Navigation */
header nav {
  font-size: 0.88rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

/* Links */
header nav a {
  color: var(--text-soft);
  text-decoration: none;
  position: relative;
  padding: 0.15rem 0.25rem;
  transition: color 0.15s ease-out;
}

/* Glow underline on hover */
header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-teal));
  box-shadow: 0 0 12px var(--accent-pink);
  transition: width 0.2s ease-out;
}

header nav a:hover {
  color: #f9fafb;
}

header nav a:hover::after {
  width: 100%;
}

/* Highlight Current Page */
header nav a[aria-current="page"] {
  color: var(--accent-teal);
  font-weight: 600;
}

header nav a[aria-current="page"]::after {
  width: 100%;
  box-shadow:
    0 0 12px var(--accent-teal),
    0 0 18px rgba(34, 211, 238, 0.7);
}

/* Responsive */
@media (max-width: 720px) {
  header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
