:root {
    --mint: #dde5b6;
    --sage: #a9af7e;
    --clay: #b08968;
    --white: #fdfdfb;
    --dark: #2d2d2d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    background-color: #e2e2e2;
    overflow-x: hidden;
}

body {
    font-family: "Montserrat", sans-serif;
    color: var(--dark);
    background-color: var(--white);
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
    position: relative;
    background-image: radial-gradient(var(--mint) 0.5px, transparent 0.5px);
    background-size: 20px 20px;
}

h1,
h2,
h3 {
    font-family: "Syne", sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--sage);
}

.cursive {
    font-family: "Sacramento", cursive;
    color: var(--clay);
    font-size: 2.8rem;
}

.arabic {
    font-family: "Amiri", serif;
    font-size: 1.6rem;
    color: var(--sage);
    direction: rtl;
    padding: 20px 0;
}

section {
    padding: 80px 25px;
    text-align: center;
    position: relative;
}

/* ========== CIRI KHAS ANIMASI: MAGNETIC FLOATING ========== */
.reveal {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    filter: blur(10px);
}

.reveal-bottom {
    transform: translateY(60px) rotate(2deg);
}

.reveal-left {
    transform: translateX(-60px) rotate(-2deg);
}

.reveal-right {
    transform: translateX(60px) rotate(2deg);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0) rotate(0);
    filter: blur(0);
}

/* ========== COVER ========== */
#cover {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    height: 100%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: transform 1s cubic-bezier(0.86, 0, 0.07, 1);
    padding: 40px;
    text-align: center;
}

#cover.hide {
    transform: translateX(-50%) translateY(-100%);
}

.btn-open {
    padding: 16px 40px;
    background: var(--sage);
    color: white;
    border: none;
    border-radius: 2px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 3px;
    margin-top: 30px;
    transition: 0.3s;
}

/* ========== HERO (ARCH) ========== */
.hero-img {
    width: 280px;
    height: 400px;
    border-radius: 140px 140px 0 0;
    overflow: hidden;
    margin: 0 auto 30px;
    box-shadow: 20px 20px 0px var(--mint);
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== COUNTDOWN ========== */
.timer-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.timer-box {
    background: var(--white);
    width: 65px;
    border: 1px solid var(--mint);
    padding: 12px 0;
    border-radius: 0;
}

.timer-box span {
    display: block;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--sage);
}

.timer-box small {
    font-size: 0.5rem;
    letter-spacing: 1px;
}

/* ========== CARD MODERNA ========== */
.card-moderna {
    background: var(--white);
    padding: 40px 25px;
    border: 1px solid var(--mint);
    text-align: left;
    margin-bottom: 25px;
    position: relative;
}

.card-moderna::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--sage);
    z-index: -1;
}

/* ========== GALLERY MASONRY ========== */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: 10px;
    margin-top: 30px;
}

.masonry-item {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--mint);
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s;
}

.masonry-item:hover img {
    transform: scale(1.1);
}

.item-large {
    grid-column: span 1;
    grid-row: span 2;
}

/* ========== RSVP FORM ========== */
.rsvp-form {
    text-align: left;
    margin-top: 30px;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #fff;
    border: 1px solid var(--mint);
    color: var(--dark);
    border-radius: 2px;
    outline: none;
    font-family: inherit;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--sage);
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ========== MUSIC VINYL ========== */
.music-control {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-235px);
    z-index: 1000;
}

.music-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    color: var(--sage);
    border: 2px solid var(--sage);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.playing i {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    color: var(--clay);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.back-to-top i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

body.no-scroll {
    overflow: hidden;
}

@media (max-width: 500px) {
    .music-control {
        left: 20px;
        transform: none;
    }
}
