
/* ---- CSS Variables ---- */
:root {
  --gold:        #C5A811;
  --gold-light:  #e0c435;
  --gold-dim:    #8a7610;
  --black:       #000000;
  --surface:     #0a0a0a;
  --surface-2:   #111111;
  --surface-3:   #1a1a1a;
  --border:      rgba(197,168,17,0.3);
  --border-bright: rgba(197,168,17,0.7);
  --text:        #e8e8e8;
  --text-muted:  #888888;
  --radius:      8px;
  --radius-lg:   16px;
  --glow:        0 0 20px rgba(197,168,17,0.25);
  --glow-strong: 0 0 40px rgba(197,168,17,0.4);
  --transition:  0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--black);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(ellipse at 20% 80%, rgba(197,168,17,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(197,168,17,0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Audiowide', sans-serif;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: #ffffff;
}
h1 { font-size: clamp(1.6rem, 5vw, 3rem); }
h2 { font-size: clamp(1.3rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.6rem); }
h4 { font-size: clamp(1rem, 2.5vw, 1.3rem); }
p  { font-family: 'Rajdhani', sans-serif; font-weight: 400; color: var(--text); }
em, i { font-family: 'Space Mono', monospace; font-style: italic; color: var(--gold-light); font-size: 0.95em; }
hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* LINKS */
a { transition: color var(--transition), text-decoration-color var(--transition); }
.link-primary  { color: var(--gold) !important; text-decoration-color: transparent !important; text-underline-offset: 3px; }
.link-primary:hover { color: var(--gold-light) !important; text-decoration-color: var(--gold-light) !important; }
.link-secondary { color: var(--text) !important; text-decoration-color: transparent !important; }
.link-secondary:hover { color: var(--gold) !important; }
.link-highlighted { color: white !important; }
.link-no-underline { text-decoration: none !important; }
.link-red { color: #ff4444 !important; text-decoration: none; }
.link-red:hover { color: #ff6b6b !important; }

/* BUTTONS */
.btn {
  font-family: 'Audiowide', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  padding: 0.5rem 1.4rem;
  transition: all var(--transition);
}
.button-primary {
  color: var(--gold) !important;
  border: 1.5px solid var(--gold) !important;
  background: transparent !important;
}
.button-primary:hover {
  color: var(--black) !important;
  border-color: var(--gold-light) !important;
  background: var(--gold-light) !important;
  box-shadow: var(--glow);
  transform: translateY(-1px);
}
.button-primary:active { transform: translateY(0); }
.icon-btn { color: var(--text-muted); background: none; border: none; transition: color var(--transition); }
.icon-btn:hover { color: var(--gold); }

/* NAVBAR */
#header-container {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar { padding: 0.6rem 1rem; border-bottom: none !important; }
.navbar-brand img {
  transition: filter var(--transition), transform var(--transition);
  filter: drop-shadow(0 0 6px rgba(197,168,17,0.3));
}
.navbar-brand:hover img {
  filter: drop-shadow(0 0 14px rgba(197,168,17,0.7));
  transform: scale(1.05);
}
.navbar-toggler {
  border: 1.5px solid var(--border-bright) !important;
  border-radius: var(--radius) !important;
  padding: 0.35rem 0.6rem !important;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.navbar-toggler:hover { border-color: var(--gold) !important; box-shadow: var(--glow); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28197%2C168%2C17%2C1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
.nav-link {
  font-family: 'Audiowide', sans-serif !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem !important;
  color: var(--text-muted) !important;
  transition: color var(--transition) !important;
  position: relative;
}
.nav-link.link-primary { color: var(--text-muted) !important; }
.nav-link.link-primary:hover { color: var(--gold) !important; }
.nav-dropdown-menu {
  background-color: var(--surface-2) !important;
  border: 1px solid var(--border-bright) !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), var(--glow) !important;
  padding: 0.4rem !important;
}
.nav-dropdown-menu .dropdown-item {
  font-family: 'Audiowide', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown-menu .dropdown-item:hover { background-color: rgba(197,168,17,0.12) !important; }
.nav-dropdown-menu .dropdown-divider { border-color: var(--border) !important; margin: 0.3rem 0.5rem; }

@media (max-width: 767px) {
  .navbar-collapse {
    background: rgba(5,5,5,0.97);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    margin-top: 0.5rem;
  }
  .nav-link {
    padding: 0.6rem 0.3rem !important;
    border-bottom: 1px solid var(--border);
  }
  .nav-link:last-child { border-bottom: none; }
}

/* CARDS */
.card {
  background-color: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  color: var(--text) !important;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), var(--glow);
}
.card-img-top { object-fit: cover; width: 100%; }
.card-body { padding: 1.2rem; }
.card-title { font-family: 'Audiowide', sans-serif; font-size: 0.95rem; color: #fff !important; margin-bottom: 0.4rem; }
.card h5, .card h6 { color: var(--text-muted); font-family: 'Rajdhani', sans-serif; font-weight: 500; font-size: 0.85rem; text-transform: uppercase; }

/* FORMS */
.primary-input {
  background-color: var(--surface-2);
  border: 1.5px solid var(--border-bright);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.55rem 0.85rem;
  width: 100%;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.primary-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197,168,17,0.15);
  background-color: var(--surface-3);
}
.primary-input::placeholder { color: var(--text-muted); }
label {
  font-family: 'Audiowide', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  display: block;
}
.form-row { padding-bottom: 1.1rem; padding-top: 0.2rem; }
.form-error-text { color: #ff4444; font-size: 0.9rem; }
.form-success-text { color: #44cc77; font-size: 0.9rem; }
.form-error-input { border-color: #ff4444 !important; }
.alert { border-radius: var(--radius); font-family: 'Rajdhani', sans-serif; font-size: 1rem; }
.alert-success { background-color: rgba(68,204,119,0.12); border-color: rgba(68,204,119,0.4); color: #44cc77; }

/* CONTENT HEADER */
.content-header {
  text-align: center;
  padding-bottom: 0.6rem;
  margin-bottom: 1.2rem;
  position: relative;
  color: #fff;
}
.content-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* CONTAINER BORDERS */
.container-border-primary {
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-bright);
  padding: 1.5rem;
  background: var(--surface-2);
}

/* AVATAR */
.avatar { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--border-bright); object-fit: cover; }

/* MODAL */
.modal-content {
  background-color: var(--surface-2) !important;
  border: 1px solid var(--border-bright) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 25px 80px rgba(0,0,0,0.7), var(--glow) !important;
}
.modal-header { border-bottom-color: var(--border) !important; padding: 1.2rem 1.5rem; }
.modal-footer { border-top-color: var(--border) !important; }
.modal-btn-cancel { color: var(--text-muted); transition: color var(--transition); }
.modal-btn-cancel:hover { color: #ff4444; }

/* HOME — SCROLL SECTIONS */
.home-body { overflow: hidden; }
.section {
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
}
.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 0;
}
.section > * { position: relative; z-index: 1; }

#primary { background-image: url("media/reflection-pond-streak.1344221fb951.png"); }
/* Allow logo burst animation to overflow section bounds (body clips it) */
#primary { overflow: visible; }
#primary h1 { font-size: clamp(1.3rem, 4vw, 2.6rem); text-shadow: 0 2px 20px rgba(0,0,0,0.8); margin-bottom: 0.3rem; }
#primary h2 { color: var(--gold); font-size: clamp(0.9rem, 2vw, 1.4rem); letter-spacing: 0.2em; text-transform: uppercase; }
#primary h3 { color: var(--text-muted); font-family: 'Space Mono', monospace; font-size: clamp(0.7rem, 1.2vw, 0.9rem); font-weight: 400; }
#primary img {
  width: clamp(80px, 15vw, 150px);
  height: auto;
  filter: drop-shadow(0 0 20px rgba(197,168,17,0.5));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

#possibilities { background-color: var(--surface); }
#possibilities::before { background: rgba(0,0,0,0.15); }
#possibilities h4 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); color: var(--gold); margin-bottom: 1rem; }
#possibilities ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
#possibilities ul li {
  font-family: 'Rajdhani', sans-serif; font-size: 1.05rem; font-weight: 500;
  padding: 0.4rem 0 0.4rem 1.4rem; position: relative; color: var(--text);
}
#possibilities ul li::before { content: '▸'; position: absolute; left: 0; color: var(--gold); }

#projects {
  background-color: var(--black);
  background-image: url("media/moon.b2a635eaa0af.jpg");
  background-size: 55vmin;
  background-position: right 5% center;
  background-repeat: no-repeat;
}
#projects::before {
  background: linear-gradient(to right, rgba(0,0,0,0.92) 40%, rgba(0,0,0,0.45) 100%);
}
#projects .content { z-index: 1; }
#projects h4 { font-size: clamp(1.2rem, 3vw, 1.9rem); color: #fff; margin-bottom: 0.5rem; }
#projects h6 { color: var(--text-muted); font-family: 'Rajdhani', sans-serif; font-size: 1rem; font-weight: 400; margin-bottom: 1.5rem; }

@media (max-width: 768px) {
  .section { height: auto; min-height: 100svh; padding: 5rem 1rem 3rem; }
  #possibilities .col:first-child { display: none; }
  #projects {
    background-size: 90vmin;
    background-position: center bottom;
  }
  #projects::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.92) 35%, rgba(0,0,0,0.55) 100%);
  }
}

/* SCROLL BUTTONS */
.scroll-btn {
  border: 1.5px solid var(--border-bright);
  background-color: rgba(197,168,17,0.06);
  color: var(--gold);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 0.8rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  animation: pulse-btn 2.5s ease-in-out infinite;
}
.scroll-btn:hover { background-color: rgba(197,168,17,0.18); box-shadow: var(--glow); transform: scale(1.1); animation: none; }
@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(197,168,17,0.3); }
  50%       { box-shadow: 0 0 0 8px rgba(197,168,17,0); }
}

