@font-face {
    font-family: 'Sangkuriang';
    src: url('../../fonts/Sangkuriang.woff2') format('woff2'),
         url('../../fonts/Sangkuriang.woff') format('woff'),
         url('../../fonts/Sangkuriang.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    --accent: #2b2b1f;
    --muted: #ffffff;
    --primary-color: #1f3025; /* Deep Sage */
    --accent-color: #d4a373;   /* Muted Gold/Tan */
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --max-width: 1100px;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--muted) !important;
    color: var(--accent) !important;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.hidden { display: none; }

/* --- HERO GATES --- */
.hero-gates {

    position: relative;

    height: 100vh;

    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    overflow: hidden;

}



.bg-overlay {

    position: absolute;

    inset: 0;

    background-size: cover;

    background-position: center;

    transform: scale(1.1);

    animation: zoomOutEffect 15s ease-out forwards;

    z-index: 1;

}



.gates-content {

    position: relative;

    z-index: 2;

    width: 95%;

    max-width: 600px;

    display: flex;

    justify-content: center;

    align-items: center;

}



.frame-wrapper {

    position: relative;

    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

}



.frame-border {

    width: 100%;

    height: auto;

    display: block;

    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));

}



.card-glass-content {

    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    padding: 10px;

    text-align: center;

}



.mini-icon {

    width: 70px;

    height: auto;

    margin-bottom: 15px;

    opacity: 0.8;

}



.top-label {

    font-family: 'Montserrat', sans-serif;

    font-size: 14px;

    letter-spacing: 1px;

    text-transform: uppercase;

    color: black;

    margin-bottom: 10px;

}



.main-title {

    font-family: 'Sangkuriang', serif;

    font-size: clamp(45px, 10vw, 60px);

    color: black;

    margin: 5px 0;

    line-height: 1.1;

}



.ampersand {

    font-family: 'Playfair Display', serif;

    font-style: italic;

    display: block;

    font-size: 24px;

    color: #5C0120;

    margin: 2px 0;

}



.wedding-date {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin: 5px 0 5px 0px;

    color: black;

    font-family: 'Montserrat', sans-serif;

    letter-spacing: 2px;

    font-size: 15px;

}



/* Invite Box */

.dear { font-family: 'Playfair Display', serif; color: black; font-size: 16px; margin-bottom: 5px;}

#guestName {

    font-family: 'Playfair Display', serif;

    font-size: 18px;

    color: #5C0120;

    display: block;

    margin-top: 5px;

}

.subtitle { font-family: 'Playfair Display', serif; font-size: 14px; color: black; margin-bottom: 25px; }



/* Premium Button */

.open-btn-premium {

    display: inline-block;

    padding: 14px 35px;

    background-color: #5C0120;

    color: #fff;

    font-family: 'Playfair Display', serif;

    text-decoration: none;

    border-radius: 50px;

    transition: all 0.3s ease;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 1px;

}



.open-btn-premium:hover {

    transform: translateY(-3px);

    box-shadow: 0 10px 15px rgba(0,0,0,0.15);

}



/* Animations */

.reveal-item {

    opacity: 0;

    transform: translateY(20px);

    animation: fadeInUp 1s ease forwards;

    animation-delay: 0.5s;

}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 480px) {
    .gates-content {
        width: 92%;
        max-width: 380px;
    }

    .frame-wrapper {
        position: relative;
        display: block;
        width: 100%;
        height: 580px;
    }

    .frame-border {
        display: block !important;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: fill;
        z-index: 1;
    }

    .card-glass-content {
        position: relative;
        z-index: 2;
        height: 100%;
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap:12px;
    }

    .mini-icon {
        width: 45px;
        height: auto;
        margin: 0 auto 5px auto;
    }

    .top-label {
        font-family: 'Montserrat', sans-serif;
        font-size: 10px;
        letter-spacing: 1px;
        margin: 0 0 1px 0;
        color: black;
    }

    .main-title {
        font-family: 'Sangkuriang', serif;
        font-size: 38px;
        margin: 0;
        line-height: 1;
        color: black;
    }

    .ampersand {
        font-family: 'Playfair Display', serif;
        font-size: 22px;
        color: #5C0120;
        margin: -2px 0;
        display: block;
    }

    .wedding-date {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 8px 0 !important;
        line-height: 1;
        color: black;
        font-family: 'Montserrat', sans-serif;
        font-size: 12px;
    }


    .wedding-date p {
        margin: 0;
    }

    .invite-box {
        margin: 5px 0 0 0;
        padding: 0;
    }

    .dear {
        font-family: 'Playfair Display', serif;
        color: black;
        font-size: 15px;
        margin: 0 0 2px 0;
        line-height: 1.2;
    }

    #guestName {
        font-size: 18px;
        color: #5C0120;
        display: block;
        margin: 7px 0 10px 0;
        line-height: 1;
    }

    .subtitle {
        font-family: 'Playfair Display', serif;
        font-size: 12px;
        color: black;
        margin: 0 0 15px 0;
        line-height: 1.3;
    }

    .open-btn-premium {
        display: inline-block;
        padding: 12px 32px;
        background-color: #5C0120;
        color: #fff;
        font-family: 'Playfair Display', serif;
        text-decoration: none;
        border-radius: 50px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 1px;
        border: none;
    }
}

