/* ===== NAV LINK ===== */
.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #064e3b;
    position: relative;
    transition: color .15s ease;
}

.nav-link:hover {
    color: #022c22;
}

/* underline indicator */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #84cc16;
    transition: width .2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* arrow */
.nav-arrow {
    transition: transform .2s ease;
}

.group:hover .nav-arrow {
    transform: rotate(180deg);
}

/* ===== ICON BUTTON ===== */
.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: #e5e7eb;
}

.icon-btn-dark {
    background: #064e3b;
    color: white;
}

/* ===== MEGA MENU ===== */
.mega-menu {
    position: absolute;
    top: 60px;
    left: -120px;
    width: 720px;
    background: #f9fafb;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .15);
    animation: megaIn .18s ease;
}

@keyframes megaIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.mega-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280;
    margin-bottom: 12px;
}

.mega-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 14px;
    color: #064e3b;
}

.mega-item:hover {
    background: #d9f99d;
}

.mega-item.active {
    background: #a3e635;
    font-weight: 600;
}

/* ===== ARROW ===== */
.nav-arrow {
    transition: transform .2s ease;
}

/* default: menu hidden tapi tetap “ada” */
.mega-menu {
    position: absolute;
    top: calc(100% + 14px);
    /* lebih aman daripada top:60px */
    left: -120px;
    width: 720px;
    background: #f9fafb;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .15);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
    z-index: 50;
}

/* hover bridge: area transparan untuk “nyambung” hover */
.mega-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
    background: transparent;
}

/* tampil saat hover wrapper */
.mega-wrap:hover .mega-menu,
.mega-wrap.is-open .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* rotate arrow saat menu aktif */
.mega-wrap:hover .nav-arrow,
.mega-wrap.is-open .nav-arrow {
    transform: rotate(180deg);
}

/* highlight column */
.mega-highlight {
    background: #064e3b;
    color: white;
    border-radius: 18px;
    padding: 20px;
}

.mega-highlight h4 {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 6px;
}

.mega-highlight p {
    font-size: 14px;
    opacity: .85;
    margin-bottom: 14px;
}

.mega-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    color: #064e3b;
    padding: 10px 14px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
}

/* RSVP UI rows */
.ui-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(6, 78, 59, .10);
    background: rgba(255, 255, 255, .7);
    margin-bottom: 10px;
    font-size: 14px;
    color: #064e3b;
}

/* simple toggle */
.ui-toggle {
    width: 46px;
    height: 26px;
    border-radius: 9999px;
    background: #0f172a;
    /* off state */
    position: relative;
    border: 1px solid rgba(6, 78, 59, .10);
}

.ui-toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 9999px;
    background: white;
    transition: left .15s ease;
}

.ui-toggle.ui-on {
    background: #0ea5a4;
    /* teal on */
}

.ui-toggle.ui-on::after {
    left: 22px;
}

/* ===== MUSIC SECTION MICRO ANIMATIONS ===== */

/* 1. Waveform pulse */
@keyframes wavePulse {

    0%,
    100% {
        transform: scaleY(0.6);
        opacity: .6;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.wave-bar {
    transform-origin: bottom;
    animation: wavePulse 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(2) {
    animation-delay: .1s;
}

.wave-bar:nth-child(3) {
    animation-delay: .2s;
}

.wave-bar:nth-child(4) {
    animation-delay: .3s;
}

.wave-bar:nth-child(5) {
    animation-delay: .4s;
}

.wave-bar:nth-child(6) {
    animation-delay: .5s;
}

.wave-bar:nth-child(7) {
    animation-delay: .6s;
}

.wave-bar:nth-child(8) {
    animation-delay: .7s;
}

/* 2. Floating playlist */
@keyframes floatSlow {

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

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

.float-slow {
    animation: floatSlow 4s ease-in-out infinite;
}

/* 3. Rating subtle pop */
@keyframes popSoft {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

.pop-soft {
    animation: popSoft 3s ease-in-out infinite;
}

/* 4. Play button breathing */
@keyframes breathe {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(6, 78, 59, .35);
    }

    50% {
        box-shadow: 0 0 0 14px rgba(6, 78, 59, 0);
    }
}

.play-breathe {
    animation: breathe 2.4s ease-in-out infinite;
}

/* reduce motion respect */
@media (prefers-reduced-motion: reduce) {

    .wave-bar,
    .float-slow,
    .pop-soft,
    .play-breathe {
        animation: none !important;
    }
}

/* ===== QR CHECK-IN MICRO ANIMATIONS ===== */
@keyframes scanMove {
    0% {
        transform: translateY(0);
        opacity: .75;
    }

    50% {
        transform: translateY(210px);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: .75;
    }
}

.scan-line {
    animation: scanMove 2.6s ease-in-out infinite;
    filter: drop-shadow(0 6px 10px rgba(239, 68, 68, .25));
}

/* floating invitation card */
@keyframes floatCard {

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

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

.qr-float {
    animation: floatCard 4s ease-in-out infinite;
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {

    .scan-line,
    .qr-float {
        animation: none !important;
    }
}

@keyframes gentleFloat {

    0%,
    100% {
        transform: translateY(0) rotate(var(--r, 0deg));
    }

    50% {
        transform: translateY(-8px) rotate(var(--r, 0deg));
    }
}

.float-gentle {
    animation: gentleFloat 4.5s ease-in-out infinite;
}