/*
Theme Name: Team Nabla
Version: 1.7
*/

/* ── Variables ── */
:root {
  --bg:     #06050e;
  --purple: #9b30ff;
  --cyan:   #00d4ff;
  --white:  #f0eaf8;
  --muted:  #7a6f94;
  --border: rgba(155, 48, 255, 0.22);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* noise overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
}

/* ambient orbs */
.orb { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(100px); }
.orb-top {
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(155,48,255,0.12) 0%, transparent 70%);
  top: -80px; left: 50%; transform: translateX(-50%);
  animation: orbfloat 10s ease-in-out infinite;
}
.orb-cyan {
  width: 350px; height: 200px;
  background: radial-gradient(ellipse, rgba(0,212,255,0.06) 0%, transparent 70%);
  bottom: 15%; right: -80px;
  animation: orbfloat2 14s ease-in-out infinite;
}
@keyframes orbfloat {
  0%,100% { opacity:.7; transform:translateX(-50%) translateY(0); }
  50%      { opacity:1;  transform:translateX(-50%) translateY(-18px); }
}
@keyframes orbfloat2 {
  0%,100% { opacity:.5; transform:translateY(0); }
  50%      { opacity:.9; transform:translateY(-14px); }
}

/* ── Utilities ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── HERO ── */
.hero {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 5rem 2rem 3rem;
  text-align: center;
}

.hero-banner {
  width: min(820px, 92vw);
  display: block;
  opacity: 0;
  animation: fadeDown 0.9s ease forwards 0.15s;
}


/* ── MAIN CONTENT ── */
.main-content {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 4rem 2rem 6rem;
  display: flex; flex-direction: column; gap: 4rem;
}

/* ── BIO ── */
.bio-section {
  position: relative; z-index: 1;
  padding: 0;
}

.eyebrow {
  font-size: 0.63rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.3rem;
}


.bio-text {
  font-size: 1rem;
  line-height: 1.9;
  color: #b4a6cc;
}

/* ── GAME CARD ── */
.game-section {
  position: relative; z-index: 1;
  flex: 1 1 auto;
  padding: 0;
}

.game-section > .eyebrow {
  margin-bottom: 1.5rem;
}

.game-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(155,48,255,0.05) 0%, rgba(6,5,14,0.97) 60%);
  transition: border-color 0.3s;
}
.game-card:hover { border-color: rgba(155,48,255,0.48); }
.game-card::before {
  content: '';
  position: absolute; top:0; left:0; right:0; height:1px;
  background: linear-gradient(90deg, transparent, var(--purple) 40%, var(--cyan) 100%);
}

.game-content {
  padding: 2.4rem 2.4rem;
  display: flex; flex-direction: column;
}

.game-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #fff 0%, #c090ff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.35rem;
}

.game-genre {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.game-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
  margin-bottom: 1.8rem;
}

.game-desc {
  font-size: 0.95rem;
  line-height: 1.85;
  color: #b4a6cc;
  margin-bottom: 1.8rem;
}

.tag-row { display:flex; flex-wrap:wrap; gap:0.5rem; margin-bottom:2rem; }
.tag {
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.28rem 0.72rem;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(155,48,255,0.04);
}

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.72rem 1.6rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
  width: fit-content;
}
.btn-primary {
  background: var(--purple); color: #fff;
  border: 1px solid var(--purple);
  box-shadow: 0 0 20px rgba(155,48,255,0.3);
}
.btn-primary:hover {
  background: #ae4fff;
  box-shadow: 0 0 36px rgba(155,48,255,0.55);
  transform: translateY(-1px);
}

.wishlist-note {
  margin-top: 0.7rem;
  font-size: 0.7rem;
  color: var(--muted);
  font-style: italic;
}

.game-discord { margin-top: 1.2rem; align-self: flex-start; }

/* ── Logo easter egg ── */
.footer-logo { cursor: pointer; }
@keyframes logoSpin {
  0%   { transform: rotate(0deg);   filter: drop-shadow(0 0 14px rgba(155,48,255,0.5)); }
  50%  { transform: rotate(180deg); filter: drop-shadow(0 0 48px rgba(155,48,255,1)) drop-shadow(0 0 20px rgba(0,212,255,0.6)); }
  100% { transform: rotate(360deg); filter: drop-shadow(0 0 14px rgba(155,48,255,0.5)); }
}
.footer-logo.is-spinning { animation: logoSpin 0.7s ease forwards; }

.footer-lore {
  font-size: 0.58rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--purple);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease, max-height 0.3s ease;
  pointer-events: none;
}
.footer-lore.is-visible {
  opacity: 1;
  max-height: 2rem;
}

/* ── FOOTER ── */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2.5rem;
}
.footer-inner {
  max-width: 880px; margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; gap: 1.4rem;
  text-align: center;
}
.footer-contact {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.4rem;
}

.footer-logo {
  width: 52px;
  opacity: 0.85;
  filter: drop-shadow(0 0 14px rgba(155,48,255,0.5));
  transition: opacity 0.2s, filter 0.2s;
}
.footer-logo:hover {
  opacity: 1;
  filter: drop-shadow(0 0 24px rgba(155,48,255,0.8));
}

.contact-link {
  font-size: 1rem;
  color: var(--purple);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s, text-shadow 0.2s;
}
.contact-link:hover {
  color: #c080ff;
  text-shadow: 0 0 16px rgba(155,48,255,0.5);
}

.social-row { display:flex; gap:2rem; align-items:center; }
.social-link {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.social-link:hover { color: var(--cyan); border-color: var(--cyan); }

.footer-copy { font-size:0.63rem; color:#382e50; letter-spacing:0.15em; }

/* ── Scroll fade-in ── */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.game-section.fade-up { transition-delay: 0.1s; }

/* ── Animations ── */
@keyframes fadeDown {
  from { opacity:0; transform:translateY(-14px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(14px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .hero-banner { animation: none; opacity: 1; }
  .orb-top, .orb-cyan { animation: none; }
  .fade-up { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ── */

@media (max-width: 480px) {
  .hero { padding: 3.5rem 1.25rem 2rem; }
  .main-content { padding: 3rem 1.25rem 4rem; gap: 3rem; }
  .game-content { padding: 1.8rem 1.25rem; }
  .game-title { font-size: clamp(1.6rem, 8vw, 2rem); }
  .social-row { gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .site-footer { padding: 3rem 1.25rem 2rem; }
}
