/* ===================================================
   Ilkhomjon & Kumushoy — Wedding Invitation
   Palette:
     Base:    #ffffff, #f8f6f2, #faf9f7
     Oxblood: #5a0f1a, #7a1624, #8f1d2c, #3e0a12
     Pastel:  #e8ddd5, #d4c5b9
     Text:    #1a1a1a, #4a4a4a, #8a8a8a
   =================================================== */

/* ---------- RESET & BASE ---------- */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.7;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- UTILITY ---------- */

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-title {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
  letter-spacing: 0.06em;
  color: #1a1a1a;
}

.section-line {
  width: 60px;
  height: 1px;
  background: #7a1624;
  margin: 20px auto 56px;
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-line.visible {
  width: 100px;
}

/* ---------- FADE-IN ANIMATION ---------- */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }
.fade-in:nth-child(6) { transition-delay: 0.5s; }

/* ===================================================
   SPLASH SCREEN
   =================================================== */

.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #3e0a12;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash__content {
  text-align: center;
  color: #f8f6f2;
  padding: 40px 24px;
  animation: splash-fade-in 1.2s ease forwards;
}

@keyframes splash-fade-in {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.splash__subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(248, 246, 242, 0.5);
  margin-bottom: 32px;
}

.splash__names {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.splash__names span {
  font-style: italic;
  color: rgba(248, 246, 242, 0.4);
  font-size: 0.5em;
  display: inline-block;
  margin: 0 8px;
}

.splash__line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(248, 246, 242, 0.4), transparent);
  margin: 28px auto;
}

.splash__date {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.35em;
  color: rgba(248, 246, 242, 0.6);
  margin-bottom: 48px;
}

.splash__enter {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #f8f6f2;
  background: transparent;
  border: 1px solid rgba(248, 246, 242, 0.3);
  padding: 16px 48px;
  cursor: pointer;
  transition: all 0.4s ease;
  border-radius: 2px;
}

.splash__enter:hover {
  background: rgba(248, 246, 242, 0.1);
  border-color: rgba(248, 246, 242, 0.6);
}

/* ===================================================
   LANG SWITCHER
   =================================================== */

.lang-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.lang-switch.show {
  opacity: 1;
}

.lang-switch__btn {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid #e0dbd5;
  color: #8a8a8a;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.lang-switch__btn.active {
  background: #5a0f1a;
  color: #ffffff;
  border-color: #5a0f1a;
}

/* ===================================================
   MUSIC TOGGLE
   =================================================== */

.music-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid #e0dbd5;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
}

.music-toggle.show {
  opacity: 1;
}

.music-toggle:hover {
  border-color: #7a1624;
}

.music-toggle__icon {
  width: 16px;
  height: 16px;
  color: #5a0f1a;
  display: block;
}

.music-toggle__bars {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 8px;
}

.music-toggle__bars i {
  display: block;
  width: 2px;
  height: 3px;
  background: #7a1624;
  border-radius: 1px;
  transition: height 0.2s ease;
}

.music-toggle.playing .music-toggle__bars i {
  animation: music-bar 0.6s ease-in-out infinite alternate;
}

.music-toggle.playing .music-toggle__bars i:nth-child(1) { animation-delay: 0s; }
.music-toggle.playing .music-toggle__bars i:nth-child(2) { animation-delay: 0.15s; }
.music-toggle.playing .music-toggle__bars i:nth-child(3) { animation-delay: 0.3s; }
.music-toggle.playing .music-toggle__bars i:nth-child(4) { animation-delay: 0.1s; }

@keyframes music-bar {
  0% { height: 3px; }
  100% { height: 8px; }
}

