/* ============================================
   EGGCELERATED LEARNING - Main Stylesheet
   Farm-themed children's learning brand
   ============================================ */

/* Scale all avatar images bigger */
img[src*="avatar_"] {
  transform: scale(2.25);
  transform-origin: center;
}

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary Colors */
  --sunshine-yellow: #FFD93D;
  --sunshine-yellow-light: #FFF3B0;
  --sunshine-yellow-dark: #E6B800;
  --barn-red: #E74C3C;
  --barn-red-light: #F1948A;
  --barn-red-dark: #C0392B;
  --sky-blue: #5DADE2;
  --sky-blue-light: #AED6F1;
  --sky-blue-dark: #2E86C1;
  --grass-green: #58D68D;
  --grass-green-light: #ABEBC6;
  --grass-green-dark: #28B463;

  /* Neutrals */
  --white: #FFFFFF;
  --cream: #FFF8E7;
  --light-cream: #FFFDF5;
  --wood-brown: #8B6914;
  --wood-brown-light: #D4A843;
  --wood-brown-dark: #5D4E37;
  --dark-brown: #3E2723;
  --text-dark: #2C1810;
  --text-medium: #5D4037;
  --text-light: #8D6E63;

  /* Fonts */
  --font-heading: 'Fredoka One', 'Bubblegum Sans', cursive;
  --font-body: 'Nunito', 'Quicksand', sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-width: 1200px;
  --border-radius: 20px;
  --border-radius-sm: 12px;
  --border-radius-lg: 30px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 20px rgba(255,217,61,0.3);
}

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

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

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text-dark);
}

/* ---------- Loading Screen ---------- */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--sunshine-yellow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-egg {
  width: 80px;
  height: 100px;
  background: var(--white);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: relative;
  animation: eggCrack 1.5s ease-in-out infinite;
}

.loading-egg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 2px;
  background: var(--wood-brown);
  opacity: 0;
  animation: crackLine 1.5s ease-in-out infinite;
}

.loading-text {
  margin-top: 20px;
  font-family: var(--font-heading);
  color: var(--dark-brown);
  font-size: 1.2rem;
}

@keyframes eggCrack {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.05) rotate(-3deg); }
  50% { transform: scale(0.95) rotate(3deg); }
  75% { transform: scale(1.02) rotate(-1deg); }
}

@keyframes crackLine {
  0%, 40% { opacity: 0; width: 0; }
  50%, 70% { opacity: 1; width: 60%; }
  80%, 100% { opacity: 0; width: 60%; }
}

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

/* ---------- Utility Classes ---------- */
.section-padding {
  padding: var(--section-padding);
}

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

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto;
}

/* Wooden Sign Header */
.wooden-sign {
  background: linear-gradient(135deg, #D4A843, #8B6914);
  color: var(--white);
  padding: 15px 40px;
  border-radius: 10px;
  display: inline-block;
  position: relative;
  box-shadow: var(--shadow-md), inset 0 2px 4px rgba(255,255,255,0.2);
  border: 3px solid var(--wood-brown-dark);
}

.wooden-sign::before,
.wooden-sign::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 30px;
  background: var(--wood-brown-dark);
  border-radius: 3px;
  bottom: -25px;
}

.wooden-sign::before { left: 30px; }
.wooden-sign::after { right: 30px; }

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  overflow: visible;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
  overflow: visible;
}

.nav-logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--barn-red);
  overflow: visible;
  flex-shrink: 0;
  width: 280px;
  height: 120px;
}

.nav-logo .logo-img {
  position: absolute;
  top: 50%;
  left: -250px;
  transform: translateY(-30%);
  height: 320px;
  max-width: none;
  max-height: none;
  width: auto;
  object-fit: contain;
  z-index: 10;
  pointer-events: auto;
}

.nav-logo .logo-text {
  display: none;
}

