:root {
  --gold: #c9a84c;
  --gold-light: #e8d5a3;
  --gold-dark: #8b6914;
  --cream: #faf6ef;
  --dark: #1a1208;
}

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

html,
body {
  width: 100%;
  min-height: 100%;
  background: #0d0805;
  font-family: "Cormorant Garamond", serif;
  overflow-x: hidden;
}

/* ========== VIDEO CURTAIN ========== */
#curtain-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  background: url(https://invitate.uz/assets/images/curtain.jpg);
  background-size: cover;
  background-position: center;
}

#curtain-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

#curtain-idle {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
  animation: idle-breathe 3s ease-in-out infinite;
}

@keyframes idle-breathe {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.02);
  }
}

.idle-monogram {
  font-family: "Playfair Display", serif;
  font-size: clamp(56px, 16vw, 120px);
  font-style: italic;
  color: var(--dark);
  line-height: 1;
  text-shadow:
    0 0 60px rgba(31, 25, 9, 0.7),
    0 0 120px rgba(36, 27, 1, 0.3);
}

.idle-ornament {
  display: block;
  font-size: clamp(18px, 5vw, 30px);
  color: var(--dark);
  margin: 12px 0;
  letter-spacing: 8px;
}

.idle-hint {
  margin-top: 20px;
  font-family: "IM Fell English", serif;
  font-size: clamp(11px, 3vw, 16px);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dark);
  opacity: 0.75;
  animation: hint-float 2s ease-in-out infinite;
}

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

.tap-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.25);
  transform: scale(0);
  animation: ripple 0.6s ease-out forwards;
  pointer-events: none;
  z-index: 3;
}
@keyframes ripple {
  to {
    transform: scale(6);
    opacity: 0;
  }
}

/* ========== DOVES ========== */
#doves-container {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  overflow: hidden;
}

.dove {
  position: absolute;
  font-size: 28px;
  animation: dove-fly linear forwards;
  filter: drop-shadow(0 2px 8px rgba(201, 168, 76, 0.5));
}

@keyframes dove-fly {
  0% {
    transform: translateX(-80px) translateY(0) scale(0.8);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  50% {
    transform: translateX(50vw) translateY(-40px) scale(1);
  }
  92% {
    opacity: 1;
  }
  100% {
    transform: translateX(115vw) translateY(-80px) scale(0.9);
    opacity: 0;
  }
}

/* ========== AUDIO BTN ========== */
.audio-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: rgba(26, 18, 8, 0.85);
  color: var(--gold);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
  opacity: 0;
  pointer-events: none;
}
.audio-btn.show {
  opacity: 1;
  pointer-events: auto;
}
.audio-btn:hover {
  background: var(--gold);
  color: var(--dark);
  transform: scale(1.1);
}

/* ========== MAIN ========== */
#main-content {
  opacity: 0;
  transition: opacity 1.2s ease;
  background: var(--cream);
  min-height: 100vh;
}
#main-content.visible {
  opacity: 1;
}

