:root {
  --fade: 50px;
  --bg: #f6f1ea5b;
  --dim: 0.35;
  --text: #000000c9;
  --serif: "Playfair Display", serif;
  --script: "Great Vibes", cursive;
  --classic: "Lobster", sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  font-size: 16px;
  color: var(--text);
}

/* Snap scroll container */
.screens {

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Snap scrolling only on mobile/tablet */
@media screen and (max-width: 1024px) {
  .screens {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    height: 100dvh;
    height: 100vh;
  }

  .screen {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

.screen {
  height: 100dvh;
  height: 100svh;
  height: 100vh;
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
  position: relative;

  background: var(--bg);

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.screen--roses {
  background:
    linear-gradient(rgb(0 0 0 / 28%), rgba(0, 0, 0, 0.324)),
    url('images/roses.webp') center/cover no-repeat;
}

@media screen and (min-width: 768px) {
  .screen--roses {
    background:
      linear-gradient(rgb(0 0 0 / 28%), rgba(0, 0, 0, 0.324)),
      url('images/roses.webp') center/cover no-repeat;
  }
}

.screen--invites {
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url('images/invites.webp') center/cover no-repeat;
}

/* Overlay dim */
/* .screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(0, 0, 0, var(--dim));
} */

/* Fade top + bottom (default) */
.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.85) 5%,
      rgba(255, 255, 255, 0.5) 11%,
      rgba(255, 255, 255, 0) 21%),
    linear-gradient(to top,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.85) 5%,
      rgba(255, 255, 255, 0.5) 11%,
      rgba(255, 255, 255, 0) 21%);
}

.content {
  position: relative;
  z-index: 3;
  height: 100%;
}

.title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 3rem);
  font-weight: 500;
  text-align: center;
}

.sub-title {
  font-family: var(--script);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 500;
}



/* ---------------- HERO (screen 1) ---------------- */
.hero {
  display: grid;
  place-items: center;
}

.hero__text {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* общо за hero top/bottom */
.hero__top,
.hero__bottom {
  font-family: var(--classic);
  font-size: clamp(2.6rem, 7vw, 4.3rem);
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.995);
  text-shadow: 0 5px 11px rgba(0, 0, 0, 0.855);
}

.hero__script {
  margin-top: 6px;
  font-family: var(--script);
  font-size: clamp(3rem, 8vw, 4.5rem);
  line-height: 0.9;
  color: rgba(20, 20, 20, 0.65);
  text-shadow: 0 2px 14px rgba(255, 255, 255, 0.35);
}

/* ---------------- SCREEN 2 ---------------- */
.second-screen {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.5vh;
}

.second-screen__text {
  text-align: center;
  width: 100%;
  color: var(--text);
}

.second-screen__text p {
  font-family: var(--classic);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 15px;
  color: #b7a892;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.second-screen__text h2 {
  font-family: var(--script);
  font-size: clamp(3.6rem, 6vw, 5rem);
  font-weight: 500;
  color: #3a3632;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.second-screen__text h3 {
  font-family: var(--script);
  font-size: 2.1rem;
  font-weight: 400;
  margin: 0;
  color: #c6a75e;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* ---------------- SCREEN 3 ---------------- */
.third-screen {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  padding: 10vh 20px 8vh;
  color: var(--text);
}

.top-text p {
  font-family: var(--classic);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
}

.middle-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 21px;
}

.middle-text h2 {
  font-family: var(--script);
  font-size: clamp(3.5rem, 10vw, 5rem);
  font-weight: 400;
  margin: 0;
  line-height: 0.9;
}

.date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-family: var(--serif);
  letter-spacing: 0.08em;
  color: var(--text);
}

.month,
.year {
  font-size: 1.3rem;
  letter-spacing: 0.15em;
}

.day-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  gap: 20px;
}

.day-row .day-side:first-child {
  text-align: center;
}

.day-row .day-side:last-child {
  text-align: center;
}

.day-side {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  padding: 0 6px;
  border-top: 1px solid rgba(26, 26, 26, 0.3);
  border-bottom: 1px solid rgba(26, 26, 26, 0.3);
}

.big-day {
  font-size: 3rem;
  font-weight: 500;
  padding: 0 10px;
}

.bottom-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bottom-text h4 {
  font-family: var(--classic);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 0;
  opacity: 0.85;
}

/* ---------------- SCREEN 4 ---------------- */