.nav-logo .logo-icon {
  width: 45px;
  height: 45px;
  background: var(--sunshine-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Direct nav links (Home) */
.nav-links > a {
  padding: 8px 18px;
  font-family: 'Fredoka One', var(--font-heading);
  font-weight: 400;
  font-size: 1.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4CAF50;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.08);
}

.nav-links > a:hover,
.nav-links > a.active {
  color: #388E3C;
  background: none;
  border-bottom: 3px solid currentColor;
  transform: scale(1.05);
}

/* Dropdown containers */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  padding: 8px 18px;
  font-family: 'Fredoka One', var(--font-heading);
  font-weight: 400;
  font-size: 1.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7B1FA2;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.08);
  white-space: nowrap;
}

/* Alternate colors for each dropdown */
.nav-dropdown:nth-child(2) .nav-dropdown-btn { color: #FFB300; text-shadow: 1px 1px 0 rgba(0,0,0,0.15); } /* About Us - yellow */
.nav-dropdown:nth-child(3) .nav-dropdown-btn { color: #E65100; } /* Songs - orange */
.nav-dropdown:nth-child(4) .nav-dropdown-btn { color: #1565C0; } /* Shop - blue */
.nav-dropdown:nth-child(5) .nav-dropdown-btn { color: #C62828; } /* More - red */

.nav-dropdown-btn:hover,
.nav-dropdown.open .nav-dropdown-btn {
  border-bottom: 3px solid currentColor;
  transform: scale(1.05);
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown content */
.nav-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid #eee;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: all 0.25s ease;
  z-index: 100;
}

.nav-dropdown.open .nav-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-content a {
  display: block;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-medium);
  transition: all 0.2s ease;
  letter-spacing: 0;
  text-transform: none;
}

.nav-dropdown-content a:hover {
  color: var(--text-dark);
  background: var(--cream);
}

/* Wide dropdown (More menu) */
.nav-dropdown-wide {
  min-width: 260px;
  padding: 16px 0;
}

.dropdown-group {
  padding: 0 0 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid #f0ebe3;
}

.dropdown-group:last-of-type {
  border-bottom: 1px solid #f0ebe3;
}

.dropdown-group-title {
  display: block;
  padding: 6px 24px 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dark);
}

.dropdown-group a {
  padding: 6px 24px 6px 36px;
  font-size: 0.9rem;
}

.dropdown-standalone {
  display: block;
  padding: 10px 24px !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  color: var(--text-dark) !important;
  margin-top: 4px;
}

/* Social icons in nav */
.nav-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid #e8e0d5;
}

.nav-social a {
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.nav-social a:hover {
  color: var(--barn-red);
  transform: translateY(-2px);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

/* Egg bounce on hover */
.btn:hover {
  animation: eggBounce 0.5s ease;
}

@keyframes eggBounce {
  0%, 100% { transform: translateY(-2px); }
  30% { transform: translateY(-8px); }
  50% { transform: translateY(-2px); }
  70% { transform: translateY(-5px); }
}

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

.btn-primary:hover {
  background: var(--barn-red-dark);
}

.btn-secondary {
  background: var(--sunshine-yellow);
  color: var(--dark-brown);
}

.btn-secondary:hover {
  background: var(--sunshine-yellow-dark);
}

.btn-green {
  background: var(--grass-green);
  color: var(--white);
}

.btn-green:hover {
  background: var(--grass-green-dark);
}

.btn-blue {
  background: var(--sky-blue);
  color: var(--white);
}

.btn-blue:hover {
  background: var(--sky-blue-dark);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--barn-red);
  color: var(--barn-red);
}

.btn-outline:hover {
  background: var(--barn-red);
  color: var(--white);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 120px;
  background: linear-gradient(180deg, var(--sky-blue-light) 0%, var(--sunshine-yellow-light) 50%, var(--grass-green-light) 100%);
}

.hero-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
  margin-left: -200px;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 550px;
  margin-left: 0;
  margin-top: 30px;
}

/* ---------- Hero Video ---------- */
.hero-video-wrapper {
  flex: 0 0 auto;
  z-index: 2;
  margin-left: -100px;
}

.hero-video-frame {
  background: linear-gradient(145deg, #8B6914, #6B4F10, #8B6914, #A07818, #6B4F10);
  border-radius: 14px;
  padding: 14px;
  position: relative;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.25),
    0 2px 8px rgba(0,0,0,0.15),
    inset 0 2px 4px rgba(255,255,255,0.2),
    inset 0 -2px 4px rgba(0,0,0,0.3);
  /* Wood grain texture via repeating gradient */
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 8px,
      rgba(0,0,0,0.05) 8px,
      rgba(0,0,0,0.05) 10px
    ),
    linear-gradient(145deg, #8B6914, #6B4F10, #8B6914, #A07818, #6B4F10);
}

/* Corner nail details */
.hero-video-frame::before,
.hero-video-frame::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #888 30%, #555 70%);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.4), 0 1px 2px rgba(0,0,0,0.3);
  z-index: 3;
}

