:root {
    --platinum: #e5e7eb;
    --dark: #111827;
    --text-gray: #4b5563;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    background-color: #f3f4f6;
    overflow-x: hidden;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--dark);
    background-color: var(--white);
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.02);
}

h1,
h2,
h3 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 4px;
}
.cursive {
    font-family: "Sacramento", cursive;
    color: var(--text-gray);
    font-size: 2.5rem;
}

section {
    padding: 100px 30px;
    text-align: center;
    border-bottom: 1px solid var(--platinum);
}

/* ========== ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}
.reveal-bottom {
    transform: translateY(30px);
}
.reveal-left {
    transform: translateX(-40px);
}
.reveal-right {
    transform: translateX(40px);
}
.reveal.active {
    opacity: 1;
    transform: translate(0, 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: 1s ease-in-out;
}
#cover.hide {
    transform: translateX(-50%) translateY(-100%);
}

.btn-open {
    margin-top: 40px;
    padding: 15px 40px;
    background: var(--dark);
    color: white;
    border: none;
    font-size: 0.7rem;
    letter-spacing: 3px;
    cursor: pointer;
    text-transform: uppercase;
}

/* ========== COUNTDOWN ========== */
.timer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 40px;
}
.timer-item span {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    font-weight: 300;
}
.timer-item small {
    font-size: 0.6rem;
    letter-spacing: 2px;
    opacity: 0.6;
    text-transform: uppercase;
}

/* ========== PHOTO BOX ========== */
.photo-minimal {
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 25px;
}
.photo-minimal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 1.2s;
}
.photo-minimal:hover img {
    filter: grayscale(0%);
}

/* ========== GALLERY ========== */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 30px;
}
.masonry-item {
    overflow: hidden;
    height: 200px;
}
.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.8s;
}
.masonry-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}
.item-large {
    grid-column: span 1;
    height: 414px;
    grid-row: span 2;
}

/* ========== RSVP FORM ========== */
.rsvp-form {
    text-align: left;
}
.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 15px 0;
    margin-bottom: 20px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--platinum);
    color: var(--dark);
    outline: none;
    font-family: inherit;
}
.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--dark);
    color: white;
    border: none;
    letter-spacing: 2px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* ========== MUSIC CONTROL (VINYL VERSION) ========== */
.music-control {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-230px);
    z-index: 1000;
}

.music-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--dark);
    color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

/* Animasi Rotasi Vinyl */
@keyframes rotateVinyl {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.music-btn.playing i {
    animation: rotateVinyl 4s linear infinite;
}

body.no-scroll {
    overflow: hidden;
}
@media (max-width: 500px) {
    .music-control {
        left: 20px;
        transform: none;
    }
}
