@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&family=Cinzel:wght@400;700&family=Montserrat:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --gold-dark: #aa7c11;
    --dark-brown: #1e130c;
    --dark-brown-rgb: 30, 19, 12;
    --medium-brown: #3d2516;
    --light-cream: #fcf8f2;
    --card-bg: rgba(30, 19, 12, 0.85);
    --text-light: #f7f1e3;
    --text-dark: #3a2b20;
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --border-gold: 1px solid rgba(212, 175, 55, 0.4);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-light);
}

body {
    background-color: var(--dark-brown);
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

/* Background Pattern overlay */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/batik_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
}

/* Scroll Animation classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Cover / Gate Section */
.cover-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-brown);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1), opacity 1.2s ease;
}

.cover-gate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/batik_bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    z-index: 1;
}

.cover-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gunungan-gate {
    width: 180px;
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
    animation: float 4s ease-in-out infinite;
}

.cover-title-pre {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold-light);
    margin-bottom: 10px;
    font-weight: 300;
}

.cover-names {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 42px;
    color: var(--gold);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.cover-invite-to {
    margin-top: 30px;
    margin-bottom: 25px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: var(--border-gold);
    backdrop-filter: blur(5px);
}

.cover-invite-to p {
    font-size: 13px;
    color: var(--text-light);
    opacity: 0.8;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cover-invite-to h3 {
    font-size: 20px;
    color: var(--gold-light);
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.btn-open {
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dark-brown);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-open:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

/* Floating Audio Player */
.music-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.music-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: 2px solid var(--gold-light);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark-brown);
    font-size: 18px;
    outline: none;
    transition: all 0.3s ease;
}

.music-btn.playing {
    animation: rotate 8s linear infinite;
}

/* Main Container */
.main-content {
    display: none; /* Shown after cover opened */
    position: relative;
    width: 100%;
}

/* Typography styles for sections */
.section-title {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 32px;
    text-align: center;
    margin-bottom: 10px;
    position: relative;
}

.section-subtitle {
    text-align: center;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold-light);
    margin-bottom: 40px;
}

.javanese-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto 40px;
    gap: 15px;
}

.javanese-divider::before, .javanese-divider::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.javanese-divider img {
    width: 30px;
    height: auto;
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.4));
}

/* Section Common Layout */
section {
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}

/* Section Intro (Kutipan) */
#intro {
    text-align: center;
    padding-top: 100px;
}

.intro-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 50px 30px;
    border: var(--border-gold);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.intro-quote {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    line-height: 1.8;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 25px;
}

.intro-author {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
}

/* Mempelai Section */
#mempelai {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mempelai-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    gap: 40px;
    margin-top: 20px;
}

.mempelai-card {
    flex: 1;
    background: var(--card-bg);
    border-radius: 20px;
    border: var(--border-gold);
    box-shadow: var(--shadow);
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.mempelai-card:hover {
    transform: translateY(-5px);
}

.mempelai-photo-container {
    width: 160px;
    height: 220px;
    margin: 0 auto 25px;
    border-radius: 80px 80px 0 0;
    border: 3px solid var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    overflow: hidden;
}

.mempelai-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mempelai-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: var(--gold);
    margin-bottom: 10px;
}

.mempelai-fullname {
    font-weight: 600;
    font-size: 16px;
    color: var(--gold-light);
    margin-bottom: 15px;
}

.mempelai-parents {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.8;
}

.ampersand {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 64px;
    color: var(--gold);
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Acara & Countdown Section */
#acara {
    background: rgba(30, 19, 12, 0.6);
    border-radius: 30px;
    border: var(--border-gold);
    padding: 60px 40px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    margin-bottom: 80px;
    max-width: 900px;
}

.acara-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.acara-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 30px;
    text-align: center;
}

.acara-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 24px;
    margin-bottom: 20px;
}

.acara-icon {
    font-size: 28px;
    color: var(--gold-light);
    margin-bottom: 15px;
}

.acara-time {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.acara-detail {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-map:hover {
    background: var(--gold);
    color: var(--dark-brown);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Countdown */
.countdown-container {
    text-align: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.countdown-container h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-light);
    margin-bottom: 20px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.countdown-item {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 15px;
    min-width: 80px;
    backdrop-filter: blur(5px);
}

.countdown-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 5px;
    font-family: 'Cinzel', serif;
}

.countdown-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* Galeri Section */
#galeri {
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 2px solid rgba(212, 175, 55, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Kado Digital Section */
#kado {
    text-align: center;
}

.kado-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 20px;
    border: var(--border-gold);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.kado-desc {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 30px;
}

.gift-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.bank-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 15px;
    font-family: 'Cinzel', serif;
}

.account-number {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 5px;
}

.account-name {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 15px;
}

.btn-copy {
    padding: 8px 18px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--dark-brown);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}

/* RSVP & Ucapan Section */
#rsvp-ucapan {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.rsvp-form-container {
    background: var(--card-bg);
    border-radius: 20px;
    border: var(--border-gold);
    padding: 35px 25px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.rsvp-form-container h3, .wishes-container h3 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 22px;
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