/* FOOTER */
#footer-container {
  width: 100%;
  border-top: 1px solid var(--border);
  padding: 1.2rem 0;
  margin-top: 2rem;
  background-color: var(--surface-2);
}
#footer-container a { color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
#footer-container a:hover { color: var(--gold); }
#footer-container h4 {
  font-family: 'Audiowide', sans-serif; font-size: 0.72rem;
  color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.3rem;
}
#footer-container .fa-brands { font-size: 1.2rem; }
.sticky-footer { position: fixed; bottom: 0; left: 0; margin-top: 0; }
@media (max-width: 600px) { #footer-container { display: none; } }

/* ABOUT PAGE */
.about-content { padding-bottom: 3rem; }
.about-content img { border-radius: var(--radius-lg); border: 1px solid var(--border); }
.about-content .card-img-top { max-height: 260px; object-fit: cover; }
.about-content p { font-size: 1.05rem; line-height: 1.75; color: var(--text); }
.about-content ul { list-style: none; padding: 0; }
.about-content ul li { padding: 0.4rem 0 0.4rem 1.4rem; position: relative; font-size: 1.05rem; }
.about-content ul li::before { content: '▸'; position: absolute; left: 0; color: var(--gold); }

/* PROJECTS PAGE */
.projects-content .card { min-height: unset; }
.projects-content .card-img-top { max-height: 200px; object-fit: cover; width: 100%; }
.projects-content .card-body { height: auto; min-height: 9rem; }

/* SECTION LABEL PILL */
.section-label {
  display: inline-block;
  font-family: 'Audiowide', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-bright);
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

/* FORM CARD (join/login) */
.form-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.form-card h2 { margin-bottom: 1.5rem; text-align: center; font-size: 1.3rem; }
@media (max-width: 575px) { .form-card { padding: 1.4rem 1.2rem; } }

/* SPACER */
.spacer { padding-top: 2rem; padding-bottom: 2rem; }
@media (max-width: 767px) { .spacer { padding-top: 1.2rem; padding-bottom: 1.2rem; } }

/* UTILITIES */
.text-gold { color: var(--gold) !important; }
.table {
  --bs-table-bg: var(--surface-2);
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--border);
  --bs-table-striped-bg: rgba(197,168,17,0.04);
  --bs-table-hover-bg: rgba(197,168,17,0.08);
  --bs-table-hover-color: white;
}
.table > :not(caption) > * > * {
  border-bottom-width: 0px;
}
select.primary-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%23C5A811'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
}
.badge { font-family: 'Audiowide', sans-serif; font-size: 0.62rem; letter-spacing: 0.05em; }