.hero-video-frame::before {
  top: 8px;
  left: 8px;
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.4),
    0 1px 2px rgba(0,0,0,0.3),
    /* bottom-right nail */
    488px 380px 0 0 #888;
}

.hero-video-frame::after {
  top: 8px;
  right: 8px;
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.4),
    0 1px 2px rgba(0,0,0,0.3),
    /* bottom-left nail */
    -488px 380px 0 0 #888;
}

.hero-video-frame video {
  display: block;
  width: 500px;
  border-radius: 8px;
  border: 3px solid rgba(0,0,0,0.2);
}

.hero-content h1 {
  font-size: 3.2rem;
  color: var(--barn-red);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-content h1 span {
  color: var(--sunshine-yellow-dark);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-medium);
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}


.hero-scene {
  position: absolute;
  right: -50px;
  bottom: 0;
  width: 55%;
  height: 100%;
  z-index: 1;
}

/* Farm scene elements */
.farm-element {
  position: absolute;
  transition: all 0.3s ease;
}

.sun {
  width: 120px;
  height: 120px;
  background: var(--sunshine-yellow);
  border-radius: 50%;
  top: 100px;
  right: 100px;
  box-shadow: 0 0 60px rgba(255,217,61,0.5);
  animation: sunGlow 3s ease-in-out infinite;
}

@keyframes sunGlow {
  0%, 100% { box-shadow: 0 0 60px rgba(255,217,61,0.5); }
  50% { box-shadow: 0 0 80px rgba(255,217,61,0.7); }
}

.cloud {
  background: var(--white);
  border-radius: 50px;
  opacity: 0.8;
  animation: cloudFloat 20s linear infinite;
}

.cloud-1 {
  width: 150px;
  height: 50px;
  top: 130px;
  right: 300px;
}

.cloud-2 {
  width: 120px;
  height: 40px;
  top: 180px;
  right: 500px;
  animation-delay: -8s;
  animation-duration: 25s;
}

@keyframes cloudFloat {
  0% { transform: translateX(0); }
  50% { transform: translateX(50px); }
  100% { transform: translateX(0); }
}

.grass-hill {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 200px;
  background: var(--grass-green);
  border-radius: 50% 50% 0 0;
}

.barn {
  position: absolute;
  bottom: 150px;
  right: 200px;
  width: 120px;
  height: 100px;
  background: var(--barn-red);
  border-radius: 5px;
}

.barn::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -10px;
  width: 140px;
  height: 60px;
  background: var(--barn-red-dark);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.fence {
  position: absolute;
  bottom: 140px;
  display: flex;
  gap: 20px;
}

.fence-post {
  width: 8px;
  height: 50px;
  background: var(--wood-brown);
  border-radius: 2px;
  position: relative;
}

.fence-post::before {
  content: '';
  position: absolute;
  top: 10px;
  left: -10px;
  width: 28px;
  height: 4px;
  background: var(--wood-brown-light);
  border-radius: 2px;
}

.fence-post::after {
  content: '';
  position: absolute;
  top: 30px;
  left: -10px;
  width: 28px;
  height: 4px;
  background: var(--wood-brown-light);
  border-radius: 2px;
}

/* Chicken Mascot */
.chicken-mascot {
  position: absolute;
  bottom: 140px;
  right: 50px;
  width: 150px;
  height: auto;
  animation: chickenBob 2s ease-in-out infinite;
  z-index: 5;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.2));
}

.chicken-mascot img {
  width: 100%;
  height: auto;
}

@keyframes chickenBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(-3deg); }
  75% { transform: translateY(-5px) rotate(3deg); }
}

