/* ============================================
   DARK LUXURY WEDDING THEME - PREMIUM VERSION
   Hitam & Emas dengan Sparkle Glitter + Gold Petals
   MOBILE OPTIMIZED VERSION - ANIMASI DIPERKECIL
============================================ */

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
    font-size: 14px;
}

body {
    font-family: 'Playfair Display', serif;
    background: #0a0a0a;
    color: #f5f5f5;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== DARK LUXURY COLOR PALETTE ==================== */
:root {
    /* Rich Blacks */
    --black-rich: #0a0a0a;
    --black-velvet: #111111;
    --black-deep: #000000;
    
    /* Luxury Golds */
    --gold-primary: #d4af37;
    --gold-light: #f6e8b1;
    --gold-dark: #b8941f;
    --gold-sparkle: #ffd700;
    --gold-rose: #c5a028;
    
    /* Accents */
    --white-cream: #f5f5f5;
    --white-soft: #e9e6e0;
    --gray-luxury: #2a2a2a;
    
    /* Effects */
    --glow-gold: rgba(212, 175, 55, 0.3);
    --sparkle-gold: rgba(255, 215, 0, 0.8);
}

/* ==================== ANIMASI RINGAN UNTUK MOBILE ==================== */

/* Animasi dasar yang ringan */
@keyframes fadeInUpMobile {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gentlePulseMobile {
    0%, 100% {
        opacity: 0.9;
        text-shadow: 0 0 5px rgba(212, 175, 55, 0.2);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
    }
}

@keyframes heartbeatMobile {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    }
    50% { 
        transform: scale(1.02); 
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    }
}

@keyframes shimmerMobile {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

/* Petal fall yang lebih ringan */
@keyframes petalFallMobile {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) rotate(180deg);
        opacity: 0;
    }
}

/* Animasi float yang ringan */
@keyframes floatMobile {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Scroll arrow sederhana */
@keyframes scrollArrowMobile {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 0.4; }
}

/* Pulsate yang lebih ringan */
@-webkit-keyframes pulsate-bck-mobile {
  0% { -webkit-transform: scale(1); transform: scale(1); }
  50% { -webkit-transform: scale(0.98); transform: scale(0.98); }
  100% { -webkit-transform: scale(1); transform: scale(1); }
}
@keyframes pulsate-bck-mobile {
  0% { -webkit-transform: scale(1); transform: scale(1); }
  50% { -webkit-transform: scale(0.98); transform: scale(0.98); }
  100% { -webkit-transform: scale(1); transform: scale(1); }
}

/* ==================== MUSIC TOGGLE BUTTON ==================== */
.music-toggle-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    pointer-events: none;
}

.music-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--gold-primary);
    color: var(--gold-light);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    opacity: 0;
}

.music-toggle.visible {
    opacity: 1;
}

.music-toggle:active {
    transform: scale(0.95);
    background: rgba(212, 175, 55, 0.2);
}

.music-toggle.music-playing {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold-sparkle);
    animation: gentlePulseMobile 3s infinite;
}

.music-toggle.music-paused {
    opacity: 0.7;
}

/* Manual play button */
.manual-play-btn {
    position: fixed;
    top: 20px;
    right: 75px;
    background: rgba(212, 175, 55, 0.9);
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 1001;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    animation: heartbeatMobile 3s infinite;
}

/* Volume slider */
.volume-slider-container {
    position: absolute;
    top: 55px;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    padding: 10px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    z-index: 1002;
    display: none;
}

.volume-slider-container.active {
    display: block;
}

.volume-slider {
    width: 80px;
    height: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, var(--gold-primary), var(--gold-light));
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--gold-light);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--gold-primary);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--gold-light);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--gold-primary);
}

/* ==================== OPENING COVER SECTION ==================== */
.cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)),
        url('images/cover.webp') center/cover no-repeat fixed;
    background-attachment: fixed;
    background-blend-mode: darken;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow: hidden;
}

.cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, 
            rgba(212, 175, 55, 0.08) 0%, 
            transparent 60%);
    z-index: 1;
    pointer-events: none;
}

/* Background Fade Animation - DIPERKECIL */
.bg-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(212, 175, 55, 0.02) 0%,
        transparent 25%,
        rgba(10, 10, 10, 0.5) 50%,
        transparent 75%,
        rgba(212, 175, 55, 0.02) 100%);
    animation: shimmerMobile 10s linear infinite;
    z-index: 1;
}

/* Vignette Effect */
.vignette {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 50% 40%, 
            rgba(255, 220, 140, 0.05) 0%, 
            transparent 60%),
        radial-gradient(circle at 50% 50%, 
            rgba(0, 0, 0, 0.8) 30%, 
            transparent 70%);
    z-index: 2;
    pointer-events: none;
}