/* ===== BANNER ===== */
.banner {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
  background: url(https://invitate.uz/assets/images/curtain.jpg);
  background-size: cover;
  background-position: center;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

.banner-corner {
  position: absolute;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
  font-size: clamp(36px, 7vw, 56px);
}
.banner-corner.tl {
  top: 20px;
  left: 20px;
}
.banner-corner.tr {
  top: 20px;
  right: 20px;
  transform: scaleX(-1);
}
.banner-corner.bl {
  bottom: 20px;
  left: 20px;
  transform: scaleY(-1);
}
.banner-corner.br {
  bottom: 20px;
  right: 20px;
  transform: scale(-1, -1);
}

.banner-inner {
  position: relative;
  z-index: 2;
}

.banner-icon svg {
  max-width: 120px;
  height: 160px;
  fill: var(--gold);
  opacity: 0.5;
}

.save-label {
  font-family: "IM Fell English", serif;
  font-size: clamp(11px, 2.5vw, 14px);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 18px;
  opacity: 0;
  animation: fu 1s ease 0.2s forwards;
}

.banner-names {
  font-family: "Playfair Display", serif;
  font-size: clamp(44px, 13vw, 108px);
  font-style: italic;
  color: var(--dark);
  line-height: 1.05;
  text-shadow: 0 0 60px rgba(201, 168, 76, 0.25);
  opacity: 0;
  animation: fu 1.2s ease 0.5s forwards;
}
.banner-names .amp {
  color: var(--dark);
  font-size: 0.7em;
}

.banner-date {
  font-family: "IM Fell English", serif;
  font-size: clamp(20px, 5vw, 32px);
  color: var(--dark);
  letter-spacing: 4px;
  margin-top: 18px;
  opacity: 0;
  animation: fu 1s ease 0.8s forwards;
}

.banner-loc {
  font-size: clamp(13px, 3vw, 17px);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 3px;
  font-style: italic;
  margin-top: 8px;
  opacity: 0;
  animation: fu 1s ease 1s forwards;
}

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

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin: 12 px 0;
}
.div-line {
  height: 1px;
  flex: 1;
  max-width: 100px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.div-icon {
  color: var(--gold);
  font-size: 18px;
}

/* ===== SECTIONS ===== */
.sec {
  padding: 40px 16px;
}

.sec-light {
  background: var(--cream);
}
.sec-white {
  background: #fff;
}

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

.sec-ornament {
  text-align: center;
  font-size: 26px;
  color: var(--gold);
  margin-bottom: 8px;
}
.sec-label {
  text-align: center;
  font-family: "IM Fell English", serif;
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.sec-label-light {
  color: var(--gold);
}
.sec-title {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 6vw, 32px);
  font-style: italic;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.1;
}
.sec-title-light {
  color: var(--dark);
}
.body-text {
  font-size: clamp(17px, 3.5vw, 22px);
  line-height: 1.9;
  color: #3d2a1e;
  text-align: center;
  font-style: italic;
  max-width: 680px;
  margin: 0 auto;
}

/* ===== COUNTDOWN ===== */
.cd-grid {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.cd-item {
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 12px;
  padding: 12px 8px;
  min-width: 64px;
  text-align: center;
}
.cd-num {
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 8vw, 52px);
  color: var(--gold);
  font-weight: 700;
  display: block;
  line-height: 1;
}
.cd-lbl {
  font-family: "IM Fell English", serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dark);
  margin-top: 6px;
  display: block;
}

/* ===== PHOTO SLIDER ===== */
.slider-sec {
  padding: 60px 0;
  background: #fff;
  overflow: hidden;
}
swiper-container {
  width: 100%;
}
swiper-slide {
  background-position: center;
  background-size: cover;
  width: 280px;
  height: 420px;
}
swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

/* ===== PROGRAM ===== */
.prog-grid {
  max-width: 580px;
  margin: 0 auto;
  position: relative;
}
.prog-grid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  transform: translateX(-50%);
}
.prog-item {
  display: flex;
  align-items: center;
  padding: 20px 0;
}
.prog-time-box {
  flex: 1;
  text-align: right;
  padding-right: 28px;
}
.prog-time {
  font-family: "Playfair Display", serif;
  font-size: 21px;
  color: var(--gold-dark);
  font-style: italic;
}
.prog-dot {
  width: 13px;
  height: 13px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.2);
  position: relative;
  z-index: 1;
}
.prog-info {
  flex: 1;
  padding-left: 28px;
}
.prog-event {
  font-family: "Playfair Display", serif;
  font-size: 17px;
  color: var(--dark);
  font-weight: 700;
}
.prog-desc {
  font-size: 14px;
  color: #6d5240;
  font-style: italic;
  margin-top: 3px;
  line-height: 1.5;
}

/* ===== DRESS CODE ===== */
.palette-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0;
}
.swatch {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* ===== ARTISTS ===== */
.artists-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .artists-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .banner-names {
  font-size: clamp(40px, 9vw, 96px);
 
}
}