/* Floating eggs */
.floating-egg {
  position: absolute;
  width: 60px;
  height: auto;
  animation: floatEgg 4s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
}

.floating-egg img {
  width: 100%;
  height: auto;
}

.egg-1 { top: 15%; right: 5%; animation-delay: 0s; }
.egg-2 { top: 60%; right: 18%; animation-delay: 1s; }
.egg-3 { bottom: 8%; right: 45%; animation-delay: 2s; }
.egg-4 { top: 25%; right: 28%; animation-delay: 0.5s; animation-duration: 5s; }
.egg-5 { top: 18%; left: 20%; animation-delay: 1.5s; animation-duration: 4.5s; }
.egg-6 { bottom: 10%; left: 8%; animation-delay: 0.8s; animation-duration: 6s; }

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

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* ---------- Song Cards (Egg-shaped) ---------- */
.egg-card {
  background: var(--white);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  padding: 40px 30px 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.egg-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--barn-red), var(--sunshine-yellow), var(--grass-green));
}

.egg-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.egg-card .song-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.egg-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--barn-red);
}

.egg-card p {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-bottom: 15px;
}

/* ---------- Product Cards ---------- */
.product-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.product-card .product-image {
  height: 220px;
  background: var(--sunshine-yellow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.product-card .product-info {
  padding: 20px;
}

.product-card .product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.product-card .product-info .price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--barn-red);
  margin-bottom: 10px;
}

.product-card .product-info p {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-bottom: 15px;
}

/* ---------- Birthday Cards ---------- */
.birthday-card {
  background: linear-gradient(135deg, var(--sunshine-yellow-light), var(--sky-blue-light));
  border-radius: var(--border-radius);
  padding: 25px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 3px solid var(--sunshine-yellow);
}

.birthday-card:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: var(--shadow-lg);
}

.birthday-card .confetti {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.birthday-card .confetti span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: confettiFall 3s linear infinite;
}

.birthday-card .confetti span:nth-child(1) { left: 10%; background: var(--barn-red); animation-delay: 0s; }
.birthday-card .confetti span:nth-child(2) { left: 30%; background: var(--sky-blue); animation-delay: 0.5s; }
.birthday-card .confetti span:nth-child(3) { left: 50%; background: var(--grass-green); animation-delay: 1s; }
.birthday-card .confetti span:nth-child(4) { left: 70%; background: var(--sunshine-yellow-dark); animation-delay: 1.5s; }
.birthday-card .confetti span:nth-child(5) { left: 90%; background: var(--barn-red-light); animation-delay: 2s; }

@keyframes confettiFall {
  0% { top: -10%; opacity: 1; transform: rotate(0deg); }
  100% { top: 110%; opacity: 0; transform: rotate(720deg); }
}

.birthday-card .birthday-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.birthday-card h3 {
  font-size: 1.3rem;
  color: var(--barn-red);
  margin-bottom: 5px;
}

.birthday-card .age {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-medium);
}

.birthday-card .balloon {
  font-size: 1.5rem;
  position: absolute;
  top: 10px;
  animation: balloonFloat 2s ease-in-out infinite;
}

.birthday-card .balloon:first-of-type { right: 15px; }
.birthday-card .balloon:last-of-type { left: 15px; animation-delay: 1s; }

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

/* ---------- Printable Cards ---------- */
.printable-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.printable-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--sunshine-yellow);
}

.printable-card .printable-preview {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}

.printable-card .printable-preview.bg-yellow { background: var(--sunshine-yellow-light); }
.printable-card .printable-preview.bg-blue { background: var(--sky-blue-light); }
.printable-card .printable-preview.bg-green { background: var(--grass-green-light); }
.printable-card .printable-preview.bg-red { background: rgba(231,76,60,0.1); }

.printable-card .printable-info {
  padding: 20px;
}

.printable-card .printable-info h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.printable-card .printable-info p {
  font-size: 0.85rem;
  color: var(--text-medium);
  margin-bottom: 15px;
}

