/* historical.day - The Tomorrow That Never Was */
/* Retro-futuristic, candy-bright Pop palette, hexagonal honeycomb */

:root {
  --tangerine: #ff6b35;
  --cream: #fef3e2;
  --midnight: #1a0a3e;
  --gold: #ffd23f;
  --charcoal: #2a2a3d;
  --hotpink: #ff3c8e;
  --cyan: #00d4ff;
  --violet: #a855f7;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-accent: 'Lora', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--midnight);
  color: var(--cream);
  overflow-x: hidden;
  line-height: 1.6;
}

/* === STARBURSTS (Background Decorations) === */
.starburst {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
}

.starburst-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -200px;
  background: radial-gradient(circle, var(--tangerine) 0%, transparent 70%);
}

.starburst-2 {
  width: 500px;
  height: 500px;
  bottom: 30%;
  left: -150px;
  background: radial-gradient(circle, var(--hotpink) 0%, transparent 70%);
}

.starburst-3 {
  width: 700px;
  height: 700px;
  bottom: -300px;
  right: -250px;
  background: radial-gradient(circle, var(--violet) 0%, transparent 70%);
}

/* === SECTION HERO: The Time Capsule === */
.section-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(26,10,62,0.8) 0%, var(--midnight) 70%);
  z-index: 1;
}

.hero-hexagon-container {
  position: relative;
  z-index: 2;
}

.hero-hexagon {
  width: 55vmin;
  height: 55vmin;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, var(--midnight) 0%, var(--charcoal) 100%);
  position: relative;
}

.hero-hexagon-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
  animation: ringPulse 4s ease-in-out infinite;
}

.hero-ring-outer {
  width: 90%;
  height: 90%;
  border-color: var(--tangerine);
  opacity: 0.3;
  animation-delay: 0s;
}

.hero-ring-middle {
  width: 75%;
  height: 75%;
  border-color: var(--gold);
  opacity: 0.25;
  animation-delay: -1.3s;
}

.hero-ring-inner {
  width: 60%;
  height: 60%;
  border-color: var(--cyan);
  opacity: 0.2;
  animation-delay: -2.6s;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.08); opacity: 0.5; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vmin, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cream);
  text-align: center;
  position: relative;
  z-index: 3;
  text-shadow: 0 0 40px rgba(255,107,53,0.3);
  transition: font-weight 0.3s ease;
}

.hero-subtitle {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(0.9rem, 2vmin, 1.4rem);
  color: var(--gold);
  margin-top: 0.5em;
  position: relative;
  z-index: 3;
  opacity: 0.9;
}

/* Orbiting dates */
.hero-orbiting-dates {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  z-index: 1;
}

.orbit-date {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 1.5vmin, 1rem);
  font-weight: 600;
  color: var(--cyan);
  opacity: 0.6;
  white-space: nowrap;
  animation: orbit 18s linear infinite;
  animation-delay: var(--orbit-delay);
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(var(--orbit-distance)) rotate(0deg); }
  to { transform: rotate(360deg) translateX(var(--orbit-distance)) rotate(-360deg); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 5;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cream);
  opacity: 0.6;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--tangerine);
  border-bottom: 2px solid var(--tangerine);
  transform: rotate(45deg);
  opacity: 0.7;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* === WAVE DIVIDERS === */
.wave-divider {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  z-index: 2;
}

.wave-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.wp1 { fill: var(--tangerine); opacity: 0.4; }
.wp2 { fill: var(--gold); opacity: 0.25; }
.wp3 { fill: var(--hotpink); opacity: 0.35; }
.wp4 { fill: var(--violet); opacity: 0.2; }
.wp5 { fill: var(--cyan); opacity: 0.3; }
.wp6 { fill: var(--tangerine); opacity: 0.15; }

.wd1 { background: transparent; }
.wd2 { background: transparent; }
.wd3 { background: transparent; }

/* === SECTION TIMELINE === */
.section-timeline {
  position: relative;
  padding: 5rem 2rem;
  z-index: 2;
  background: linear-gradient(180deg, transparent 0%, rgba(42,42,61,0.3) 50%, transparent 100%);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.section-heading-light {
  color: var(--gold);
}

.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--tangerine), var(--hotpink), var(--cyan), var(--gold), transparent);
  transform: translateX(-50%);
}

