/* ============================================
   NAV.CSS — Navigation Bar
   ============================================ */

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s var(--ease);
  background: transparent;
}

#navbar.scrolled {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 32px rgba(26,107,204,0.10);
  border-bottom: 1px solid var(--border-light);
  height: 64px;
}

/* LOGO */
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}
.nav-logo-first { color: var(--text); }
.nav-logo-last {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-logo-dot {
  width: 7px; height: 7px;
  background: var(--grad-accent);
  border-radius: 50%;
  margin-left: 4px;
  margin-bottom: 2px;
  flex-shrink: 0;
  animation: dotPulse 2.5s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

/* NAV LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-body);
  padding: 7px 14px;
  border-radius: 8px;
  transition: all 0.25s var(--ease);
  position: relative;
}
.nav-links a:hover {
  color: var(--primary);
  background: rgba(26,107,204,0.07);
}
.nav-links a.active {
  color: var(--primary);
  background: rgba(26,107,204,0.08);
  font-weight: 600;
}

/* Right side actions group */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Resume Button */
.nav-resume-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--primary);
  background: rgba(26,107,204,0.08);
  border: 1.5px solid rgba(26,107,204,0.22);
  padding: 8px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.28s var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.nav-resume-btn:hover {
  background: var(--grad-btn);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,107,204,0.30);
}

/* CTA Button */
.nav-cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  background: var(--grad-btn);
  padding: 9px 22px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(26,107,204,0.28);
  transition: all 0.3s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,107,204,0.40);
  background: var(--grad-btn-hover);
}

/* HAMBURGER */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU */
.nav-mobile {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
  box-shadow: var(--shadow-md);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-body);
  padding: 12px 16px;
  border-radius: 10px;
  transition: all 0.2s;
}
.nav-mobile a:hover { background: var(--bg-alt); color: var(--primary); }
.nav-mobile .nav-cta { margin: 8px 0 0; text-align: center; justify-content: center; display: flex; }
.nav-mobile .nav-resume-btn {
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  font-size: 0.95rem;
  border-radius: 10px;
}

@media (max-width: 900px) {
  #navbar { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── RESUME MODAL ── */
.resume-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,12,28,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: resumeFadeIn 0.28s ease;
}
.resume-modal-overlay.open { display: flex; }

@keyframes resumeFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.resume-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 1000px;
  height: calc(100vh - 32px);
  max-height: 96vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px rgba(5,12,28,0.55);
  overflow: hidden;
  animation: resumeSlideUp 0.32s ease;
}
@keyframes resumeSlideUp {
  from { transform: translateY(24px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.resume-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
  gap: 16px;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}
.resume-modal-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 2px;
}
.resume-modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.resume-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.resume-modal-download {
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(26,107,204,0.08);
  border: 1px solid rgba(26,107,204,0.20);
  padding: 7px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.22s;
  white-space: nowrap;
}
.resume-modal-download:hover {
  background: var(--grad-btn);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(26,107,204,0.28);
}
.resume-modal-close {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.resume-modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
  transform: rotate(90deg);
}
.resume-modal-body {
  flex: 1;
  overflow: hidden;
  background: #1e2535;
  position: relative;
}
#resumeModalFrame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 600px) {
  .resume-modal { border-radius: 12px; height: calc(100vh - 20px); max-height: 98vh; }
  .resume-modal-header { padding: 12px 16px; }
  .resume-modal-title { font-size: 0.9rem; }
}
