/* Opening undangan Mufid & Aulia
   Edit nilai di :root untuk mengubah durasi dan warna. */
:root {
  --black: #050505;
  --white: #f7f5f0;
  --muted: rgba(247, 245, 240, .56);
  --line: rgba(247, 245, 240, .22);
  --intro-duration: 8.4s;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--black);
  color: var(--white);
}

body {
  font-family: "Cormorant Garamond", Georgia, serif;
  overflow-x: hidden;
}

button { font: inherit; }

[hidden] { display: none !important; }

.opening {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100svh;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: var(--black);
}

.text-stage {
  position: relative;
  width: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.moving-line {
  position: absolute;
  left: 0;
  top: 50%;
  width: max-content;
  max-width: none;
  margin: 0;
  white-space: nowrap;
  text-align: center;
  font-weight: 300;
  line-height: 1;
  opacity: 0;
  transform: translate3d(110vw, -50%, 0);
  will-change: transform, opacity;
}

.moving-line--eyebrow {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(10px, 1.8vw, 13px);
  letter-spacing: .42em;
}

.moving-line--names {
  font-size: clamp(42px, 10vw, 100px);
  letter-spacing: .08em;
}

.ampersand {
  display: inline-block;
  padding: 0 .13em;
  font-style: italic;
  font-weight: 300;
}

.moving-line--date {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(9px, 1.6vw, 11px);
  letter-spacing: .3em;
}
.moving-line--names {
    direction: ltr;
    unicode-bidi: normal;
    text-align: left;
}

.light-point {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #000000;
  opacity: 0;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 9px 3px rgba(14, 13, 13, 0.2),
              0 0 28px 8px rgba(255,255,255,.06);
  animation: point-glow 2.4s ease-in-out infinite alternate;
}

@keyframes point-glow {
  from { opacity: .22; transform: translate(-50%, -50%) scale(.8); }
  to { opacity: .8; transform: translate(-50%, -50%) scale(1.15); }
}

.skip-button {
  position: absolute;
  right: clamp(18px, 4vw, 44px);
  bottom: clamp(22px, 4vh, 38px);
  padding: 9px 0 9px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 9px;
  letter-spacing: .22em;
  cursor: pointer;
  transition: color .25s ease;
}

.skip-button span { padding-left: 5px; }
.skip-button:hover { color: var(--white); }

.progress-line {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,.08);
}

.progress-line span {
  display: block;
  width: 0;
  height: 100%;
  background: rgba(255,255,255,.72);
}