/* Logic Page Out */
body.fade-out {
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-gates.fade-away {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
}

/* SECTION PERTAMA */
#vinylControl {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
}

/* Animasi vinyl muter */
#vinylControl.playing {
  animation: spin 4s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsif Mobile */
@media (max-width: 768px) {
  #vinylControl {
    width: 50px;
    height: 50px;
    bottom: 15px;
    left: 15px;
  }
}

.section-awalan {
  background: url('../../images/alvin-takeru/3.webp') no-repeat center center/cover;
  height: 120vh;
  width: 100%;
  display: flex;
  align-items: flex-start; 
  justify-content: center; 
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  padding-top: 4rem; 
}

/* Overlay hitam */
.section-awalan::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45); 
  z-index: 1;
}

.awalan-content {
  position: relative; 
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  
}

.awalan-subtitle {
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-family: 'Libertinus Math';
}

.awalan-names {
  font-size: 3.2rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin: 0.5rem 0;
}

.awalan-names span {
  font-family: 'Playfair Display', serif;
}

.awalan-date {
  margin-top: 2rem;
  font-size: 1rem;
  letter-spacing: 4px;
  font-family: 'Montserrat';
}

.awalan-verse {
  margin-top: 2rem;
  font-size: 1rem;
  color: #f0f0f0;
  font-family: 'Libertinus Math';
}

.awalan-verse-ref {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
  color: #ffffff;
  font-family: 'Libertinus Math';
}

/* Responsive */
@media screen and (max-width: 768px) {
  .awalan-names {
    font-size: 2rem;
  }

  .awalan-subtitle {
    font-size: 0.85rem;
  }

  .awalan-date {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 480px) {

  .awalan-content {
    padding: 1.5rem;
  }

  .awalan-verse {
    font-size: 1rem;
  }
}

@media screen and (max-width: 375px) {
  .awalan-names {
    font-size: 1.7rem;
  }

  .awalan-subtitle {
    font-size: 0.85rem;
  }

  .awalan-date {
    font-size: 0.9rem;
  }
}

/* ===== AWALAN SEQUENTIAL ANIMATION ===== */
.fade-item {
  opacity: 0;
  transform: translateY(30px);
  animation: awalanFadeUp 1s ease forwards;
}

/* URUTAN MUNCULNYA */
.fade-item:nth-child(1) { animation-delay: 0.3s; }
.fade-item:nth-child(2) { animation-delay: 0.4s; }
.fade-item:nth-child(3) { animation-delay: 0.6s; }
.fade-item:nth-child(4) { animation-delay: 0.8s; }
.fade-item:nth-child(5) { animation-delay: 1s; }

/* KEYFRAME ANIMASI */
@keyframes awalanFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===== COUPLE ===== */
.couple-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    padding: 20px;
}

.bg-couple-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.couple-container {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.mini-icon-couple {
    width: 40px;
    margin-bottom: 8px;
}

.top-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 30px;
}

.person-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.nick-name {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: #5C0120;
    margin-bottom: 4px;
}

.line-separator {
    width: 40px;
    height: 1px;
    background-color: #5C0120;
    margin-bottom: 6px;
    opacity: 0.6;
}

