/* ==========================================
   XPLORA CIENCIA — Main Stylesheet
   Color Palette: Magenta, Cyan, Yellow
   ========================================== */

/* --- CSS Custom Properties --- */
:root {
  --magenta: #e91e8c;
  --magenta-light: #ff4db8;
  --magenta-dark: #b5006a;
  --cyan: #00d4ff;
  --cyan-light: #5ce5ff;
  --cyan-dark: #009ec7;
  --yellow: #ffe600;
  --yellow-light: #fff44f;
  --yellow-dark: #c7b300;

  --bg-dark: #0a0a14;
  --bg-card: #12121e;
  --bg-card-hover: #1a1a2e;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6a6a80;

  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --nav-height: 72px;
  --section-padding: 120px;
  --container-width: 1200px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
}

/* --- Container --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Base --- */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  position: relative;
  padding: 6px 20px;
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 100px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 16px auto 0;
  line-height: 1.7;
}

/* ===================
   REVEAL ANIMATIONS
   =================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.5s; }
.reveal-stagger > .reveal:nth-child(7) { transition-delay: 0.6s; }
.reveal-stagger > .reveal:nth-child(8) { transition-delay: 0.7s; }

/* ===================
   NAVBAR
   =================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

.navbar.scrolled {
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: border-color 0.3s;
}

.lang-toggle:hover {
  border-color: var(--cyan);
}

.lang-option {
  color: var(--text-muted);
  transition: color 0.3s;
  cursor: pointer;
}

.lang-option.active {
  color: var(--cyan);
}

.lang-divider {
  color: var(--text-muted);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===================
   HERO
   =================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(233,30,140,0.12) 0%, rgba(0,212,255,0.08) 40%, transparent 70%);
  animation: heroPulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 40px 24px 96px;
}

.hero-logo {
  width: clamp(220px, 30vw, 380px);
  height: auto;
  margin: 0 auto 24px;
  animation: wordReveal 1s 0.2s var(--ease-out) both;
  filter: drop-shadow(0 0 30px rgba(233,30,140,0.25));
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--yellow);
  border: 1px solid rgba(255,230,0,0.3);
  padding: 8px 24px;
  border-radius: 100px;
  margin-bottom: 32px;
  animation: badgeFadeIn 1s 0.3s var(--ease-out) both;
}

@keyframes badgeFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 20px;
}

.hero-word {
  display: inline-block;
  animation: wordReveal 1s var(--ease-out) both;
}

.hero-word--magenta {
  color: var(--magenta);
  animation-delay: 0.5s;
  text-shadow: 0 0 40px rgba(233,30,140,0.4);
}

.hero-word--cyan {
  color: var(--cyan);
  animation-delay: 0.8s;
  text-shadow: 0 0 40px rgba(0,212,255,0.4);
}

.hero-ampersand {
  color: var(--yellow);
  font-size: 0.6em;
  animation: wordReveal 1s 0.65s var(--ease-out) both;
}

@keyframes wordReveal {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  animation: wordReveal 1s 1s var(--ease-out) both;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
  animation: wordReveal 1s 1.2s var(--ease-out) both;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--yellow);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero CTA */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--magenta), var(--cyan));
  color: #fff;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  animation: wordReveal 1s 1.4s var(--ease-out) both;
}

.hero-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(233,30,140,0.3), 0 8px 30px rgba(0,212,255,0.2);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--cyan);
  border-radius: 4px;
  animation: scrollDot 2s ease-in-out infinite;
}

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

@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ===================
   ABOUT
   =================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

/* Orbit System Animation */
.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.orbit-system {
  position: relative;
  width: 360px;
  height: 360px;
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 0 40px rgba(233,30,140,0.2), 0 0 80px rgba(0,212,255,0.15);
}

.orbit-center img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
}

.orbit-ring--1 {
  width: 160px;
  height: 160px;
  margin: -80px 0 0 -80px;
  animation: orbitSpin 25s linear infinite;
}

