/* css/style.css */

/* --- Variabel Global & Reset --- */
:root {
    --primary-color: #6a5acd; /* Ungu lembut */
    --secondary-color: #d4af37; /* Emas */
    --text-color: #333;
    --bg-color: #fdfaf6; /* Krem lembut */
    --light-gray: #f0f0f0;
    --white: #ffffff;
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 80px 20px;
    position: relative;
    overflow: hidden; /* Untuk animasi */
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transform: translateY(-3px);
}

.btn.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- Animasi Kupu-kupu (contoh animasi lucu) --- */
@keyframes fly-butterfly {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -30px) rotate(15deg); }
    50% { transform: translate(-10px, -60px) rotate(-10deg); }
    75% { transform: translate(15px, -90px) rotate(10deg); }
    100% { transform: translate(0, -120px) rotate(0deg) scale(0); opacity: 0; }
}

.butterfly {
    position: absolute;
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: fly-butterfly 5s linear forwards;
    pointer-events: none;
    z-index: 1000;
}

/* --- Audio Player --- */
#audio-player {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 998;
}

.music-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.music-btn.playing i {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Welcome Modal --- */
#welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7) url('../images/hero-bg-1.jpg') no-repeat center center/cover;
    background-blend-mode: darken;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding: 20px;
    transition: opacity 1s ease, visibility 1s ease;
}
#welcome-modal.hidden {
    opacity: 0;
    visibility: hidden;
}
.modal-content {
    animation: fadeInModal 1.5s ease-out;
}
.modal-content h1 {
    font-size: 4rem;
    color: var(--secondary-color);
    margin: 10px 0;
}
.modal-content .guest-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 20px 0;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    display: inline-block;
}
.modal-content .btn {
    margin-top: 30px;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    position: relative;
    background-size: cover;
    background-position: center;
    animation: hero-bg-slider 15s infinite ease-in-out;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-content h2 {
    font-size: 2rem;
}
.couple-name-img {
    max-width: 80%;
    height: auto;
    margin-top: 20px;
}
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes hero-bg-slider {
    0%, 30% { background-image: url('../images/hero-bg-1.jpg'); }
    33%, 63% { background-image: url('../images/hero-bg-2.jpg'); }
    66%, 100% { background-image: url('../images/hero-bg-3.jpg'); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-8px); }
}


/* --- Quote Section --- */
#quote { background-color: var(--bg-color); }
.section-decoration {
    width: 100px;
    margin-bottom: 30px;
}
#quote p {
    font-size: 1.2rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
}
#quote h3 {
    margin-top: 20px;
    color: var(--primary-color);
}

/* --- Couple Section --- */
.couple-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
.couple-card {
    max-width: 300px;
}
.couple-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--secondary-color);
    margin-bottom: 20px;
}
.couple-card h3 {
    font-size: 2rem;
    color: var(--primary-color);
}
.social-link {
    color: var(--text-color);
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
}
.ampersand {
    font-family: var(--font-primary);
    font-size: 4rem;
    color: var(--secondary-color);
}

/* --- Event Section --- */
#event {
    background-color: var(--white);
}
.event-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}
.event-card {
    padding: 30px;
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    max-width: 350px;
    flex-grow: 1;
}
.event-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.event-card p {
    margin-bottom: 10px;
}
.event-card .btn {
    margin-top: 20px;
}

/* --- Countdown Timer --- */
.countdown-container {
    margin: 50px auto 30px;
}
#countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.time-box {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px;
    border-radius: 10px;
    min-width: 100px;
}
.time-box span {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- Gift Section --- */
.gift-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.gift-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    width: 320px;
}
.bank-logo {
    height: 40px;
    margin-bottom: 20px;
}
.account-number {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 10px 0;
    color: var(--primary-color);
}

/* --- Wishes Section --- */
.rsvp-form {
    max-width: 600px;
    margin: 0 auto 50px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.rsvp-form input, .rsvp-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid var(--light-gray);
    font-family: var(--font-secondary);
}
.wishes-board {
    max-width: 700px;
    margin: 0 auto;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
}
.wish-card {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 15px;
    border-left: 4px solid var(--secondary-color);
}
.wish-card h4 {
    color: var(--primary-color);
}

/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px 20px 80px; /* Tambah padding bawah untuk nav */
}
footer h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin: 10px 0;
}

/* --- Bottom Navigation --- */
#bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: space-around;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.7rem;
    transition: color 0.3s ease;
}
.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.nav-item:hover, .nav-item.active {
    color: var(--primary-color);
}

/* --- Animasi Fade-in saat scroll --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Media Queries (untuk responsif di HP) --- */
@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .couple-container { flex-direction: column; }
    .modal-content h1 { font-size: 3rem; }
    #countdown { gap: 10px; }
    .time-box { min-width: 70px; padding: 10px; }
    .time-box span { font-size: 1.8rem; }
}