/* Cover Content */
.cover-inner {
    position: relative;
    z-index: 30;
    text-align: center;
    padding: 15px;
    max-width: 600px;
    width: 90%;
    animation: fadeInUpMobile 0.8s ease-out forwards;
}

/* Foto Pengantin - Frame dengan animasi sederhana */
.couple-photo-container {
    position: relative;
    margin: 0 auto 30px;
    width: 200px;
    height: 200px;
    z-index: 40;
}

.photo-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: visible;
    border: 4px solid transparent;
    background: linear-gradient(45deg, 
        var(--gold-primary), 
        var(--gold-light)) border-box;
    padding: 6px;
    box-shadow: 
        0 0 40px var(--glow-gold),
        inset 0 0 30px rgba(212, 175, 55, 0.2);
    /* Animasi ringan saja */
    animation: gentlePulseMobile 4s ease-in-out infinite;
}

.couple-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: brightness(1.05) contrast(1.05);
    display: block;
}

/* Nama Pengantin dengan animasi sederhana */
.subtitle {
    color: var(--gold-light);
    font-size: 11px;
    letter-spacing: 1.5px;
    margin: 10px 0 5px;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUpMobile 0.6s ease-out 0.3s forwards;
}

.couple {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: transparent;
    background: linear-gradient(45deg, 
        var(--gold-light) 20%, 
        var(--gold-primary) 50%, 
        var(--gold-light) 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmerMobile 6s linear infinite;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.name-part {
    display: inline-block;
    opacity: 1;
    transform: translateY(0) rotateX(0);
    text-shadow: 
        0 0 20px rgba(212, 175, 55, 0.5),
        0 0 40px rgba(212, 175, 55, 0.3);
    background: linear-gradient(45deg, 
        var(--gold-light), 
        var(--gold-primary), 
        var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    padding: 0 15px;
    position: relative;
}

.name-part::before {
    content: attr(data-text);
    position: absolute;
    top: 2px;
    left: 2px;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 70%);
    -webkit-background-clip: text;
    background-clip: text;
    z-index: -1;
}

.name-part:nth-child(1) { animation-delay: 0.6s; }
.name-part:nth-child(2) { animation-delay: 1s; }

.ampersand {
    color: var(--gold-sparkle);
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 300;
    margin: 5px 0;
    opacity: 0;
    animation: fadeInUpMobile 0.6s ease-out 0.8s forwards, gentlePulseMobile 3s ease-in-out 1.4s infinite;
}

/* Tanggal */
.date {
    color: var(--white-soft);
    margin: 10px 0 15px;
    font-size: 12px;
    opacity: 0;
    animation: fadeInUpMobile 0.6s ease-out 1s forwards;
}

.date i {
    color: var(--gold-primary);
    margin-right: 6px;
}

/* Undangan Untuk */
.to-container {
    background: linear-gradient(90deg, 
        rgba(212, 175, 55, 0.08), 
        rgba(212, 175, 55, 0.04));
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 30px;
    padding: 8px 15px;
    margin: 15px auto;
    backdrop-filter: blur(8px);
    display: inline-block;
    opacity: 0;
    animation: fadeInUpMobile 0.6s ease-out 1.2s forwards;
}

.to-container i {
    color: var(--gold-primary);
    margin-right: 6px;
    font-size: 11px;
}

.to-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    letter-spacing: 0.5px;
    margin-right: 6px;
}

.to-name {
    color: var(--gold-light);
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 600;
    display: inline;
}

/* Tombol Buka dengan animasi sederhana */
.cover-actions {
    margin: 20px 0 15px;
}

.open-btn {
    position: relative;
    padding: 14px 35px;
    border-radius: 40px;
    background: linear-gradient(45deg, 
        rgba(212, 175, 55, 0.9), 
        rgba(184, 148, 31, 0.9));
    color: var(--black-rich);
    border: none;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUpMobile 0.6s ease-out 1.4s forwards;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.open-btn:active {
    transform: scale(0.98);
}

.open-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.15), 
        transparent);
    transition: left 0.5s ease;
}

.open-btn:active::before {
    left: 100%;
}

.btn-text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Rencong Dekorasi */
.rencong {
    position: absolute;
    height: 50px;
    opacity: 0.3;
    filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.3));
    z-index: 25;
    pointer-events: none;
}

.rencong-left {
    bottom: 15px;
    left: 15px;
    transform: rotate(-15deg);
}

.rencong-right {
    bottom: 15px;
    right: 15px;
    transform: scaleX(-1) rotate(-15deg);
}

