@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Open+Sans:wght@300;400;600&display=swap');

:root {
  --soft-pink: #f8e6ec;
  --accent: #f4c2d7;
  --text: #444;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: linear-gradient(135deg, var(--white) 0%, #faf5f8 100%);
  color: var(--text);
  overflow-x: hidden;
}

/* INTRO SPLASH */
#intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--soft-pink) 0%, #f0d5e3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 999;
  transition: opacity 1s ease;
  overflow: hidden;
}

#intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(244, 194, 215, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(244, 194, 215, 0.2) 0%, transparent 50%);
  pointer-events: none;
  animation: ambientGlow 8s ease-in-out infinite;
}

@keyframes ambientGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.intro-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1.2s ease-out;
}

.intro-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: #b84c74;
  letter-spacing: 2px;
  text-shadow: 0 2px 20px rgba(184, 76, 116, 0.1);
}

.intro-content p {
  margin-top: 0.8rem;
  font-size: 1rem;
  color: #6a425a;
  font-weight: 300;
  letter-spacing: 0.5px;
}

#enter-btn {
  margin-top: 2rem;
  background: #b84c74;
  color: white;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(184, 76, 116, 0.3);
  position: relative;
  overflow: hidden;
}

#enter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
}

#enter-btn:hover {
  background: #9c3e63;
  box-shadow: 0 6px 25px rgba(184, 76, 116, 0.5);
  transform: translateY(-2px);
}

#enter-btn:hover::before {
  left: 100%;
}

/* MAIN CONTENT */
#main-content {
  padding: 2rem 1rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hidden {
  display: none;
}

header {
  animation: fadeInDown 0.8s ease-out;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #b84c74;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(184, 76, 116, 0.08);
}

header p {
  font-size: 1rem;
  color: #888;
  margin-bottom: 2rem;
  font-weight: 300;
}

section {
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out;
  opacity: 0;
  animation-fill-mode: forwards;
}

section:nth-child(1) { animation-delay: 0.2s; }
section:nth-child(2) { animation-delay: 0.3s; }
section:nth-child(3) { animation-delay: 0.4s; }
section:nth-child(4) { animation-delay: 0.5s; }
section:nth-child(5) { animation-delay: 0.6s; }

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #b84c74;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 5px rgba(184, 76, 116, 0.08);
}

.image-placeholder {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, var(--soft-pink) 0%, var(--accent) 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b84c74;
  font-style: italic;
  font-size: 0.9rem;
  box-shadow: 0 8px 30px rgba(184, 76, 116, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.image-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.image-placeholder:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(184, 76, 116, 0.15);
}

footer {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--soft-pink) 0%, #f0d5e3 100%);
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(184, 76, 116, 0.08);
}

footer p {
  color: #6a425a;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.3px;
}

/* CONFETTI CANVAS */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  z-index: 10;
}

/* TRANSITIONS */
.fade-out {
  opacity: 0;
  pointer-events: none;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE DESIGN */
@media (min-width: 768px) {
  header h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  .image-placeholder {
    height: 350px;
  }
}

/* FANCY FONT FOR TITLES */
header h1,
.intro-content h1,
h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 1px;
  color: #b84c74;
}

.intro-content h1 {
  font-size: 3rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.invitation {
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(248, 230, 236, 0.4);
  border-radius: 15px;
  border: 1px solid rgba(244, 194, 215, 0.3);
  backdrop-filter: blur(10px);
}

#guest-name {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #b84c74;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.invite-message {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  font-weight: 300;
}

.story-video {
  width: 100%;
  max-width: 600px;
  border-radius: 15px;
  margin-top: 1rem;
  box-shadow: 0 12px 40px rgba(184, 76, 116, 0.15);
  object-fit: cover;
  max-height: 450px;
  transition: all 0.4s ease;
}

.story-video:hover {
  transform: scale(1.02);
  box-shadow: 0 18px 50px rgba(184, 76, 116, 0.25);
}

.rsvp-page {
  background: linear-gradient(135deg, #fff5f8 0%, #faf5f8 100%);
  color: #333;
  font-family: 'Open Sans', sans-serif;
  padding: 2rem;
}

.rsvp-container {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(184, 76, 116, 0.12);
  border: 1px solid rgba(244, 194, 215, 0.2);
  animation: fadeInUp 0.8s ease-out;
}

.rsvp-container h1 {
  font-family: 'Playfair Display', serif;
  color: #b84c74;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.rsvp-container p {
  text-align: center;
  color: #888;
  font-weight: 300;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.rsvp-form label {
  font-weight: 500;
  color: #6a425a;
  margin-top: 0.5rem;
  text-align: left;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  padding: 0.85rem;
  border-radius: 10px;
  border: 1.5px solid #e8d5e0;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(248, 230, 236, 0.3);
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  outline: none;
  border-color: #b84c74;
  background: white;
  box-shadow: 0 0 0 3px rgba(184, 76, 116, 0.1);
}

.rsvp-form button {
  background: linear-gradient(135deg, #b84c74 0%, #9c3e63 100%);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  margin-top: 0.5rem;
  box-shadow: 0 6px 20px rgba(184, 76, 116, 0.25);
}

.rsvp-form button:hover {
  background: linear-gradient(135deg, #9c3e63 0%, #813052 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(184, 76, 116, 0.35);
}

.rsvp-form button:active {
  transform: translateY(0);
}

/* RSVP Section Enhancements */
.rsvp {
  background: linear-gradient(135deg, rgba(248, 230, 236, 0.6) 0%, rgba(240, 213, 227, 0.4) 100%);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(184, 76, 116, 0.08);
  border: 1px solid rgba(244, 194, 215, 0.2);
  backdrop-filter: blur(10px);
}

.rsvp p {
  margin-bottom: 1.5rem;
  color: #666;
  font-weight: 300;
  line-height: 1.6;
}

.rsvp-form label {
  text-align: left;
  display: block;
  font-weight: 600;
  color: #6a425a;
}

.rsvp-form select option {
  font-size: 0.95rem;
  white-space: normal;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Smooth section navigation */
html {
  scroll-behavior: smooth;
}

/* NAVIGATION BAR */
nav {
  background: rgba(255, 245, 248, 0.85);
  backdrop-filter: blur(15px);
  border-radius: 50px;
  padding: 1rem 2rem;
  margin: 1.5rem auto 2.5rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  width: fit-content;
  box-shadow: 0 8px 30px rgba(184, 76, 116, 0.12);
  transition: all 0.3s ease;
  border: 1px solid rgba(244, 194, 215, 0.2);
}

nav a {
  font-family: 'Playfair Display', serif;
  text-decoration: none;
  color: #b84c74;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

nav a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: 0;
  background: #b84c74;
  transform: translateY(-50%);
  transition: height 0.3s ease;
  border-radius: 2px;
  margin-right: 8px;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #b84c74, #d48ca2);
  transition: width 0.3s ease;
  border-radius: 1px;
}

nav a:hover {
  color: #9c3e63;
  transform: translateY(-2px);
}

nav a:hover::after {
  width: 100%;
}

nav.sticky {
  position: sticky;
  top: 1rem;
  z-index: 100;
  background: rgba(255, 245, 248, 0.95);
  box-shadow: 0 10px 35px rgba(184, 76, 116, 0.15);
}