/* ==========================================================
   Compliment Fest!! — Retro 70s Groovy Disco Styles
   ========================================================== */

/* ---------- Custom Properties ---------- */
:root {
  --gold: #F5C842;
  --pink: #E84B8A;
  --sky: #7EC8E3;
  --green: #5CB85C;
  --orange: #F5A623;
  --cream: #FFF8E7;
  --brown: #5C3D2E;

  --pink-light: #f7a5c6;
  --gold-light: #fce8a0;
  --sky-light: #c4e6f5;
  --orange-light: #fcd9a0;
  --green-light: #a3d9a3;

  --font-title: 'Boogaloo', cursive;
  --font-script: 'Pacifico', cursive;
  --font-body: 'Nunito', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

h2 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--pink);
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ---------- Floating Decorations ---------- */
.floating-decorations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.floater {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.25;
  animation: floatUp 12s ease-in-out infinite;
}

.floater-1 { left: 5%;  top: 20%; animation-delay: 0s;   font-size: 1.2rem; }
.floater-2 { left: 15%; top: 60%; animation-delay: 2s;   font-size: 1.8rem; }
.floater-3 { left: 85%; top: 30%; animation-delay: 4s;   font-size: 1rem;   }
.floater-4 { left: 90%; top: 70%; animation-delay: 1s;   font-size: 2rem;   }
.floater-5 { left: 50%; top: 80%; animation-delay: 3s;   font-size: 1.5rem; }
.floater-6 { left: 70%; top: 15%; animation-delay: 5s;   font-size: 1.3rem; }
.floater-7 { left: 25%; top: 45%; animation-delay: 6s;   font-size: 1.7rem; }
.floater-8 { left: 60%; top: 55%; animation-delay: 7s;   font-size: 1.4rem; }

@keyframes floatUp {
  0%, 100% { transform: translateY(0) rotate(0deg);   opacity: 0.2; }
  50%      { transform: translateY(-30px) rotate(10deg); opacity: 0.4; }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-light) 60%, var(--cream) 100%);
  padding: 3rem 1rem 4rem;
  overflow: hidden;
  z-index: 1;
}

/* Rainbow arc behind the title */
.rainbow-arc {
  position: absolute;
  width: min(700px, 90vw);
  height: min(350px, 45vw);
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 350px 350px 0 0;
  background: conic-gradient(
    from 180deg at 50% 100%,
    var(--pink),
    var(--orange),
    var(--gold),
    var(--green),
    var(--sky),
    var(--pink)
  );
  opacity: 0.25;
  filter: blur(2px);
  z-index: 0;
}

/* ---------- Cloud Bubbles ---------- */
.cloud-bubbles {
  display: flex;
  justify-content: space-between;
  width: min(600px, 85vw);
  margin-bottom: 1rem;
  z-index: 2;
}

.cloud {
  font-family: var(--font-script);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--brown);
  background: white;
  padding: 0.6em 1.4em;
  border-radius: 50px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  animation: cloudBob 4s ease-in-out infinite;
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: white;
  border-radius: 50%;
}

.cloud-left::before  { width: 20px; height: 20px; bottom: -6px; left: 25%;  }
.cloud-left::after   { width: 12px; height: 12px; bottom: -12px; left: 35%; }
.cloud-right::before { width: 20px; height: 20px; bottom: -6px; right: 25%; }
.cloud-right::after  { width: 12px; height: 12px; bottom: -12px; right: 35%;}

.cloud-right { animation-delay: 1s; }

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

/* ---------- Disco Ball ---------- */
.disco-ball {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 1.5rem;
  z-index: 2;
  animation: discoPulse 3s ease-in-out infinite;
}

.disco-string {
  position: absolute;
  top: -40px;
  left: 50%;
  width: 2px;
  height: 42px;
  background: linear-gradient(to bottom, transparent, #aaa);
  transform: translateX(-50%);
}

.disco-ball-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 30%, #f5f5f5 50%, #b0b0b0 70%, #d0d0d0 100%);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 30px rgba(245, 200, 66, 0.4),
    0 0 60px rgba(232, 75, 138, 0.2),
    inset 0 -10px 20px rgba(0,0,0,0.15);
  animation: discoRotate 8s linear infinite;
}

.disco-tile {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  opacity: 0.7;
}