.orbit-ring--2 {
  width: 260px;
  height: 260px;
  margin: -130px 0 0 -130px;
  animation: orbitSpin 35s linear infinite reverse;
}

.orbit-ring--3 {
  width: 350px;
  height: 350px;
  margin: -175px 0 0 -175px;
  animation: orbitSpin 50s linear infinite;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.orbit-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  top: -6px;
  left: 50%;
  margin-left: -6px;
  animation: orbitDotPulse 3s ease-in-out infinite;
  animation-delay: var(--delay);
}

.orbit-ring--1 .orbit-dot { background: var(--magenta); box-shadow: 0 0 12px var(--magenta); }
.orbit-ring--2 .orbit-dot { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.orbit-ring--3 .orbit-dot { background: var(--yellow); box-shadow: 0 0 12px var(--yellow); }

.orbit-ring--1 .orbit-dot:nth-child(2) { top: auto; bottom: -6px; }
.orbit-ring--2 .orbit-dot:nth-child(2) { right: -6px; left: auto; top: 50%; margin-top: -6px; }
.orbit-ring--2 .orbit-dot:nth-child(3) { left: -6px; top: 50%; margin-top: -6px; }
.orbit-ring--3 .orbit-dot:nth-child(2) { right: -6px; left: auto; top: 30%; }
.orbit-ring--3 .orbit-dot:nth-child(3) { left: -6px; top: 70%; }

@keyframes orbitDotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}

/* Orbit dot labels — appear on hover of orbit system */
.orbit-dot::after {
  content: attr(data-label);
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  /* Counter-rotate so the text stays readable */
  animation: none;
}

.orbit-system:hover .orbit-dot::after {
  opacity: 1;
}

/* ===================
   IMPACT / SOCIAL
   =================== */
.impact {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0d0d1a 50%, var(--bg-dark) 100%);
}

.platform-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 80px;
}

.platform-card {
  display: block;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.4s var(--ease-spring), border-color 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 20px 20px 0 0;
  transition: opacity 0.4s;
  opacity: 0.6;
}

.platform-card--tiktok::before { background: #ff0050; }
.platform-card--youtube::before { background: #ff0000; }
.platform-card--instagram::before { background: linear-gradient(90deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.platform-card--twitter::before { background: var(--text-primary); }
.platform-card--facebook::before { background: #1877f2; }

.platform-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.platform-card:hover::before {
  opacity: 1;
}

.platform-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
}

.platform-icon svg {
  width: 100%;
  height: 100%;
}

.platform-card--tiktok .platform-icon { color: #ff0050; }
.platform-card--youtube .platform-icon { color: #ff0000; }
.platform-card--instagram .platform-icon { color: #e6683c; }
.platform-card--twitter .platform-icon { color: var(--text-primary); }
.platform-card--facebook .platform-icon { color: #1877f2; }

.platform-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.platform-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.platform-stat {
  display: flex;
  flex-direction: column;
}

.platform-stat strong {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}

.platform-stat span {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.platform-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.platform-card:hover .platform-link {
  color: var(--cyan);
}

.platform-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* Viral Videos */
.viral-section {
  margin-top: 32px;
}

.viral-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--yellow);
}

.viral-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.viral-card {
  display: block;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s var(--ease-spring), border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.viral-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,230,0,0.2);
}

.viral-card--static {
  cursor: default;
}

.viral-views {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.viral-count {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--yellow);
}

.viral-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.viral-info h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.viral-platform {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.viral-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--magenta), var(--yellow));
  border-radius: 0 0 16px 16px;
  transition: width 1.5s var(--ease-out);
}

.viral-card.active .viral-bar {
  width: var(--width);
}

/* ===================
   PROJECTS TIMELINE
   =================== */
.projects {
  background: var(--bg-dark);
}

.projects-timeline {
  position: relative;
  padding-left: 40px;
}

.projects-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--magenta) 10%,
    var(--cyan) 50%,
    var(--yellow) 90%,
    transparent 100%
  );
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--bg-dark);
  z-index: 2;
}