/* ===================================================
   HERO
   =================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f6f2;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(90, 15, 26, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse at 80% 50%, rgba(90, 15, 26, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px;
  will-change: transform;
}

.hero__invite {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8a8a8a;
  margin-bottom: 24px;
}

.hero__divider {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #7a1624, transparent);
  margin: 24px auto;
  animation: divider-expand 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-play-state: paused;
}

.hero__divider.visible {
  animation-play-state: running;
}

@keyframes divider-expand {
  0% { width: 0; }
  100% { width: min(320px, 80vw); }
}

.hero__names {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 300;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: #1a1a1a;
}

.hero__name {
  display: block;
}

.hero__ampersand {
  display: block;
  font-style: italic;
  font-weight: 300;
  font-size: 0.45em;
  color: #7a1624;
  margin: 4px 0;
}

.hero__date {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.35em;
  color: #4a4a4a;
  margin-top: 8px;
}

.hero__tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.15rem;
  color: #8a8a8a;
  margin-top: 16px;
  letter-spacing: 0.05em;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-hint span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, #7a1624, transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===================================================
   COUNTDOWN
   =================================================== */

.countdown {
  padding: 100px 0;
  background: #3e0a12;
  color: #f8f6f2;
}

.countdown .section-title {
  color: #f8f6f2;
}

.countdown .section-line {
  background: rgba(248, 246, 242, 0.3);
}

.countdown__timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.countdown__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.countdown__number {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  letter-spacing: 0.05em;
  line-height: 1;
}

.countdown__label {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248, 246, 242, 0.5);
  margin-top: 8px;
}

.countdown__sep {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 2.5rem;
  color: rgba(248, 246, 242, 0.2);
  align-self: flex-start;
  margin-top: 8px;
}

/* ===================================================
   DETAILS
   =================================================== */

.details {
  padding: 120px 0;
  background: #ffffff;
}

.details__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.details__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  background: #faf9f7;
  transition: background 0.4s ease, transform 0.4s ease;
}

.details__card:hover {
  background: #f5f3ef;
  transform: translateY(-2px);
}

.details__icon {
  font-size: 1.2rem;
  color: #7a1624;
  margin-bottom: 16px;
  opacity: 0.6;
}

.details__label {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #7a1624;
  margin-bottom: 12px;
}

.details__value {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #1a1a1a;
  letter-spacing: 0.03em;
}

.details__sub {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.82rem;
  color: #8a8a8a;
  margin-top: 8px;
}

/* ===================================================
   TIMELINE
   =================================================== */

.timeline {
  padding: 120px 0;
  background: #f8f6f2;
}

.timeline__list {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.timeline__list::before {
  content: '';
  position: absolute;
  left: 72px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, #7a1624 20%, #7a1624 80%, transparent);
}

.timeline__item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
}

.timeline__time {
  flex-shrink: 0;
  width: 56px;
  text-align: right;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: #7a1624;
  padding-top: 2px;
}

.timeline__dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f8f6f2;
  border: 1.5px solid #7a1624;
  margin-top: 6px;
  position: relative;
  z-index: 1;
  transition: background 0.3s ease, transform 0.3s ease;
}

.timeline__item:hover .timeline__dot {
  background: #7a1624;
  transform: scale(1.3);
}

.timeline__text strong {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 4px;
}

.timeline__text p {
  font-size: 0.85rem;
  color: #8a8a8a;
}

/* ===================================================
   LOCATION
   =================================================== */

.location {
  padding: 120px 0;
  background: #ffffff;
}

.location__content {
  text-align: center;
  margin-bottom: 48px;
}

.location__name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}

.location__address {
  font-size: 0.9rem;
  color: #8a8a8a;
  letter-spacing: 0.03em;
}

.location__map {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 40px;
  background: #f0eeeb;
}

.location__map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.5) contrast(1.05);
  transition: filter 0.5s ease;
}

.location__map:hover iframe {
  filter: grayscale(0) contrast(1);
}

.location__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .location__actions {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }

  .location__actions .btn {
    width: 100%;
    max-width: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: #5a0f1a;
  color: #ffffff;
}

