:root {
  /* Cartoon Colors - Vibrant & Playful */
  --color-bg: #0f0f1a;
  --color-bg-elevated: #1a1a2e;
  --color-bg-card: #16213e;
  --color-bg-card-hover: #1e2a4a;
  --color-text: #ffffff;
  --color-text-muted: #b8c5d6;
  --color-accent: #6366f1;
  --color-accent-hover: #818cf8;
  --color-secondary: #f472b6;
  --color-tertiary: #2dd4bf;
  --color-warning: #fbbf24;
  --color-success: #34d399;
  
  /* Cartoon Effects */
  --toon-shadow: 6px 6px 0px rgba(0,0,0,0.3);
  --toon-shadow-hover: 8px 8px 0px rgba(0,0,0,0.4);
  --toon-border: 3px solid #000;
  --toon-radius: 20px;
  --elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

/* Living Background */
.living-world {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  background: 
    radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(244, 114, 182, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(45, 212, 191, 0.1) 0%, transparent 70%),
    var(--color-bg);
  pointer-events: none;
}

.cloud {
  position: absolute;
  font-size: 4rem;
  opacity: 0.3;
  animation: float-cloud 20s infinite ease-in-out;
}

.cloud-1 { top: 10%; left: -10%; animation-delay: 0s; }
.cloud-2 { top: 60%; right: -5%; animation-delay: -7s; font-size: 3rem; }
.cloud-3 { top: 30%; left: 80%; animation-delay: -14s; font-size: 5rem; }

.floating-star {
  position: absolute;
  font-size: 1.5rem;
  animation: twinkle 3s infinite ease-in-out;
}

.floating-star:nth-child(4) { top: 20%; left: 20%; animation-delay: 0s; }
.floating-star:nth-child(5) { top: 70%; left: 80%; animation-delay: 1s; }
.floating-star:nth-child(6) { top: 40%; left: 60%; animation-delay: 2s; }

.energy-ball {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.6;
  animation: energy-float 8s infinite ease-in-out;
}

.energy-ball:nth-child(7) { top: 30%; left: 30%; animation-delay: 0s; background: var(--color-secondary); }
.energy-ball:nth-child(8) { top: 70%; left: 50%; animation-delay: -3s; background: var(--color-tertiary); }
.energy-ball:nth-child(9) { top: 50%; left: 80%; animation-delay: -6s; background: var(--color-warning); }

/* Zappy the Mascot */
.zappy-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  cursor: pointer;
  transition: transform 0.3s var(--elastic);
}

.zappy-container:hover {
  transform: scale(1.1) rotate(5deg);
}

.zappy-body {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  border-radius: 50%;
  border: 3px solid #000;
  box-shadow: var(--toon-shadow);
  position: relative;
  animation: zappy-bounce 2s infinite ease-in-out;
}

.zappy-face {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 40%;
}

.zappy-eye {
  position: absolute;
  width: 12px;
  height: 16px;
  background: #000;
  border-radius: 50%;
  top: 0;
  animation: blink 4s infinite;
}

.zappy-eye.left { left: 5px; }
.zappy-eye.right { right: 5px; }

.zappy-eye::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
}

.zappy-mouth {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 10px;
  border-bottom: 3px solid #000;
  border-radius: 0 0 20px 20px;
}

.zappy-antenna {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 20px;
  background: #000;
}

.zappy-antenna::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--color-warning);
  border-radius: 50%;
  border: 2px solid #000;
  animation: antenna-glow 1s infinite alternate;
}

.zappy-hand {
  position: absolute;
  font-size: 1.5rem;
  animation: wave 2s infinite ease-in-out;
}

.zappy-hand.left {
  left: -10px;
  top: 50%;
  transform-origin: right center;
}

.zappy-hand.right {
  right: -10px;
  top: 30%;
  animation-delay: 0.5s;
  transform-origin: left center;
}

.zappy-shadow {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 15px;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
  animation: shadow-pulse 2s infinite ease-in-out;
}