.timeline-events {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.timeline-event {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-event.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-event:nth-child(odd) {
  flex-direction: row;
  padding-right: calc(50% + 2rem);
}

.timeline-event:nth-child(even) {
  flex-direction: row-reverse;
  padding-left: calc(50% + 2rem);
}

.event-hexagon {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.event-hex-clip {
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  overflow: hidden;
  transition: transform 0.4s ease;
}

.event-hex-clip:hover {
  transform: scale(1.1);
}

.event-illustration {
  width: 100%;
  height: 100%;
}

.event-content {
  flex: 1;
}

.event-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--tangerine);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.event-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--cream);
  margin: 0.3rem 0;
}

.event-description {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--cream);
  opacity: 0.75;
  line-height: 1.5;
}

.timeline-event:nth-child(odd) .event-content {
  text-align: right;
}

/* === SECTION HIVE (Hexagonal Grid) === */
.section-hive {
  position: relative;
  padding: 5rem 2rem;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(26,10,62,0.5), transparent);
}

.hive-subtitle {
  font-family: var(--font-accent);
  font-style: italic;
  text-align: center;
  color: var(--cream);
  opacity: 0.7;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.hex-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hex-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.hex-row-even {
  margin-top: -30px;
}

.hex-cell {
  width: 180px;
  height: 200px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--charcoal);
  transition: transform 0.4s ease, background 0.4s ease;
  cursor: pointer;
}

.hex-cell:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, var(--charcoal), var(--midnight));
}

.hex-cell-featured {
  background: linear-gradient(135deg, var(--tangerine), var(--hotpink));
}

.hex-cell-featured:hover {
  background: linear-gradient(135deg, var(--hotpink), var(--tangerine));
}

.hex-cell-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
}

.hex-icon {
  display: block;
  margin-bottom: 0.5rem;
}

.hex-cell-inner h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.hex-cell-inner p {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--cream);
  opacity: 0.7;
  line-height: 1.3;
}

/* === SECTION EXHIBIT === */
.section-exhibit {
  position: relative;
  padding: 5rem 2rem;
  z-index: 2;
}

.exhibit-container {
  max-width: 1000px;
  margin: 0 auto;
}

.exhibit-card {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: rgba(42,42,61,0.4);
  border-radius: 24px;
  padding: 3rem;
  border: 1px solid rgba(255,107,53,0.2);
  backdrop-filter: blur(10px);
}

.exhibit-hex-frame {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
}

.exhibit-svg {
  width: 100%;
  height: 100%;
}

.exhibit-info {
  flex: 1;
}

.exhibit-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--midnight);
  background: var(--gold);
  padding: 0.3em 1em;
  border-radius: 2rem;
  margin-bottom: 1rem;
}

.exhibit-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 1rem;
}

.exhibit-text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cream);
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.exhibit-stats {
  display: flex;
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--tangerine);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--cream);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* === FOOTER === */
.section-footer {
  position: relative;
  z-index: 2;
  background: var(--midnight);
}

.footer-wave {
  width: 100%;
  height: 60px;
  overflow: hidden;
}

.footer-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-content {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--midnight);
}

.footer-hex-logo {
  margin-bottom: 1rem;
}

.footer-tagline {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  color: var(--cream);
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--tangerine);
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--cream);
  opacity: 0.4;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .timeline-event:nth-child(odd),
  .timeline-event:nth-child(even) {
    flex-direction: column;
    padding: 0 1rem;
    text-align: center;
  }
  .timeline-event:nth-child(odd) .event-content {
    text-align: center;
  }
  .timeline-line { left: 1rem; }
  .hex-cell { width: 140px; height: 155px; }
  .hex-row-even { margin-top: -20px; }
  .exhibit-card { flex-direction: column; padding: 2rem; }
  .exhibit-hex-frame { width: 200px; height: 200px; }
  .exhibit-stats { gap: 1rem; }
}

@media (max-width: 480px) {
  .hex-row { flex-wrap: wrap; }
  .hex-cell { width: 120px; height: 133px; }
  .orbit-date { display: none; }
}