.timeline-dot--magenta { background: var(--magenta); box-shadow: 0 0 12px var(--magenta); }
.timeline-dot--cyan { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.timeline-dot--yellow { background: var(--yellow); box-shadow: 0 0 12px var(--yellow); }

.timeline-content {
  padding-left: 16px;
}

.timeline-divider {
  padding: 40px 0 24px;
  padding-left: 16px;
}

.timeline-divider h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan);
}

/* Project Card */
.project-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.project-card:hover {
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.project-card--featured {
  border-color: rgba(233,30,140,0.2);
}

.project-card--collab {
  border-color: rgba(0,212,255,0.1);
}

.project-media {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.project-media iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.project-body {
  padding: 28px;
}

.project-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 8px;
}

.project-card--collab .project-tag {
  color: var(--cyan);
}

.project-body h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--magenta);
  transition: color 0.3s, transform 0.3s;
}

.project-link:hover {
  color: var(--magenta-light);
  transform: translateX(4px);
}

.project-link--spotify {
  color: #1db954;
}

.project-link--spotify:hover {
  color: #1ed760;
}

.project-links-row {
  display: flex;
  gap: 24px;
}

/* ===================
   EVENTS
   =================== */
.events {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0e0e1c 100%);
}

.events-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.event-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 320px;
  transition: transform 0.4s var(--ease-spring);
}

.event-card:hover {
  transform: scale(1.02);
}

.event-card--large {
  grid-column: span 2;
  min-height: 400px;
}

.event-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-out);
}

.event-card:hover .event-image {
  transform: scale(1.05);
}

.event-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,10,20,0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}

.event-overlay--solid {
  position: relative;
}

.event-overlay--magenta {
  background: linear-gradient(135deg, var(--magenta-dark), var(--magenta));
}

.event-overlay--cyan {
  background: linear-gradient(135deg, var(--cyan-dark), #0099cc);
}

.event-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 8px;
}

.event-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.event-overlay p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

/* ===================
   TEAM
   =================== */
.team {
  background: var(--bg-dark);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.team-card {
  text-align: center;
  padding: 32px 16px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.4s var(--ease-spring), border-color 0.4s, box-shadow 0.4s;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent, var(--cyan));
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 30px color-mix(in srgb, var(--accent, var(--cyan)) 20%, transparent);
}

.team-photo {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.team-card:hover .team-photo img {
  transform: scale(1.08);
}

.team-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent, var(--cyan));
  opacity: 0;
  transition: opacity 0.4s;
  animation: glowPulse 2s ease-in-out infinite paused;
}

.team-card:hover .team-glow {
  opacity: 1;
  animation-play-state: running;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 8px var(--accent, var(--cyan)); }
  50% { box-shadow: 0 0 20px var(--accent, var(--cyan)); }
}

.team-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.82rem;
  color: var(--accent, var(--text-muted));
  font-weight: 500;
}

/* ===================
   FOOTER
   =================== */
.footer {
  padding: 80px 0 40px;
  background: #080810;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-logo {
  height: 64px;
  width: auto;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 340px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, transform 0.3s var(--ease-spring), background 0.3s;
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.social-icon:hover {
  border-color: var(--cyan);
  background: rgba(0,212,255,0.1);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-email {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-email:hover {
  color: var(--cyan);
}

.footer-cafecito {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--yellow);
  padding: 8px 20px;
  border: 1px solid rgba(255,230,0,0.3);
  border-radius: 100px;
  transition: background 0.3s, transform 0.3s var(--ease-spring);
}

.footer-cafecito:hover {
  background: rgba(255,230,0,0.1);
  transform: translateY(-2px);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===================
   RESPONSIVE
   =================== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .orbit-system {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10,10,20,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease-out), opacity 0.4s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .platform-card {
    padding: 28px 20px;
  }

  .platform-stats {
    flex-wrap: wrap;
    gap: 12px;
  }

  .platform-stat {
    min-width: 90px;
  }

  .platform-carousel {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .events-mosaic {
    grid-template-columns: 1fr;
  }

  .event-card--large {
    grid-column: span 1;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .projects-timeline {
    padding-left: 32px;
  }

  .timeline-dot {
    left: -25px;
    width: 12px;
    height: 12px;
  }

  .projects-timeline::before {
    left: 11px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .viral-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-photo {
    width: 90px;
    height: 90px;
  }
}

/* ===================
   SPECIAL EFFECTS
   =================== */

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--magenta), var(--cyan), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Noise overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  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.02'/%3E%3C/svg%3E");
  opacity: 0.35;
}

/* Selection color */
::selection {
  background: rgba(233, 30, 140, 0.3);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--magenta), var(--cyan));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--magenta-light), var(--cyan-light));
}