/* Speech Bubble */
.speech-bubble {
  position: fixed;
  bottom: 120px;
  right: 30px;
  background: white;
  color: #000;
  padding: 15px 20px;
  border-radius: 20px;
  border: 3px solid #000;
  box-shadow: var(--toon-shadow);
  max-width: 250px;
  z-index: 1000;
  opacity: 0;
  transform: scale(0) translateY(20px);
  transition: all 0.3s var(--elastic);
  pointer-events: none;
}

.speech-bubble.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.bubble-tail {
  position: absolute;
  bottom: -15px;
  right: 30px;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid #000;
}

.bubble-tail::after {
  content: '';
  position: absolute;
  top: -18px;
  left: -12px;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid white;
}

/* Navigation */
.toon-nav {
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid #000;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
}

.logo-wrapper {
  position: relative;
  display: inline-block;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
}

.logo-icon {
  font-size: 2rem;
  animation: pulse 2s infinite;
}

.logo-sparkles {
  position: absolute;
  top: -10px;
  right: -20px;
  font-size: 1.5rem;
  animation: sparkle 2s infinite;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: all 0.3s var(--elastic);
}

.nav-link:hover {
  background: var(--color-accent);
  border-color: #000;
  transform: translateY(-3px);
  box-shadow: var(--toon-shadow);
}

.link-emoji {
  font-size: 1.2rem;
}

.jelly-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  display: none;
}

.hamburger-line {
  width: 30px;
  height: 4px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s var(--elastic);
  border: 1px solid #000;
}

/* Hero Section */
.toon-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  pointer-events: none;
}

.burst-ray {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 300px;
  background: linear-gradient(to bottom, transparent, var(--color-accent), transparent);
  transform-origin: center top;
  opacity: 0.3;
}

.burst-ray:nth-child(1) { transform: rotate(0deg); }
.burst-ray:nth-child(2) { transform: rotate(45deg); }
.burst-ray:nth-child(3) { transform: rotate(90deg); }
.burst-ray:nth-child(4) { transform: rotate(135deg); }
.burst-ray:nth-child(5) { transform: rotate(180deg); }
.burst-ray:nth-child(6) { transform: rotate(225deg); }
.burst-ray:nth-child(7) { transform: rotate(270deg); }
.burst-ray:nth-child(8) { transform: rotate(315deg); }

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  padding: 8px 20px;
  border-radius: 50px;
  border: 3px solid #000;
  box-shadow: var(--toon-shadow);
  font-weight: 700;
  margin-bottom: 2rem;
  animation: badge-bounce 2s infinite;
}

.badge-emoji {
  font-size: 1.5rem;
}

.badge-bounce {
  animation: bounce 1s infinite;
}

.comic-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  position: relative;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.title-line {
  display: block;
  position: relative;
  text-shadow: 4px 4px 0px #000;
  animation: text-pop 0.8s var(--elastic) backwards;
}

.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.2s; color: var(--color-secondary); }
.title-line:nth-child(3) { animation-delay: 0.3s; }

.highlight-line {
  position: relative;
  display: inline-block;
}

.title-effects {
  position: absolute;
  top: 0;
  right: -50px;
  font-size: 2rem;
}

.floating-emoji {
  position: absolute;
  animation: float-rotate 3s infinite ease-in-out;
}

.floating-emoji:nth-child(1) { top: 0; right: 0; animation-delay: 0s; }
.floating-emoji:nth-child(2) { top: 50px; right: 30px; animation-delay: 1s; }
.floating-emoji:nth-child(3) { top: 100px; right: -10px; animation-delay: 2s; }

.hero-description {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.8;
}

.typewriter-text {
  overflow: hidden;
  border-right: 3px solid var(--color-accent);
  white-space: nowrap;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.comic-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  border: 3px solid #000;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s var(--elastic);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-accent);
  color: white;
}

.btn-secondary {
  background: var(--color-bg-card);
  color: var(--color-text);
}

.comic-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--toon-shadow-hover);
}

.comic-btn:active {
  transform: translateY(0) scale(0.95);
}

.btn-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(45deg);
  transition: all 0.5s;
  opacity: 0;
}

