:root {
  --primary-yellow: #FFDF00;
  --light-yellow: #FFF9C4;
  --dark-yellow: #FBC02D;
  --text-dark: #333333;
  --text-light: #666666;
  --white: #FFFFFF;
  --green: #8BC34A; /* Spring accent */
  --soft-orange: #FFB74D;
}

/* Reset and Typography */
* { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100vw; }

body {
  font-family: 'Quicksand', sans-serif;
  color: var(--text-dark);
  background-color: var(--light-yellow);
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0%, transparent 80%);
  background-attachment: fixed;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Scroll Animations */
.fade-in { opacity: 0; transition: opacity 1s ease-out; }
.fade-in.show { opacity: 1; }
.fade-in-up { opacity: 0; transform: translateY(50px); transition: all 1s ease-out; }
.fade-in-up.show { opacity: 1; transform: translateY(0); }
.slide-in-left { opacity: 0; transform: translateX(-50px); transition: all 1s ease-out; }
.slide-in-left.show { opacity: 1; transform: translateX(0); }
.slide-in-right { opacity: 0; transform: translateX(50px); transition: all 1s ease-out; }
.slide-in-right.show { opacity: 1; transform: translateX(0); }
.bounce-in { opacity: 0; transform: scale(0.8); transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.bounce-in.show { opacity: 1; transform: scale(1); }

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 249, 196, 0.8), rgba(255, 243, 224, 0.8));
}

#hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.8;
  background: 
    url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 20 C30 20, 30 80, 60 110 C90 80, 90 20, 60 20 Z' fill='%238BC34A' opacity='0.3'/%3E%3Ccircle cx='60' cy='70' r='10' fill='%23FFDF00'/%3E%3Ccircle cx='60' cy='52' r='12' fill='%23FFFFFF'/%3E%3Ccircle cx='78' cy='70' r='12' fill='%23FFFFFF'/%3E%3Ccircle cx='60' cy='88' r='12' fill='%23FFFFFF'/%3E%3Ccircle cx='42' cy='70' r='12' fill='%23FFFFFF'/%3E%3C/svg%3E") repeat-x top left,
    url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 10 C30 10, 30 70, 60 100 C90 70, 90 10, 60 10 Z' fill='%238BC34A' opacity='0.3'/%3E%3Ccircle cx='60' cy='50' r='10' fill='%23FFDF00'/%3E%3Ccircle cx='60' cy='32' r='12' fill='%23FFFFFF'/%3E%3Ccircle cx='78' cy='50' r='12' fill='%23FFFFFF'/%3E%3Ccircle cx='60' cy='68' r='12' fill='%23FFFFFF'/%3E%3Ccircle cx='42' cy='50' r='12' fill='%23FFFFFF'/%3E%3C/svg%3E") repeat-x bottom left,
    url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 60 C20 30, 80 30, 110 60 C80 90, 20 90, 20 60 Z' fill='%238BC34A' opacity='0.3'/%3E%3Ccircle cx='70' cy='60' r='10' fill='%23FFDF00'/%3E%3Ccircle cx='52' cy='60' r='12' fill='%23FFFFFF'/%3E%3Ccircle cx='70' cy='78' r='12' fill='%23FFFFFF'/%3E%3Ccircle cx='88' cy='60' r='12' fill='%23FFFFFF'/%3E%3Ccircle cx='70' cy='42' r='12' fill='%23FFFFFF'/%3E%3C/svg%3E") repeat-y left top,
    url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 60 C10 30, 70 30, 100 60 C70 90, 10 90, 10 60 Z' fill='%238BC34A' opacity='0.3'/%3E%3Ccircle cx='50' cy='60' r='10' fill='%23FFDF00'/%3E%3Ccircle cx='32' cy='60' r='12' fill='%23FFFFFF'/%3E%3Ccircle cx='50' cy='78' r='12' fill='%23FFFFFF'/%3E%3Ccircle cx='68' cy='60' r='12' fill='%23FFFFFF'/%3E%3Ccircle cx='50' cy='42' r='12' fill='%23FFFFFF'/%3E%3C/svg%3E") repeat-y right top;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  width: 100%;
}
.hero-text {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2.5rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  max-width: 650px;
  margin: 0 1rem;
}
.hero-text h1 { font-size: 3.5rem; color: var(--dark-yellow); margin-bottom: 0.5rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.05); font-weight: 700; }
.hero-text h2 { font-size: 2rem; margin-bottom: 1rem; color: var(--text-dark); font-weight: 600; line-height: 1.4; }
.funny-text { font-size: 1.2rem; font-weight: normal; color: var(--text-light); display: inline-block; margin-top: 0.5rem; font-style: italic; }
.hero-text .date { font-size: 1.3rem; font-weight: bold; color: var(--green); margin-bottom: 0.5rem; margin-top: 1.5rem; }

.hero-image-wrapper { 
  position: relative; 
  margin-top: 1rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}