.artist-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  aspect-ratio: 9/14;
}
.artist-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.artist-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 12px;
}
.artist-role {
  font-family: "IM Fell English", serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #05d3ce;
  font-weight: 600;
  margin-bottom: 4px;
}
.artist-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  color: #fff;
  font-style: italic;
  line-height: 1.2;
}

/* ===== PHOTO GALLERY ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 600px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.photo-grid img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 3/4;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.photo-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ===== LOCATION ===== */
.loc-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 20px;
  padding: 44px 36px;
  max-width: 460px;
  margin: 36px auto 0;
  backdrop-filter: blur(8px);
  text-align: center;
}
.loc-icon {
  font-size: 44px;
  display: block;
  margin-bottom: 14px;
}
.loc-venue {
  font-family: "Playfair Display", serif;
  font-size: 30px;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.loc-addr {
  font-size: 15px;
  color: var(--dark);
  font-style: italic;
  letter-spacing: 1px;
  line-height: 1.8;
  margin-bottom: 28px;
}
.loc-btn {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: "IM Fell English", serif;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 13px 32px;
  border-radius: 40px;
  text-decoration: none;
  transition: all 0.3s;
}
.loc-btn:hover {
  background: var(--gold);
  color: var(--dark);
}

/* ===== RSVP ===== */
.rsvp-form {
  max-width: 460px;
  margin: 36px auto 0;
  text-align: left;
}
.f-field {
  margin-bottom: 22px;
}
.f-field label {
  display: block;
  font-family: "IM Fell English", serif;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 7px;
}
.f-field input[type="text"] {
  width: 100%;
  border: none;
  border-bottom: 1px solid #c9b08c;
  background: transparent;
  padding: 9px 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 19px;
  color: var(--dark);
  outline: none;
  transition: border-color 0.3s;
}
.f-field input[type="text"]::placeholder {
  color: rgba(61, 42, 30, 0.4);
  font-style: italic;
}
.f-field input[type="text"]:focus {
  border-bottom-color: var(--gold);
}
.radio-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.radio-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  color: #3d2a1e;
  font-style: italic;
}
.radio-opt input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: var(--gold-dark);
  cursor: pointer;
}
.rsvp-btn {
  display: block;
  width: 100%;
  margin-top: 28px;
  padding: 17px;
  background: var(--dark);
  color: var(--gold-light);
  border: 1px solid var(--gold-dark);
  font-family: "IM Fell English", serif;
  font-size: 13px;
  letter-spacing: 5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
}
.rsvp-btn:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

/* ===== POPUP ===== */
.pop-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
.pop-overlay.show {
  display: flex;
}
.pop-box {
  background: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 44px 36px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  animation: pop-in 0.4s ease;
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.pop-icon {
  font-size: 44px;
  margin-bottom: 14px;
}
.pop-title {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 10px;
}
.pop-text {
  font-size: 17px;
  color: #5a3e2b;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 24px;
}
.pop-close {
  border: 1px solid var(--gold-dark);
  background: transparent;
  color: var(--gold-dark);
  font-family: "IM Fell English", serif;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 11px 28px;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.3s;
}
.pop-close:hover {
  background: var(--gold-dark);
  color: #fff;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  padding: 48px 20px;
  text-align: center;
}
.footer-mono {
  font-family: "Playfair Display", serif;
  font-size: 44px;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
  letter-spacing: 2px;
}
.footer-copy a {
  color: var(--gold);
  text-decoration: none;
}

/* ===== SCROLL REVEAL ===== */
.rev {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}
.rev.on {
  opacity: 1;
  transform: none;
}

@media (max-width: 560px) {
  .prog-grid::before {
    display: none;
  }
  .prog-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 0;
  }
  .prog-time-box {
    text-align: left;
    padding-right: 0;
  }
  .prog-info {
    padding-left: 20px;
    border-left: 2px solid var(--gold);
  }
  .prog-dot {
    display: none;
  }
  .loc-card {
    padding: 32px 20px;
  }
}
