/* ============================================
   GINGERITY — Global Styles
   ============================================ */

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

:root {
  --bg:           #0a0a08;
  --bg-alt:       #0e0e0b;
  --surface:      #13120f;
  --surface-2:    #1a1915;
  --border:       rgba(255,255,255,0.06);
  --border-hover: rgba(217,149,60,0.2);
  --text:         #e8e4dc;
  --text-dim:     #8a8478;
  --text-muted:   #5c574e;
  --accent:       #d9953c;
  --accent-light: #e8b36a;
  --accent-dark:  #c47a24;
  --accent-deep:  #a86218;
  --accent-glow:  rgba(217, 149, 60, 0.15);
  --gradient-brand: linear-gradient(135deg, #e8b36a 0%, #d9953c 40%, #a86218 100%);
  --gradient-card:  linear-gradient(135deg, rgba(217,149,60,0.06) 0%, rgba(168,98,24,0.02) 100%);
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;          /* always show scrollbar — prevents layout shift between pages */
  scrollbar-gutter: stable;    /* modern browsers: reserve gutter space even without scrollbar */
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* === NOISE OVERLAY === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.008'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* === AMBIENT GLOW BLOBS === */
.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.ambient--1 {
  width: 550px; height: 550px;
  top: -200px; right: -100px;
  background: #d9953c;
  opacity: 0.06;
}
.ambient--2 {
  width: 500px; height: 500px;
  bottom: -250px; left: -200px;
  background: #a86218;
  opacity: 0.05;
}

/* === HERO BACKGROUND IMAGE === */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url('/img/tlo.jpg') center center / cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--bg) 75%);
}

/* === LAYOUT === */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 800px;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(9,9,11,0.75);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s ease;
}
nav.scrolled { padding: 12px 0; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 1px;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}
.nav-toggle svg { display: block; }

/* Language switcher */
.lang-switch {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-left: 8px;
}
.lang-switch:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 24px rgba(217,149,60,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(217,149,60,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--border-hover);
  background: rgba(217,149,60,0.05);
}
.btn--small {
  padding: 10px 20px;
  font-size: 0.825rem;
}

.btn-arrow {
  transition: transform 0.25s ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(217,149,60,0.2);
  background: rgba(217,149,60,0.06);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-light);
  letter-spacing: 0.04em;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag--dev {
  background: rgba(217,149,60,0.12);
  color: var(--accent-light);
  border: 1px solid rgba(217,149,60,0.15);
}
.tag--released {
  background: rgba(74,222,128,0.1);
  color: #86efac;
  border: 1px solid rgba(74,222,128,0.15);
}
.tag--concept {
  background: rgba(251,191,36,0.1);
  color: #fcd34d;
  border: 1px solid rgba(251,191,36,0.15);
}

/* ============================================
   SECTION HELPERS
   ============================================ */
.section {
  padding: 100px 0;
}
.section--top {
  padding-top: 140px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.section-label--center { text-align: center; }

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 560px;
}
.section-sub--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--gradient-card);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,149,60,0.3), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.card:hover::before { opacity: 1; }
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(217,149,60,0.1);
  border: 1px solid rgba(217,149,60,0.12);
  font-size: 1.25rem;
}

.card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.card p {
  color: var(--text-dim);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.65;
}

/* ============================================
   GAME CARDS (Games page)
   ============================================ */
.game-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--gradient-card);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.game-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,149,60,0.25), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.game-card:hover::before { opacity: 1; }
.game-card:hover {
  border-color: var(--border-hover);
}

.game-card__visual {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.game-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.game-card__body { display: flex; flex-direction: column; gap: 16px; }
.game-card__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.game-card__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.game-card__desc {
  color: var(--text-dim);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
}
.game-card__meta {
  display: flex;
  gap: 24px;
  margin-top: 4px;
}
.game-card__meta-item {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.game-card__meta-item strong {
  color: var(--text-dim);
  font-weight: 500;
}

/* ============================================
   ABOUT PAGE — TIMELINE
   ============================================ */
.timeline {
  position: relative;
  padding-left: 36px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-dark), var(--border));
}
.timeline-item {
  position: relative;
  padding-bottom: 40px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-dark);
  z-index: 1;
}
.timeline-item:first-child::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.timeline-year {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-light);
  margin-bottom: 6px;
}
.timeline-text {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.65;
}

/* ============================================
   CONTACT PAGE — FORM
   ============================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group--full {
  grid-column: 1 / -1;
}
.form-label {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-dim);
}
.form-input,
.form-textarea {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}
.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}
.contact-method {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--gradient-card);
  text-align: center;
  transition: border-color 0.25s ease;
}
.contact-method:hover { border-color: var(--border-hover); }
.contact-method__icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.contact-method__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-method__value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}
.contact-method__value a {
  color: var(--accent-light);
  transition: color 0.25s ease;
}
.contact-method__value a:hover { color: var(--text); }

/* ============================================
   FOOTER
   ============================================ */
footer {
  margin-top: auto;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 300;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 0.25s ease;
}
.footer-links a:hover { color: var(--accent-light); }

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: reveal 0.8s ease forwards;
}
.reveal-d1 { animation-delay: 0.1s; }
.reveal-d2 { animation-delay: 0.2s; }
.reveal-d3 { animation-delay: 0.35s; }
.reveal-d4 { animation-delay: 0.5s; }
.reveal-d5 { animation-delay: 0.65s; }
.reveal-d6 { animation-delay: 0.8s; }
.reveal-d7 { animation-delay: 0.95s; }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: reveal 0.7s ease forwards;
}
/* Stagger scroll-reveal items with nth-child delays */
.scroll-reveal:nth-child(1) { animation-delay: 0.15s; }
.scroll-reveal:nth-child(2) { animation-delay: 0.3s; }
.scroll-reveal:nth-child(3) { animation-delay: 0.45s; }
.scroll-reveal:nth-child(4) { animation-delay: 0.6s; }
.scroll-reveal:nth-child(5) { animation-delay: 0.75s; }
.scroll-reveal:nth-child(6) { animation-delay: 0.9s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(9,9,11,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }

  .section { padding: 60px 0; }
  .section--top { padding-top: 120px; }

  .game-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .form-grid { grid-template-columns: 1fr; }
  .contact-methods { grid-template-columns: 1fr; }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .game-card {
    grid-template-columns: 260px 1fr;
    gap: 28px;
    padding: 32px;
  }
}

/* ============================================
   UTILITY
   ============================================ */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }

.text-center { text-align: center; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--gradient-card);
}
.stat__number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.03em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat__label {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 400;
  margin-top: 4px;
}