/* ===================
   LEARN / MINIGAMES
   =================== */
.learn-slice {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0c0c18 50%, var(--bg-dark) 100%);
}

/* Game Tabs */
.game-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.game-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  background: transparent;
}

.game-tab:hover {
  border-color: var(--cyan);
  color: var(--text-primary);
}

.game-tab.active {
  background: linear-gradient(135deg, rgba(233,30,140,0.15), rgba(0,212,255,0.15));
  border-color: var(--cyan);
  color: var(--text-primary);
  box-shadow: 0 0 20px rgba(0,212,255,0.1);
}

.game-tab-icon {
  font-size: 1.2rem;
}

/* Game Panels */
.game-panel {
  display: none;
}

.game-panel.active {
  display: block;
  animation: gameFadeIn 0.5s var(--ease-out);
}

@keyframes gameFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Game Card */
.game-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--magenta), var(--cyan), var(--yellow));
}

.game-header {
  margin-bottom: 32px;
  text-align: center;
}

.game-header h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.game-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Game Buttons */
.game-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--magenta), var(--cyan));
  color: #fff;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  margin-top: 24px;
}

.game-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233,30,140,0.3);
}

.game-btn--reset {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-secondary);
  margin-left: 12px;
}

.game-btn--reset:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  box-shadow: none;
}

.game-result, .tetanus-feedback {
  margin-top: 24px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.7;
  min-height: 60px;
}

/* ---- PLACEBO GAME ---- */
.placebo-game {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.placebo-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.placebo-item {
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  font-size: 0.88rem;
  color: var(--text-primary);
  cursor: grab;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  user-select: none;
  line-height: 1.5;
}

.placebo-item:hover {
  border-color: var(--cyan);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.placebo-item:active {
  cursor: grabbing;
  transform: scale(1.02);
}

.placebo-item.correct {
  border-color: #4caf50;
  background: rgba(76,175,80,0.1);
}

.placebo-item.wrong {
  border-color: #f44336;
  background: rgba(244,67,54,0.1);
}

.placebo-zones {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drop-zone {
  min-height: 140px;
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 16px;
  transition: border-color 0.3s, background 0.3s;
}

.drop-zone.drag-over {
  background: rgba(0,212,255,0.05);
  border-color: var(--cyan);
}

.zone-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.zone-header--can { color: #4caf50; }
.zone-header--cant { color: #f44336; }

.zone-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zone-items .placebo-item {
  cursor: pointer;
  font-size: 0.82rem;
}

/* ---- TETANUS GAME ---- */
.tetanus-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.tetanus-card-stack {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 200px;
}

.tetanus-claim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-card-hover);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-primary);
  transition: transform 0.5s var(--ease-out), opacity 0.5s;
  z-index: 1;
}

.tetanus-claim.exit-left {
  transform: translateX(-120%) rotate(-8deg);
  opacity: 0;
}

.tetanus-claim.exit-right {
  transform: translateX(120%) rotate(8deg);
  opacity: 0;
}

.tetanus-claim.hidden {
  display: none;
}

.tetanus-buttons {
  display: flex;
  gap: 24px;
}

.tetanus-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 36px;
  border-radius: 16px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  background: transparent;
}

.tetanus-btn span:first-child {
  font-size: 1.6rem;
}

.tetanus-btn--false {
  border-color: #f44336;
  color: #f44336;
}

.tetanus-btn--false:hover {
  background: rgba(244,67,54,0.1);
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(244,67,54,0.2);
}

.tetanus-btn--true {
  border-color: #4caf50;
  color: #4caf50;
}

.tetanus-btn--true:hover {
  background: rgba(76,175,80,0.1);
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(76,175,80,0.2);
}

.tetanus-score {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--yellow);
  min-height: 32px;
}