/* ---------- Grid Layouts ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #E0D5C5;
  border-radius: var(--border-radius-sm);
  background: var(--white);
  font-size: 1rem;
  transition: all 0.3s ease;
  color: var(--text-dark);
}

.form-control:focus {
  border-color: var(--sunshine-yellow);
  box-shadow: 0 0 0 3px rgba(255,217,61,0.2);
}

.form-control::placeholder {
  color: var(--text-light);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235D4037' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}

/* ---------- Newsletter Section ---------- */
.newsletter-section {
  background: linear-gradient(135deg, var(--barn-red), var(--barn-red-dark));
  padding: 160px 0 60px;
  position: relative;
  overflow: visible;
}

.avatar-scroll-row {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  height: 140px;
  overflow-x: hidden;
  overflow-y: visible;
  pointer-events: none;
}

.avatar-scroll-track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  animation: scrollIcons 30s linear infinite;
  opacity: 0.75;
  padding: 30px 0;
}

.avatar-scroll-track img {
  width: 55px;
  height: 55px;
  object-fit: contain;
  flex-shrink: 0;
}

.avatar-scroll-track img.avatar-lg {
  width: 75px;
  height: 75px;
}

.avatar-scroll-track img[src*="avatar_5"] {
  transform: scale(3.15);
  transform-origin: center;
}

.avatar-scroll-track img[src*="Red_Egg"],
.avatar-scroll-track img[src*="YellowRed_Egg"] {
  transform: scale(1.2);
  transform-origin: center;
}

@keyframes scrollIcons {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.newsletter-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.newsletter-content h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 10px;
}

.newsletter-content p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 25px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 180px;
  padding: 14px 20px;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 14px 30px;
  border-radius: 50px;
  background: var(--sunshine-yellow);
  color: var(--dark-brown);
  font-family: var(--font-heading);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.newsletter-form button img,
.footer-newsletter button img {
  height: 22px;
  width: auto;
  flex-shrink: 0;
}

.newsletter-form button:hover {
  background: var(--sunshine-yellow-dark);
  transform: translateY(-2px);
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--sunshine-yellow);
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 15px;
  padding-top: 30px;
  color: var(--text-medium);
}

.testimonial-card .author {
  font-weight: 700;
  color: var(--text-dark);
}

.testimonial-card .stars {
  color: var(--sunshine-yellow);
  margin-top: 8px;
  font-size: 1.2rem;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: var(--sunshine-yellow);
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 40px;
  width: 50%;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-left: 40px;
  padding-right: 0;
  margin-left: auto;
}

.timeline-item::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 22px;
  width: 16px;
  height: 16px;
  background: var(--sunshine-yellow);
  border: 3px solid var(--barn-red);
  border-radius: 50%;
  z-index: 2;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
  right: auto;
}

/* ---- Timeline Hatcher (scroll-driven hatching egg) ---- */
.timeline-hatcher {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 64px;
  height: 76px;
  z-index: 10;
  pointer-events: none;
}