/* Burung Animasi sederhana */
.bird-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
}

.bird {
    position: absolute;
    height: 35px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
    animation: floatMobile 4s ease-in-out infinite;
}

.bird-1 {
    top: 25%;
    left: 15%;
    animation-delay: 0s;
}

.bird-2 {
    top: 60%;
    right: 15%;
    animation-delay: 0.3s;
}

/* Gold Petals - JUMLAH DIPERKECIL dan animasi ringan */
.petals {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 15;
    overflow: hidden;
}

.gold-petal {
    position: absolute;
    width: 18px;
    height: 25px;
    background: linear-gradient(135deg, 
        rgba(248, 233, 180, 0.8), 
        rgba(212, 175, 55, 0.7));
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    filter: drop-shadow(0 1px 3px rgba(212, 175, 55, 0.3));
    opacity: 0.7;
    animation: petalFallMobile 12s linear infinite;
}

/* ==================== WEDDING TITLE SECTION ==================== */
.wedding-title-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)),
        url('images/foto1.webp') center/cover no-repeat fixed;
    background-attachment: fixed;
    background-blend-mode: darken;
    overflow: hidden;
    padding: 20px;
}

.wedding-title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, 
            rgba(212, 175, 55, 0.06) 0%, 
            transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.wedding-title-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    justify-content: center !important;
    margin: 40px auto 0 auto !important;
    padding: 40px 30px;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.05), 
        rgba(10, 10, 10, 0.8));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(212, 175, 55, 0.03);
    width: 90%;
    max-width: 500px;
    opacity: 0;
    animation: fadeInUpMobile 0.8s ease-out 0.3s forwards;
}

/* Subtitle */
.wedding-title-section .subtitle {
    color: var(--gold-light);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    opacity: 0;
    animation: fadeInUpMobile 0.8s ease-out 0.5s forwards;
}

.wedding-title-section .subtitle::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 25%;
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(212, 175, 55, 0.5), 
        transparent);
}

/* Main couple names */
.wedding-title-couple {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: transparent;
    background: linear-gradient(45deg, 
        rgba(248, 233, 180, 0.9) 20%, 
        rgba(212, 175, 55, 0.8) 50%, 
        rgba(248, 233, 180, 0.9) 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmerMobile 5s linear infinite;
    margin: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Name parts */
.wedding-title-couple .name-line .name-part {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: rgba(248, 233, 180, 0.95);
    opacity: 0;
    animation: fadeInUpMobile 0.8s ease-out forwards;
}

.wedding-title-couple .name-line:first-child .name-part {
    animation-delay: 0.7s;
}

.wedding-title-couple .name-line:last-child .name-part {
    animation-delay: 1.1s;
}

/* Ampersand */
.wedding-title-couple .ampersand {
    color: rgba(212, 175, 55, 0.9);
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 300;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
    opacity: 0;
    animation: 
        tracking-in-expand-smooth 1.2s cubic-bezier(0.16, 0.77, 0.32, 0.97) 1.1s both,
        fadeInUp 1s ease-out 1.1s both,
        gentlePulse 3s ease-in-out 2.1s infinite;
}

/* Wedding date */
.wedding-date {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin: 20px 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    animation: fadeInUpMobile 0.6s ease-out 1.3s forwards;
}

.wedding-date i {
    color: rgba(212, 175, 55, 0.9);
    font-size: 1rem;
    animation: pulsate-bck-mobile 0.8s ease-in-out infinite both;
}

/* Wedding venue */
.wedding-venue {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    padding-top: 15px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.4;
    max-width: 400px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUpMobile 0.6s ease-out 1.5s forwards;
}

/* Scroll Indicator */
.scroll-indicator {
    margin-top: 40px;
    text-align: center;
    opacity: 0;
    animation: fadeInUpMobile 0.6s ease-out 1.7s forwards;
}

.scroll-text {
    color: rgba(248, 233, 180, 0.8);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
    position: relative;
}

.scroll-text::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 25%;
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(212, 175, 55, 0.5), 
        transparent);
}

.scroll-arrow {
    width: 35px;
    height: 60px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    margin: 0 auto;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(3px);
}

.scroll-arrow i {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(212, 175, 55, 0.8);
    animation: scrollArrowMobile 2s infinite;
    font-size: 1rem;
}

/* ==================== MAIN CONTENT ==================== */
.main {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main.show {
    display: block;
    opacity: 1;
}

.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styling */
.section {
    padding: 40px 0;
    position: relative;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.section-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--gold-light);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--gold-primary), 
        transparent);
    margin: 8px auto 10px;
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Quotes Section */
.quotes-section {
    background: rgba(10, 10, 10, 0.95);
    padding: 40px 0;
}