.btn--primary:hover {
  background: #7a1624;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(90, 15, 26, 0.2);
}

.btn--outline {
  background: transparent;
  color: #5a0f1a;
  border: 1px solid #5a0f1a;
}

.btn--outline:hover {
  background: #5a0f1a;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
}

.btn svg {
  flex-shrink: 0;
}

/* ===================================================
   GALLERY
   =================================================== */

.gallery {
  padding: 120px 0;
  background: #f8f6f2;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery__item--tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery__item--wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.gallery__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ece9e4 0%, #ddd9d3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery__placeholder span {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b0aaa2;
  transition: opacity 0.3s ease;
}

.gallery__item:hover .gallery__placeholder {
  transform: scale(1.05);
}

.gallery__item:hover .gallery__placeholder span {
  opacity: 0.5;
}

/* ===================================================
   RSVP
   =================================================== */

.rsvp {
  padding: 120px 0;
  background: #ffffff;
}

.rsvp__subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: #8a8a8a;
  margin-top: -32px;
  margin-bottom: 48px;
}

.rsvp__form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.rsvp__field {
  position: relative;
}

.rsvp__field input,
.rsvp__field textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: #1a1a1a;
  background: transparent;
  border: none;
  border-bottom: 1px solid #ddd9d3;
  padding: 12px 0;
  outline: none;
  transition: border-color 0.3s ease;
  resize: none;
}

.rsvp__field input:focus,
.rsvp__field textarea:focus {
  border-bottom-color: #7a1624;
}

.rsvp__field label {
  position: absolute;
  left: 0;
  top: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  color: #b0aaa2;
  pointer-events: none;
  transition: all 0.3s ease;
}

.rsvp__field input:focus ~ label,
.rsvp__field input:not(:placeholder-shown) ~ label,
.rsvp__field textarea:focus ~ label,
.rsvp__field textarea:not(:placeholder-shown) ~ label {
  top: -14px;
  font-size: 0.7rem;
  color: #7a1624;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rsvp__radio-group {
  display: flex;
  gap: 24px;
}

.rsvp__radio {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #4a4a4a;
  transition: color 0.3s ease;
}

.rsvp__radio:hover {
  color: #1a1a1a;
}

.rsvp__radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #ddd9d3;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: border-color 0.3s ease;
  flex-shrink: 0;
}

.rsvp__radio input[type="radio"]:checked {
  border-color: #7a1624;
}

.rsvp__radio input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #7a1624;
}

/* ===================================================
   FOOTER
   =================================================== */

.footer {
  padding: 80px 0 48px;
  background: #faf9f7;
  text-align: center;
}

.footer__line {
  width: 60px;
  height: 1px;
  background: #7a1624;
  margin: 0 auto 40px;
}

.footer__names {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.footer__date {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: #8a8a8a;
  margin-bottom: 24px;
}

.footer__copy {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  color: #b0aaa2;
}

/* ===================================================
   RESPONSIVE
   =================================================== */

@media (max-width: 768px) {
  .details__grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .details__card {
    padding: 36px 20px;
  }

  .timeline__list::before {
    left: 60px;
  }

  .timeline__time {
    width: 44px;
    font-size: 0.78rem;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item--tall {
    grid-row: span 1;
    aspect-ratio: 1;
  }

  .gallery__item--wide {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
  }

  .btn {
    width: 100%;
    max-width: none;
  }

  .rsvp__radio-group {
    flex-direction: column;
    gap: 16px;
  }

  .countdown__block {
    min-width: 60px;
  }

  .countdown__sep {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero__names {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .gallery__item--wide {
    grid-column: span 1;
    aspect-ratio: 16 / 9;
  }

  .details,
  .timeline,
  .location,
  .gallery,
  .rsvp {
    padding: 80px 0;
  }

  .countdown {
    padding: 60px 0;
  }

  .container {
    padding: 0 20px;
  }

  .splash__names {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}