.hatcher-egg,
.hatcher-crack,
.hatcher-chick {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hatcher-egg img,
.hatcher-chick img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hatcher-crack {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hatcher-chick {
  opacity: 0;
  transform: scale(0.3) translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hatcher-egg {
  transition: opacity 0.3s ease;
}

/* Stage: egg wobbling */
.timeline-hatcher.stage-egg .hatcher-egg img {
  animation: hatchWobble 1.3s ease-in-out infinite alternate;
}

/* Stage: cracking */
.timeline-hatcher.stage-crack .hatcher-egg img {
  animation: hatchShake 0.11s linear infinite;
}
.timeline-hatcher.stage-crack .hatcher-crack {
  opacity: 1;
}

/* Stage: hatched */
.timeline-hatcher.stage-hatched .hatcher-egg {
  opacity: 0;
}
.timeline-hatcher.stage-hatched .hatcher-crack {
  opacity: 0;
}
.timeline-hatcher.stage-hatched .hatcher-chick {
  opacity: 1;
  transform: scale(1.2) translateY(0);
}

@keyframes hatchWobble {
  from { transform: rotate(-7deg); }
  to   { transform: rotate(7deg); }
}

@keyframes hatchShake {
  0%   { transform: translate(0, 0) rotate(0deg); }
  20%  { transform: translate(-4px, 1px) rotate(-5deg); }
  40%  { transform: translate(4px, -2px) rotate(5deg); }
  60%  { transform: translate(-3px, 2px) rotate(-3deg); }
  80%  { transform: translate(3px, -1px) rotate(3deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.timeline-content {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--shadow-sm);
  max-width: 400px;
}

.timeline-content .year {
  font-family: var(--font-heading);
  color: var(--barn-red);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.timeline-content h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

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

/* ---------- Page Headers ---------- */
.page-header {
  background: linear-gradient(135deg, var(--sky-blue-light) 0%, var(--sunshine-yellow-light) 100%);
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  font-size: 2.8rem;
  color: var(--barn-red);
  margin-bottom: 15px;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto;
}

.page-header .header-decor {
  position: absolute;
  font-size: 2rem;
  opacity: 0.3;
}

.page-header .header-decor:nth-child(1) { top: 30%; left: 5%; }
.page-header .header-decor:nth-child(2) { top: 50%; right: 8%; }
.page-header .header-decor:nth-child(3) { bottom: 20%; left: 15%; }
.page-header .header-decor:nth-child(4) { top: 25%; right: 20%; }

/* ---------- Founder Section ---------- */
.founder-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: start;
}

.founder-photo {
  width: 100%;
  height: 450px;
  background: linear-gradient(135deg, var(--sunshine-yellow-light), var(--sky-blue-light));
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.founder-photo::after {
  content: '🪶';
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 2rem;
  opacity: 0.5;
}

.founder-text h2 {
  font-size: 2rem;
  color: var(--barn-red);
  margin-bottom: 20px;
}

.founder-text p {
  margin-bottom: 18px;
  color: var(--text-medium);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* ---------- Mission Icons ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.mission-icon-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.mission-icon-card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  border-color: var(--sunshine-yellow);
  background: var(--cream);
}

.mission-icon-card .mission-icon,
.mission-icon-card .icon {
  margin-bottom: 15px;
  display: inline-block;
  transition: transform 0.25s ease;
}

.mission-icon-card:hover .mission-icon,
.mission-icon-card:hover .icon {
  transform: scale(1.3);
}

.mission-icon-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--barn-red);
}

.mission-icon-card p {
  font-size: 0.9rem;
  color: var(--text-medium);
}

/* ---------- Rustic Wooden Frame ---------- */
.rustic-frame {
  display: inline-block;
  max-width: 700px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 14px;
  position: relative;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 12px,
      rgba(0,0,0,0.06) 12px,
      rgba(0,0,0,0.06) 14px
    ),
    linear-gradient(145deg, #9B7520, #7B5A14, #9B7520, #B08828, #7B5A14);
  box-shadow:
    0 10px 40px rgba(0,0,0,0.25),
    0 4px 12px rgba(0,0,0,0.15),
    inset 0 2px 6px rgba(255,255,255,0.2),
    inset 0 -2px 6px rgba(0,0,0,0.3);
}

.rustic-frame::before,
.rustic-frame::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #999 30%, #555 70%);
  box-shadow: inset 0 1px 3px rgba(255,255,255,0.4), 0 1px 3px rgba(0,0,0,0.3);
  z-index: 3;
}

.rustic-frame::before {
  top: 10px;
  left: 10px;
}

.rustic-frame::after {
  top: 10px;
  right: 10px;
}

/* Bottom nails via inner wrapper shadow trick */
.rustic-frame img {
  border: 3px solid rgba(0,0,0,0.15);
}

/* ---------- Sweep Section ---------- */
.sweep-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sweep-photo {
  height: 220px;
  background: var(--grass-green-light);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  box-shadow: var(--shadow-sm);
}

/* ---------- Collab Cards ---------- */
.collab-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border-top: 4px solid var(--sunshine-yellow);
}

.collab-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.collab-card .collab-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.collab-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.collab-card p {
  font-size: 0.9rem;
  color: var(--text-medium);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark-brown);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
  width: 100%;
}

.footer .container {
  max-width: 100%;
  padding: 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h3 {
  color: var(--sunshine-yellow);
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 15px;
}

.footer-links a {
  display: block;
  padding: 5px 0;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--sunshine-yellow);
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  align-items: center;
}

.footer-social a {
  width: 78px;
  height: 78px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  overflow: hidden;
}

.footer-social a:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-4px) scale(1.1);
}