.quote-card {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.05), 
        rgba(10, 10, 10, 0.8));
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin: 0 auto;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpMobile 0.6s ease forwards;
}

.quote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--gold-primary), 
        transparent);
}

.quote-icon {
    font-size: 1.3rem;
    color: var(--gold-primary);
    margin-bottom: 12px;
}

.quote-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin-bottom: 12px;
}

.quote-source {
    color: var(--gold-primary);
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
}

/* Couple Profiles */
.couple-section {
    background: var(--black-rich);
    padding: 40px 0;
}

.couple-profiles {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-top: 25px;
}

.profile-card {
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 250px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpMobile 0.6s ease forwards;
}

.profile-card.groom-card { animation-delay: 0.2s; }
.profile-card.bride-card { animation-delay: 0.4s; }

.profile-photo-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 12px;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(45deg, 
        var(--gold-primary), 
        var(--gold-light)) border-box;
    padding: 3px;
}

.profile-info {
    padding: 15px;
}

.profile-name {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--gold-light);
    margin-bottom: 6px;
}

.profile-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-bottom: 3px;
}

.profile-parents {
    color: var(--gold-primary);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.profile-social a {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    line-height: 32px;
    color: var(--gold-light);
    margin: 0 3px;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.profile-social a:active {
    background: var(--gold-primary);
    color: var(--black-rich);
    transform: scale(0.95);
}

.couple-heart {
    font-size: 1.8rem;
    color: var(--gold-primary);
    margin: 15px 0;
    animation: heartbeatMobile 2s infinite;
}

/* Gallery Section */
.gallery-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #111111 100%);
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 20%, 
            rgba(212, 175, 55, 0.03) 0%, 
            transparent 50%),
        radial-gradient(ellipse at 70% 80%, 
            rgba(212, 175, 55, 0.03) 0%, 
            transparent 50%);
    pointer-events: none;
}

/* Pinterest Style Layout */
.gallery-pinterest {
    display: flex;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.pinterest-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    background-color: var(--gray-luxury);
    transition: all 0.3s ease;
    transform-origin: center;
    z-index: 1;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUpMobile 0.5s ease forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Zoom Container */
.gallery-zoom-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gallery-zoom-container.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.gallery-zoom-item {
    position: fixed;
    border-radius: 12px;
    overflow: hidden;
    z-index: 10001;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(212, 175, 55, 0.2);
    transform-origin: center;
    background: #000;
    opacity: 0;
}

.gallery-zoom-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

.gallery-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 10000;
    transition: background 0.3s ease;
}

.gallery-zoom-container.active .gallery-zoom-overlay {
    background: rgba(0, 0, 0, 0.9);
}

.gallery-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 10002;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.gallery-close-btn.active {
    opacity: 1;
    transform: scale(1);
}

.gallery-close-btn:active {
    transform: scale(0.95);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 30%,
        rgba(0, 0, 0, 0.5) 100%
    );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 15px;
    pointer-events: none;
}

.gallery-overlay i {
    color: white;
    font-size: 1.2rem;
    background: rgba(212, 175, 55, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:active .gallery-overlay {
    opacity: 1;
}

.gallery-pinterest.zoomed {
    filter: blur(2px);
}

/* ==================== EVENT SECTION ==================== */
.event-section {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.95)),
        url('images/bg2.webp') center/cover no-repeat fixed;
    background-attachment: fixed;
    background-blend-mode: darken;
    padding: 60px 0;
    position: relative;
}

.event-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, 
            rgba(212, 175, 55, 0.04) 0%, 
            transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.event-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 40px 0;
}

.event-card {
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpMobile 0.6s ease forwards;
}

.event-card:nth-child(1) { animation-delay: 0.2s; }
.event-card:nth-child(2) { animation-delay: 0.4s; }

/* Event Icon */
.event-icon {
    font-size: 2.2rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.event-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, 
        rgba(212, 175, 55, 0.1) 0%, 
        transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

/* Event Title */
.event-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--gold-light);
    margin-bottom: 15px;
    font-weight: 500;
    position: relative;
    padding-bottom: 12px;
}

.event-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--gold-primary), 
        transparent);
}

