/* ===================== Base ===================== */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ===================== Header ===================== */
#site-header {
  background: linear-gradient(to bottom, rgba(13,74,40,0.85), rgba(13,74,40,0));
}
#site-header.scrolled {
  background: linear-gradient(90deg, rgba(13,74,40,0.97), rgba(26,107,60,0.97));
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.header-title {
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ===================== Hero ===================== */
.hero-section {
  min-height: 100vh;
  position: relative;
}
.hero-bg {
  background-image: url('../images/germany-collage.png');
  background-size: cover;
  background-position: center 25%;
  filter: saturate(1.15) brightness(1.03);
}
.hero-overlay {
  background: linear-gradient(180deg, rgba(13,74,40,0.45) 0%, rgba(20,90,50,0.35) 35%, rgba(9,35,20,0.88) 100%);
}
.anniversary-logo-shadow {
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.45));
}
.hero-title-glow {
  text-shadow: 0 2px 20px rgba(233,217,168,0.5), 0 2px 6px rgba(0,0,0,0.5);
}
.hero-title-glow .h1  {line-height: 54px;}

.sparkle-text {
  position: relative;
  background: linear-gradient(90deg, #fff6d8, #e9d9a8, #fff6d8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  to { background-position: 200% center; }
}

/* Confetti dots layer for hero & sections */
.confetti-layer {
  background-image:
    radial-gradient(circle, #ffe27a 3px, transparent 3px),
    radial-gradient(circle, #ffffff 2px, transparent 2px),
    radial-gradient(circle, #7fd99a 2.5px, transparent 2.5px);
  background-size: 140px 140px, 90px 90px, 170px 170px;
  background-position: 0 0, 40px 60px, 90px 20px;
  animation: confettiDrift 14s linear infinite;
  opacity: 0.55;
}
@keyframes confettiDrift {
  from { background-position: 0 0, 40px 60px, 90px 20px; }
  to { background-position: 0 140px, 40px 200px, 90px 190px; }
}

/* Sparkle button shine sweep */
.sparkle-btn {
  position: relative;
  overflow: hidden;
}
.sparkle-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.65), transparent);
  transform: skewX(-20deg);
  animation: sweepShine 2.6s ease-in-out infinite;
}
@keyframes sweepShine {
  0% { left: -75%; }
  50% { left: 130%; }
  100% { left: 130%; }
}

/* Fade up animations */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s ease forwards;
}
.fade-up.delay-1 { animation-delay: 0.15s; }
.fade-up.delay-2 { animation-delay: 0.3s; }
.fade-up.delay-3 { animation-delay: 0.45s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.float-anim {
  animation: floatY 4s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.scroll-down { animation: none; }

/* ===================== About section ===================== */
.about-section {
  background: linear-gradient(180deg, #fdf9ef 0%, #fff8e6 100%);
}
.leading-snug .h2 {
  line-height: 40px;
}

.about-confetti {
  background-image:
    radial-gradient(circle, rgba(201,162,75,0.25) 3px, transparent 3px),
    radial-gradient(circle, rgba(26,107,60,0.18) 2.5px, transparent 2.5px);
  background-size: 120px 120px, 80px 80px;
  background-position: 0 0, 50px 40px;
}

/* ===================== Prizes section ===================== */
.prizes-section {
  background: linear-gradient(180deg, #ffffff 0%, #fdf9ef 100%);
}
.prizes-confetti {
  background-image:
    radial-gradient(circle, rgba(201,162,75,0.15) 3px, transparent 3px),
    radial-gradient(circle, rgba(26,107,60,0.12) 2px, transparent 2px);
  background-size: 150px 150px, 100px 100px;
  background-position: 20px 10px, 70px 90px;
}

/* ===================== Prize cards ===================== */
.prize-card-1st {
  border: 4px solid transparent;
  background-image: linear-gradient(#fff,#fff), linear-gradient(135deg, #c9a24b, #ffe27a, #c9a24b);
  background-origin: border-box;
  background-clip: content-box, border-box;
  box-shadow: 0 25px 50px rgba(201,162,75,0.35);
}
.ribbon-1st {
  position: absolute;
  top: 18px;
  left: -8px;
  z-index: 20;
  background: linear-gradient(135deg, #e63946, #c1121f);
  color: #fff;
  font-weight: 900;
  font-size: 0.8rem;
  padding: 8px 22px 8px 26px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 70%);
}
.prize-1st-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0) 75%);
}
.prize-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.prize-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 44px rgba(26,107,60,0.22);
}

/* ===================== Destination ===================== */
.destination-section {
  background: linear-gradient(135deg, #0d4a28 0%, #1a6b3c 60%, #0d4a28 100%);
}
.destination-pattern {
  background-image: radial-gradient(rgba(255,255,255,0.08) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  pointer-events: none;
}
.destination-photo {
  border: 3px solid rgba(233,217,168,0.4);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.destination-photo:hover {
  transform: translateY(-8px);
  border-color: #e9d9a8;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.destination-photo img {
  transition: transform 0.5s ease;
}
.destination-photo:hover img {
  transform: scale(1.1);
}

/* ===================== Apply section ===================== */
.apply-section {
  background: linear-gradient(180deg, #fdf9ef 0%, #fff8e6 100%);
}
.apply-confetti {
  background-image:
    radial-gradient(circle, rgba(201,162,75,0.2) 3px, transparent 3px),
    radial-gradient(circle, rgba(26,107,60,0.15) 2.5px, transparent 2.5px),
    radial-gradient(circle, rgba(230,57,70,0.12) 2px, transparent 2px);
  background-size: 130px 130px, 90px 90px, 160px 160px;
  background-position: 10px 0, 60px 70px, 100px 20px;
}

/* ===================== Steps ===================== */
.step-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid rgba(201,162,75,0.3);
}
.step-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 20px 36px rgba(26,107,60,0.2);
}
.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1a6b3c, #0d4a28);
  color: #fff;
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 5px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.quiz-box {
  background: linear-gradient(135deg, #ffffff 0%, #fff8e6 100%);
}

/* ===================== Double chance ===================== */
.double-chance-box {
  background: #1a6b3c;
}
.double-chance-bg {
  background-image: url('../images/rothenburg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}

/* ===================== Timeline ===================== */
.timeline {
  position: relative;
  padding-left: 2.4rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 1.05rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 3px;
  background: linear-gradient(to bottom, #c9a24b, #1a6b3c);
  border-radius: 3px;
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: -2.4rem;
  top: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #1a6b3c;
  color: #1a6b3c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.timeline-content {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(201,162,75,0.2);
}
.timeline-date {
  font-weight: 900;
  color: #c9a24b;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}
.timeline-title {
  font-weight: 900;
  color: #0d4a28;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  font-family: "Noto Serif JP", serif;
}
.timeline-desc {
  font-size: 0.85rem;
  color: #57534e;
  line-height: 1.7;
}

/* ===================== Floating apply button ===================== */
#fab-apply {
  animation: pulseFab 2.4s ease-in-out infinite;
}
@keyframes pulseFab {
  0%, 100% { box-shadow: 0 8px 20px rgba(201,162,75,0.4); }
  50% { box-shadow: 0 8px 30px rgba(201,162,75,0.75); }
}

@media (max-width: 640px) {
  #fab-apply span { display: inline; }
}
