 /* ============================================================
   NAV — Unified navbar for all pages (GLASS 3D)
   Straight/square edges, borders — glassmorphism + depth
   Same class names & structure — drop-in, no HTML/JS changes
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2.5rem;
  height: 62px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.015)),
    var(--nav-bg);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.14) inset,
    0 -1px 0 rgba(0,0,0,0.25) inset,
    0 12px 32px rgba(0,0,0,0.28);
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* LOGO */
.logo-stage { position:relative; width:60px; height:63px; cursor:pointer; margin:0 20px 0 0; }
.logo-stage-wrap { position:relative; width:100%; height:100%; }
.logo-stage img { position:absolute; top: 0px;; left:0; width:100%; height:100%; display:block; }

.logo-left  { opacity:0; transform: translate(-140px,-40px) rotate(-35deg) scale(0.7); filter: blur(4px); }
.logo-right { opacity:0; transform: translate(140px,-40px) rotate(35deg) scale(0.7); filter: blur(4px); }
.logo-blue  { opacity:0; transform: translateY(60px) scale(0.3) rotate(20deg); transform-origin:75% 60%; }
.logo-text  { opacity:0; transform: translateY(20px); }

.run .logo-left {
  animation: flyInLeft 0.85s cubic-bezier(0.16,1,0.3,1) 0.05s forwards,
             settleShake 0.4s ease-out 0.85s forwards;
}
.run .logo-right {
  animation: flyInRight 0.85s cubic-bezier(0.16,1,0.3,1) 0.15s forwards,
             settleShake 0.4s ease-out 0.95s forwards;
}
.run .logo-blue {
  animation: dropBounce 0.75s cubic-bezier(0.34,1.56,0.64,1) 1.05s forwards,
             pulseGlow 1.8s ease-in-out 2.2s infinite;
}
.run .logo-text {
  animation: riseIn 0.6s ease-out 1.55s forwards;
}
.run .logo-shine {
  animation: shineSweep 2.6s ease-in-out 2s infinite;
}
.run .logo-stage-wrap {
  animation: breathe 3.2s ease-in-out 2.2s infinite;
}

@keyframes flyInLeft {
  0%   { opacity:0; transform: translate(-140px,-40px) rotate(-35deg) scale(0.7); filter: blur(4px); }
  70%  { opacity:1; filter: blur(0px); }
  100% { opacity:1; transform: translate(0,0) rotate(0deg) scale(1); filter: blur(0px); }
}
@keyframes flyInRight {
  0%   { opacity:0; transform: translate(140px,-40px) rotate(35deg) scale(0.7); filter: blur(4px); }
  70%  { opacity:1; filter: blur(0px); }
  100% { opacity:1; transform: translate(0,0) rotate(0deg) scale(1); filter: blur(0px); }
}
@keyframes settleShake {
  0%   { transform: translate(0,0) rotate(0deg) scale(1.04); }
  50%  { transform: translate(0,0) rotate(0deg) scale(0.98); }
  100% { transform: translate(0,0) rotate(0deg) scale(1); }
}
@keyframes dropBounce {
  0%   { opacity:0; transform: translateY(60px) scale(0.3) rotate(20deg); }
  55%  { opacity:1; transform: translateY(-14px) scale(1.2) rotate(-6deg); }
  75%  { transform: translateY(6px) scale(0.95) rotate(2deg); }
  100% { opacity:1; transform: translateY(0) scale(1) rotate(0deg); }
}
@keyframes riseIn {
  0%   { opacity:0; transform: translateY(20px); }
  100% { opacity:1; transform: translateY(0) scale(1.3); }
}
@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 0px rgba(47,111,237,0)); }
  50%      { filter: drop-shadow(0 0 10px rgba(47,111,237,0.65)); }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.015); }
}
@keyframes shineSweep {
  0%   { transform: translateX(-160%) rotate(20deg); opacity:0; }
  10%  { opacity:0.55; }
  35%  { opacity:0; }
  100% { transform: translateX(160%) rotate(20deg); opacity:0; }
}

.logo-shine {
  position:absolute; top:-20%; left:0; width:30%; height:140%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 100%);
  pointer-events:none;
  mix-blend-mode: screen;
}

/* CENTER LINKS — glass pill container */
.nav-links {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  padding: 0.28rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 2px 8px rgba(0,0,0,0.18);
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 500;
  padding: 0.42rem 0.85rem;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  position: relative;
}
.nav-links a:hover {
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset;
}
.nav-links a.nav-active {
  color: var(--neon);
  background: linear-gradient(180deg, rgba(0,245,196,0.14), rgba(0,245,196,0.03));
  border-color: rgba(0,245,196,0.4);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 2px 10px rgba(0,245,196,0.15);
}
.nav-links a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 10px; right: 10px;
  height: 2px;
  background: var(--neon);
  box-shadow: 0 0 10px rgba(0,245,196,0.6);
}

/* BADGES */
.nav-badge-new {
  font-size: 0.56rem; font-weight: 700;
  background: linear-gradient(180deg, rgba(245,196,0,0.18), rgba(245,196,0,0.08));
  border: 1px solid rgba(245,196,0,0.35);
  color: #f5c400;
  border-radius: 3px;
  padding: 1px 5px;
  letter-spacing: 0.06em;
}
.nav-badge-ai {
  font-size: 0.56rem; font-weight: 700;
  background: linear-gradient(180deg, rgba(185,79,255,0.18), rgba(185,79,255,0.08));
  border: 1px solid rgba(185,79,255,0.35);
  color: var(--neon2);
  border-radius: 3px;
  padding: 1px 5px;
  letter-spacing: 0.06em;
}

