:root {
  --primary-pink: #FFB7C5;
  --primary-pink-light: #FFD6E0;
  --primary-pink-dark: #D87082;
  --secondary-green: #355E3B;
  --tertiary-slate: #708090;
  --bg-light: #FDFDFD;
  --text-dark: #1A1A1A;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Jost', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(to right, var(--primary-pink), var(--secondary-green));
  z-index: 10000;
  transition: width 0.1s;
}

/* Security Screen */
#security-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--secondary-green);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#security-screen.unlocked {
  opacity: 0;
  visibility: hidden;
}

.security-content {
  text-align: center;
  max-width: 400px;
  padding: 2rem;
}

h1.security-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.security-desc {
  font-size: 1rem;
  margin-bottom: 2rem;
  opacity: 0.8;
  font-weight: 300;
}

.pin-input-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.pin-digit {
  width: 50px;
  height: 60px;
  font-size: 2rem;
  text-align: center;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.3s ease;
}

.pin-digit:focus {
  border-bottom-color: var(--primary-pink);
}

.pin-error {
  color: var(--primary-pink);
  height: 20px;
  font-size: 0.9rem;
  margin-top: -1rem;
  margin-bottom: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}


/* Typography elements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 400;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2rem;
  color: var(--secondary-green);
  text-align: center;
}

p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: background-color 0.4s ease, padding 0.4s ease;
  mix-blend-mode: difference;
  color: #fff;
}

.navbar.scrolled {
  background-color: rgba(253, 253, 253, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 3rem;
  mix-blend-mode: normal;
  color: var(--secondary-green);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 1px;
  text-decoration: none;
  color: inherit;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.nav-links a.active {
  color: var(--primary-pink-dark);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-pink-dark);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.5rem;
}

/* Back to Top */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--secondary-green);
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 900;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.3s;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  transform: translateY(-5px);
  background-color: var(--primary-pink);
  color: var(--secondary-green);
}

/* Language Toggle */
.lang-toggle-btn {
  background: none;
  border: 1px solid currentColor;
  border-radius: 20px;
  color: inherit;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-toggle-btn:hover {
  background-color: var(--primary-pink);
  border-color: var(--primary-pink);
  color: #fff;
}

/* Language Toggling Logic */
body.lang-de .en {
  display: none !important;
}

body:not(.lang-de) .de {
  display: none !important;
}

/* Sections */
section {
  position: relative;
  width: 100%;
  overflow: hidden;
  z-index: 1;
}

#global-bg {
  position: fixed;
  top: -10vh;
  left: 0;
  width: 100vw;
  height: 120vh;
  background-image: url('assets/floral_bg_cha.png');
  background-repeat: repeat;
  background-size: 600px;
  background-position: top center;
  opacity: 0.20;
  z-index: 0;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 6rem;
  position: relative;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  /* for parallax overflow */
  object-fit: cover;
  z-index: -1;
}

#cherry-blossoms {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.petal {
  position: absolute;
  border-radius: 15px 0 15px 0;
  opacity: 0.8;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 4rem;
  color: #fff;
  text-align: center;
}

.hero-names {
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-details {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: center;
  opacity: 0.9;
  margin-bottom: 3rem;
}

.hero-details span {
  position: relative;
}

.hero-details span:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background-color: var(--primary-pink);
  border-radius: 50%;
}

.hero-countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-family: var(--font-sans);
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 2rem;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--primary-pink-light);
  line-height: 1;
}

.countdown-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.hero-rsvp-btn {
  display: inline-block;
  padding: 1rem 3rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  transition: background-color 0.3s, transform 0.3s, border-color 0.3s;
}

.hero-rsvp-btn:hover {
  background-color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-3px);
  color: var(--secondary-green);
}

/* Story Section */
.story-section {
  background-color: transparent;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-text p {
  font-size: 1.15rem;
  color: var(--tertiary-slate);
}

.story-text p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 4rem;
  float: left;
  line-height: 1;
  padding-right: 0.5rem;
  color: var(--secondary-green);
}

.story-image-wrapper {
  position: relative;
  border-radius: 200px 200px 0 0;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  aspect-ratio: 3/4;
}

.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Parallax Break */
.parallax-break {
  height: 50vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  z-index: -1;
}

.parallax-break h2 {
  color: #fff;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-style: italic;
}

/* Scrollytelling Itinerary */
.itinerary-section {
  background-color: transparent;
  position: relative;
}

.timeline-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 0;
}

.bloom-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: rgba(53, 94, 59, 0.1);
  /* Subtle green baseline */
  z-index: 0;
}