/* Arrange tiles across the ball */
.disco-tile:nth-child(1)  { top: 10%; left: 20%; background: var(--gold); }
.disco-tile:nth-child(2)  { top: 10%; left: 55%; background: var(--pink); }
.disco-tile:nth-child(3)  { top: 10%; left: 75%; background: var(--sky);  }
.disco-tile:nth-child(4)  { top: 30%; left: 10%; background: var(--sky);  }
.disco-tile:nth-child(5)  { top: 30%; left: 35%; background: var(--gold); }
.disco-tile:nth-child(6)  { top: 30%; left: 60%; background: var(--pink); }
.disco-tile:nth-child(7)  { top: 30%; left: 82%; background: var(--orange); }
.disco-tile:nth-child(8)  { top: 50%; left: 5%;  background: var(--pink); }
.disco-tile:nth-child(9)  { top: 50%; left: 25%; background: var(--orange); }
.disco-tile:nth-child(10) { top: 50%; left: 48%; background: var(--sky);  }
.disco-tile:nth-child(11) { top: 50%; left: 72%; background: var(--gold); }
.disco-tile:nth-child(12) { top: 70%; left: 15%; background: var(--gold); }
.disco-tile:nth-child(13) { top: 70%; left: 40%; background: var(--pink); }
.disco-tile:nth-child(14) { top: 70%; left: 65%; background: var(--sky);  }
.disco-tile:nth-child(15) { top: 85%; left: 30%; background: var(--orange); }
.disco-tile:nth-child(16) { top: 85%; left: 58%; background: var(--gold); }

.disco-shine {
  position: absolute;
  top: 12%;
  left: 25%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  filter: blur(3px);
}

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

@keyframes discoPulse {
  0%, 100% { transform: scale(1);    filter: brightness(1);   }
  50%      { transform: scale(1.05); filter: brightness(1.1); }
}

/* ---------- Hero Content ---------- */
.hero-content {
  text-align: center;
  z-index: 2;
}

.title {
  font-family: var(--font-title);
  line-height: 1.05;
  margin-bottom: 0.3em;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.06);
}

.title-compliment {
  display: block;
  font-size: clamp(3.5rem, 12vw, 7rem);
  color: var(--pink);
  letter-spacing: 0.02em;
}

.title-fest {
  display: block;
  font-size: clamp(3.5rem, 12vw, 7rem);
  color: var(--gold);
  letter-spacing: 0.02em;
}

.subtitle {
  font-family: var(--font-script);
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  color: var(--brown);
  opacity: 0.85;
}

/* ---------- Hero Stars ---------- */
.hero-stars .star {
  position: absolute;
  color: var(--gold);
  animation: twinkle 2s ease-in-out infinite;
}

.star-1 { top: 12%; left: 10%; font-size: 1.5rem; animation-delay: 0s;   }
.star-2 { top: 8%;  left: 80%; font-size: 1rem;   animation-delay: 0.5s; }
.star-3 { top: 35%; left: 5%;  font-size: 0.8rem; animation-delay: 1s;   }
.star-4 { top: 25%; left: 92%; font-size: 1.2rem; animation-delay: 1.5s; }
.star-5 { top: 55%; left: 88%; font-size: 0.9rem; animation-delay: 0.8s; }

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

/* ---------- Flowers ---------- */
.flower {
  position: absolute;
  width: 50px;
  height: 50px;
  z-index: 2;
}

.flower-1 { bottom: 5%;  left: 8%;  transform: scale(1.2); }
.flower-2 { bottom: 10%; right: 6%; transform: scale(0.9); }
.flower-3 { bottom: 3%;  left: 45%; transform: scale(0.7); }

.petal {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
}

/* Rotate petals around center */
.petal:nth-child(1) { transform: rotate(0deg)   translateX(-9px) translateY(-9px); }
.petal:nth-child(2) { transform: rotate(60deg)  translateX(-9px) translateY(-9px); }
.petal:nth-child(3) { transform: rotate(120deg) translateX(-9px) translateY(-9px); }
.petal:nth-child(4) { transform: rotate(180deg) translateX(-9px) translateY(-9px); }
.petal:nth-child(5) { transform: rotate(240deg) translateX(-9px) translateY(-9px); }
.petal:nth-child(6) { transform: rotate(300deg) translateX(-9px) translateY(-9px); }

