@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Nunito:wght@400;600;700&display=swap');

:root {
  --pink:    #FF6B9D;
  --orange:  #FF9A3C;
  --yellow:  #FFD93D;
  --purple:  #A855F7;
  --teal:    #06B6D4;
  --green:   #22C55E;
  --red:     #FF4D6D;
  --bg:      #FFF8F0;
  --card:    #ffffff;
  --text:    #3D2B1F;
  --muted:   #7C5C4E;
}

* { box-sizing: border-box; }

body {
  font-family: 'Nunito', sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FF6B9D 0%, #FF9A3C 50%, #FFD93D 100%);
  color: white;
  text-align: center;
  padding: 90px 20px 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.3) 2px, transparent 2px),
    radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 45px 45px, 22px 22px;
  background-position: 0 0, 11px 11px;
  pointer-events: none;
}

/* Balloons */
.balloons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.balloon {
  position: absolute;
  bottom: -20px;
  animation: floatUp linear infinite;
}

.balloon:nth-child(1)  { left:  4%; animation-duration: 9s;   animation-delay: 0s;   width: 54px; }
.balloon:nth-child(2)  { left: 13%; animation-duration: 12s;  animation-delay: 1.5s; width: 44px; }
.balloon:nth-child(3)  { left: 26%; animation-duration: 8s;   animation-delay: 3s;   width: 60px; }
.balloon:nth-child(4)  { left: 41%; animation-duration: 13s;  animation-delay: 0.5s; width: 48px; }
.balloon:nth-child(5)  { left: 57%; animation-duration: 10s;  animation-delay: 2s;   width: 56px; }
.balloon:nth-child(6)  { left: 70%; animation-duration: 7s;   animation-delay: 4s;   width: 42px; }
.balloon:nth-child(7)  { left: 82%; animation-duration: 11.5s;animation-delay: 1s;   width: 52px; }
.balloon:nth-child(8)  { left: 93%; animation-duration: 9.5s; animation-delay: 3.5s; width: 46px; }

@keyframes floatUp {
  0%   { transform: translateY(0)    rotate(-4deg); opacity: 0; }
  5%   { opacity: 0.9; }
  50%  { transform: translateY(-60vh) rotate(4deg); }
  95%  { opacity: 0.5; }
  100% { transform: translateY(-115vh) rotate(-3deg); opacity: 0; }
}

.hero h1 {
  font-family: 'Pacifico', cursive;
  font-size: 60px;
  margin: 0 0 12px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
}

.subtitle {
  font-size: 20px;
  opacity: 0.95;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* Sticky countdown */
.countdown-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: white;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 10px 20px;
  box-shadow: 0 3px 14px rgba(168,85,247,0.4);
}

.countdown-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.countdown-center {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: auto;
}

.countdown-label {
  font-weight: 700;
  font-size: 14px;
  opacity: 0.9;
  white-space: nowrap;
}

#countdown {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

#countdown span { font-size: 14px; opacity: 0.85; }
#countdown strong { font-size: 20px; font-weight: 700; }

.countdown-rsvp {
  background: var(--yellow);
  color: var(--text);
  padding: 7px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
  white-space: nowrap;
}

.countdown-rsvp:hover {
  background: #ffc107;
  transform: scale(1.05);
}

/* Cards */
section {
  max-width: 900px;
  margin: 30px auto;
  padding: 40px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(255,107,157,0.1);
  border-top: 4px solid;
  border-image: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow)) 1;
}

h2 {
  margin-top: 0;
  font-family: 'Pacifico', cursive;
  font-size: 26px;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Detail boxes */
.details {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.detail-box {
  flex: 1;
  background: linear-gradient(135deg, #FFF0F6, #FFF8E7);
  padding: 22px;
  border-radius: 12px;
  border-left: 4px solid var(--pink);
}

.detail-box h3 {
  margin: 0 0 8px;
  color: var(--purple);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Buttons */
.button {
  display: inline-block;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
  padding: 12px 22px;
  border-radius: 25px;
  text-decoration: none;
  margin-top: 10px;
  font-weight: 700;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(168,85,247,0.3);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(168,85,247,0.4);
}

/* Calendar */
.calendar-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 15px;
}

.calendar-buttons .button { text-align: center; }

/* RSVP buttons */
.rsvp-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.rsvp-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 700;
  padding: 18px 36px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 8px 25px rgba(0,0,0,0.18);
  text-align: center;
  flex: 1;
  min-width: 200px;
}

.rsvp-button.family {
  background: linear-gradient(135deg, var(--pink), #FF4D6D);
}

.rsvp-button.friends {
  background: linear-gradient(135deg, var(--purple), #6366F1);
}

.rsvp-button:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.25);
}

.rsvp-button small {
  display: block;
  font-size: 13px;
  opacity: 0.9;
  font-weight: 600;
  margin-top: 4px;
}

/* Map */
.map iframe {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 12px;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.gallery img { width: 100%; border-radius: 10px; }

/* Closing */
.closing {
  text-align: center;
  background: linear-gradient(135deg, #FFF0F6, #EDE9FE) !important;
}

.signature {
  font-family: 'Pacifico', cursive;
  font-size: 26px;
  color: var(--pink);
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  color: var(--muted);
  font-weight: 600;
}

/* QR */
.qr { margin-top: 30px; text-align: center; }
.qr img { width: 150px; margin-top: 10px; }
.url { font-weight: 700; margin-top: 10px; }

/* Responsive */
@media (max-width: 600px) {
  .hero h1 { font-size: 40px; }
  .calendar-buttons { grid-template-columns: 1fr; }
  .rsvp-buttons { flex-direction: column; }
  .details { flex-direction: column; }
  section { padding: 26px 18px; }
  .countdown-center { gap: 8px; }
}
