/* ═══════════════════════════════════════════════
   INVASIÓN ANNUNAKI - Styles
   Dark Cosmic Anunnaki Theme | 2026
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --bg: #0a0a0f;
  --bg-deep: #050508;
  --gold: #c9a94e;
  --gold-light: #f0d878;
  --gold-dark: #8a7230;
  --blue-deep: #0d1b3e;
  --purple: #1a0a2e;
  --red: #8b1a1a;
  --text: #e8e0d0;
  --text-muted: #6b6560;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(201, 169, 78, 0.15);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

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

::selection { background: var(--gold); color: var(--bg); }

h1, h2, h3, h4 { font-family: 'Cinzel Decorative', 'Cinzel', serif; color: var(--gold); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); text-align: center; margin-bottom: 1rem; }
h3 { font-size: clamp(1.3rem, 3vw, 2rem); }

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

a { color: var(--gold); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold-light); }

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * 0.1s); }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-brand {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: none; color: var(--gold); font-size: 1.5rem; cursor: pointer; }

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(201,169,78,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(13,27,62,0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(26,10,46,0.5) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
  z-index: 0;
}
#particles-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding: 0 2rem; }
.hero-overline {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
}
.hero h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 80px rgba(201,169,78,0.3), 0 0 160px rgba(201,169,78,0.1);
  line-height: 1;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
}
.hero-subtitle {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.9s forwards;
}
.hero-cta {
  display: inline-block;
  padding: 1rem 3rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all 0.4s;
  opacity: 0;
  animation: fadeInUp 1s ease 1.2s forwards;
}
.hero-cta:hover {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 0 40px rgba(201,169,78,0.3);
}
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
  color: var(--gold-dark);
  font-size: 1.5rem;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* ── Sections ── */
section {
  padding: 8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.section-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 2rem;
}

/* ── Intro Section ── */
.intro-section {
  position: relative;
  padding: 10rem 2rem;
  text-align: center;
}
.intro-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: 
    radial-gradient(ellipse at center, rgba(26,10,46,0.3) 0%, transparent 70%);
  pointer-events: none;
}
.intro-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 2;
}
.intro-text .highlight {
  color: var(--gold);
  font-weight: 600;
}
.intro-text .sumerian {
  font-style: italic;
  color: var(--gold-dark);
}
.intro-quote {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
  margin: 4rem auto;
  max-width: 700px;
  position: relative;
  padding: 2rem 0;
}
.intro-quote::before, .intro-quote::after {
  content: '"';
  font-family: 'Cinzel Decorative', serif;
  font-size: 4rem;
  color: var(--gold-dark);
  position: absolute;
  opacity: 0.3;
}
.intro-quote::before { top: -0.5rem; left: -1rem; }
.intro-quote::after { bottom: -2rem; right: -1rem; content: '"'; }

/* Concept cards */
.concepts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 5rem;
}
.concept-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
  position: relative;
  overflow: hidden;
}
.concept-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(201,169,78,0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.concept-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(201,169,78,0.1);
  border-color: rgba(201,169,78,0.3);
}
.concept-card:hover::before { opacity: 1; }
.concept-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}
.concept-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.concept-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Authors Section ── */
.authors-section {
  position: relative;
}
.author-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 8rem;
  padding: 3rem;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}
.author-block::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(201,169,78,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.author-block:nth-child(even) { direction: rtl; }
.author-block:nth-child(even) > * { direction: ltr; }
.author-img-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
  max-height: 500px;
}
.author-img-wrapper img,
.author-img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.author-img-placeholder {
  background: linear-gradient(135deg, var(--blue-deep), var(--purple), var(--bg));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.author-info { padding: 1rem 0; }
.author-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.author-years {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}
.author-work {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--gold-dark);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--gold-dark);
}
.author-desc {
  color: var(--text);
  line-height: 1.9;
  font-size: 1rem;
}
.author-desc p { margin-bottom: 1rem; }
.author-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.author-tag {
  padding: 0.3rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--gold-dark);
  letter-spacing: 1px;
}