textarea.form-control {
    resize: none;
    height: 100px;
}

.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.radio-option {
    flex: 1;
    position: relative;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-label {
    display: block;
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-label {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.4));
    border-color: var(--gold);
    color: var(--gold-light);
    font-weight: 600;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--dark-brown);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Guestbook Wishes */
.wishes-container {
    background: var(--card-bg);
    border-radius: 20px;
    border: var(--border-gold);
    padding: 35px 25px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 480px;
}

.wishes-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom scrollbar for wishes-list */
.wishes-list::-webkit-scrollbar {
    width: 5px;
}
.wishes-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
}
.wishes-list::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 10px;
}
.wishes-list::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

.wish-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.wish-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

.wish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.wish-name {
    font-weight: 600;
    color: var(--gold-light);
    font-size: 14px;
}

.wish-status {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-hadir {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-tidak {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.wish-text {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.9;
    font-family: 'Playfair Display', serif;
}

.wish-time {
    font-size: 9px;
    opacity: 0.5;
    text-align: right;
    margin-top: 5px;
}

/* Seksi Terima Kasih (Penutup) */
#terima-kasih {
    text-align: center;
}

.closing-card {
    background: var(--card-bg);
    border-radius: 20px;
    border: var(--border-gold);
    padding: 50px 30px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.closing-photo-container {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 4px solid var(--gold);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
}

.closing-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.closing-text {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    opacity: 0.9;
}

.closing-salutation {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 24px;
    margin-top: 20px;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, var(--gold-dark), var(--dark-brown));
    border: var(--border-gold);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 99999;
    opacity: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Keyframe Animations */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    section {
        padding: 50px 15px;
    }
    
    .cover-names {
        font-size: 34px;
    }
    
    .mempelai-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .ampersand {
        font-size: 36px;
        margin: 10px 0;
    }
    
    .mempelai-card {
        padding: 30px 20px;
    }
    
    .acara-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    #acara {
        padding: 40px 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    #rsvp-ucapan {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .closing-photo-container {
        width: 180px;
        height: 180px;
    }
    
    .music-player {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .cover-names {
        font-size: 28px;
    }
    
    .countdown-timer {
        gap: 8px;
    }
    
    .countdown-item {
        min-width: 65px;
        padding: 10px 5px;
    }
    
    .countdown-number {
        font-size: 20px;
    }
    
    .account-number {
        font-size: 18px;
    }
}

/* Flower Decoration Animation */
.flower-decoration {
    position: fixed;
    bottom: -350px; /* Sembunyi jauh di bawah */
    left: -20px;
    z-index: 9998;
    pointer-events: none;
    transition: bottom 2.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 1.5s ease;
    display: flex;
    align-items: flex-end;
    opacity: 1;
}

.flower-decoration.show {
    bottom: -10px; /* Animasi masuk mantul sedikit (spring) */
}

.flower-decoration.hide {
    bottom: -350px !important;
    opacity: 0;
}

.flower-1 {
    width: 250px;
    height: auto;
    transform-origin: bottom left;
    animation: swaySepoi1 7s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(0,0,0,0.4));
}

.flower-2 {
    width: 180px;
    height: auto;
    margin-left: -120px;
    margin-bottom: -15px;
    transform-origin: bottom center;
    animation: swaySepoi2 6.5s ease-in-out infinite 1s;
    filter: drop-shadow(0 0 12px rgba(0,0,0,0.4));
}

@keyframes swaySepoi1 {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(4deg); }
}

@keyframes swaySepoi2 {
    0%, 100% { transform: rotate(3deg); }
    50% { transform: rotate(-3deg); }
}

@media (max-width: 768px) {
    .flower-decoration.show { bottom: -5px; }
    .flower-1 { width: 150px; }
    .flower-2 { width: 100px; margin-left: -60px; margin-bottom: -10px; }
}


/* Section Flower Decoration Animation */
.section-flower-container {
    position: absolute;
    bottom: 0;
    /* Escape section's max-width centering to reach left edge of viewport */
    left: calc(50% - 50vw);
    z-index: 5;
    pointer-events: none;
    overflow: visible;
}

.section-flower-container.right {
    left: auto;
    right: calc(50% - 50vw);
    transform: scaleX(-1);
}

.flower-wrapper,
.flower-wrapper-right {
    display: flex;
    align-items: flex-end;
}

/* Override sizes for in-section flowers (smaller than the gate flowers) */
.section-flower-container .flower-1 {
    width: 200px;
    height: auto;
    transform-origin: bottom left;
    animation: swaySepoi1 7s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.35));
}

.section-flower-container .flower-2 {
    width: 140px;
    height: auto;
    margin-left: -90px;
    margin-bottom: -12px;
    transform-origin: bottom center;
    animation: swaySepoi2 6.5s ease-in-out infinite 1s;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.35));
}