.invitation {
  min-height: 100svh;
  min-height: 100vh;
  padding: 28px;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--black);
}
#invitation {
  position: relative;
  background-image:
    linear-gradient(
      rgba(0, 0, 0, 0.60),
      rgba(0, 0, 0, 0.60)
    ),
    url("../images/invitation.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.invitation:not([hidden]) { display: flex; }

.invitation-content {
  width: min(100%, 560px);
  animation: reveal .9s ease both;
}

.invitation-kicker, .invitation-date {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .32em;
}

.invitation h2 {
  margin: 22px 0;
  font-size: clamp(48px, 11vw, 92px);
  line-height: .95;
  font-weight: 300;
  letter-spacing: .015em;
}

.invitation h2 span { font-style: italic; }

.ornament {
  width: 36px;
  height: 1px;
  margin: 28px auto;
  background: var(--line);
}

.invitation-note {
  max-width: 350px;
  margin: 28px auto;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

.open-button {
  margin-top: 14px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 9px;
  letter-spacing: .22em;
  cursor: pointer;
  transition: color .25s ease, background .25s ease, border-color .25s ease;
}

.open-button:hover {
  color: var(--black);
  background: var(--white);
  border-color: var(--white);
}

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

@media (max-width: 480px) {
  .text-stage { min-height: 180px; }
  .moving-line--eyebrow { letter-spacing: .6em; }
  .moving-line--names { letter-spacing: .04em; }
  .moving-line--date { letter-spacing: .18em; }
  .skip-button { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .light-point { animation: none; opacity: .4; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}


/* TYPEWRITER EFFECT — teks diam di tengah */

.moving-line {
  left: 50%;
  top: 50%;
  width: max-content;
  max-width: calc(100vw - 32px);
  white-space: pre;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: none !important;
}

.moving-line.is-active {
  opacity: 1;
}

.moving-line.is-typing::after {
  content: "";
  display: inline-block;
  height: 0.9em;
  margin-left: 5px;
  border-right: 1px solid #fff;
  vertical-align: -0.08em;
  animation: typing-cursor 0.7s steps(1) infinite;
}

@keyframes typing-cursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.moving-line--names {
  font-size: clamp(30px, 7vw, 76px);
}

.text-stage {
  min-height: 180px;
}

.moving-line {
  transition: opacity 0.7s ease;
}

.moving-line.is-typing::after {
  display: none !important;
}


/* Hilangkan titik/kursor putih pada teks pembuka */
.moving-line::after,
.moving-line.is-typing::after,
#eyebrow::after,
#names::after,
#date::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  animation: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* DASAR ISI UNDANGAN */
#invitationContent {
  background: #f8f5ef;
  color: #292720;
  font-family: Georgia, "Times New Roman", serif;
}

#invitationContent[hidden] {
  display: none !important;
}

.section {
  padding: 80px 22px;
  text-align: center;
}

.section-kicker {
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 4px;
  margin-bottom: 24px;
}

.section h2 {
  font-size: clamp(25px, 5vw, 38px);
  font-weight: 400;
  line-height: 1.4;
}

.prayer-section {
  background: #f8f5ef;
}

.arabic {
  font-size: clamp(25px, 5vw, 38px);
  line-height: 1.9;
}

.prayer-text,
.translation,
.couple-message,
.gallery-intro {
  max-width: 620px;
  margin: 24px auto;
  font-size: 15px;
  line-height: 1.9;
}

.prayer-quote {
  margin-top: 38px;
  font-size: 24px;
}

.translation {
  font-style: italic;
  font-size: 13px;
}

/* NAMA PENGANTIN */
.couple-section {
  background: #eeeadf;
}

.couple-names {
  font-size: clamp(36px, 8vw, 64px) !important;
}

.couple-names span {
  font-style: italic;
}

.couple-grid {
  max-width: 850px;
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.person img {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.person h3 {
  font-size: 28px;
  font-weight: 400;
  margin: 20px 0 8px;
}

.person p {
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.8;
}

.parent-name {
  font-weight: 600;
}

.couple-ampersand {
  font-size: 32px;
  font-style: italic;
}

/*landing*/

.landing {
  min-height: 100svh;
  min-height: 100vh;
  padding: 15px;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-image:
    linear-gradient(
      rgba(0, 0, 0, 0.60),
      rgba(0, 0, 0, 0.60)
    ),
    url("../images/cover2.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.landing:not([hidden]) { display: flex; }

.landing-content {
  width: min(100%, 560px);
  animation: reveal .9s ease both;
}

.landing-kicker, .landing-date {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .32em;
}

.landing h1 {
  margin: 22px 0;
  font-size: clamp(48px, 11vw, 92px);
  line-height: .95;
  font-weight: 300;
  letter-spacing: .015em;
}

.landing h2 span { font-style: italic; }

.ornament {
  width: 36px;
  height: 1px;
  margin: 28px auto;
  background: var(--line);
}

.landing-note {
  max-width: 350px;
  margin: 28px auto;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}


/* LOKASI ACARA */
.location-section {
  background: #f8f5ef;
}

.event-card {
  max-width: 540px;
  margin: 32px auto 0;
  padding: 35px 24px;
  /* border: 1px solid #d5cbb8; */
}

.event-card h2 {
  font-size: 35px;
  font-weight: 400;
}

.event-card p {
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.8;
}

.event-divider {
  width: 30px;
  height: 1px;
  background: #b6a88f;
  margin: 28px auto;
}

.maps-button {
  display: inline-block;
  margin-top: 22px;
  padding: 14px 24px;
  border: 3px solid #eeeadf;
  color: #eeeadf;
  text-decoration: none;
  font: 18px Arial, sans-serif;
  letter-spacing: 2px;
}

/* GALERI FOTO */
.gallery-section {
  background: #eeeadf;
}

.gallery-grid {
  max-width: 900px;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Font handwriting khusus judul Galeri Foto */
.gallery-section h2 {
  font-family: 'Allura', cursive;
  font-size: 40px;
  font-weight: 500;
}

/* Memperdekat judul dan foto galeri */
.gallery-section {
  padding-top: 35px;
  padding-bottom: 40px;
}

.gallery-section .section-kicker {
  margin-bottom: 12px;
}

.gallery-section h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.gallery-intro {
  margin-top: 8px;
  margin-bottom: 18px;
}

.gallery-grid {
  margin-top: 18px;
  gap: 8px;
}


/* PENUTUP */
.closing-section {
  background: #292720;
  color: #f8f5ef;
}

.closing-section p {
  font-size: 14px;
  line-height: 1;
}

.closing-section h2 {
  margin-top: 15px;
  font-style: italic;
}

/* TAMPILAN HP */
@media (max-width: 560px) {
  .section {
    padding: 60px 18px;
  }

  .couple-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .couple-ampersand {
    margin: -8px 0;
  }

  .person img {
    max-width: 240px;
  }

  .gallery-grid {
    gap: 8px;
  }
}

/* KADO DIGITAL */
.gift-section {
  background: #f8f5ef;
}

.gift-intro,
.rsvp-intro {
  max-width: 580px;
  margin: 20px auto 32px;
  font-size: 14px;
  line-height: 1.9;
}



.bank-label {
  font: 10px Arial, sans-serif;
  letter-spacing: 3px;
  color: #8a7b61;
}

.gift-card h3 {
  font-size: 23px;
  font-weight: 400;
  margin: 14px 0;
}

.account-name {
  font: 13px Arial, sans-serif;
}

.account-number {
  overflow-wrap: anywhere;
  font: 600 15px Arial, sans-serif;
  letter-spacing: 1px;
  margin: 20px 0;
}


/* =====================================
   KADO DIGITAL - BANK CARD DESIGN
===================================== */

/* AREA DUA KARTU */
.gift-section .gift-grid {
    display: grid;
    grid-template-columns: repeat(2, 288px);
    justify-content: center;
    align-items: stretch;
    gap: 20px;

    width: 100%;
    max-width: 100%;
    margin: 35px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* KARTU REKENING */
.gift-section .gift-card {
    position: relative;
    display: block;

    width: 288px;
    min-width: 0;
    min-height: 192px;
    padding: 24px;

    box-sizing: border-box;
    overflow: hidden;

    color: #ffffff;
    text-align: left;

    background: rgba(65, 65, 60, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* BAGIAN ATAS KARTU */
.gift-section .card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    margin-bottom: 27px;
}

/* NAMA BANK */
.gift-section .card-top h3 {
    margin: 0;
    padding: 0;

    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
}

/* CHIP KARTU EMAS */
.gift-section .card-chip {
    position: relative;

    width: 42px;
    height: 32px;

    flex-shrink: 0;

    border: 1px solid #b98235;
    border-radius: 6px;

    background: linear-gradient(
        135deg,
        #bd7926,
        #ffe3a4,
        #d3943b
    );
}

/* GARIS CHIP HORIZONTAL */
.gift-section .card-chip:before {
    content: "";

    position: absolute;
    top: 50%;
    left: 0;

    width: 100%;

    border-top: 1px solid rgba(105, 66, 24, 0.7);
}

/* GARIS CHIP VERTIKAL */
.gift-section .card-chip:after {
    content: "";

    position: absolute;
    top: 0;
    left: 50%;

    height: 100%;

    border-left: 1px solid rgba(105, 66, 24, 0.7);
}

/* BAGIAN TENGAH CHIP */
.gift-section .card-chip span {
    position: absolute;
    inset: 7px 10px;

    border: 1px solid rgba(105, 66, 24, 0.7);
    border-radius: 3px;
}

/* NOMOR REKENING */
.gift-section .account-number {
    display: block;

    margin: 0 0 20px;
    padding: 0;

    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 600;

    letter-spacing: 1.5px;
    line-height: 1.4;

    white-space: nowrap;
    overflow-wrap: normal;
}

/* TOMBOL SALIN */
.gift-section .copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-width: 103px;
    min-height: 40px;

    padding: 10px 17px;

    border: none;
    border-radius: 30px;

    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;

    cursor: pointer;
    transition: background 0.2s ease;
}

/* HOVER TOMBOL */
.gift-section .copy-button:hover {
    background: rgba(255, 255, 255, 0.30);
}

/* IKON SALIN */
.gift-section .copy-button svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

/* =====================================
   RESPONSIVE TABLET DAN HP
===================================== */

@media screen and (max-width: 650px) {

    .gift-section .gift-grid {
        grid-template-columns: minmax(0, 288px);
        justify-content: center;
        gap: 18px;

        padding: 0 15px;
    }

    .gift-section .gift-card {
        width: 100%;
        min-height: 192px;
        padding: 24px;
    }

    .gift-section .account-number {
        font-size: 19px;
        letter-spacing: 1.5px;
    }
}

/* HP LAYAR SANGAT KECIL */
@media screen and (max-width: 350px) {

    .gift-section .gift-card {
        padding: 20px;
    }

    .gift-section .account-number {
        font-size: 17px;
        letter-spacing: 1px;
    }
}


.copy-button,
.rsvp-button {
  border: 1px solid #292720;
  background: #292720;
  color: #fff;
  padding: 14px 18px;
  font: 10px Arial, sans-serif;
  letter-spacing: 1.5px;
  cursor: pointer;
}

.copy-button:hover,
.rsvp-button:hover {
  background: #514a3e;
}

.gift-thanks {
  margin: 30px auto 0;
  font-size: 13px;
  font-style: italic;
}

/* FORM RSVP */
.rsvp-section {
  background: #eeeadf;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 540px;
  margin: 0 auto;
  text-align: left;
}

.rsvp-form label {
  margin-top: 12px;
  font: 12px Arial, sans-serif;
  letter-spacing: 0.5px;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid #d5cbb8;
  border-radius: 0;
  background: #fdfbf7;
  color: #292720;
  font: 14px Arial, sans-serif;
}

.rsvp-form textarea {
  resize: vertical;
}

.rsvp-button {
  width: 100%;
  margin-top: 18px;
  padding: 16px;
}

.rsvp-feedback {
  font: 13px Arial, sans-serif;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .gift-grid {
    grid-template-columns: 1fr;
  }

  .gift-card {
    padding: 26px 18px;
  }
}


/* COUNTDOWN PERNIKAHAN */
.countdown-section {
  background: #292720;
  color: #f8f5ef;
  padding: 80px 20px;
}

.countdown-section .section-kicker {
  color: #c9bda7;
}

.countdown-section h2 {
  margin-bottom: 12px;
  font-weight: 400;
}

.countdown-names {
  margin: 0 0 35px;
  color: #c9bda7;
  font-size: 19px;
  font-style: italic;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.countdown-item {
  padding: 22px 8px;
  border: 1px solid #655d4e;
  background: rgba(255, 255, 255, 0.035);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.countdown-item span {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.countdown-item small {
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 2px;
  color: #c9bda7;
}

.countdown-message {
  margin: 28px auto 0;
  font-size: 13px;
  line-height: 1.8;
  color: #d7d0c4;
}

@media (max-width: 400px) {
  .countdown-grid {
    gap: 6px;
  }

  .countdown-item {
    padding: 18px 3px;
  }

  .countdown-item small {
    font-size: 8px;
    letter-spacing: 1px;
  }
}

/* Background rsvp */

.rsvp-section {
  background-image:
    linear-gradient(
      rgba(0, 0, 0, 0.4),
      rgba(0, 0, 0, 0.4)
    ),
    url("../images/location.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

/* Background rsvp */

.couple-section {
  background-image:
    linear-gradient(
      rgba(0, 0, 0, 0.4),
      rgba(0, 0, 0, 0.4)
    ),
    url("../images/mufid1.jpeg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
Pastikan teks tetap terbaca */
 .couple-section h1,
.couple-section h2,
.couple-section p,
.countdown-section h1,
.countdown-section h2,
.countdown-section p,
.countdown-section .countdown-item {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
} 

.location-section {
  background-image:
    linear-gradient(
      rgba(0, 0, 0, 0.4),
      rgba(0, 0, 0, 0.4)
    ),
    url("../images/mufidBW.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
Pastikan teks tetap terbaca */
 .couple-section h1,
.couple-section h2,
.couple-section p,
.countdown-section h1,
.countdown-section h2,
.countdown-section p,
.countdown-section .countdown-item {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
} 


/* Motion fade in + slide up */
.motion-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 750ms ease,
    transform 750ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--motion-delay, 0ms);
}

.motion-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .motion-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* Couple Section */
.couple-section {
  background: #fff;
  color: #49383b;
  padding: 50px 24px 50px;
}

.couple-profile {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 60px;
  text-align: left;
}

.couple-photo {
  display: block;
  width: 50%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  border-radius: 0 0 42% 0;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
  margin-bottom: 44px;
}

.couple-label {
  font-family: "Allura", cursive;
  font-size: 40px;
  font-weight: 500;
  color: #806568;
  margin: 0 0 20px;
}

.couple-profile {
  font-family: "Cursive", serif;
  font-size: 15px;
  font-size: clamp(36px, 8vw, 52px);
  line-height: 1;
  color: #49383b;
  margin: 0 0 10px;
}

.couple-parents {
  font-family: "Cursive", serif;
  font-size: 15px;
  line-height: 1;
  color: #806568;
  margin-bottom: 15px;
}

.btn-instagram-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    border-radius: 12px;
    /* Gradient resmi Instagram terbaru */
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
    text-decoration: none;
  }

  .btn-instagram-box:hover {
    transform: scale(1.05);
  }

  .btn-instagram-box svg {
    width: 40px;
    height: 40px;
    fill: #ffffff;
  }
  .instagram-username {
    font-family: serif; /* Menyesuaikan dengan gaya font nama di atasnya */
    font-size: 16px;
    font-weight: 500;
    color: #4a4a4a; /* Sesuaikan warna teks jika diperlukan */
  }

/* Tampilan layar besar */
@media (min-width: 768px) {
  .couple-section {
    padding: 70px 8%;
  }

  .couple-profile {
    max-width: 900px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    column-gap: 48px;
    align-items: center;
  }

  .couple-photo {
    grid-column: 1;
    grid-row: 1 / span 4;
    margin: 0;
  }

  .couple-label,
  .couple-profile h2,
  .couple-parents,
  .couple-instagram {
    grid-column: 2;
  }
}

/* Layout Couple: foto Mufid kiri, Aulia kanan */
.couple-profile {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  column-gap: 40px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 60px;
}

/* Foto Mufid di sebelah kiri */
.couple-profile:first-child .couple-photo {
  grid-column: 1;
  grid-row: 1 / span 4;
  border-radius: 0 0 42% 0;
}

/* Foto Aulia di sebelah kanan */
.couple-profile:nth-child(2) .couple-photo {
  grid-column: 2;
  grid-row: 1 / span 4;
  border-radius: 0 0 0 42%;
}

/* Teks Mufid di sebelah kanan foto */
.couple-profile:first-child .couple-label,
.couple-profile:first-child h2,
.couple-profile:first-child .couple-parents,
.couple-profile:first-child .couple-instagram {
  grid-column: 2;
}

/* Teks Aulia di sebelah kiri foto */
.couple-profile:nth-child(2) .couple-label,
.couple-profile:nth-child(2) h2,
.couple-profile:nth-child(2) .couple-parents,
.couple-profile:nth-child(2) .couple-instagram {
  grid-column: 1;
}

/* Ukuran dan tampilan foto */
.couple-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: 0;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.14);
}

/* Tampilan ponsel: tetap vertikal dan rapi */
@media (max-width: 600px) {
  .couple-profile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: 65px;
  }

 @media (max-width: 600px) {
  .couple-profile .couple-photo {
    width: 75%;
    max-width: 280px;
    margin: 0 auto 10px;
  }
}

  .couple-profile:first-child .couple-photo {
    border-radius: 0 0 42% 0;
  }

  .couple-profile:nth-child(2) .couple-photo {
    border-radius: 0 0 0 42%;
  }
}

@media (max-width: 600px) {
  .couple-profile h2 {
    font-size: 30px !important;
    line-height: 1.15;
    text-align: left;
  }
}
/* Mengatur jarak nama pengantin dengan nama orang tua */
.couple-profile h2 {
    margin-bottom: 8px;
}

.couple-profile p {
    margin-top: 4px;
}



/* Styling Tombol Musik Melayang */
#music-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999; /* Pastikan selalu berada di lapisan paling atas */
    background-color: #ff4b72; /* Warna latar tombol (sesuaikan selera) */
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#music-toggle:hover {
    transform: scale(1.1);
    background-color: #e03e60;
}

/* Animasi berputar saat musik menyala */
.rotating {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.galeri-pinterest {
    columns: 3;
    column-gap: 12px;
    padding: 15px;
}

.galeri-pinterest .foto-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 12px;
    break-inside: avoid;
    overflow: hidden;
    border-radius: 12px;
}

.galeri-pinterest .foto-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.galeri-pinterest .foto-item:hover img {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .galeri-pinterest {
        columns: 2;
        column-gap: 10px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .galeri-pinterest {
        columns: 2;
        column-gap: 8px;
        padding: 8px;
    }

    .galeri-pinterest .foto-item {
        margin-bottom: 8px;
    }
}




/* Tombol musik disembunyikan pada opening dan cover undangan. */
#music-toggle {
  display: none;
}

#music-toggle.music-visible {
  display: flex;
}


/* Instagram: logo bergaya terkini + username yang bisa diklik */
.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  text-decoration: none;
  color: inherit;
  width: fit-content;
  max-width: 100%;
}
.instagram-logo {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease;
}
.instagram-logo svg { display: block; width: 100%; height: 100%; }
.instagram-link:hover .instagram-logo { transform: scale(1.08); }
.instagram-username {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
  color: inherit;
}

/* Tombol musik berbentuk piringan hitam, berputar hanya saat musik aktif.
   Tombol tetap tersembunyi sampai konten undangan dibuka. */
#music-toggle {
  display: none;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid #d7c5a0;
  border-radius: 50%;
  background: #292720;
  color: #f8f5ef;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 18px rgba(0,0,0,.28);
}
#music-toggle.music-visible { display: flex; }
#music-toggle svg { display: block; flex: 0 0 auto; }
#music-toggle:hover { background: #403a30; }
#music-toggle.rotating { animation: spin 3s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  #music-toggle.rotating { animation-duration: 12s; }
}


/* GALERI KLIK + SLIDESHOW / LIGHTBOX */
.galeri-pinterest .foto-item { cursor: zoom-in; }
.galeri-pinterest .foto-item img { cursor: zoom-in; }
.gallery-lightbox {
  position: fixed; inset: 0; z-index: 10000; display: none;
  align-items: center; justify-content: center; padding: 64px 72px 48px;
  background: rgba(0, 0, 0, .94); backdrop-filter: blur(5px);
}
.gallery-lightbox.is-open { display: flex; }
.gallery-lightbox-figure {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  max-width: min(100%, 1100px); max-height: 100%; margin: 0;
}
.gallery-lightbox-figure img {
  display: block; max-width: 100%; max-height: calc(100vh - 130px);
  width: auto; height: auto; object-fit: contain; border-radius: 5px;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
#gallery-lightbox-counter { color: #fff; font: 14px/1.4 Arial, sans-serif; margin-top: 14px; letter-spacing: 1px; }
.gallery-lightbox button {
  position: absolute; display: grid; place-items: center; border: 0;
  color: #fff; background: rgba(255,255,255,.12); cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.gallery-lightbox button:hover { background: rgba(255,255,255,.25); }
.gallery-lightbox-close { top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%; font-size: 34px; line-height: 1; }
.gallery-lightbox-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 58px; border-radius: 12px; font-size: 25px; }
.gallery-lightbox-nav:hover { transform: translateY(-50%) scale(1.05); }
.gallery-lightbox-prev { left: 16px; }
.gallery-lightbox-next { right: 16px; }
body.gallery-lightbox-open { overflow: hidden; }
@media (max-width: 600px) {
  .gallery-lightbox { padding: 60px 12px 36px; }
  .gallery-lightbox-figure img { max-height: calc(100vh - 150px); max-width: 100%; }
  .gallery-lightbox-nav { width: 40px; height: 48px; font-size: 21px; background: rgba(0,0,0,.35) !important; }
  .gallery-lightbox-prev { left: 8px; } .gallery-lightbox-next { right: 8px; }
  .gallery-lightbox-close { top: 10px; right: 10px; }
}



/* BUKU UCAPAN: ditampilkan dari data Google Sheets */
.guestbook-panel {
  width: min(100%, 760px);
  margin: 42px auto 0;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(145, 116, 88, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 32px rgba(80, 56, 37, 0.07);
  text-align: left;
}
.guestbook-heading { text-align: center; margin-bottom: 20px; }
.guestbook-heading h3 { margin: 5px 0 8px; font-size: clamp(1.45rem, 4vw, 2rem); }
.guestbook-heading > p:last-child { margin: 0; opacity: .78; }
.guestbook-status { text-align: center; font-size: .92rem; opacity: .78; }
.guestbook-list { display: grid; gap: 12px; }
.guestbook-card {
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(145, 116, 88, 0.18);
}
.guestbook-name { margin: 0 0 7px; font-size: 1rem; color: #72553f; }
.guestbook-message { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.guestbook-meta { margin: 9px 0 0; font-size: .78rem; opacity: .6; }
.guestbook-more {
  display: block;
  margin: 18px auto 0;
  padding: 10px 18px;
  border: 1px solid #b99a7a;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.guestbook-more[hidden] { display: none; }
/* Optimasi teks opening untuk HP */
@media (max-width: 600px) {
  .moving-line {
    transition: none !important;
    will-change: auto;
  }

  .moving-line--eyebrow {
    letter-spacing: 0.2em;
  }

  .moving-line--names {
    letter-spacing: 0.03em;
  }

  .moving-line--date {
    letter-spacing: 0.15em;
  }
}
/* PERBAIKAN KHUSUS TEKS THE WEDDING OF */
#eyebrow {
  display: block;
  visibility: visible;
  left: 50%;
  top: 50%;
  width: calc(100vw - 30px);
  max-width: calc(100vw - 30px);
  text-align: center;
  white-space: nowrap;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(11px, 3vw, 14px);
  letter-spacing: clamp(0.12em, 1.5vw, 0.25em);
  line-height: 1.5;
  color: #f7f5f0;
  transform: translate(-50%, -50%);
}

#eyebrow.is-active {
  visibility: visible;
  opacity: 1;
}
/* Efek mengetik khusus THE WEDDING OF */
#eyebrow span {
  display: inline-block;
  opacity: 0;
  transition: opacity 120ms linear;
}

.guest-name {
    text-align: center;
    margin: 22px 0 18px;
    color: #f7f5f0;
}

.guest-name span {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.guest-name h3 {
    font-family: inherit;
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 7px;
    letter-spacing: 1px;
}

.guest-name p {
    font-size: 10px;
    letter-spacing: 1px;
    margin: 0;
}


/* =====================================
   LANDING OPENING - MENGIKUTI REFERENSI
   Foto menggunakan file images/cover.png yang sudah dipakai sebelumnya.
===================================== */
#invitationContent .landing {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100svh;
  min-height: 100vh;
  padding: 0 18px;
  overflow: hidden;
  isolation: isolate;
  color: #f8f5ef;
  background: #292720;
  text-align: center;
}

#invitationContent .landing-photo {
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 88%;
  background-image: url("../images/cover2.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  /* Geser foto ke atas agar wajah dan badan pasangan lebih terlihat. */
  background-position: center 58%;
  filter: grayscale(1) contrast(1.28) brightness(1.08);
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, .12) 15%,
    rgba(0, 0, 0, .82) 30%,
    #000 58%,
    rgba(0, 0, 0, .92) 78%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, .12) 15%,
    rgba(0, 0, 0, .82) 30%,
    #000 58%,
    rgba(0, 0, 0, .92) 78%,
    transparent 100%
  );
}
#invitationContent .landing::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 17%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(248, 245, 239, 0),
    rgba(248, 245, 239, .72) 72%,
    #f8f5ef 100%
  );
}

#invitationContent .landing-content {
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
  margin: 0 auto;
  padding-top: clamp(78px, 13vh, 150px);
  animation: reveal .9s ease both;
}

#invitationContent .landing-kicker {
  margin: 0 0 30px;
  color: rgba(248, 245, 239, .9);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(10px, 1.8vw, 13px);
  font-weight: 400;
  letter-spacing: .42em;
}

#invitationContent .landing h1 {
  margin: 0;
  color: #f8f5ef;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(43px, 8.5vw, 76px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: .005em;
}