.full-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(30px, 7vw, 42px);
    font-weight: 700;
    color: #000;
    margin: 0 0 8px 0;
}

.parent-info p {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #666;
    margin: 0;
    font-style: normal;
}

.parent-names {
    font-weight: 600;
    color: #000;
    margin-top: 7px !important;
}

.ampersand-divider {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-style: italic;
    color: #5C0120;
    margin: 15px 0;
    opacity: 0.4;
}

.anim-fade, .anim-up {
    opacity: 0;
    transition: all 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.anim-fade { transform: scale(0.95); }
.anim-up { transform: translateY(30px); }

#couple.active .anim-fade,
#couple.active .anim-up {
    opacity: 1;
    transform: translate(0,0) scale(1);
}

#couple.active .couple-header { transition-delay: 0.2s; }
#couple.active .groom-box { transition-delay: 0.5s; }
#couple.active .ampersand-divider { transition-delay: 0.8s; }
#couple.active .bride-box { transition-delay: 1.1s; }

@media (max-width: 480px) {
    .couple-section { height: auto; min-height: 100vh; padding: 60px 20px; }
    .full-name { font-size: 32px; }
    .top-label { margin-bottom: 25px; }
}

.ma-story-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 10px 20px;
    /* Langsung pasang background di sini */
    background-color: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Pastikan wrap dan container berada di atas background */
.ma-story-container {
    position: relative;
    z-index: 5;
    max-width: 750px;
    width: 100%;
    text-align: center;
}

.ma-mini-icon {
    width: 35px;
    margin-bottom: 15px;
}

.ma-mini-iconev {
    width: 55px;
    margin-bottom: 15px;
}

.ma-pre-title {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 8px;
}

.ma-main-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(30px, 6vw, 45px);
    font-weight: 700;
    color: #000;
}

.ma-divider {
    position: relative;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #5C0120, transparent);
    margin: 25px auto 45px;
}

.ma-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: #5C0120;
    border-radius: 50%;
}

.ma-text-box {
    padding: 20px;
    position: relative;
}

.ma-description {
    font-family: 'Playfair Display', serif;
    font-size: clamp(16px, 4vw, 19px);
    line-height: 2.1;
    color: #333;
    font-style: italic;
    margin: 0;
}

.ma-initials {
    margin-top: 40px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 22px;
    letter-spacing: 3px;
    color: #5C0120;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.ma-initials span {
    font-size: 18px;
    opacity: 0.6;
}

