:root {
  --shadow-soft: 0 25px 50px -12px rgba(148, 163, 184, 0.45);
  --shadow-pastel: 0 20px 40px rgba(245, 208, 254, 0.35);
}

body {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(249, 213, 229, 0.2), rgba(181, 234, 215, 0.25));
}

.background-illustrations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image: url('../9891912_4302528.jpg');
    /* linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.78),
      rgba(249, 213, 229, 0.32),
      rgba(181, 234, 215, 0.28)
    ), */
    /* url('../2148120624.jpg'); */
    /* url('../27229319_1_mei_11.jpg'); */
    
    /* url('https://www.brides.com/thmb/YdP75VlXKQuPaawDroYCsSJd6K0=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc()/Chloe-Jim_13-5f65704718a84e199cb075d24045e0e2.JPG'); */
  background-size: cover, cover;
  background-position: center, top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-blend-mode: lighten;
  filter: saturate(0.65) brightness(1.08);
  opacity: 0.28;
  transition: opacity 0.4s ease;
}

header {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.nav-hidden {
  transform: translateY(-100%);
  box-shadow: none;
}

.background-gradients::before,
.background-gradients::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  z-index: -1;
  animation: float 16s ease-in-out infinite;
}

.background-gradients::before {
  top: 10%;
  right: 15%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle at center, rgba(199, 206, 234, 0.8), rgba(199, 206, 234, 0));
}

.background-gradients::after {
  bottom: 10%;
  left: 10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at center, rgba(255, 218, 193, 0.8), rgba(255, 218, 193, 0));
  animation-delay: -5s;
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, rgba(249, 213, 229, 0.8), rgba(181, 234, 215, 0.8));
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: #475569;
}

.nav-link:hover::after,
.nav-link:focus::after {
  transform: translateX(-50%) scaleX(1);
}

.primary-button,
#view-events-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(249, 213, 229, 0.9), rgba(181, 234, 215, 0.9));
  color: #475569;
  padding: 0.85rem 2.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.primary-button:hover,
#view-events-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 50px -20px rgba(148, 163, 184, 0.6);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 2.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  border: 2px solid rgba(71, 85, 105, 0.15);
  color: #475569;
  background: rgba(255, 255, 255, 0.6);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border 0.4s ease;
}

.secondary-button:hover {
  transform: translateY(-4px);
  border-color: rgba(71, 85, 105, 0.4);
  box-shadow: var(--shadow-pastel);
}

.floating-card {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 35px 60px -25px rgba(71, 85, 105, 0.55);
  transform: translateY(0);
  /* animation: float 12s ease-in-out infinite; */
}

.floating-note {
  position: absolute;
  right: -2rem;
  bottom: 3rem;
  max-width: 220px;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  /* text-transform: lowercase; */
  letter-spacing: 0.16em;
  text-align: center;
}

.section-subtitle {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.75rem;
}

.story-card,
.event-card,
.travel-card {
  position: relative;
  padding: 2.5rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.event-card {
  padding: 2rem!important;
}

.story-card::after,
.event-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(249, 213, 229, 0.8), rgba(199, 206, 234, 0.8)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.story-card:hover,
.event-card:hover,
.travel-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 45px -25px rgba(148, 163, 184, 0.4);
}

.story-card:hover::after,
.event-card:hover::after,
.travel-card:hover::after {
  opacity: 1;
}

.story-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.story-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.story-text {
  color: #64748b;
  line-height: 1.7;
}

.event-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.24em;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.event-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.event-time {
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #475569;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.event-location {
  font-weight: 600;
  letter-spacing: 0.13em;
  color: #475569;
  margin-bottom: 1rem;
}

.event-desc {
  color: #475569;
  line-height: 1.6;
}

.travel-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.travel-list {
  display: grid;
  gap: 1rem;
  text-align: left;
  color: #475569;
  line-height: 1.6;
}

.travel-list span {
  font-weight: 600;
  color: #334155;
}

.location-list {
  display: grid;
  gap: 1.5rem;
  text-align: left;
  color: #475569;
}

.location-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.location-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(181, 234, 215, 0.4), rgba(199, 206, 234, 0.6));
  color: #475569;
  box-shadow: var(--shadow-pastel);
}

.location-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.location-name {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: #334155;
}

.location-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #475569;
  transition: color 0.3s ease;
}

.location-link::after {
  content: '↗';
  font-size: 0.85rem;
}

.location-link:hover,
.location-link:focus {
  color: #1f2937;
}

.input {
  width: 100%;
  border-radius: 1rem;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #1f2937;
  font-weight: 500;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.input:focus {
  outline: none;
  border-color: rgba(249, 213, 229, 0.8);
  box-shadow: 0 0 0 4px rgba(249, 213, 229, 0.3);
}

.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: url('data:image/svg+xml,%3Csvg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"%3E%3Cpath fill="%23ffffff" fill-opacity="0.85" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,85.3C1248,75,1344,85,1392,90.7L1440,96L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"%3E%3C/path%3E%3C/svg%3E') bottom center / cover no-repeat;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-12px) translateX(6px);
  }
}

@media (max-width: 1024px) {
  .background-illustrations {
    opacity: 0.3;
    background-position: center top;
  }
}

@media (max-width: 640px) {
  .background-illustrations {
    background-image: url('../2148120624.jpg');
  }
}

@media (max-width: 768px) {
  .floating-note {
    position: static;
    margin-top: 1.5rem;
    right: auto;
    bottom: auto;
  }

  .floating-card {
    animation-duration: 10s;
  }
}


#couple-names {
  font-family: 'Rouge Script', cursive;
  font-weight: 400;
  font-style: normal;
}

.location-hyperlinks {
  transition: transform 0.4s ease;
}

.location-hyperlinks:hover {
  cursor: pointer;
  transform: translateY(-8px);
}