/* ===== Header Bar ===== */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1001;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.admin-bar .navbar {
  top: 32px;
}

/* Hidden while scrolling down */
.navbar.nav-hidden {
  transform: translateY(-100%);
}

/* Transparent at the very top of the page */
.navbar.at-top {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo .logo {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 6px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-cta {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.nav-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Menu Button */
.menu-toggle,
.menu-toggle:focus {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 50px;
  padding: 8px 16px 8px 20px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b !important;
  box-shadow: none;
  outline: none;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.menu-toggle:hover {
  border-color: #2563eb !important;
  color: #2563eb !important;
}

.menu-toggle:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

.menu-icon {
  position: relative;
  width: 22px;
  height: 12px;
}

.menu-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.4s ease, top 0.4s ease;
}

.menu-icon span:nth-child(1) {
  top: 0;
}

.menu-icon span:nth-child(2) {
  top: 10px;
}

/* ===== Homepage, over the hero: monochrome buttons ===== */
body.home .navbar.at-top .nav-cta {
  background: #0f172a;
  box-shadow: none;
  border-radius: 50px;
}

body.home .navbar.at-top .nav-cta:hover {
  background: #1e293b;
  box-shadow: none;
}

body.home .navbar.at-top .menu-toggle,
body.home .navbar.at-top .menu-toggle:focus {
  background: #fff !important;
  border-color: #fff !important;
  color: #0f172a !important;
}

body.home .navbar.at-top .menu-toggle:hover {
  background: #e2e8f0 !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* ===== Header when menu is open ===== */
body.menu-open {
  overflow: hidden;
}

body.menu-open .navbar,
body.menu-open .navbar.at-top {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: translateY(0);
}

body.menu-open .nav-cta {
  opacity: 0;
  pointer-events: none;
}

body.menu-open .menu-toggle,
body.menu-open .menu-toggle:focus {
  background: #fff !important;
  border-color: #fff !important;
  color: #0f172a !important;
}

body.menu-open .menu-toggle:hover {
  background: #fbbf24 !important;
  border-color: #fbbf24 !important;
  color: #0f172a !important;
}

body.menu-open .menu-icon span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

body.menu-open .menu-icon span:nth-child(2) {
  top: 5px;
  transform: rotate(-45deg);
}

/* ===== Full Screen Menu ===== */
.full-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0f172a;
  visibility: hidden;
  clip-path: circle(0% at calc(100% - 70px) 35px);
  transition: clip-path 0.7s cubic-bezier(0.77, 0, 0.18, 1), visibility 0s linear 0.7s;
  overflow-y: auto;
}

.full-menu.open {
  visibility: visible;
  clip-path: circle(150% at calc(100% - 70px) 35px);
  transition: clip-path 0.7s cubic-bezier(0.77, 0, 0.18, 1), visibility 0s linear 0s;
}

.full-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.full-menu-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  min-height: 100%;
  margin: 0 auto;
  padding: 110px 20px 50px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Links */
.full-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.full-menu-list li {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.full-menu.open .full-menu-list li {
  opacity: 1;
  transform: translateY(0);
}

.full-menu.open .full-menu-list li:nth-child(1) { transition-delay: 0.25s; }
.full-menu.open .full-menu-list li:nth-child(2) { transition-delay: 0.3s; }
.full-menu.open .full-menu-list li:nth-child(3) { transition-delay: 0.35s; }
.full-menu.open .full-menu-list li:nth-child(4) { transition-delay: 0.4s; }
.full-menu.open .full-menu-list li:nth-child(5) { transition-delay: 0.45s; }
.full-menu.open .full-menu-list li:nth-child(6) { transition-delay: 0.5s; }
.full-menu.open .full-menu-list li:nth-child(7) { transition-delay: 0.55s; }

.full-menu-link {
  display: inline-flex;
  align-items: baseline;
  gap: 1.25rem;
  text-decoration: none;
  color: #94a3b8;
  padding: 0.25rem 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.full-menu-link .num {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
}

.full-menu-link .text {
  position: relative;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
}

/* Rainbow underline, sits below the descenders */
.full-menu-link .text::after {
  content: "";
  position: absolute;
  left: 0.04em;
  right: 0.04em;
  bottom: -0.12em;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #2563eb, #fbbf24, #ef4444);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.full-menu-link:hover,
.full-menu-link.active {
  color: #fff;
  transform: translateX(10px);
}

.full-menu-link:hover .text::after,
.full-menu-link.active .text::after {
  transform: scaleX(1);
}

/* Info Side */
.full-menu-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: 2.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.full-menu.open .full-menu-info {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.info-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.info-email {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  word-break: break-all;
  transition: color 0.3s ease;
}

.info-email:hover {
  color: #fbbf24;
}

.info-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #e2e8f0;
  font-weight: 500;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.info-social {
  display: flex;
  gap: 0.75rem;
}

.info-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1e293b;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.info-social a:hover {
  background: #2563eb;
  transform: translateY(-3px);
}

.info-social a:nth-child(2):hover {
  background: #ef4444;
}

/* ===== Responsive ===== */
@media (max-width: 782px) {
  .admin-bar .navbar {
    top: 46px;
  }
}

@media (max-width: 768px) {
  .full-menu-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
    padding-top: 100px;
  }

  .full-menu-info {
    padding-left: 0;
    padding-top: 2rem;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 480px) {
  .nav-cta {
    display: none;
  }

  .nav-logo .logo {
    height: 38px;
  }

  .menu-toggle,
  .menu-toggle:focus {
    padding: 7px 14px 7px 16px;
  }

  .full-menu-link {
    gap: 0.85rem;
  }

  .full-menu-link .text::after {
    height: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .navbar {
    transition: none;
  }
}