/* ══════════════════════════════════════
   BASE
══════════════════════════════════════ */
html { scroll-behavior: smooth; }

body {
  font-family: 'Archivo', sans-serif;
  background-color: #ECEAF1;   /* light theme ("print") */
  color: #121524;
  transition: background-color 0.3s ease, color 0.3s ease;
}
html.dark body {
  background-color: #121524;   /* dark theme: blue hour, same as home */
  color: #ECEAF1;
}
.font-display { font-weight: 800; font-variation-settings: 'wdth' 72; letter-spacing: -0.01em; }
::selection { background: #FF8A4C; color: #121524; }

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
.nav-bar {
  background-color: rgba(18, 21, 36, 0.88) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: rgba(255,255,255,0.90);
  transition: color 0.2s;
}
.nav-link:hover { color: #ffffff; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: #ffffff;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Mobile nav slide */
#nav-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}
#nav-menu.open {
  max-height: 320px;
  opacity: 1;
}

/* ══════════════════════════════════════
   NAME SHIMMER ACCENT
══════════════════════════════════════ */
.name-accent { color: #ECEAF1; }

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.30s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.60s; }

/* ══════════════════════════════════════
   SECTION DIVIDER
══════════════════════════════════════ */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.22);
}

/* ══════════════════════════════════════
   CARD HOVER LIFT
══════════════════════════════════════ */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* ══════════════════════════════════════
   SKILL BADGE  (inside white cards)
══════════════════════════════════════ */
.badge {
  display: inline-block;
  border: 1px solid rgba(54,33,62,0.35);
  color: #36213E;
  opacity: 0.82;
  transition: opacity 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s;
}
.badge:hover {
  opacity: 1;
  border-color: #FF8A4C;
  background-color: #FF8A4C;
  color: #121524;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */

/* Ghost — used on dark/black background */
.btn-ghost {
  border: 1.5px solid currentColor;
  color: #ECEAF1;
  background: transparent;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn-ghost:hover {
  background-color: #FF8A4C;
  border-color: #FF8A4C;
  color: #121524;
}

/* Outline — used inside white cards */
.btn-outline {
  border: 1px solid #36213E;
  color: #36213E;
  background: transparent;
  transition: background-color 0.2s, color 0.2s;
}
.btn-outline:hover {
  background-color: #36213E;
  color: #ffffff;
}

/* ══════════════════════════════════════
   FORM INPUTS
══════════════════════════════════════ */
.form-input {
  width: 100%;
  border: 1px solid rgba(54,33,62,0.28);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  background: white;
  color: #36213E;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Archivo', sans-serif;
}
.form-input::placeholder {
  color: rgba(54,33,62,0.32);
}
.form-input:focus {
  outline: none;
  border-color: transparent;
  box-shadow:
    0 0 0 2px transparent,
    0 0 0 2px #FF8A4C;
}


/* ══════════════════════════════════════
   CONTACT LINKS HOVER
══════════════════════════════════════ */
.contact-link {
  position: relative;
  text-decoration: none;
  color: #36213E;
  transition: color 0.3s;
}
.contact-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: #FF8A4C;
  transition: width 0.35s ease;
}
.contact-link:hover { color: #C8501A; }
.contact-link:hover::after { width: 100%; }

/* ══════════════════════════════════════
   REVEAL ON SCROLL
══════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].in-view {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
  .fade-up { animation: none; opacity: 1; }
}

/* ══════════════════════════════════════
   LIGHT THEME OVERRIDES
   ── ponytail: remap the white-on-dark utilities to dark-on-light in ONE place
   instead of adding dark: variants to ~30 elements across two pages. The 3
   buttons that must stay white use inline color:#fff, which beats these rules.
══════════════════════════════════════ */
html:not(.dark) .nav-bar { background-color: rgba(236,234,241,0.88) !important; }

html:not(.dark) .nav-link { color: rgba(54,33,62,0.85); }
html:not(.dark) .nav-link:hover { color: #36213E; }
html:not(.dark) .nav-link::after { background: #36213E; }

html:not(.dark) .divider::before,
html:not(.dark) .divider::after { background: rgba(54,33,62,0.20); }

/* Name gradient: swap the white stops for dark so it stays visible on light */
html:not(.dark) .name-accent { color: #121524; }

/* Ghost buttons: white text is invisible on light — go dark */
html:not(.dark) .btn-ghost { color: #121524; }
html:not(.dark) .btn-ghost:hover { color: #121524; }

/* Utility remaps (text / border / bg) */
html:not(.dark) .text-white       { color: #36213E; }
html:not(.dark) .text-white\/90   { color: rgba(54,33,62,0.88); }
html:not(.dark) .text-white\/85   { color: rgba(54,33,62,0.82); }
html:not(.dark) .text-white\/80   { color: rgba(54,33,62,0.78); }
html:not(.dark) .text-white\/70   { color: rgba(54,33,62,0.66); }
html:not(.dark) .text-white\/65   { color: rgba(54,33,62,0.60); }
html:not(.dark) .text-white\/60   { color: rgba(54,33,62,0.55); }
html:not(.dark) .text-white\/55   { color: rgba(54,33,62,0.52); }
html:not(.dark) .text-white\/50   { color: rgba(54,33,62,0.48); }
html:not(.dark) .border-white\/20 { border-color: rgba(54,33,62,0.20); }
html:not(.dark) .border-white\/10 { border-color: rgba(54,33,62,0.12); }
html:not(.dark) .bg-white\/5      { background-color: rgba(54,33,62,0.045); }

/* ══════════════════════════════════════
   THEME TOGGLE BUTTON
══════════════════════════════════════ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 9999px;
  color: inherit;
  transition: background-color 0.2s;
}
.theme-toggle:hover { background-color: rgba(128,128,128,0.18); }
.theme-toggle .sun  { display: none; }
html.dark .theme-toggle .sun  { display: block; }
html.dark .theme-toggle .moon { display: none; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 480px) {
  .divider h2 {
    white-space: normal;
    font-size: 1.35rem;
  }
}