.flower-1 .petal { background: var(--pink); }
.flower-2 .petal { background: var(--gold); }
.flower-3 .petal { background: var(--orange); }

.flower-center {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.flower-1 .flower-center { background: var(--gold);   }
.flower-2 .flower-center { background: var(--pink);   }
.flower-3 .flower-center { background: var(--brown);  }

/* ========================================
   INFO CARDS
   ======================================== */
.info-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 3rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.card {
  flex: 1 1 240px;
  max-width: 280px;
  background: white;
  border-radius: 24px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 6px 24px rgba(92, 61, 46, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 36px rgba(92, 61, 46, 0.14);
}

.card-date     { border-top: 5px solid var(--pink);   }
.card-location { border-top: 5px solid var(--gold);   }
.card-time     { border-top: 5px solid var(--green);  }

.card-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.card-label {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brown);
  opacity: 0.5;
}

.card-value {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--brown);
}

.card-detail {
  font-size: 0.9rem;
  color: var(--brown);
  opacity: 0.7;
}

/* ========================================
   CHECKERBOARD DIVIDER
   ======================================== */
.checkerboard-divider {
  width: 100%;
  height: 40px;
  background-image:
    repeating-conic-gradient(
      var(--pink) 0% 25%,
      var(--gold) 0% 50%
    );
  background-size: 40px 40px;
  opacity: 0.35;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
  background: linear-gradient(180deg, var(--cream) 0%, var(--gold-light) 100%);
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 1;
}

.about-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-lead {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works {
  background: var(--cream);
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 1;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.step {
  background: white;
  border-radius: 24px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(92, 61, 46, 0.07);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pink), var(--gold), var(--orange), var(--green), var(--sky));
}

.step:hover {
  transform: translateY(-4px);
}

.step-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.step h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--pink);
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ========================================
   RAINBOW DIVIDER
   ======================================== */
.rainbow-divider {
  height: 8px;
  background: linear-gradient(
    90deg,
    var(--pink),
    var(--orange),
    var(--gold),
    var(--green),
    var(--sky),
    var(--pink)
  );
  background-size: 200% 100%;
  animation: rainbowSlide 4s linear infinite;
}

@keyframes rainbowSlide {
  from { background-position: 0% 0;   }
  to   { background-position: 200% 0; }
}

/* ========================================
   COMMUNITY SECTION
   ======================================== */
.community {
  background: linear-gradient(180deg, var(--sky-light) 0%, var(--cream) 100%);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.community-inner {
  max-width: 650px;
  margin: 0 auto;
}

.community-emoji {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
  animation: discoPulse 3s ease-in-out infinite;
}

.community-number {
  font-family: var(--font-title);
  font-size: clamp(4rem, 10vw, 6rem);
  color: var(--pink);
  line-height: 1;
  margin-bottom: 0.2em;
}

.community-label {
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.community-text {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.community-tagline {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--pink);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background:
    repeating-conic-gradient(
      var(--pink) 0% 25%,
      var(--gold) 0% 50%
    );
  background-size: 30px 30px;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Semi-transparent overlay so text is readable over checkerboard */
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(92, 61, 46, 0.88);
  z-index: 0;
}

.footer > * {
  position: relative;
  z-index: 1;
}

.footer-flowers {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.footer-subtitle {
  font-family: var(--font-script);
  font-size: 1.1rem;
  color: var(--pink-light);
  margin-bottom: 0.5rem;
}

.footer-date {
  font-size: 0.95rem;
  color: var(--cream);
  opacity: 0.8;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--gold);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 600px) {
  .hero {
    min-height: 75vh;
    padding: 2rem 1rem 3rem;
  }

  .cloud-bubbles {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
  }

  .cloud::before,
  .cloud::after {
    display: none;
  }

  .disco-ball {
    width: 70px;
    height: 70px;
  }

  .disco-tile {
    width: 10px;
    height: 10px;
  }

  .disco-string {
    top: -30px;
    height: 32px;
  }

  .info-cards {
    padding: 2rem 1rem;
  }

  .card {
    flex: 1 1 100%;
    max-width: 100%;
  }

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

  .flower {
    display: none;
  }

  .hero-stars .star {
    font-size: 0.8rem !important;
  }

  .checkerboard-divider {
    height: 24px;
    background-size: 24px 24px;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Accessibility: reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
