@font-face {
    font-family: 'Lagune';
    src: url('https://www.sepasangselamanya.com/fonts/lagune-light-regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Initial states for GSAP animations */
.scroll-fade {
    opacity: 0;
}

.scroll-fade-up {
    opacity: 0;
    transform: translateY(30px);
}

/* Hero elements visible immediately */
.hero-greeting,
.hero-title,
.hero-note,
.hero-button {
    opacity: 1;
}

/* Hide all sections except hero on initial load */
body:not(.opened) #hero-wedding,
body:not(.opened) #hero2,
body:not(.opened) #couple-names,
body:not(.opened) .gradient-transition,
body:not(.opened) #bride,
body:not(.opened) #groom,
body:not(.opened) #event,
body:not(.opened) #guestbook,
body:not(.opened) #quote-separator,
body:not(.opened) #closing,
body:not(.opened) #photo-footer,
body:not(.opened) #musicToggle {
    display: none;
}

/* Hide wedding section elements initially */
.wedding-subtitle,
.wedding-name-1,
.wedding-and,
.wedding-name-2,
.wedding-date,
.wedding-countdown {
    opacity: 0;
}

/* Countdown styling */
.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    line-height: 1;
    min-width: 60px;
    text-align: center;
}

.countdown-separator {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
}

/* Wedding section background */
#hero-wedding {
    background-image: url('snap_hero.jpeg?v=2');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    #hero-wedding {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
}

/* Mouse scroll animation */
.scroll-indicator {
    position: fixed !important;
    bottom: 100px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    opacity: 0 !important;
    transition: opacity 0.5s ease !important;
    pointer-events: none !important;
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 10px !important;
    border-radius: 10px !important;
    backdrop-filter: blur(10px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.scroll-indicator.visible {
    opacity: 1 !important;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 15px;
    position: relative;
    background: rgba(255, 255, 255, 0.1) !important;
    margin: 0 auto;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.9) !important;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(8px);
    }
}

.scroll-text {
    text-align: center;
    margin-top: 8px;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: 'Raleway', sans-serif;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
}

/* Circular arrow button */
.scroll-arrow-btn {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-arrow-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%) scale(1.1);
    animation: none;
}

.scroll-arrow-btn svg {
    width: 24px;
    height: 24px;
    color: white;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Hide other animated sections */
.bismillah-img,
.quran-verse,
.quran-reference,
.bride-label,
.bride-name,
.bride-subtitle,
.bride-parents,
.bride-social,
.groom-label,
.groom-name,
.groom-subtitle,
.groom-parents,
.groom-social,
.event-title,
.event-card,
.event-date,
.event-time,
.event-venue,
.event-address,
.quote-text,
.closing-title,
.closing-message,
.closing-note,
.closing-from,
.closing-names,
.closing-family {
    opacity: 0;
}

.couple-intro,
.couple-name-bride,
.couple-and,
.couple-name-groom,
.couple-invitation {
    opacity: 0;
}

#photo-footer img {
    opacity: 0;
}

.bg-fixed {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .bg-fixed {
        background-attachment: scroll;
    }
}

.bg-soft-gradient {
    background: linear-gradient(180deg, #ffffff 0%, #faf9f7 50%, #ffffff 100%);
}

/* Paper texture for main content */
.site {
    position: relative;
    background: linear-gradient(180deg, #faf9f7 0%, #ffffff 100%);
}

.site::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, .02) 2px, rgba(0, 0, 0, .02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 0, 0, .02) 2px, rgba(0, 0, 0, .02) 4px),
        repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(0, 0, 0, .01) 5px, rgba(0, 0, 0, .01) 10px);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.site>* {
    position: relative;
    z-index: 2;
}

/* Soft gradient transition before image sections */
.gradient-transition {
    background: linear-gradient(180deg, #faf9f7 0%, rgba(250, 249, 247, 0.5) 50%, transparent 100%);
}

/* Improved text overlay for better legibility */
.text-shadow-strong {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 4px 16px rgba(0, 0, 0, 0.5);
}

/* Beige accent border for color consistency */
.beige-accent {
    border-top: 1px solid #faf9f7;
}

/* Wide screen decorative lace borders */
@media (min-width: 768px) {

    body::before,
    body::after {
        content: '';
        position: fixed;
        top: 0;
        bottom: 0;
        width: calc((100vw - 768px) / 2);
        z-index: 100;
        pointer-events: none;
    }

    body::before {
        left: 0;
        background:
            /* Scalloped lace edge */
            radial-gradient(circle at 100% 50%, transparent 8px, #e8b4b8 8px, #e8b4b8 11px, transparent 11px),
            /* Dot pattern */
            radial-gradient(circle at calc(100% - 20px) 50%, #e8b4b8 4px, transparent 4px),
            radial-gradient(circle at calc(100% - 35px) 50%, #e8b4b8 3px, transparent 3px),
            /* Vertical lines */
            linear-gradient(to right, transparent calc(100% - 26px), rgba(212, 165, 116, 0.3) calc(100% - 26px), rgba(212, 165, 116, 0.3) calc(100% - 23px), transparent calc(100% - 23px)),
            linear-gradient(to right, transparent calc(100% - 17px), rgba(212, 165, 116, 0.5) calc(100% - 17px), rgba(212, 165, 116, 0.5) calc(100% - 12px), transparent calc(100% - 12px)),
            /* Base */
            linear-gradient(to right, transparent calc(100% - 45px), rgba(248, 246, 243, 0.5) calc(100% - 45px));
        background-size: 100% 30px, 100% 30px, 100% 60px, 100% 100%, 100% 100%, 100% 100%;
        background-position: 0 0, 0 15px, 0 0, 0 0, 0 0, 0 0;
    }

    body::after {
        right: 0;
        background:
            /* Scalloped lace edge */
            radial-gradient(circle at 0% 50%, transparent 8px, #e8b4b8 8px, #e8b4b8 11px, transparent 11px),
            /* Dot pattern */
            radial-gradient(circle at 20px 50%, #e8b4b8 4px, transparent 4px),
            radial-gradient(circle at 35px 50%, #e8b4b8 3px, transparent 3px),
            /* Vertical lines */
            linear-gradient(to left, transparent calc(100% - 26px), rgba(212, 165, 116, 0.3) calc(100% - 26px), rgba(212, 165, 116, 0.3) calc(100% - 23px), transparent calc(100% - 23px)),
            linear-gradient(to left, transparent calc(100% - 17px), rgba(212, 165, 116, 0.5) calc(100% - 17px), rgba(212, 165, 116, 0.5) calc(100% - 12px), transparent calc(100% - 12px)),
            /* Base */
            linear-gradient(to left, transparent calc(100% - 45px), rgba(248, 246, 243, 0.5) calc(100% - 45px));
        background-size: 100% 30px, 100% 30px, 100% 60px, 100% 100%, 100% 100%, 100% 100%;
        background-position: 0 0, 0 15px, 0 0, 0 0, 0 0, 0 0;
    }
}