.fourth-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 7px;
  margin-top: 0;
  color: var(--text);
}

.timeline-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 11px;
  border-bottom: 3px solid rgba(26, 26, 26, 0.228);
}

.timeline .time {
  font-family: var(--classic);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.timeline .event {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modern-bg {
  background: linear-gradient(135deg, #ffffff 0%, #faf6f1 50%, #f6f1ea 100%);
}

.fourth-screen {
  padding: 0 15px;
}

.location-card {
  max-width: 350px;
  margin: 0 auto;
  padding-top: 7px;
}

.location-card .location-card-img img {
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.location-card .location-card-title {
  background-color: #c9bba6;
  text-align: center;
  padding: 11px;
}

.location-card .location-card-title h3 {
  margin-bottom: 0;
}

.location-card .location-card-content {
  padding: 11px;
  background-color: #ffffff9c;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
  text-align: center;
}

.location-card .location-card-content p {
  margin-bottom: 5px;
  font-weight: 500;
  color: #454545;
}

/* five screen */
.five-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  text-align: center;
}

.restaurant {
  color: #766852;
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: normal;
  padding-left: 7px;
}

.dress-code {
  max-width: 350px;
  border-radius: 11px;
}

.dress-code .top {
  background-color: #c9bba6;
  padding: 11px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.dress-code .top h3 {
  margin-bottom: 0;
}

.dress-code__colors-top {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 11px;
  background-color: #5847289c;
  color: white;
}

.dress-code__colors-top p {
  margin-bottom: 0;
}

.dress-code__colors {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 15px 11px;
  background-color: #c9bba69e;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

/* Базов стил за цветните кръгове */
.color {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Конкретни цветове */
.color--white {
  background-image: url('images/white-palette.png');
}

.color--champagne {
  background-image: url('images/gold-palette.png');
}

.color--beige {
  background-image: url('images/brown-palette.png');
}

.screen.six-screen {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* overflow: auto; */
  overflow: auto;
}

.screen.rsvp {
  height: 100%;
}

.screen.rsvp::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.8) 15%,
      rgba(255, 255, 255, 0.4) 30%,
      rgba(255, 255, 255, 0) 50%);
}

/* .screen.rsvp::before {
  content: none;
  position: relative;
} */

.rsvp-container {
  background: #ffffffa1;
  padding: 50px 40px;
  width: 100%;
  max-width: 410px;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #d4af37;
  position: relative;
  margin-top: 1.7rem;
}

@media (max-width: 430px) {
  .rsvp-container {
    padding: 17px 15px;
    max-width: 350px;
  }
}

.rsvp-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #d4af37;
  border-radius: 10px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #b8962e;
}

input[type="text"],
textarea,
select {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #e6d8a8;
  border-radius: 8px;
  font-size: 16px;
  transition: 0.3s ease;
  outline: none;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
  border-color: #d4af37;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

textarea {
  resize: none;
  height: 100px;
}

button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #d4af37, #b8962e);
  color: white;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s ease;
}

button:hover {
  background: linear-gradient(135deg, #b8962e, #a07f1f);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.autocomplete {
  position: relative;
  margin-bottom: 18px;
}

.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e6d8a8;
  border-radius: 10px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: none;
  z-index: 10;
}

.suggestions button {
  all: unset;
  display: block;
  width: 100%;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.suggestions button:hover {
  background: rgba(212, 175, 55, 0.12);
}

.hint {
  margin-top: -10px;
  margin-bottom: 14px;
  font-size: 12px;
  color: #9a8738;
}



.invite-list {
  border: 1px solid #e6d8a8;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  margin-bottom: 14px;
}

.invite-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.invite-item:hover {
  background: rgba(212, 175, 55, 0.12);
}

.invite-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #d4af37;
}

.invite-empty {
  font-size: 13px;
  color: #9a8738;
  padding: 6px 4px;
}

.room-options {
  border: 1px solid #e6d8a8;
  border-radius: 10px;
  padding: 12px 10px 2px;
  background: #fff;
  margin-bottom: 16px;
}

.room-options label {
  margin-bottom: 8px;
}

@media (max-width: 480px) {
  .rsvp-container {
    padding: 35px 25px;
  }
}

/* ===== INTRO (Mobile only) ===== */

.intro {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  height: 100vh;
  background: #f3f0f3;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  perspective: 1500px;
}

/* Пликът да запълва екрана */
.card {
  position: absolute;
  width: 100vw;
  height: 100dvh;
  max-width: 480px;
  /* ограничаваме за големи телефони */
  max-height: 100dvh;
  background-color: #f3f0f3;
  outline: none !important;
}



/* Страните */
.side {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* важно */
  top: 0;
  left: -30px;
  transition: transform 2.5s cubic-bezier(0.22, 1, 0.36, 1);
  backface-visibility: hidden;
  padding: 0;
}

@media (max-width: 450px) {
  .side {
    top: 0;
    left: 39px;
  }
}

.side--left {
  transform-origin: left;
}

.side--right {
  transform-origin: right;
  top: 0;
  left: 146px;
}

.seal {
  position: absolute;
  width: 90px;
  /* можеш да коригираш */
  height: auto;
  left: 37%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  cursor: pointer;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (max-width: 400px) {
  .seal {
    left: 45%;
  }

}

/* Когато изчезва */
.seal.hide {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

/* Отваряне */
.card.open .side--left {
  transform: rotateY(-180deg);
}

.card.open .side--right {
  transform: rotateY(180deg);
}

/* @media (min-width: 768px) {
  .intro {
    display: none !important;
  }
} */

body.intro-active {
  overflow: hidden;
}

/* ==================== SCROLL ANIMATIONS ==================== */

/* Fade Up (already exists) */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Fade Down */
[data-aos="fade-down"] {
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos="fade-down"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Fade Left */
[data-aos="fade-left"] {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos="fade-left"].aos-animate {
  opacity: 1;
  transform: translateX(0);
}

/* Fade Right */
[data-aos="fade-right"] {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos="fade-right"].aos-animate {
  opacity: 1;
  transform: translateX(0);
}

/* Fade In (no movement) */
[data-aos="fade-in"] {
  opacity: 0;
  transition: opacity 1s ease;
}

[data-aos="fade-in"].aos-animate {
  opacity: 1;
}

/* Zoom In */
[data-aos="zoom-in"] {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos="zoom-in"].aos-animate {
  opacity: 1;
  transform: scale(1);
}

/* Zoom Out */
[data-aos="zoom-out"] {
  opacity: 0;
  transform: scale(1.2);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos="zoom-out"].aos-animate {
  opacity: 1;
  transform: scale(1);
}

/* Flip Up */
[data-aos="flip-up"] {
  opacity: 0;
  transform: perspective(600px) rotateX(-45deg);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos="flip-up"].aos-animate {
  opacity: 1;
  transform: perspective(600px) rotateX(0);
}

/* Slide Up (more dramatic than fade-up) */
[data-aos="slide-up"] {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-aos="slide-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Bounce In */
[data-aos="bounce-in"] {
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

[data-aos="bounce-in"].aos-animate {
  opacity: 1;
  transform: scale(1);
}

/* Rotate In */
[data-aos="rotate-in"] {
  opacity: 0;
  transform: rotate(-180deg) scale(0.8);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos="rotate-in"].aos-animate {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Blur In */
[data-aos="blur-in"] {
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.8s ease, filter 0.8s ease;
}

[data-aos="blur-in"].aos-animate {
  opacity: 1;
  filter: blur(0);
}

/* ==================== ANIMATION DELAYS ==================== */
[data-aos-delay="100"].aos-animate {
  transition-delay: 0.1s;
}

[data-aos-delay="200"].aos-animate {
  transition-delay: 0.2s;
}

[data-aos-delay="300"].aos-animate {
  transition-delay: 0.3s;
}

[data-aos-delay="400"].aos-animate {
  transition-delay: 0.4s;
}

[data-aos-delay="500"].aos-animate {
  transition-delay: 0.5s;
}

[data-aos-delay="600"].aos-animate {
  transition-delay: 0.6s;
}

[data-aos-delay="800"].aos-animate {
  transition-delay: 0.8s;
}

[data-aos-delay="1000"].aos-animate {
  transition-delay: 1s;
}

/* ==================== ANIMATION DURATIONS ==================== */
[data-aos-duration="400"] {
  transition-duration: 0.4s !important;
}

[data-aos-duration="600"] {
  transition-duration: 0.6s !important;
}

[data-aos-duration="800"] {
  transition-duration: 0.8s !important;
}

[data-aos-duration="1000"] {
  transition-duration: 1s !important;
}

[data-aos-duration="1200"] {
  transition-duration: 1.2s !important;
}

[data-aos-duration="1500"] {
  transition-duration: 1.5s !important;
}