/* --- Animasi --- */
.ma-story-section .ma-reveal {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(25px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.ma-story-section.active .ma-reveal {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.ma-story-section.active .ma-header-group { transition-delay: 0.2s; }
.ma-story-section.active .ma-content-group { transition-delay: 0.6s; }
.ma-story-section.active .ma-footer-group { transition-delay: 1s; }

@media (max-width: 480px) {
    .ma-story-section { padding: 80px 20px; }
    .ma-description { line-height: 1.9; }
    .ma-divider { margin-bottom: 35px; }
}

/* --- CONTAINER WRAPPER UNTUK 2 CARD --- */
.ma-events-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    margin-top: 20px;
}

/* Penyesuaian max-width card agar pas 2 kolom */
.ma-event-card-premium {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    padding: 10px;
}

/* --- SECTION BASE --- */
.ma-event-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
    background-color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.ma-event-container {
    position: relative;
    z-index: 5;
    max-width: 1100px; /* Diperlebar sedikit agar 2 card muat dengan presisi */
    width: 100%;
    text-align: center;
}

/* --- COUNTDOWN MINIMALIST --- */
.ma-countdown-minimal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 60px;
}

.ma-count-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ma-count-box span {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    color: #5C0120;
    line-height: 1;
}

.ma-count-box small {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-top: 8px;
}

.ma-count-sep {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    color: #5C0120;
    margin-top: -20px;
    opacity: 0.5;
}

.ma-card-inner {
    border: 1px solid rgba(92, 1, 32, 0.1);
    padding: 40px 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ma-event-type-premium {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 500;
    font-style: italic;
    color: #5C0120;
    margin-bottom: 30px;
}

.ma-info-row, .ma-info-grid {
    margin-bottom: 25px;
}

.ma-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.ma-label-alt {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #999;
    margin-bottom: 8px;
}

.ma-value-alt {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: #222;
    font-weight: 600;
}

/* --- BUTTON SHINE EFFECT --- */
.ma-btn-premium-shine {
    position: relative;
    display: inline-block;
    padding: 18px 35px;
    background: #5C0120;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    overflow: hidden;
    transition: all 0.4s ease;
    margin-top: 10px;
}

.ma-btn-premium-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: all 0.6s;
}

.active .ma-btn-premium-shine::before {
    animation: shine-loop 6s infinite ease-in-out;
}

@keyframes shine-loop {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.ma-btn-premium-shine:hover {
    background: #000;
    letter-spacing: 4px;
}

/* --- ANIMATION STATES --- */
.ma-event-section .ma-reveal {
    opacity: 0;
    filter: blur(15px);
    transform: translateY(40px);
    transition: all 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ma-event-section.active .ma-reveal {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.ma-event-section.active .ma-event-header { transition-delay: 0.2s; }
.ma-event-section.active .ma-countdown-minimal { transition-delay: 0.4s; }
.ma-event-section.active .ma-event-card-premium:nth-child(1) { transition-delay: 0.6s; }
.ma-event-section.active .ma-event-card-premium:nth-child(2) { transition-delay: 0.8s; }

/* --- RESPONSIVE MOBILE (ATAS-BAWAH) --- */
@media (max-width: 868px) {
    .ma-events-wrapper {
        grid-template-columns: 1fr; /* Jadi atas-bawah di tablet/mobile */
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .ma-event-section { padding: 80px 20px; }
    .ma-card-inner { padding: 30px 15px; }
    .ma-info-grid { grid-template-columns: 1fr; gap: 20px; }
    .ma-countdown-minimal { gap: 10px; }
    .ma-count-sep { font-size: 20px; margin-top: -15px; }
}


.om-section {
  background: #f3eadf;
  padding: 60px 0;
  text-align: center;
}

.om-title span {
  font-family: 'Playfair Display';
  font-size: 32px;
}

.om-grid {
  width: 100%;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.om-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: translateY(40px);
  transition: all .6s ease;
  cursor: pointer;
}

.om-sub {
  letter-spacing: 3px;
  font-size: 13px;
  margin-bottom: 6px;
  color: #1f3025;
  font-family: 'Wind';
}

.om-title {
  font-family: 'wind';
  font-size: 48px;
  color: #1f3025;
  margin-top: 20px;
}

.om-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.om-popup img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.om-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.om-nav {
  position: absolute;
  top: 50%;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

.om-prev {
  left: 20px;
}

.om-next {
  right: 20px;
}

.quotes-our-moments {
  margin-top: 40px;
  font-style: italic;
}

@media (max-width: 768px) {
  .om-popup img {
    max-width: 95%;
    max-height: 95%;
  }

  .om-close {
    font-size: 32px;
    top: 14px;
    right: 20px;
  }

  .om-nav {
    font-size: 32px;
  }

  .count-sub {
    font-family: 'wind';
    font-size: 20px;
    margin-bottom: 30px;
    letter-spacing: 3px;
  }

  .uwa-story-title {
    font-family: 'wind';
    font-size: 28px;
    color: #1f3025;
    margin-top: 10px;
  }

  .om-title {
    font-family: 'wind';
    font-size: 28px;
    color: #1f3025;
    margin-top: 20px;
  }
}


/* ================= WISH ================= */
.va-wish-section {
    padding: 100px 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.va-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.va-mini-icon {
    width: 40px;
    margin-bottom: 5px;
}

.va-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(30px, 6vw, 45px);
    font-weight: 700;
    color: #000;
}


.va-divider {
    width: 60px;
    height: 1px;
    background: #5C0120;
    margin: 20px auto;
}

.va-subtitle {
    font-family: 'Libertinus Math', serif;
    font-style: italic;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* --- FORM STYLING --- */
.va-input {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid rgba(92, 1, 32, 0.2); /* Border Burgundy Transparan */
    background: transparent;
    font-family: 'Libertinus Math', serif;
    font-size: 1rem;
    color: #000;
    transition: 0.4s;
}

.va-input:focus {
    outline: none;
    border-bottom: 1px solid #5C0120; /* Border Burgundy Solid saat fokus */
}

.va-textarea {
    height: 80px;
    resize: none;
}

.va-btn-submit {
    margin-top: 30px;
    background: #5C0120;
    color: #fff;
    border: none;
    padding: 18px 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.4s;
}

.va-btn-submit:hover {
    background: #000;
    transform: translateY(-2px);
}

/* --- LIST STYLING --- */
.va-list {
    max-height: 450px;
    overflow-y: auto;
    padding-right: 15px;
    text-align: left;
    margin-top: 50px;
}

/* Scrollbar Burgundy */
.va-list::-webkit-scrollbar { width: 2px; }
.va-list::-webkit-scrollbar-thumb { background: #5C0120; }

.va-item {
    padding: 25px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.va-item-name {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #5C0120; 
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.va-item-text {
    font-family: 'Libertinus Math', serif;
    font-size: 1.1rem;
    color: #111;
    line-height: 1.6;
}

/* --- ANIMASI REVEAL --- */
.ma-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.va-wish-section.active .ma-reveal {
    opacity: 1;
    transform: translateY(0);
}



.ma-gift-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
    background-color: #fff;
    background-size: cover;
    background-position: center;
}

.ma-gift-container {
    position: relative;
    z-index: 5;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.ma-gift-note {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    color: #666;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 40px;
}

.ma-gift-note2 {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    color: #666;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Khusus Layar Mobile (Lebar maksimal 576px) */
@media (max-width: 576px) {
    .ma-gift-note2 {
        max-width: 85%; /* Membatasi lebar teks menjadi 85% dari container */
        margin-left: auto; /* Biar posisi tetap di tengah */
        margin-right: auto;
        margin-bottom: 25px; /* Optional: menyesuaikan jarak bawah di HP */
    }
}

/* PREMIUM BANK CARD */
.ma-bank-card-premium {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(92, 1, 32, 0.1);
    padding: 50px 30px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
}

.ma-bank-logo {
    margin-bottom: 25px;
}

.ma-bank-logo img {
    height: 35px;
    width: auto;
    filter: grayscale(20%);
}

.ma-acc-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #999;
    margin-bottom: 8px;
}

.ma-acc-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
}

.ma-acc-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    letter-spacing: 2px;
    font-weight: 500;
    color: #5C0120;
}

/* BUTTON WITH SHIMMER */
.ma-btn-copy {
    position: relative;
    margin-top: 30px;
    background: #5C0120;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    transition: 0.4s ease;
}

.ma-btn-copy:hover {
    background: #000;
    transform: translateY(-3px);
}

.ma-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: gift-shimmer 3s infinite;
}

@keyframes gift-shimmer {
    0% { left: -100%; }
    30% { left: 100%; }
    100% { left: 100%; }
}

/* UNIQUE REVEAL ANIMATION (Slide & Scale) */
.ma-gift-reveal {
    opacity: 0;
    transform: scale(0.9) translateY(40px);
    transition: all 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ma-gift-section.active .ma-gift-reveal {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.ma-gift-section.active .ma-gift-header { transition-delay: 0.2s; }
.ma-gift-section.active .ma-bank-card-premium { transition-delay: 0.5s; }

@media (max-width: 480px) {
    .ma-bank-card-premium { padding: 40px 20px; }
    .ma-acc-name { font-size: 20px; }
    .ma-acc-number { font-size: 18px; }
}

/* CLOSING *//* --- CLOSING SECTION --- */
.va-closing-section {
    position: relative;
    height: 80vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax Effect */
    padding: 0 20px;
}

.va-closing-overlay {
    max-width: 700px;
    z-index: 2;
}

.va-closing-icon {
    width: 45px;
    margin-bottom: 15px;
}

.va-closing-title {
    font-size: 4.5rem;
    font-family: 'Playfair Display', serif;
    color: #5C0120; 
    margin-bottom: 0;
    line-height: 1;
}

.va-closing-divider {
    width: 80px;
    height: 1px;
    background: #5C0120;
    margin: 30px auto;
}

.va-closing-text {
    font-family: 'Libertinus Math', serif;
    font-style: italic;
    font-size: 1.15rem;
    color: #1a1a1a;
    line-height: 1.8;
    margin-bottom: 40px;
}

.va-closing-couple {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #000;
    letter-spacing: 2px;
}

/* --- PREMIUM REVEAL ANIMATION --- */
.ma-reveal-premium {
    opacity: 0;
    transform: scale(0.95) translateY(30px);
    transition: all 1.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.va-closing-section.active .ma-reveal-premium {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Responsif Mobile */
@media (max-width: 768px) {
    .va-closing-section {
        height: 70vh;
        background-attachment: scroll !important; 
        background-size: cover;
        background-position: center center;
    }
    
    .va-closing-title {
        font-size: 3.5rem;
    }
    
    .va-closing-couple {
        font-size: 1.8rem;
    }
    
    .va-closing-text {
        font-size: 1rem;
        padding: 0 10px;
        line-height: 1.5; /* Sedikit dirapatkan agar tidak terlalu panjang ke bawah */
    }
}


/* FOOTER */
.va-footer {
    background-color: #5C0120; 
    padding: 15px 0; /* Lebih tipis agar elegan */
    width: 100%;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.va-footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Jarak antar elemen dalam baris */
}

.va-footer span {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px; /* Kecil dan subtle */
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap; /* Paksa satu baris */
}

.va-sep {
    opacity: 0.3;
    font-weight: 200;
}

.va-brand-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.va-footer-logo {
    width: 16px; /* Ukuran pas untuk inline */
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.va-footer-logo:hover {
    transform: scale(1.1);
}

/* Responsif Mobile - Tetap satu baris */
@media (max-width: 480px) {
    .va-footer-content {
        gap: 8px;
    }
    
    .va-footer span {
        font-size: 8px; /* Sedikit lebih kecil di HP agar muat satu baris */
        letter-spacing: 0.5px;
    }

    .va-footer-logo {
        width: 14px;
    }
}

/* ================= PRELOADER ================= */
#preloader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-content {
  width: 200px; /* Lebar area loading */
  text-align: center;
}

/* Logo Favicon */
.loader-logo {
  width: 40px;
  height: auto;
  margin-bottom: 20px;
  animation: fadeIn 0.8s ease;
}

/* Progress Bar Container */
.progress-container {
  width: 100%;
  height: 2px; /* Tipis biar elegan */
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

/* Progress Bar Inner */
.progress-bar {
  width: 0%; /* Start dari 0 */
  height: 100%;
  background: #1a1a1a; /* Warna bar gelap premium */
  transition: width 0.4s ease; /* Transisi pas nambah % */
}

.loading-text {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888888;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

/* ================= RSVP SECTION ================= */
.va-rsvp-section {
    padding: 100px 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.va-rsvp-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.va-rsvp-mini-icon {
    width: 40px;
    margin-bottom: 5px;
}

.va-rsvp-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(30px, 6vw, 45px);
    font-weight: 700;
    color: #000;
    margin: 0;
}

.va-rsvp-divider {
    width: 60px;
    height: 1px;
    background: #5C0120;
    margin: 20px auto;
}

.va-rsvp-subtitle {
    font-family: 'Libertinus Math', serif;
    font-style: italic;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* --- RSVP FORM STYLING --- */
.va-rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.va-rsvp-input-wrapper {
    width: 100%;
}

.va-rsvp-input {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid rgba(92, 1, 32, 0.2); /* Border Burgundy Transparan */
    background: transparent;
    font-family: 'Libertinus Math', serif;
    font-size: 1rem;
    color: #000;
    transition: 0.4s;
}

.va-rsvp-input:focus {
    outline: none;
    border-bottom: 1px solid #5C0120; /* Border Burgundy Solid saat fokus */
}

/* Styling Dropdown Select (In-Line Minimalist) */
.va-rsvp-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C0120' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 14px;
}

.va-rsvp-select option {
    background: #fff;
    color: #000;
    font-family: sans-serif;
    padding: 10px;
}

/* Button Submit */
.va-rsvp-btn-submit {
    margin-top: 30px;
    background: #5C0120;
    color: #fff;
    border: none;
    padding: 18px 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.4s;
    width: 100%;
}

.va-rsvp-btn-submit:hover {
    background: #000;
    transform: translateY(-2px);
}

/* --- ANIMASI REVEAL --- */
.va-rsvp-section.active .ma-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   WISHLIST SECTION (PREMIUM BURGUNDY & ENHANCED SCROLL ANIMATION)
   ========================================== */
.wishlistgift-section {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px; /* Padding ditingkatkan sedikit biar lebih lega/gede */
    background-color: #fff;
    background-size: cover;
    background-position: center;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: hidden;
}

.wishlistgift-container {
    position: relative;
    z-index: 5;
    max-width: 680px; /* Diperbesar dari 600px ke 680px */
    width: 100%;
    text-align: center;
}

.wishlistgift-grid {
    display: flex;
    flex-direction: column;
    gap: 18px; /* Jarak antar card sedikit dinaikkan */
    margin-top: 25px;
}

/* Base Style & Initial State Untuk Scroll Animation */
.wishlistgift-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(92, 1, 32, 0.12);
    padding: 18px 24px; /* Card diperbesar sedikit */
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
    text-align: left;
    
    /* ANIMATION SCROLL PREPARATION */
    opacity: 0;
    transform: translateY(40px) scale(0.92);
    filter: blur(4px);
    transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), 
                filter 0.7s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.3s ease;
}

/* State Saat Card Aktif Dipicu JS Observer */
.wishlistgift-card.show-card {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.wishlistgift-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 15px 35px rgba(92, 1, 32, 0.1);
}

.wishlistgift-card.is-reserved {
    opacity: 0.6 !important;
    background: rgba(248, 248, 248, 0.85);
    filter: grayscale(40%) !important;
}

.wishlistgift-img-box {
    width: 75px;
    height: 75px;
    min-width: 75px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(92, 1, 32, 0.1);
    flex-shrink: 0;
}

.wishlistgift-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wishlistgift-card:hover .wishlistgift-img {
    transform: scale(1.08);
}

.wishlistgift-info {
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
}

.wishlistgift-name {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 600;
    color: #000;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* LINK PREVIEW SHORTENER */
.wishlistgift-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: #5C0120;
    text-decoration: underline;
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.wishlistgift-link:hover {
    color: #000;
}

/* ACTION WRAPPER */
.wishlistgift-action {
    flex-shrink: 0;
}

/* BUTTON WITH SHIMMER */
.wishlistgift-btn-reserve {
    position: relative;
    background: #5C0120;
    color: #fff;
    border: none;
    padding: 11px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    transition: 0.3s ease;
    white-space: nowrap;
    border-radius: 3px;
}

.wishlistgift-btn-reserve:hover {
    background: #000;
}

.wishlistgift-badge-reserved {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #666;
    background: #eee;
    padding: 8px 12px;
    border-radius: 2px;
    display: inline-block;
    white-space: nowrap;
}

/* CUSTOM MODAL STYLES */
.wl-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.wl-modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 450px;
    border: 1px solid rgba(92, 1, 32, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.wl-modal-header {
    background: #5C0120;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wl-modal-header h5 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
}

.wl-modal-close {
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.wl-modal-body {
    padding: 20px;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
}

.wl-modal-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #eee;
}

.btn-cancel {
    background: #e0e0e0;
    color: #333;
    border: none;
    padding: 10px 18px;
    font-size: 11px;
    text-transform: uppercase;
    cursor: pointer;
}

/* ANIMATION REVEAL CORE CONTAINER */
.ma-gift-reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.wishlistgift-section.active .ma-gift-reveal,
#wishlist-gift.active .ma-gift-reveal {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* MOBILE OPTIMIZATION (HORIZONTAL TETAP DIJAGA) */
@media (max-width: 576px) {
    .wishlistgift-section {
        padding: 40px 14px;
    }

    .wishlistgift-card {
        padding: 12px 14px;
        gap: 10px;
    }

    .wishlistgift-img-box {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }

    .wishlistgift-name {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .wishlistgift-link {
        font-size: 10px;
    }

    .wishlistgift-btn-reserve {
        padding: 8px 12px;
        font-size: 9px;
        letter-spacing: 1px;
    }

    .wishlistgift-badge-reserved {
        font-size: 9px;
        padding: 6px 8px;
    }
}