#invitationContent .landing h1 span {
  font-style: italic;
  font-weight: 400;
}

#invitationContent .landing-hashtag {
  margin: 34px 0 0;
  color: rgba(248, 245, 239, .88);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(10px, 1.7vw, 13px);
  letter-spacing: .34em;
}

/* =====================================
   SECTION VIDEO YOUTUBE - SETELAH GALERI
===================================== */
.youtube-section {
  background: #f8f5ef;
  color: #292720;
  padding-top: 55px;
  padding-bottom: 65px;
}

.youtube-section h2 {
  margin: 0 0 10px;
  font-family: "Allura", cursive;
  font-size: clamp(36px, 7vw, 48px);
  font-weight: 500;
}

.youtube-intro {
  margin: 0 auto 25px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.7;
  opacity: .78;
}

.youtube-frame {
  position: relative;
  width: min(100%, 850px);
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #171612;
  box-shadow: 0 14px 34px rgba(41, 39, 32, .14);
}

.youtube-frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 600px) {
  #invitationContent .landing {
    min-height: 100svh;
  }

  #invitationContent .landing-content {
    padding-top: clamp(82px, 15vh, 125px);
  }

  #invitationContent .landing-kicker {
    margin-bottom: 27px;
    letter-spacing: .34em;
  }

  #invitationContent .landing-photo {
    height: 88%;
    background-position: center 58%;
  }

  #invitationContent .landing-hashtag {
    margin-top: 30px;
    letter-spacing: .28em;
  }

  .youtube-section {
    padding: 48px 16px 55px;
  }

  .youtube-frame {
    border-radius: 10px;
  }
}



.youtube-fallback {
  margin: 14px auto 0;
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.6;
  opacity: .78;
}

.youtube-fallback a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