/* Event Details */
.event-date, .event-time, .event-place {
    color: var(--white-soft);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.event-date {
    color: var(--gold-primary);
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.event-time i, .event-place i {
    color: var(--gold-primary);
    font-size: 1rem;
    min-width: 20px;
}

/* Button */
.btn-small {
    padding: 10px 25px;
    background: linear-gradient(45deg, 
        rgba(212, 175, 55, 0.12), 
        rgba(212, 175, 55, 0.06));
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--gold-light);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 20px;
    font-size: 0.9rem;
    font-family: 'Cinzel', serif;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.btn-small:active {
    background: linear-gradient(45deg, 
        rgba(212, 175, 55, 0.15), 
        rgba(212, 175, 55, 0.08));
    border-color: var(--gold-primary);
    transform: scale(0.98);
}

/* Maps Wrapper */
.maps-wrapper {
    margin-top: 50px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 15px;
    padding: 30px 25px;
    backdrop-filter: blur(8px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15);
}

.maps-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.maps-header h3 {
    color: var(--gold-light);
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.maps-toggle {
    display: flex;
    gap: 12px;
}

.maps-btn {
    padding: 8px 20px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--gold-light);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-family: 'Cinzel', serif;
    font-weight: 400;
}

.maps-btn.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-primary);
    color: var(--gold-light);
}

.maps-btn:active {
    transform: scale(0.98);
}

.maps-container {
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.maps {
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}

.maps.active {
    display: block;
}

/* ==================== COUNTDOWN SECTION ==================== */
.countdown-section {
    background: radial-gradient(circle at center, 
        rgba(212,175,55,0.08) 0%, 
        transparent 50%);
    padding: 50px 0;
}

.countdown-card {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.08), 
        rgba(10, 10, 10, 0.85));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 18px;
    padding: 35px 25px;
    text-align: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.25),
        inset 0 0 30px rgba(212, 175, 55, 0.03);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpMobile 0.6s ease forwards;
}

.countdown-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--gold-light);
    margin-bottom: 20px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.time-box {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    padding: 15px 10px;
    min-width: 65px;
    text-align: center;
    transition: all 0.2s ease;
}

.time-value {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: var(--gold-light);
    font-weight: 600;
    margin-bottom: 3px;
}

.time-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.countdown-note i {
    color: var(--gold-primary);
    margin-right: 6px;
}

/* ==================== LOVE STORY SECTION ==================== */
.love-section {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.95)),
        url('images/bg1.webp') center/cover no-repeat fixed;
    background-attachment: fixed;
    background-blend-mode: darken;
    padding: 60px 0;
    position: relative;
}

.love-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, 
            rgba(212, 175, 55, 0.04) 0%, 
            transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.timeline {
    position: relative;
    max-width: 500px;
    margin: 40px auto 0;
    z-index: 1;
}

.timeline-line {
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        transparent 10%, 
        var(--gold-primary) 50%, 
        transparent 90%);
    z-index: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 100%;
    padding-left: 60px;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUpMobile 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.3s; }
.timeline-item:nth-child(3) { animation-delay: 0.4s; }
.timeline-item:nth-child(4) { animation-delay: 0.5s; }

.timeline-dot {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 35px;
    height: 35px;
    background: var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black-rich);
    font-size: 1.1rem;
    z-index: 2;
    border: 2px solid var(--gold-light);
}

.timeline-content {
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 25px 20px;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.timeline-content:active {
    transform: translateX(3px);
    border-color: rgba(212, 175, 55, 0.25);
}

.timeline-date {
    color: var(--gold-primary);
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.timeline-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--gold-light);
    margin-bottom: 12px;
    font-weight: 500;
    position: relative;
}

.timeline-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--gold-primary), 
        transparent);
}

.timeline-desc {
    color: var(--white-soft);
    line-height: 1.5;
    font-size: 0.9rem;
    font-weight: 300;
}

/* ==================== GIFT SECTION ==================== */
.gift-section {
    background: var(--black-rich);
    padding: 50px 0;
}

.gift-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    max-width: 450px;
    margin: 0 auto 25px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.gift-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.gift-card {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.06), 
        rgba(10, 10, 10, 0.85));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUpMobile 0.6s ease forwards;
}

.gift-card:nth-child(1) { animation-delay: 0.2s; }
.gift-card:nth-child(2) { animation-delay: 0.3s; }
.gift-card:nth-child(3) { animation-delay: 0.4s; }

.gift-card:active {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.3);
}

.bank-icon {
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 15px;
}

.gift-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--gold-light);
    margin-bottom: 10px;
}

.gift-number {
    font-size: 1.1rem;
    color: white;
    font-weight: 600;
    margin: 8px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    font-family: monospace;
    word-break: break-all;
}

.gift-name {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.btn-copy {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--gold-light);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    font-size: 0.9rem;
    font-family: 'Cinzel', serif;
}

.btn-copy:active {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-primary);
    transform: scale(0.98);
}

.qris-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin: 12px auto;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    padding: 8px;
    background: white;
}

.gift-note {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
    font-size: 0.85rem;
}

.ewallet-list {
    margin-top: 15px;
}