/* ============================================================
   MEMBER MANAGER PAGE
   ============================================================ */

.table thead th {
  border-bottom: 1px solid var(--border) !important;
  background: var(--surface-3);
}

.table tbody tr {
  border-bottom: 1px solid rgba(197,168,17,0.08);
  transition: background var(--transition);
}

.table tbody tr:hover {
  background: rgba(197,168,17,0.05) !important;
}

.table tbody tr:last-child {
  border-bottom: none;
}

/* ============================================================
   SUPPORT PAGE — textarea
   ============================================================ */

textarea.primary-input {
  min-height: 80px;
  resize: vertical;
}

/* ============================================================
   DEMOGRAPHICS / MISC FORMS
   ============================================================ */

.demographics-content {
  padding-bottom: 3rem;
}

/* ============================================================
   PASSWORD RESET / GENERIC CENTERED FORM PAGES
   ============================================================ */

.password-reset-content {
  padding-bottom: 3rem;
}

/* ============================================================
   MEMBER SUMMARY PAGE
   ============================================================ */

.member-summary-content {
  padding-bottom: 3rem;
}

.wiki-content {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============================================================
   HERO LOGO ANIMATION
   Phase 1 (0–0.3s):  logo bursts to full-screen size
   Phase 2 (0.3–1.3s): rocket loop (one rotation)  
   Phase 3 (1.3–2.2s): shrinks back down to final resting size
   After:              sits static, floating animation kicks in
   ============================================================ */

#logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

#hero-logo {
  width: clamp(80px, 15vw, 150px);
  height: auto;
  filter: drop-shadow(0 0 20px rgba(197,168,17,0.5));
  /*
   * Sequence (fill-mode: both keeps each phase's end state):
   *  0.00s – 0.00s  wait (page loads)
   *  0.00s – 0.45s  burst to 5.5× scale
   *  0.45s – 1.45s  spin one full rotation at 5.5×
   *  1.45s – 2.20s  shrink back to 1×
   *  2.30s – ∞      gentle floating loop
   */
  /*
  animation:
    logo-burst  0.45s cubic-bezier(0.34, 1.4, 0.64, 1) 0s    1 both,
    logo-spin   1.0s  linear                            0.45s 1 both,
    logo-shrink 0.75s cubic-bezier(0.22, 1.0, 0.36, 1) 1.45s 1 both,
    float       6s    ease-in-out                       2.3s  infinite;

  */
}

@keyframes logo-burst {
  from { transform: scale(1);   filter: drop-shadow(0 0 20px rgba(197,168,17,0.5)); }
  to   { transform: scale(5.5); filter: drop-shadow(0 0 60px rgba(197,168,17,0.85)); }
}

@keyframes logo-spin {
  from { transform: scale(5.5) rotate(0deg);   }
  to   { transform: scale(5.5) rotate(360deg); }
}

@keyframes logo-shrink {
  from { transform: scale(5.5) rotate(360deg); filter: drop-shadow(0 0 60px rgba(197,168,17,0.85)); }
  to   { transform: scale(1)   rotate(360deg); filter: drop-shadow(0 0 20px rgba(197,168,17,0.5)); }
}

/* Hero text fades in after the animation finishes */
#hero-text {
  opacity: 0;
  /* animation: hero-text-in 0.6s ease-out 2.1s both; */
  animation: hero-text-in 0.3s ease-out 0.3s both;
}

@keyframes hero-text-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Gold divider under the title */
.hero-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0.8rem auto;
}

/* ============================================================
   WIKI NAVBAR Z-INDEX FIX
   The wiki uses an older Bootstrap bundle; explicitly stack it.
   ============================================================ */
