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

body {
    font-family: 'Inter', sans-serif;
    background: #FCFAF6;
    color: #2D2522;
}

.gorga-top {
    background: repeating-linear-gradient(90deg,
            #D4A017 0px, #D4A017 12px,
            transparent 12px, transparent 16px,
            #8B0000 16px, #8B0000 28px,
            transparent 28px, transparent 32px);
    height: 6px;
}

.gorga-bottom {
    background: repeating-linear-gradient(90deg,
            #8B0000 0px, #8B0000 12px,
            transparent 12px, transparent 16px,
            #D4A017 16px, #D4A017 28px,
            transparent 28px, transparent 32px);
    height: 6px;
}


.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

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

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes navSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes gentlePulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.animate-fade-up {
    animation: fadeInUp 1s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 1.2s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-700 {
    animation-delay: 0.7s;
}

.delay-800 {
    animation-delay: 0.8s;
}

.shimmer-text {
    background: linear-gradient(90deg, #D4A017, #FFD700, #D4A017, #B8860B, #D4A017);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

.black-gold-text {
    background: linear-gradient(180deg, black 1%, #A67D3E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    font-weight: 700;
}

.faded-mask {
    mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cover-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cover-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    isolation: isolate;
    background: url("../assets/images/etnic-batak-ulos.jpg") center/cover no-repeat;
}

/* Ornament PNG */
.cover-bg::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 280px;
    background: url("../assets/images/gorga.png") center/contain no-repeat;
    z-index: -3;
}

/* White Transparent Overlay */
.cover-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    z-index: -2;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    isolation: isolate;
    background: url("../assets/images/cover2.png") center/cover no-repeat;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.gorga-frame {
    position: relative;
    border: 2px solid #D4A017;
    padding: 3rem 2rem;
}

.gorga-frame::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(139, 0, 0, 0.6);
    pointer-events: none;
}

.ornament-corner {
    position: absolute;
    width: 40px;
    height: 40px;
}

.ornament-corner svg {
    width: 100%;
    height: 100%;
}

.ornament-tl {
    top: -2px;
    left: -2px;
}

.ornament-tr {
    top: -2px;
    right: -2px;
    transform: scaleX(-1);
}

.ornament-bl {
    bottom: -2px;
    left: -2px;
    transform: scaleY(-1);
}

.ornament-br {
    bottom: -2px;
    right: -2px;
    transform: scale(-1, -1);
}

.ulos-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.ulos-divider::before,
.ulos-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4A017, transparent);
}

.scroll-indicator {
    animation: float 2s ease-in-out infinite;
}

.section-dark {
    background: radial-gradient(ellipse at center, rgba(168, 30, 30, 0.04), transparent 70%), #FCFAF6;
}

.section-darker {
    background: radial-gradient(ellipse at center, rgba(168, 30, 30, 0.06), transparent 70%), #F4EDE4;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #FCFAF6;
}

::-webkit-scrollbar-thumb {
    background: #A81E1E;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D4A017;
}

.music-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(168, 30, 30, 0.9);
    border: 1px solid #D4A017;
    color: #D4A017;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.music-btn:hover {
    background: rgba(212, 160, 23, 0.2);
    transform: scale(1.1);
}

.music-btn.playing iconify-icon {
    animation: rotate-slow 2s linear infinite;
}

.countdown-box {
    background: #FFFFFF;
    border: 1px solid rgba(212, 160, 23, 0.4);
    box-shadow: 0 4px 12px rgba(45, 37, 34, 0.04);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    min-width: 80px;
    text-align: center;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(212, 160, 23, 0.2);
    transition: all 0.5s ease;
}

.gallery-item:hover {
    border-color: #D4A017;
    transform: scale(1.02);
}

.gallery-item img {
    transition: all 0.5s ease;
}

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

.toast {
    position: fixed;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(252, 250, 246, 0.98);
    border: 1px solid #D4A017;
    color: #2D2522;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

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

.envelope-overlay {
    position: fixed;
    inset: 0;
    background: #FCFAF6;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.envelope-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Guest greeting card */
.greeting-card {
    position: relative;
    border: 1px solid rgba(212, 160, 23, 0.25);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(45, 37, 34, 0.04);
    overflow: hidden;
}

.greeting-card::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(168, 30, 30, 0.1);
    border-radius: 9px;
    pointer-events: none;
}

.greeting-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.4), transparent);
}

/* Floating bottom nav */
.floating-nav {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 950;
    display: none;
    width: calc(100% - 2rem);
    max-width: 420px;
    animation: navSlideUp 0.6s ease-out forwards;
}

.floating-nav.visible {
    display: block;
}

.floating-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #751212;
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(212, 160, 23, 0.35);
    border-radius: 20px;
    padding: 0.55rem 0.25rem;
    box-shadow: 0 8px 32px rgba(117, 18, 18, 0.2),
        0 0 0 1px rgba(212, 160, 23, 0.1) inset;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 0.4rem 0.65rem;
    border-radius: 14px;
    color: rgba(255, 248, 240, 0.5);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    min-width: 52px;
}

.nav-item:active {
    transform: scale(0.92);
}

.nav-item.active-nav {
    color: #D4A017;
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active-nav .nav-dot {
    opacity: 1;
    transform: scaleX(1);
}

.nav-dot {
    position: absolute;
    bottom: 0px;
    left: 37.5%;
    transform: translateX(-50%) scaleX(0);
    width: 16px;
    height: 3px;
    background: #D4A017;
    border-radius: 3px 3px 3px 3px;
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-item span {
    font-size: 0.58rem;
    letter-spacing: 0.02em;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .music-btn {
        bottom: 5.5rem;
        right: 0.75rem;
        width: 40px;
        height: 40px;
    }
}

/* Couple Arched Photo Frame */
.couple-arch-frame {
    position: relative;
    width: 220px;
    height: 290px;
    border-radius: 110px 110px 0 0;
    border: 2px solid #D4A017;
    padding: 6px;
    background: #FCFAF6;
    box-shadow: 0 12px 24px rgba(45, 37, 34, 0.06);
    display: inline-block;
    overflow: hidden;
}

.couple-arch-frame img {
    width: 100%;
    height: 100%;
    border-radius: 104px 104px 0 0;
    object-fit: cover;
}

/* Red Background Countdown Tweak */
#countdown.bg-batak-red .countdown-box {
    background: rgba(117, 18, 18, 0.4);
    border: 1px solid rgba(212, 160, 23, 0.5);
    box-shadow: none;
}

/* Event Card White Styling */
.event-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(212, 160, 23, 0.3) !important;
    box-shadow: 0 8px 24px rgba(45, 37, 34, 0.04) !important;
}

/* Custom inputs for clean guestbook */
.guestbook-input {
    background: #FFFFFF !important;
    border: 1px solid rgba(212, 160, 23, 0.25) !important;
    color: #2D2522 !important;
}

.guestbook-input:focus {
    border-color: #D4A017 !important;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1) !important;
}