.tetanus-feedback {
  color: var(--text-secondary);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- P-VALUE GAME ---- */
.pvalue-game {
  text-align: center;
}

.pvalue-controls {
  margin-bottom: 24px;
}

.pvalue-threshold {
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pvalue-threshold strong {
  color: var(--yellow);
  font-size: 1.1rem;
}

.pvalue-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.pvalue-cell {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  transition: transform 0.4s var(--ease-spring), border-color 0.4s, background 0.4s;
  position: relative;
  overflow: hidden;
}

.pvalue-cell.running {
  animation: cellPulse 0.6s ease-in-out;
}

@keyframes cellPulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.pvalue-cell.pass {
  border-color: #f44336;
  background: rgba(244,67,54,0.15);
  color: #f44336;
}

.pvalue-cell.fail {
  border-color: #4caf50;
  background: rgba(76,175,80,0.08);
  color: #4caf50;
}

.pvalue-cell .pval-num {
  font-size: 0.75rem;
  margin-top: 2px;
}

.pvalue-cell .pval-label {
  font-size: 0.55rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pvalue-summary {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  min-height: 32px;
}

.pvalue-insight {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  min-height: 60px;
}

/* ---- UMAMI GAME ---- */
.umami-game {
  text-align: center;
}

.umami-foods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.umami-food {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  min-width: 90px;
}

.umami-food:hover {
  border-color: var(--yellow);
  background: rgba(255,230,0,0.06);
  transform: translateY(-4px);
}

.umami-food.selected {
  border-color: var(--yellow);
  background: rgba(255,230,0,0.12);
  box-shadow: 0 0 16px rgba(255,230,0,0.15);
}

.umami-food .food-emoji {
  font-size: 2rem;
}

.umami-food .food-name {
  font-size: 0.72rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.umami-food .food-type {
  font-size: 0.62rem;
  color: var(--text-muted);
}

.umami-plate-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.umami-plate {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.1);
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px;
  position: relative;
  transition: border-color 0.4s, box-shadow 0.4s;
}

.umami-plate.synergy {
  border-color: var(--yellow);
  box-shadow: 0 0 40px rgba(255,230,0,0.2);
  animation: synPulse 1s ease-in-out;
}

@keyframes synPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(255,230,0,0.2); }
  50% { box-shadow: 0 0 60px rgba(255,230,0,0.4); }
}

.plate-label {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.plate-food {
  font-size: 1.6rem;
  animation: foodDrop 0.4s var(--ease-spring);
}

@keyframes foodDrop {
  from { transform: scale(0) rotate(-20deg); opacity: 0; }
  to { transform: scale(1) rotate(0deg); opacity: 1; }
}

.umami-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.meter-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.meter-bar {
  width: 200px;
  height: 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
}

.meter-fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--cyan), var(--yellow), var(--magenta));
  width: 0%;
  transition: width 0.6s var(--ease-out);
}

.meter-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--yellow);
  transition: color 0.3s;
}

.umami-synergy {
  font-size: 0.9rem;
  color: var(--magenta-light);
  font-weight: 600;
  min-height: 28px;
  animation: fadeInUp 0.4s var(--ease-out);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- GAME RESPONSIVE ---- */
@media (max-width: 768px) {
  .game-card {
    padding: 24px 16px;
  }

  .placebo-game {
    grid-template-columns: 1fr;
  }

  .pvalue-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .game-tabs {
    gap: 8px;
  }

  .game-tab {
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  .umami-plate {
    width: 160px;
    height: 160px;
  }

  .tetanus-claim {
    position: relative;
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .pvalue-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .tetanus-buttons {
    gap: 16px;
  }

  .tetanus-btn {
    padding: 12px 24px;
  }
}
