/* ── SHARED STYLES ─────────────────────────────────────────────────────────
   Loaded by all three pages. Page-specific backgrounds, section layouts,
   and component styles remain in each page's own <style> block.
   ────────────────────────────────────────────────────────────────────────── */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* CSS Variables */
:root {
  --deep-navy: #0d0b1e;
  --gold: #d4a420;
  --gold-hover: #e8bc40;
  --text-light: #f0eeff;
  --text-muted: #a89fc8;
  --section-navy: rgba(26, 21, 53, 0.80);
  --section-dark: rgba(8, 6, 22, 0.82);
  --section-slate: rgba(34, 46, 88, 0.78);
}

/* Base HTML */
html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(168, 159, 200, 0.3) var(--deep-navy);
  scrollbar-width: thin;
  background-color: var(--deep-navy);
  overscroll-behavior: none;
}

/* Custom Scrollbar (WebKit) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--deep-navy); }
::-webkit-scrollbar-thumb {
  background: rgba(168, 159, 200, 0.25);
  border-radius: 5px;
  border: 2px solid var(--deep-navy);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Base Body — each page overrides background in its own <style> */
body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--deep-navy);
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 6, 22, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1.5px solid rgba(106, 95, 192, 0.4);
  padding: 0.5rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.nav-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(150,110,255,0.5));
}

.nav-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.93rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.nav-links { display: flex; gap: 0.2rem; margin-left: auto; }

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: #a89fc8;
  text-decoration: none;
  padding: 0.38rem 1.1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.nav-links a:hover { color: #fff; border-color: rgba(106,95,192,0.6); }
.nav-links a.active { background: var(--gold); color: #1a1535; border-color: transparent; }

/* ── FOOTER ── */
footer {
  position: relative; z-index: 1;
  background: rgba(5, 4, 14, 0.97);
  border-top: 1.5px solid rgba(106,95,192,0.28);
  padding: 3.5rem 2.5rem 2rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 860px; margin: 0 auto 2.5rem;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem;
}

.footer-logo-wrap {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 0.9rem; text-decoration: none;
}
.footer-logo-wrap img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 0 5px rgba(150,110,255,0.4)); }
.footer-logo-wrap span { font-family: 'Orbitron', monospace; font-size: 0.75rem; font-weight: 600; color: #fff; line-height: 1.3; }

.footer-tagline { font-size: 0.84rem; line-height: 1.72; color: var(--text-muted); margin-bottom: 1rem; }

.footer-col h4 {
  font-family: 'Orbitron', monospace; font-size: 0.67rem;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.9rem;
}
.footer-col p, .footer-col a:not(.footer-logo-wrap) {
  font-size: 0.86rem; line-height: 1.9;
  color: var(--text-muted); text-decoration: none; display: block;
}
.footer-col a:hover { color: #fff; }

.footer-social { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.footer-social a {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.84rem; color: var(--text-muted); text-decoration: none;
  border: 1px solid rgba(168,159,200,0.25); border-radius: 6px;
  padding: 0.35rem 0.85rem; transition: all 0.2s;
}
.footer-social a:hover { color: #fff; border-color: rgba(212,164,32,0.5); background: rgba(212,164,32,0.08); }
.footer-social svg { width: 15px; height: 15px; flex-shrink: 0; position: relative; top: 2px; }

.footer-bottom {
  text-align: center; border-top: 1px solid rgba(106,95,192,0.15);
  padding-top: 1.5rem; font-size: 0.76rem; color: rgba(168,159,200,0.75);
}

/* ── RESPONSIVE (nav + footer only) ── */
@media (max-width: 767px) {
  nav { flex-wrap: wrap; padding: 0.5rem 1rem; }
  .nav-links { margin-left: 0; width: 100%; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── PAGE VEIL ── */
#page-veil {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--deep-navy);
  pointer-events: none;
  animation: veilOut 0.22s 0.04s ease-out forwards;
}
@keyframes veilOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes veilIn  { from { opacity: 0; } to { opacity: 1; } }

/* ── MOBILE SECTION OPACITY ─────────────────────────────────────────────────
   On mobile, background-attachment switches to scroll, meaning section
   overlays can hide the page background. Reducing opacity lets the photo
   or starfield background show through more on small screens.
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  :root {
    --section-navy: rgba(26, 21, 53, 0.70);
    --section-dark: rgba(8, 6, 22, 0.74);
    --section-slate: rgba(34, 46, 88, 0.68);
  }
}