.footer-social-icon {
  width: 66px;
  height: 66px;
  object-fit: contain;
  border-radius: 50%;
  transition: filter 0.3s ease;
}

.footer-social a:hover .footer-social-icon {
  filter: brightness(1.15);
}

.footer-newsletter input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  border: none;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-newsletter button {
  width: 100%;
  padding: 12px;
  border-radius: var(--border-radius-sm);
  background: var(--barn-red);
  color: var(--white);
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-newsletter button:hover {
  background: var(--barn-red-dark);
}

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

.footer-mascot img {
  height: 63px;
  opacity: 0.85;
  filter: brightness(0) invert(1);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* ---------- Chick on Scroll ---------- */
.scroll-chick {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: chickenBob 2s ease-in-out infinite;
  filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.2));
  opacity: 0;
  pointer-events: none;
  line-height: 0;
}

.scroll-chick.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-chick:hover {
  transform: scale(1.2);
}

/* ---------- Feature Blocks ---------- */
.feature-block {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 60px;
}

.feature-block:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-block .feature-image {
  flex: 1;
  height: 300px;
  background: var(--sunshine-yellow-light);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.feature-block .feature-text {
  flex: 1;
}

.feature-block .feature-text h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--barn-red);
}

.feature-block .feature-text p {
  color: var(--text-medium);
  margin-bottom: 15px;
  line-height: 1.7;
}

/* ---------- Ways to Participate ---------- */
.participate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.participate-card {
  text-align: center;
  padding: 35px 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.participate-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.participate-card .step-number {
  width: 50px;
  height: 50px;
  background: var(--sunshine-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--dark-brown);
  margin: 0 auto 15px;
}

.participate-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.participate-card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.participate-card p {
  font-size: 0.9rem;
  color: var(--text-medium);
}

/* ---------- Success Message ---------- */
.form-success {
  display: none;
  text-align: center;
  padding: 30px;
  background: var(--grass-green-light);
  border-radius: var(--border-radius);
  border: 2px solid var(--grass-green);
}

.form-success.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

.form-success .success-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.form-success h3 {
  color: var(--grass-green-dark);
  margin-bottom: 5px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: 120px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    max-height: calc(100vh - 95px);
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-btn {
    width: 100%;
    justify-content: space-between;
    padding: 10px 0;
  }

  .nav-dropdown-content {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height 0.3s ease;
  }

  .nav-dropdown.open .nav-dropdown-content {
    max-height: 500px;
  }

  .nav-social {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 1px solid #e8e0d5;
  }

  .nav-links > a {
    padding: 10px 0;
  }

  .hero-layout {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    margin-left: 0;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-video-wrapper {
    margin-left: 0;
  }

  .hero-video-frame video {
    width: 280px;
  }

  .hero-scene {
    display: none;
  }

  .hero {
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .grid-3, .mission-grid, .sweep-gallery, .participate-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .founder-layout {
    grid-template-columns: 1fr;
  }

  .founder-photo {
    height: 300px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 0;
  }

  .timeline-item:nth-child(even) {
    padding-left: 60px;
    margin-left: 0;
  }

  .timeline-item::after {
    left: 12px;
    right: auto;
  }

  .timeline-item:nth-child(even)::after {
    left: 12px;
  }

  .feature-block,
  .feature-block:nth-child(even) {
    flex-direction: column;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .mission-grid, .sweep-gallery, .participate-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-content h1 {
    font-size: 2rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

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

  .section-header h2 {
    font-size: 1.7rem;
  }

  .page-header {
    padding: 100px 0 40px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  /* Mobile touch-friendly spacing */
  .section-padding {
    padding: 50px 0;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .form-control {
    padding: 12px 14px;
    font-size: 1rem;
  }

  .footer-about h3,
  .footer-links h3,
  .footer-newsletter h3 {
    font-size: 1.1rem;
  }

  .newsletter-content h2 {
    font-size: 1.5rem;
  }

  .newsletter-content p {
    font-size: 0.9rem;
  }
}