.hero-image {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid white;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease;
  display: block;
}
.hero-image:hover {
  transform: scale(1.05) rotate(3deg);
}

.image-backdrop {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background-color: var(--primary-yellow);
  border-radius: 50%;
  z-index: 1;
  opacity: 0.4;
  animation: pulse 3s infinite alternate;
}
@keyframes pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* Sections */
.section-container {
  padding: 6rem 1.5rem;
  position: relative;
  z-index: 10;
  overflow: hidden;
}
.bg-white { background-color: var(--white); border-radius: 60px 60px 0 0; margin-top: -60px; box-shadow: 0 -10px 30px rgba(0,0,0,0.05); }
.theme-bg { background-color: #FFFDE7; }
.section-title { 
  display: block;
  width: max-content;
  max-width: 100%;
  text-align: center; 
  font-size: 2.2rem; 
  color: var(--dark-yellow); 
  margin: 0 auto 3.5rem auto; 
  position: relative; 
}
.section-title::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 4px;
  background-color: var(--primary-yellow);
  bottom: -10px;
  left: 25%;
  border-radius: 2px;
}

/* Details Grid */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto 4rem;
}

.family-info {
  background: white;
  max-width: 900px;
  margin: 0 auto 4rem;
  padding: 3rem 2rem;
  border-radius: 25px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  border: 2px dashed var(--primary-yellow);
  text-align: center;
}
.invite-header {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  font-style: italic;
}
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.roles-grid h4 {
  font-size: 1.4rem;
  color: var(--dark-yellow);
  margin-bottom: 0.5rem;
}
.roles-grid p {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}
.detail-card {
  background: var(--light-yellow);
  padding: 3rem 2rem;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
}
.detail-card:hover { transform: translateY(-15px); border-color: var(--primary-yellow); }
.detail-card .icon-circle {
  width: 70px;
  height: 70px;
  background: var(--primary-yellow);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 5px 15px rgba(255, 223, 0, 0.4);
}
.detail-card h3 { margin-bottom: 1rem; color: var(--text-dark); font-size: 1.5rem; }
.detail-card p { line-height: 1.6; color: var(--text-light); font-size: 1.1rem; }
.detail-card .address { font-style: italic; margin-top: 0.8rem; font-weight: 600; color: var(--soft-orange); }

.map-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  position: relative;
  border: 5px solid white;
}
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 1.1rem;
}
.btn.primary-btn {
  background: var(--primary-yellow);
  color: var(--text-dark);
}
.btn.primary-btn:hover {
  background: var(--dark-yellow);
  color: white;
  box-shadow: 0 5px 15px rgba(251, 192, 45, 0.4);
}
.btn-map {
  display: block;
  text-align: center;
  margin-top: -5px; /* stick to map */
  border-radius: 0 0 15px 15px;
}

/* Form Styles */
.rsvp-wrapper {
  max-width: 650px;
  margin: 0 auto;
  background: white;
  padding: 4rem 3rem;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-top: 8px solid var(--primary-yellow);
}
.rsvp-text { text-align: center; margin-bottom: 2.5rem; color: var(--text-light); font-size: 1.1rem; }
.input-group { margin-bottom: 2rem; position: relative; }
.input-group label { display: block; margin-bottom: 0.8rem; font-weight: 700; color: var(--text-dark); }
.input-group input, .input-group select, .input-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #E0E0E0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s;
  background-color: #FAFAFA;
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
  outline: none;
  border-color: var(--primary-yellow);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(255, 223, 0, 0.15);
}
.submit-btn {
  width: 100%;
  background: var(--dark-yellow);
  color: white;
  font-size: 1.2rem;
  padding: 18px;
  border-radius: 15px;
  margin-top: 1rem;
}
.submit-btn:hover { background: var(--primary-yellow); color: var(--text-dark); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(251, 192, 45, 0.3); }

/* Footer */
footer { text-align: center; padding: 3rem; background: var(--white); color: var(--text-light); font-weight: 600; font-size: 1.1rem; }

/* Floating Bees Container */
#bee-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}
.bee {
  position: absolute;
  width: 60px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(3px 5px 8px rgba(0,0,0,0.15));
  will-change: transform;
}

/* Down Button */
.scroll-down-btn {
  position: absolute;
  bottom: 40px;
  font-size: 2.5rem;
  color: var(--dark-yellow);
  animation: bounce 2s infinite;
  transition: color 0.3s;
}
.scroll-down-btn:hover { color: var(--soft-orange); }

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-text { margin: 0; padding: 1.5rem; }
  .hero-text h1 { font-size: 2.5rem; }
  .hero-text h2 { font-size: 1.5rem; }
  .section-container { padding: 4rem 1.2rem; }
  .rsvp-wrapper { padding: 2.5rem 1.2rem; }
  .hero-image { width: 200px; height: 200px; }
  .details-grid { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr; }
}