@media (max-width: 768px) {
    .section-flower-container .flower-1 {
        width: 130px;
    }
    .section-flower-container .flower-2 {
        width: 90px;
        margin-left: -55px;
    }
}

@media (max-width: 480px) {
    .section-flower-container .flower-1 {
        width: 100px;
    }
    .section-flower-container .flower-2 {
        width: 70px;
        margin-left: -40px;
    }
}

/* Lamp Animation */
section {
    position: relative;
}

.lamp-container {
    position: absolute;
    top: -20px;
    z-index: 5;
    pointer-events: none;
}

.lamp-container.left {
    left: 5%;
}

.lamp-container.right {
    right: 5%;
}

.lamp-item {
    width: 270px;
    height: auto;
    transform-origin: top center;
    animation: swingLamp 3.5s ease-in-out infinite alternate;
    filter: drop-shadow(0 5px 15px rgba(255, 215, 0, 0.4));
}

.lamp-container.right .lamp-item {
    animation-delay: 1.2s;
}

@keyframes swingLamp {
    0% { transform: rotate(-8deg); }
    100% { transform: rotate(8deg); }
}

/* Head Decoration */
.head-decoration-container {
    position: absolute;
    top: -140px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px; /* Limit width on desktop */
    z-index: 6; /* Above the lamps (lamps are z-index 5) */
    pointer-events: none;
    text-align: center;
    opacity: 0;
    transition: opacity 1.5s ease 0.3s, top 1.5s ease 0.3s;
}

.reveal.active .head-decoration-container {
    opacity: 1;
    top: -100px; /* Lowered slightly */
}

/* Cover Head */
.cover-head {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    z-index: 6;
    pointer-events: none;
    text-align: center;
    opacity: 0;
    animation: coverHeadEntrance 1.5s ease-out forwards;
}

@keyframes coverHeadEntrance {
    0% { opacity: 0; top: -60px; }
    100% { opacity: 1; top: -20px; }
}

.cover-head img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

/* Cover Pillar (Tiang) */
.cover-tiang {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 4; /* Below the head and flowers */
    pointer-events: none;
    opacity: 0;
    animation: coverTiangEntrance 1.5s ease-out forwards;
}

.cover-tiang.left {
    left: 0;
    animation: coverTiangEntranceLeft 1.5s ease-out forwards;
}

.cover-tiang.right {
    right: 0;
    animation: coverTiangEntranceRight 1.5s ease-out forwards;
}

.cover-tiang.right img {
    transform: scaleX(-1);
}

@keyframes coverTiangEntranceLeft {
    0% { opacity: 0; transform: translateX(-50px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes coverTiangEntranceRight {
    0% { opacity: 0; transform: translateX(50px); }
    100% { opacity: 1; transform: translateX(0); }
}

.cover-tiang img {
    height: 100%;
    width: auto;
    max-width: 150px; /* Prevent it from getting too thick */
    filter: drop-shadow(2px 0 5px rgba(0,0,0,0.3));
}

/* Cover Flowers */
.cover-flower {
    position: absolute;
    bottom: -20px;
    z-index: 5;
    pointer-events: none;
    width: 250px;
    opacity: 0;
    transform: translateY(50px);
    animation: flowerEntrance 1.5s ease-out forwards 0.3s;
}

@keyframes flowerEntrance {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

.cover-flower img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.cover-flower.bottom-left {
    left: -10px;
}
.cover-flower.bottom-left img {
    transform-origin: bottom center;
    animation: coverSwayMirrored 6s ease-in-out infinite alternate;
}

.cover-flower.bottom-left-2 {
    left: 40px;
    bottom: -10px;
    z-index: 4;
    width: 200px;
    animation: flowerEntrance 1.5s ease-out forwards 0.5s; /* Slight delay for 2nd flower */
}
.cover-flower.bottom-left-2 img {
    transform-origin: bottom center;
    animation: coverSwayMirrored 7s ease-in-out infinite alternate 1s;
    transform: scaleX(-1);
}

.cover-flower.bottom-right {
    right: -10px;
}
.cover-flower.bottom-right img {
    transform-origin: bottom center;
    animation: coverSway 6s ease-in-out infinite alternate;
}

.cover-flower.bottom-right-2 {
    right: 40px;
    bottom: -10px;
    z-index: 4;
    width: 200px;
    animation: flowerEntrance 1.5s ease-out forwards 0.5s; /* Slight delay for 2nd flower */
}
.cover-flower.bottom-right-2 img {
    transform-origin: bottom center;
    animation: coverSway 7s ease-in-out infinite alternate 1s;
}

@keyframes coverSway {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}

@keyframes coverSwayMirrored {
    0% { transform: scaleX(-1) rotate(-5deg); }
    100% { transform: scaleX(-1) rotate(5deg); }
}

.head-item {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

@media (max-width: 768px) {
    .lamp-item {
        width: 180px;
    }
    .lamp-container.left {
        left: 2%;
    }
    .lamp-container.right {
        right: 2%;
    }
    .cover-flower {
        width: 150px;
    }
}