.bloom-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  /* Animated via GSAP */
  background: linear-gradient(to bottom, var(--primary-pink), var(--secondary-green));
}

.day-group {
  margin-bottom: 6rem;
  position: relative;
  z-index: 1;
}

.day-header {
  text-align: center;
  background-color: var(--secondary-green);
  display: block;
  width: 100%;
  padding: 0.5rem 2rem;
  border-radius: 12px;
  border: none;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0 0 3rem 0;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  z-index: 2;
}

.event-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  position: relative;
}

.event-card.left {
  flex-direction: row;
}

.event-card.right {
  flex-direction: row-reverse;
}

.event-content {
  width: 45%;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.event-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), inset 0 0 0 2px var(--secondary-green);
}

.event-dot {
  width: 18px;
  height: 18px;
  background-color: #DFDFDF;
  border: 4px solid #DFDFDF;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: all 0.5s ease;
}

.event-card.active .event-dot {
  background-color: var(--secondary-green);
  border-color: var(--secondary-green);
  box-shadow: 0 0 10px rgba(53, 94, 59, 0.5);
}

.event-time {
  font-family: var(--font-sans);
  color: var(--primary-pink-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
}

.event-title {
  font-family: var(--font-serif);
  color: var(--secondary-green);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.event-location {
  font-size: 0.9rem;
  color: var(--tertiary-slate);
  margin-bottom: 1rem;
}

.event-location i {
  margin-right: 0.5rem;
}

.event-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.event-link {
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--secondary-green);
  border: 1px solid var(--secondary-green);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  transition: all 0.3s;
}

.event-link:hover {
  background-color: var(--secondary-green);
  color: #fff;
}

.event-notes {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-style: italic;
  padding-top: 1rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

/* Travel & Logistics */
.travel-section {
  background-color: transparent;
}

.travel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

.hotel-card {
  background: var(--bg-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.hotel-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.hotel-info {
  padding: 2rem;
}

.hotel-info h3 {
  font-size: 2rem;
  color: var(--secondary-green);
  margin-bottom: 1rem;
}

.hotel-address {
  font-size: 0.9rem;
  color: var(--tertiary-slate);
  margin-bottom: 1rem;
}

.airport-guide {
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.airport-guide h3 {
  font-size: 2rem;
  color: var(--secondary-green);
  margin-bottom: 2rem;
}

.airport-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(53, 94, 59, 0.2);
}

.airport-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.airport-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

/* Gallery / Lookbook */
.gallery-section {
  background-color: transparent;
  padding-bottom: 0;
}

.lookbook-info {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.lookbook-info h3 {
  font-size: 2rem;
  color: var(--secondary-green);
  margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* FAQ */
.faq-section {
  background-color: transparent;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1.5rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--secondary-green);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary-pink-dark);
  transition: transform 0.3s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.4s ease;
  color: var(--tertiary-slate);
}

.faq-item.open .faq-answer {
  margin-top: 1rem;
  max-height: 300px;
  /* arbitrary max height for animation */
}

.faq-item {
  transition: background-color 0.3s ease;
  padding: 1.5rem 1rem;
  border-radius: 8px;
}

.faq-item:hover {
  background-color: rgba(255, 183, 197, 0.3);
  /* lighter, more transparent pink */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Footer */
footer {
  background-color: var(--secondary-green);
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.footer-names {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.footer-date {
  font-family: var(--font-sans);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 900px) {

  .story-grid,
  .travel-grid {
    grid-template-columns: 1fr;
  }

  .story-image-wrapper {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-names {
    font-size: 3rem;
  }

  .hero-details {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-details span:not(:last-child)::after {
    display: none;
  }

  .bloom-line {
    left: 20px;
    transform: none;
  }

  .event-card {
    flex-direction: column !important;
    align-items: flex-start;
    padding-left: 50px;
    position: relative;
  }

  .event-dot {
    position: absolute;
    left: 10px;
    top: 30px;
    transform: none;
  }

  .event-content {
    width: 100%;
  }

}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-light);
    flex-direction: column;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  }

  .nav-links.active {
    display: flex;
  }

  .navbar.menu-open {
    mix-blend-mode: normal;
    background-color: var(--bg-light);
    color: var(--secondary-green);
  }

  .nav-links a {
    color: var(--secondary-green);
    font-size: 1.1rem;
  }

  .hamburger {
    display: block;
  }

  .navbar.scrolled {
    padding: 1rem 2rem;
  }

  .gallery-item.large {
    grid-column: span 1;
    grid-row: span 1;
  }
}