/* RIGHT SIDE */
.nav-right { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

/* Certifications button — glass, presses down on click */
.nav-cert {
  background: linear-gradient(180deg, rgba(185,79,255,0.1), rgba(185,79,255,0.02));
  border: 1px solid var(--neon2);
  color: var(--neon2);
  padding: 0.42rem 1.05rem;
  border-radius: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 3px 10px rgba(185,79,255,0.12);
}
.nav-cert:hover {
  background: var(--neon2);
  color: var(--bg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 6px 20px rgba(185,79,255,0.35);
  transform: translateY(-1px);
}
.nav-cert:active { transform: translateY(0); }
.nav-cert:focus-visible,
.theme-toggle:focus-visible,
.admin-btn:focus-visible,
.nav-links a:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

/* Theme toggle — glass surface */
.theme-toggle {
  display: flex; align-items: center; gap: 0.45rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.42rem 0.9rem;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.theme-toggle:hover {
  border-color: var(--neon);
  color: var(--neon);
  background: linear-gradient(180deg, rgba(0,245,196,0.1), rgba(0,245,196,0.02));
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 3px 10px rgba(0,245,196,0.12);
}

.toggle-track {
  width: 28px; height: 15px;
  background: rgba(0,245,196,0.14);
  border: 1px solid rgba(0,245,196,0.28);
  border-radius: 50px;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25) inset;
}
.toggle-thumb {
  position: absolute;
  top: 1px; left: 1px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #baffef, var(--neon));
  box-shadow: 0 0 8px rgba(0,245,196,0.65), 0 1px 2px rgba(0,0,0,0.3);
  transition: transform 0.32s cubic-bezier(0.23,1,0.32,1);
}
[data-theme="light"] .toggle-thumb { transform: translateX(13px); }

/* ============================================================
   HAMBURGER BUTTON
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset;
  transition: border-color 0.3s ease, background 0.3s ease;
  z-index: 200;
  flex-shrink: 0;
}
.hamburger:hover { border-color: var(--neon); background: rgba(0,245,196,0.06); }
.hamburger span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.23,1,0.32,1);
  transform-origin: center;
}
.hamburger.open { border-color: var(--neon); background: rgba(0,245,196,0.08); }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--neon); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--neon); }

/* ============================================================
   DRAWER OVERLAY
   ============================================================ */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  z-index: 140;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* ============================================================
   MOBILE DRAWER — glass panel
   ============================================================ */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: min(300px, 86vw);
  height: 100vh;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.005)),
    var(--bg2);
  backdrop-filter: blur(20px) saturate(160%);
  border: none;
  border-left: 1px solid rgba(255,255,255,0.08);
  box-shadow: -16px 0 40px rgba(0,0,0,0.4), 1px 0 0 rgba(255,255,255,0.05) inset;
  z-index: 150;
  padding: 4.5rem 1rem 2rem;
  flex-direction: column;
  gap: 3px;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.23,1,0.32,1), background 0.4s ease;
  overflow-y: auto;
}
.mobile-drawer.open { display: flex; transform: translateX(0); }

.drawer-nav-link {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
}
.drawer-nav-link:hover {
  background: linear-gradient(180deg, rgba(0,245,196,0.1), rgba(0,245,196,0.02));
  border-color: rgba(0,245,196,0.2);
  color: var(--neon);
}
.drawer-nav-link.nav-active {
  background: linear-gradient(180deg, rgba(0,245,196,0.14), rgba(0,245,196,0.03));
  border-color: rgba(0,245,196,0.32);
  color: var(--neon);
  font-weight: 600;
}
.drawer-nav-link .d-icon { font-size: 1rem; width: 22px; text-align: center; }

.drawer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  margin: 0.55rem 0;
}

.drawer-cta-row {
  display: flex; gap: 0.6rem;
  margin-top: 0.25rem;
}
.drawer-cta-row a {
  flex: 1;
  text-align: center;
  padding: 0.68rem 0.5rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}
.drawer-cv   {
  background: linear-gradient(180deg, #4dffde, var(--neon));
  color: var(--bg) !important;
  border: 1px solid var(--neon);
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 4px 14px rgba(0,245,196,0.3);
}
.drawer-cv:hover { transform: translateY(-1px); }
.drawer-cert { border: 1px solid var(--neon2); color: var(--neon2) !important; }
.drawer-cert:hover { background: var(--neon2); color: var(--bg) !important; transform: translateY(-1px); }

.drawer-admin-btn {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  background: linear-gradient(180deg, rgba(255,107,53,0.06), rgba(255,107,53,0.01));
  border: 1px solid rgba(255,107,53,0.35);
  color: var(--neon3);
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.05em;
  transition: background 0.25s ease;
}
.drawer-admin-btn:hover { background: rgba(255,107,53,0.1); }

/* ============================================================
   RESPONSIVE — hide/show
   ============================================================ */
@media (max-width: 900px) {
  nav { padding: 0 1.4rem; }
  .nav-links { display: none; }
  .nav-cert  { display: none; }
  .hamburger { display: flex; }
  .mobile-drawer { display: none; } /* shown via .open only */
  .drawer-overlay { display: block; }
}

@media (max-width: 480px) {
  nav { padding: 0 1rem; }
  .theme-toggle .toggle-label { display: none; }
}