.ewallet-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    margin: 8px 0;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-size: 0.9rem;
}

.ewallet-item i {
    color: var(--gold-primary);
    font-size: 1.1rem;
    min-width: 24px;
}

.gift-thank {
    text-align: center;
    color: var(--gold-primary);
    font-size: 1rem;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ==================== RSVP SECTION ==================== */
.rsvp-section {
    background: rgba(10, 10, 10, 0.95);
    padding: 50px 0;
}

.rsvp-guest {
    max-width: 400px;
    margin: 20px auto 25px;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.06), 
        rgba(10, 10, 10, 0.85));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUpMobile 0.6s ease forwards;
}

.guest-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guest-info i {
    font-size: 1.3rem;
    color: var(--gold-primary);
}

.guest-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 2px;
}

#rsvp-guest-name {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--gold-light);
}

.rsvp-form {
    max-width: 450px;
    margin: 0 auto;
    padding: 25px 20px;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.05), 
        rgba(10, 10, 10, 0.85));
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 15px;
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUpMobile 0.6s ease 0.2s forwards;
}

.form-group {
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUpMobile 0.5s ease forwards;
}

.form-group:nth-child(1) { animation-delay: 0.3s; }
.form-group:nth-child(2) { animation-delay: 0.4s; }
.form-group:nth-child(3) { animation-delay: 0.5s; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--gold-light);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    font-family: 'Playfair Display', serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    padding: 12px 30px;
    background: linear-gradient(45deg, 
        var(--gold-primary), 
        var(--gold-light));
    color: var(--black-rich);
    border: none;
    border-radius: 30px;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    width: 100%;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUpMobile 0.6s ease 0.6s forwards;
}

.submit-btn:active {
    transform: scale(0.98);
}

.rsvp-success {
    text-align: center;
    padding: 30px 25px;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.06), 
        rgba(10, 10, 10, 0.85));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    max-width: 450px;
    margin: 0 auto;
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUpMobile 0.6s ease forwards;
}

.rsvp-success i {
    font-size: 2.5rem;
    color: #4CAF50;
    margin-bottom: 15px;
}

.rsvp-success h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--gold-light);
    margin-bottom: 10px;
}

.rsvp-success p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* ==================== MESSAGES SECTION ==================== */
.messages-section {
    background: linear-gradient(135deg, #1a120b 0%, #2c1810 100%);
    padding: 50px 0;
    position: relative;
}

.messages-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.messages-container {
    margin-top: 25px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom Scrollbar */
.messages-container::-webkit-scrollbar {
    width: 5px;
}

.messages-container::-webkit-scrollbar-track {
    background: rgba(212, 175, 55, 0.06);
    border-radius: 8px;
}

.messages-container::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #d4af37, #b8941f);
    border-radius: 8px;
}

.messages-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
}

.message-card {
    background: linear-gradient(145deg, rgba(30, 20, 10, 0.85), rgba(40, 30, 15, 0.85));
    border-radius: 10px;
    padding: 15px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.12);
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: visible;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUpMobile 0.5s ease forwards;
}

.message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #d4af37, transparent);
    opacity: 0.2;
}

.message-card:active {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(212, 175, 55, 0.15);
}

.message-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.message-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #1a120b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(212, 175, 55, 0.2);
}

.message-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.message-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.message-name {
    margin: 0;
    color: #f5f0e6;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.message-time {
    margin: 0;
    color: #bcaaa4;
    font-size: 0.75rem;
    opacity: 0.9;
    white-space: nowrap;
    flex-shrink: 0;
}

.message-body {
    color: #e8e0d9;
    line-height: 1.5;
    font-size: 0.85rem;
    margin-top: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    width: 100%;
}

.message-text {
    margin: 0;
    color: #d7ccc8;
    line-height: 1.5;
    font-size: 0.85rem;
    display: block;
    white-space: pre-wrap;
    word-break: break-word;
    overflow: visible !important;
    max-height: none !important;
}