.comic-btn:hover .btn-shine {
  animation: shine 0.5s ease-in-out;
}

.btn-emoji {
  font-size: 1.3rem;
  animation: bounce 1s infinite;
}

.pulse-glow {
  animation: pulse-glow 2s infinite;
}

/* Stats */
.toon-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  background: var(--color-bg-card);
  padding: 1.5rem;
  border-radius: var(--toon-radius);
  border: 3px solid #000;
  box-shadow: var(--toon-shadow);
  text-align: center;
  min-width: 140px;
  transition: all 0.3s var(--elastic);
}

.stat-item:hover {
  transform: translateY(-10px) rotate(2deg);
  box-shadow: var(--toon-shadow-hover);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  animation: bounce 2s infinite;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  font-family: 'Space Grotesk', sans-serif;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 500px;
}

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

.illustration-bg {
  font-size: 15rem;
  opacity: 0.2;
  position: absolute;
  animation: slow-spin 60s linear infinite;
}

.floating-element {
  position: absolute;
  font-size: 4rem;
  animation: orbit 10s linear infinite;
}

.float-1 { animation-delay: 0s; top: 20%; left: 20%; }
.float-2 { animation-delay: -2.5s; top: 60%; left: 10%; }
.float-3 { animation-delay: -5s; top: 70%; right: 20%; }
.float-4 { animation-delay: -7.5s; top: 30%; right: 10%; }