/* ── Pantheon Section ── */
.pantheon-section {
  padding: 8rem 2rem;
  max-width: 1600px;
  margin: 0 auto;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}
.card-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 2/3;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s;
}
.card-item:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: 0 30px 80px rgba(201,169,78,0.2);
  z-index: 10;
}
.card-item img,
.card-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.card-item:hover img,
.card-item:hover .card-placeholder {
  transform: scale(1.1);
}
.card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.5rem;
  background: linear-gradient(transparent, rgba(10,10,15,0.95));
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s;
}
.card-item:hover .card-overlay {
  transform: translateY(0);
  opacity: 1;
}
.card-number {
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.8rem;
  color: var(--gold-dark);
  letter-spacing: 3px;
  margin-bottom: 0.3rem;
}
.card-overlay h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold-light);
  line-height: 1.3;
}
.card-overlay p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Card placeholder gradients */
.card-placeholder.grad-1 { background: linear-gradient(135deg, #2a1a0a, #1a0a2e, #0d1b3e); }
.card-placeholder.grad-2 { background: linear-gradient(135deg, #1a0a2e, #0a0a1f, #8b1a1a); }
.card-placeholder.grad-3 { background: linear-gradient(135deg, #0d1b3e, #1a0a2e, #2a1a0a); }
.card-placeholder.grad-4 { background: linear-gradient(135deg, #0a1a0a, #0a0a2e, #2a0a1a); }
.card-placeholder.grad-5 { background: linear-gradient(135deg, #1a1a0a, #0d1b3e, #1a0a2e); }
.card-placeholder.grad-6 { background: linear-gradient(135deg, #2e0a1a, #0a0a2e, #1a2a0a); }

/* ── World Section ── */
.world-section { max-width: 1600px; }
.world-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 1.5rem;
  margin-top: 4rem;
}
.world-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  min-height: 300px;
  transition: transform 0.5s;
}
.world-item:hover { transform: scale(1.02); }
.world-item.large { grid-column: span 2; min-height: 450px; }
.world-item img,
.world-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.world-item:hover img,
.world-item:hover .world-placeholder { transform: scale(1.08); }
.world-placeholder {
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}
.world-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(10,10,15,0.9));
}
.world-overlay h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1.3rem;
}
.world-overlay p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* ── Game Section ── */
.game-section {
  text-align: center;
  position: relative;
  padding: 10rem 2rem;
}
.game-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at center, rgba(201,169,78,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.game-text {
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.2rem;
  line-height: 2;
}
.game-cta {
  display: inline-block;
  padding: 1.2rem 4rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg);
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.4s;
  text-decoration: none;
}
.game-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(201,169,78,0.3);
  color: var(--bg);
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.85rem;
}
footer .footer-brand {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1rem;
  color: var(--gold-dark);
  letter-spacing: 3px;
  margin-bottom: 1rem;
}
footer a { color: var(--gold-dark); }
footer a:hover { color: var(--gold); }

/* ── Parallax Utility ── */
.parallax-bg {
  position: absolute;
  top: -20%; left: 0;
  width: 100%; height: 140%;
  background-size: cover;
  background-position: center;
  z-index: -1;
  will-change: transform;
}

/* ── Glow orbs ── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
}
.glow-orb.gold { background: var(--gold); }
.glow-orb.purple { background: #6a0dad; }
.glow-orb.blue { background: #1a3a6a; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .author-block { grid-template-columns: 1fr; gap: 2rem; }
  .author-block:nth-child(even) { direction: ltr; }
  .world-grid { grid-template-columns: 1fr 1fr; }
  .world-item.large { grid-column: span 2; }
}

@media (max-width: 768px) {
  section { padding: 5rem 1.5rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(10,10,15,0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-toggle { display: block; }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 5rem); }
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
  .world-grid { grid-template-columns: 1fr; }
  .world-item.large { grid-column: span 1; min-height: 300px; }
  .author-block { padding: 2rem 1.5rem; }
  .concepts-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .concepts-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