/* No Messages & Error States */
.no-messages, .error-message {
    text-align: center;
    padding: 30px 20px;
    background: rgba(30, 20, 10, 0.6);
    border-radius: 10px;
    color: #bcaaa4;
    border: 2px dashed rgba(212, 175, 55, 0.15);
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.no-messages i, .error-message i {
    font-size: 2rem;
    margin-bottom: 12px;
    color: rgba(212, 175, 55, 0.3);
}

.no-messages p, .error-message p {
    font-size: 0.9rem;
    max-width: 250px;
    margin: 0 auto;
    line-height: 1.4;
}

.error-message {
    color: #ef9a9a;
    border-color: rgba(244, 67, 54, 0.15);
}

.error-message i {
    color: rgba(244, 67, 54, 0.3);
}

/* Message Counter */
.message-counter {
    text-align: center;
    margin-top: 20px;
    color: #bcaaa4;
    font-size: 0.8rem;
    font-family: 'Playfair Display', serif;
    padding: 6px 14px;
    background: rgba(30, 20, 10, 0.5);
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.message-counter .count {
    color: #d4af37;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    margin: 0 4px;
}

/* ==================== CLOSING SECTION ==================== */
.closing-section {
    background: radial-gradient(circle at center, 
        rgba(212,175,55,0.08) 0%, 
        transparent 50%);
    padding: 50px 0;
}

.closing-card {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
    padding: 35px 25px;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.06), 
        rgba(10, 10, 10, 0.85));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 18px;
    backdrop-filter: blur(8px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUpMobile 0.6s ease forwards;
}

.closing-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--gold-light);
    margin-bottom: 15px;
}

.closing-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.closing-couple {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

@media (min-width: 768px) {
    .closing-couple {
        flex-direction: row;
        justify-content: center;
        gap: 25px;
    }
}

.closing-name {
    text-align: center;
}

.closing-name h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold-light);
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.closing-name p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.closing-heart {
    font-size: 1.8rem;
    color: var(--gold-primary);
    margin: 10px 0;
    animation: heartbeatMobile 2s infinite;
}

.closing-date {
    color: var(--gold-primary);
    font-size: 1rem;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.closing-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.closing-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    color: var(--gold-light);
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.closing-social a:active {
    background: var(--gold-primary);
    color: var(--black-rich);
    transform: scale(0.95);
}

.closing-note {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    line-height: 1.5;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    font-size: 0.9rem;
}

.closing-note strong {
    color: var(--gold-primary);
    font-weight: 600;
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 30px 0;
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.footer-content {
    text-align: center;
}

.footer-logo h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--gold-light);
    margin-bottom: 6px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.85rem;
}

.footer-link:active {
    color: var(--gold-primary);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin-top: 15px;
}

.footer-copy i {
    color: var(--gold-primary);
    margin: 0 3px;
}

/* ==================== SCROLL TO TOP ==================== */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: linear-gradient(45deg, 
        var(--gold-primary), 
        var(--gold-light));
    border: none;
    border-radius: 50%;
    color: var(--black-rich);
    font-size: 1.1rem;
    cursor: pointer;
    display: none;
    z-index: 9998;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}

.scroll-top.visible {
    display: flex;
}

.scroll-top:active {
    transform: scale(0.95);
}

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    z-index: 9999;
    font-size: 13px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    max-width: 90%;
    text-align: center;
    font-weight: 500;
    opacity: 0;
    animation: fadeInUpMobile 0.3s ease forwards, fadeInUpMobile 0.3s ease 2.7s reverse forwards;
}

.toast.warning {
    background: #FF9800;
}

.toast.error {
    background: #f44336;
}

/* ==================== CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--black-velvet);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--gold-primary), var(--gold-light));
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--gold-light), var(--gold-primary));
}

/* Selection */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: var(--white-cream);
}