.orbit-ring {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 3px dashed rgba(99, 102, 241, 0.3);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

.ring-2 {
  width: 400px;
  height: 400px;
  animation-direction: reverse;
  animation-duration: 30s;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-mouse {
  width: 30px;
  height: 50px;
  border: 3px solid var(--color-text);
  border-radius: 15px;
  position: relative;
}

.scroll-wheel {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 10px;
  background: var(--color-accent);
  border-radius: 3px;
  animation: scroll-wheel 1.5s infinite;
}

.scroll-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1rem;
  opacity: 0.5;
}

.scroll-arrows span {
  animation: arrow-bounce 1s infinite;
  animation-delay: calc(var(--i) * 0.2s);
}

/* Sections */
.toon-section {
  padding: 100px 0;
  position: relative;
}

.section-mascot {
  position: absolute;
  top: 50px;
  right: 50px;
  font-size: 3rem;
  animation: float 4s infinite ease-in-out;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.comic-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-shadow: 4px 4px 0px #000;
  margin-bottom: 1rem;
}

.title-underline {
  width: 100px;
  height: 6px;
  background: var(--color-accent);
  margin: 0 auto;
  border-radius: 3px;
  border: 2px solid #000;
  box-shadow: var(--toon-shadow);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.comic-card {
  background: var(--color-bg-card);
  border-radius: var(--toon-radius);
  border: 3px solid #000;
  box-shadow: var(--toon-shadow);
  padding: 2rem;
  position: relative;
  transition: all 0.3s var(--elastic);
  overflow: hidden;
}

.comic-card:hover {
  transform: translateY(-10px) rotate(1deg);
  box-shadow: var(--toon-shadow-hover);
}

.card-character {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

.card-burst {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  opacity: 0;
  transition: all 0.3s var(--elastic);
}

.comic-card:hover .card-burst {
  opacity: 1;
  transform: scale(1.5) rotate(20deg);
}

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.card-text {
  color: var(--color-text-muted);
  line-height: 1.8;
}

.card-sparkle {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 1.5rem;
  opacity: 0;
  transition: all 0.3s;
}

.comic-card:hover .card-sparkle {
  opacity: 1;
  animation: sparkle-spin 1s infinite;
}

/* Research Section */
.research-showcase {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.mega-card {
  background: var(--color-bg-card);
  border-radius: 30px;
  border: 3px solid #000;
  box-shadow: var(--toon-shadow);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.mega-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

.project-visual {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-icon-bounce {
  font-size: 8rem;
  z-index: 2;
  animation: icon-bounce 3s infinite ease-in-out;
}

.project-rings {
  position: absolute;
  width: 100%;
  height: 100%;
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid var(--color-accent);
  border-radius: 50%;
  opacity: 0.3;
}

.ring:nth-child(1) { width: 200px; height: 200px; animation: pulse-ring 3s infinite; }
.ring:nth-child(2) { width: 280px; height: 280px; animation: pulse-ring 3s infinite 0.5s; }
.ring:nth-child(3) { width: 360px; height: 360px; animation: pulse-ring 3s infinite 1s; }

.project-badge {
  display: inline-block;
  background: var(--color-secondary);
  padding: 8px 16px;
  border-radius: 50px;
  border: 2px solid #000;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  box-shadow: 3px 3px 0px rgba(0,0,0,0.3);
}

.project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 3px 3px 0px #000;
}

.project-description {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.3s var(--elastic);
}

.feature-item:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-accent);
  transform: translateX(10px);
}

.feature-icon {
  font-size: 1.5rem;
}

.gear-spin {
  position: absolute;
  font-size: 4rem;
  opacity: 0.3;
  animation: spin 10s linear infinite;
}

.gear-2 {
  font-size: 3rem;
  right: 20%;
  bottom: 20%;
  animation-direction: reverse;
  animation-duration: 15s;
}

/* Mission Section */
.mission {
  background: var(--color-bg-elevated);
  position: relative;
  overflow: hidden;
}

.mission-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                    radial-gradient(circle at 80% 50%, rgba(244, 114, 182, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.mission-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.comic-box {
  background: var(--color-bg-card);
  border-radius: 30px;
  border: 3px solid #000;
  box-shadow: var(--toon-shadow);
  padding: 3rem;
  position: relative;
}

.box-corner {
  position: absolute;
  top: -20px;
  left: -20px;
  font-size: 3rem;
  transform: rotate(-15deg);
}

.mission-text {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.mission-points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.point-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  border: 2px solid transparent;
  transition: all 0.3s var(--elastic);
}

.point-item:hover {
  border-color: var(--color-accent);
  transform: translateX(10px);
  background: rgba(255,255,255,0.08);
}

.point-number {
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 2px solid #000;
  box-shadow: 3px 3px 0px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.point-content h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.point-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.mission-illustration {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration-character {
  font-size: 12rem;
  animation: gentle-float 6s infinite ease-in-out;
}

.orbit-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.orbit-particles span {
  position: absolute;
  font-size: 2rem;
  animation: orbit-around 8s linear infinite;
}

.orbit-particles span:nth-child(1) { animation-delay: 0s; }
.orbit-particles span:nth-child(2) { animation-delay: -2s; }
.orbit-particles span:nth-child(3) { animation-delay: -4s; }
.orbit-particles span:nth-child(4) { animation-delay: -6s; }

/* Contact Section */
.mega-box {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.contact-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.deco-item {
  position: absolute;
  font-size: 2rem;
}

.deco-item.float-1 { top: 20%; left: 10%; animation: float 4s infinite ease-in-out; }
.deco-item.float-2 { top: 60%; right: 10%; animation: float 5s infinite ease-in-out 1s; }
.deco-item.float-3 { bottom: 20%; left: 15%; animation: float 6s infinite ease-in-out 2s; }

.contact-subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.comic-form {
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.input-wrapper {
  position: relative;
  flex: 1;
  min-width: 300px;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  z-index: 2;
}

.comic-input {
  width: 100%;
  padding: 15px 20px 15px 50px;
  border: 3px solid #000;
  border-radius: 50px;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1rem;
  font-family: inherit;
  box-shadow: var(--toon-shadow);
  transition: all 0.3s var(--elastic);
}

.comic-input:focus {
  outline: none;
  transform: translateY(-3px);
  box-shadow: var(--toon-shadow-hover);
  border-color: var(--color-accent);
}

.submit-btn {
  position: relative;
  overflow: hidden;
}

.btn-confetti {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid #000;
  background: var(--color-bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s var(--elastic);
  box-shadow: var(--toon-shadow);
}

.social-link:hover {
  transform: translateY(-5px) scale(1.1) rotate(10deg);
  box-shadow: var(--toon-shadow-hover);
  background: var(--color-accent);
}

/* Footer */
.toon-footer {
  background: var(--color-bg-elevated);
  border-top: 3px solid #000;
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.title-emoji {
  font-size: 1.2rem;
}

.footer-link {
  display: block;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 5px 0;
  transition: all 0.3s var(--elastic);
}

.footer-link:hover {
  color: var(--color-accent);
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 2px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.heart-beat {
  display: inline-block;
  animation: heartbeat 1.5s infinite;
}

.coffee-shake {
  display: inline-block;
  animation: shake 2s infinite;
}

.footer-mascot {
  font-size: 2rem;
  cursor: pointer;
  animation: wave 2s infinite;
  transition: transform 0.3s var(--elastic);
}

.footer-mascot:hover {
  transform: scale(1.2);
}

/* Animations */
@keyframes float-cloud {
  0%, 100% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(20px) translateY(-10px); }
  50% { transform: translateX(40px) translateY(0); }
  75% { transform: translateX(20px) translateY(10px); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes energy-float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -30px); }
  66% { transform: translate(-20px, 20px); }
}

@keyframes zappy-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes blink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

@keyframes antenna-glow {
  from { box-shadow: 0 0 5px var(--color-warning); }
  to { box-shadow: 0 0 20px var(--color-warning), 0 0 40px var(--color-warning); }
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(20deg); }
  75% { transform: rotate(-20deg); }
}

@keyframes shadow-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.3; }
  50% { transform: translateX(-50%) scale(0.8); opacity: 0.2; }
}

@keyframes badge-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes text-pop {
  0% { transform: scale(0) rotate(-10deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--color-accent); }
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(45deg); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(100%) rotate(45deg); opacity: 0; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.5); }
  50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.8), 0 0 60px rgba(99, 102, 241, 0.4); }
}

@keyframes bounce-up {
  0% { transform: translateY(50px); opacity: 0; }
  60% { transform: translateY(-10px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes slow-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbit {
  0% { transform: rotate(0deg) translateX(150px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}

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

@keyframes scroll-wheel {
  0% { top: 10px; opacity: 1; }
  100% { top: 30px; opacity: 0; }
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(5px); opacity: 1; }
}

@keyframes float-rotate {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

@keyframes pop-in {
  0% { transform: scale(0); opacity: 0; }
  80% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes slide-in-left {
  0% { transform: translateX(-100px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes slide-in-right {
  0% { transform: translateX(100px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes icon-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.1); }
}

@keyframes pulse-ring {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

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

@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes orbit-around {
  0% { transform: rotate(0deg) translateX(200px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(200px) rotate(-360deg); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  10%, 30% { transform: scale(1.2); }
  20%, 40% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.5; transform: scale(1.2) rotate(180deg); }
}

@keyframes sparkle-spin {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(360deg) scale(1.2); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

/* Utility Classes */
.bounce-in { animation: bounce-up 0.8s var(--elastic) backwards; }
.pop-in { animation: pop-in 0.6s var(--elastic) backwards; }
.slide-in-left { animation: slide-in-left 0.8s var(--elastic) backwards; }
.slide-in-right { animation: slide-in-right 0.8s var(--elastic) backwards; }
.rotate-in { animation: rotate 0.6s var(--elastic) backwards; }
.heartbeat { animation: heartbeat 2s infinite; }
.wiggle { animation: wiggle 2s infinite ease-in-out; }

.wobble-hover:hover {
  animation: wiggle 0.5s ease-in-out;
}

.bounce-hover:hover {
  animation: bounce 0.5s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-container,
  .mission-content {
    grid-template-columns: 1fr;
  }
  
  .mega-card {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-bg-elevated);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 3px solid #000;
    box-shadow: var(--toon-shadow);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .jelly-btn {
    display: flex;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .toon-stats {
    justify-content: center;
  }
  
  .zappy-container {
    bottom: 20px;
    right: 20px;
    transform: scale(0.8);
  }
  
  .speech-bubble {
    right: 10px;
    max-width: 200px;
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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