::-moz-selection {
    background: rgba(212, 175, 55, 0.3);
    color: var(--white-cream);
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet */
@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .container {
        max-width: 700px;
        padding: 0 30px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .music-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
        top: 25px;
        right: 25px;
    }
    
    .manual-play-btn {
        top: 25px;
        right: 85px;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .couple-photo-container {
        width: 220px;
        height: 220px;
    }
    
    .couple {
        font-size: 2.2rem;
    }
    
    .open-btn {
        padding: 15px 40px;
        font-size: 15px;
    }
    
    .wedding-title-card {
        padding: 50px 40px;
        margin-top: 50px;
    }
    
    .wedding-title-couple {
        font-size: 2.8rem;
        gap: 20px;
    }
    
    .wedding-title-couple .name-part {
        font-size: 2.5rem;
    }
    
    .wedding-title-couple .ampersand {
        font-size: 2rem;
        margin: 10px 0;
    }
    
    .wedding-title-section .subtitle {
        font-size: 1rem;
        letter-spacing: 4px;
    }
    
    .wedding-date {
        font-size: 1.2rem;
    }
    
    .wedding-venue {
        font-size: 1rem;
    }
    
    .couple-profiles {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }
    
    .profile-card {
        max-width: 280px;
    }
    
    .profile-photo-container {
        width: 220px;
        height: 220px;
    }
    
    .event-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .gift-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .timeline {
        max-width: 600px;
    }
    
    .timeline-line {
        left: 50%;
    }
    
    .timeline-item {
        width: calc(50% - 30px);
        padding: 0;
    }
    
    .timeline-item:nth-child(odd) {
        margin-left: 0;
        padding-right: 40px;
        text-align: right;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: auto;
        padding-left: 40px;
    }
    
    .timeline-item:nth-child(odd) .timeline-dot {
        right: -20px;
        left: auto;
    }
    
    .timeline-item:nth-child(even) .timeline-dot {
        left: -20px;
    }
    
    .gallery-pinterest {
        gap: 15px;
        padding: 0 15px;
    }
    
    .pinterest-column {
        gap: 15px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .container {
        max-width: 900px;
        padding: 0 40px;
    }
    
    .couple-photo-container {
        width: 250px;
        height: 250px;
    }
    
    .couple {
        font-size: 2.5rem;
    }
    
    .gallery-pinterest {
        gap: 20px;
    }
    
    .gift-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    /* Disable fixed background on mobile for better performance */
    .cover,
    .wedding-title-section,
    .event-section,
    .love-section {
        background-attachment: scroll !important;
    }
    
    /* Simplify animations further on mobile */
    .gold-petal {
        width: 15px;
        height: 22px;
        animation: petalFallMobile 8s linear infinite;
        opacity: 0.6;
    }
    
    /* Reduce the number of petals */
    .petals .gold-petal:nth-child(n+8) {
        display: none;
    }
    
    /* Simpler bird animation */
    .bird {
        animation: floatMobile 3s ease-in-out infinite;
    }
    
    /* Simpler photo frame */
    .photo-frame {
        animation: gentlePulseMobile 5s ease-in-out infinite;
        box-shadow: 0 0 25px var(--glow-gold);
    }
    
    /* Reduce section animation intensity */
    .section {
        transition-duration: 0.4s;
    }
    
    .fadeInUpMobile {
        animation-duration: 0.4s;
    }
}

/* Very Small Mobile */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .couple {
        font-size: 1.8rem;
    }
    
    .couple-photo-container {
        width: 170px;
        height: 170px;
    }
    
    .ampersand {
        font-size: 1.8rem;
    }
    
    .open-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .wedding-title-couple {
        font-size: 2.2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .wedding-title-couple .name-part {
        font-size: 2rem;
    }
    
    .wedding-title-couple .ampersand {
        font-size: 1.8rem;
        margin: 5px 0;
    }
    
    .wedding-title-section .subtitle {
        font-size: 0.85rem;
        letter-spacing: 2.5px;
    }
    
    .countdown {
        gap: 8px;
    }
    
    .time-box {
        min-width: 55px;
        padding: 12px 8px;
    }
    
    .time-value {
        font-size: 1.4rem;
    }
    
    /* Mobile: 2 columns for gallery */
    .gallery-pinterest {
        flex-direction: row;
        gap: 10px;
    }
    
    .pinterest-column {
        gap: 10px;
    }
    
    .music-toggle {
        top: 15px;
        right: 15px;
        width: 42px;
        height: 42px;
        font-size: 17px;
    }
    
    .manual-play-btn {
        top: 15px;
        right: 65px;
        padding: 7px 14px;
        font-size: 11px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn, .btn-small, .btn-copy, .submit-btn {
        padding: 12px 24px;
        min-height: 44px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px;
        font-size: 16px;
    }
    
    /* Replace hover with active states */
    .open-btn:active,
    .gift-card:active,
    .event-card:active,
    .timeline-content:active,
    .profile-social a:active,
    .closing-social a:active,
    .footer-link:active {
        transform: scale(0.98) !important;
    }
    
    /* Disable hover-only effects */
    .gallery-item:hover {
        transform: none !important;
    }
    
    .gallery-item:active .gallery-overlay {
        opacity: 1 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .music-toggle.music-playing,
    .couple-heart,
    .closing-heart,
    .wedding-date i,
    .ampersand,
    .gold-petal,
    .bird,
    .photo-frame,
    .scroll-arrow i {
        animation: none !important;
    }
    
    .section,
    .section.section-visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .fadeInUpMobile,
    .heartbeatMobile,
    .gentlePulseMobile,
    .shimmerMobile,
    .petalFallMobile,
    .floatMobile,
    .scrollArrowMobile,
    .pulsate-bck-mobile {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print Styles */
@media print {
    .cover,
    .music-toggle,
    .scroll-top,
    .petals,
    .bird-container,
    .rencong,
    .music-toggle-container {
        display: none !important;
    }
    
    .main {
        display: block !important;
        opacity: 1 !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .section {
        padding: 20px 0;
        break-inside: avoid;
    }
    
    /* Disable animations for print */
    * {
        animation: none !important;
        transition: none !important;
    }
}