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

:root {
    --bg-body: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --text-color: #333;
    --container-bg: #fff;
    --quran-bg: #f9f9f9;
    --comment-bg: #f9f9f9;
    --reply-bg: #fff;
    --button-bg: #6b4e31;
    --button-hover: #8b6f47;
    --accent-color: #6b4e31;
    --secondary-text: #666;
    --modal-bg: rgba(0, 0, 0, 0.5);
    --qr-modal-bg: #fff;
}

[data-theme="dark"] {
    --bg-body: linear-gradient(135deg, #2c3e50 0%, #4a5568 100%);
    --text-color: #e2e8f0;
    --container-bg: #1a202c;
    --quran-bg: #2d3748;
    --comment-bg: #2d3748;
    --reply-bg: #1a202c;
    --button-bg: #a1805b;
    --button-hover: #c19b76;
    --accent-color: #a1805b;
    --secondary-text: #a0aec0;
    --modal-bg: rgba(0, 0, 0, 0.7);
    --qr-modal-bg: #2d3748;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-body);
    color: var(--text-color);
    line-height: 1.6;
}

/* Fixed Controls */
.fixed-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

/* Tombol Musik */
.music-toggle {
    background: var(--button-bg);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.music-toggle:hover {
    background: var(--button-hover);
}

.music-toggle i {
    font-size: 1.2rem;
}

/* Tombol Mode Gelap */
.theme-toggle {
    background: var(--button-bg);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.theme-toggle:hover {
    background: var(--button-hover);
}

.theme-toggle i {
    font-size: 1.2rem;
}

/* Modal QR Code */
.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-bg);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.qr-modal-content {
    background: var(--qr-modal-bg);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    color: var(--text-color);
}

.qr-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.qr-image {
    width: 200px;
    height: 200px;
    margin: 20px 0;
    border-radius: 5px;
}

.qr-modal-content h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.qr-modal-content p {
    font-size: 1rem;
    color: var(--secondary-text);
}

/* Halaman Awal */
.welcome-page {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('img/bg.jpeg') no-repeat center/cover;
    color: #fff;
}

.welcome-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
}

.welcome-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.welcome-content h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    margin-bottom: 20px;
}

.welcome-content h2 {
    font-size: 1.8rem;
    margin: 10px 0;
}

.welcome-photos {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.welcome-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.welcome-content button {
    padding: 10px 20px;
    background: var(--button-bg);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.welcome-content button:hover {
    background: var(--button-hover);
}

/* Konten Utama */
.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: var(--container-bg);
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    padding: 20px 0;
}

header h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--accent-color);
}

/* Animasi untuk Section */
.animate-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Variasi delay untuk setiap section */
.quran.visible { transition-delay: 0.1s; }
.couple.visible { transition-delay: 0.2s; }
.countdown.visible { transition-delay: 0.3s; }
.event-details.visible { transition-delay: 0.4s; }
.map.visible { transition-delay: 0.5s; }
.gallery.visible { transition-delay: 0.6s; }
.love-gift.visible { transition-delay: 0.7s; }
.comments.visible { transition-delay: 0.8s; }

/* Quran */
.quran {
    text-align: center;
    padding: 20px;
    background: var(--quran-bg);
    border-radius: 10px;
    margin: 20px 0;
}

.quran p {
    font-size: 1rem;
    font-style: italic;
}

/* Mempelai */
.couple {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.bride-groom {
    width: 40%;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.couple span {
    font-size: 2rem;
    color: var(--accent-color);
}

/* Countdown */
.countdown {
    text-align: center;
    padding: 20px;
}

#countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

#countdown-timer div {
    text-align: center;
}

#countdown-timer span {
    display: block;
    font-size: 2rem;
    color: var(--accent-color);
}

#countdown-timer p {
    font-size: 0.9rem;
}

/* Detail Acara */
.event-details {
    padding: 20px;
    text-align: center;
}

.event {
    margin: 20px 0;
}

.event h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.event button {
    margin-top: 10px;
    padding: 8px 16px;
    background: var(--button-bg);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Map Interaktif */
.map {
    padding: 20px;
    text-align: center;
}

.map-container {
    max-width: 100%;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}

/* Galeri */
.gallery {
    padding: 20px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

/* Love Gift */
.love-gift {
    padding: 20px;
    text-align: center;
}

/* Komentar dengan Disqus */
.comments {
    padding: 20px;
    text-align: center;
}

#disqus_thread {
    max-width: 500px;
    margin: 20px auto;
    text-align: left;
}

/* Gaya untuk komentar Disqus */
#disqus_thread .post {
    background: var(--comment-bg);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

#disqus_thread .post .username {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1rem;
}

#disqus_thread .post .comment {
    font-size: 1rem;
    color: var(--text-color);
    margin-top: 5px;
}

#disqus_thread .post .time {
    font-size: 0.9rem;
    color: var(--secondary-text);
}

#disqus_thread .post .comment-body {
    margin-top: 5px;
}

#disqus_thread .children .post {
    background: var(--reply-bg);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    border-left: 3px solid var(--accent-color);
    margin-left: 20px;
}

#disqus_thread .textarea-wrapper textarea {
    padding: 10px;
    border: 1px solid var(--secondary-text);
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    resize: vertical;
    min-height: 100px;
    font-family: 'Poppins', sans-serif;
    background: var(--reply-bg);
    color: var(--text-color);
}

#disqus_thread .textarea-wrapper .disqus-comment-input {
    padding: 10px;
    border: 1px solid var(--secondary-text);
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    background: var(--reply-bg);
    color: var(--text-color);
}

#disqus_thread .post-actions .btn-post {
    padding: 10px;
    background: var(--button-bg);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    font-family: 'Poppins', sans-serif;
}

#disqus_thread .post-actions .btn-post:hover {
    background: var(--button-hover);
}

#disqus_thread .post-actions .link-reply {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 5px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

#disqus_thread .post-actions .link-reply:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: var(--secondary-text);
}

/* Responsif */
@media (max-width: 600px) {
    .welcome-content h3 {
        font-size: 1.2rem;
    }

    .welcome-content h1 {
        font-size: 2rem;
    }

    .welcome-content h2 {
        font-size: 1.2rem;
    }

    .welcome-photos {
        margin-bottom: 15px;
    }

    .welcome-img {
        width: 120px;
        height: 120px;
    }

    .container {
        margin: 10px;
        padding: 15px;
    }

    .couple {
        flex-direction: column;
        gap: 20px;
    }

    .bride-groom {
        width: 100%;
    }

    #countdown-timer {
        gap: 10px;
    }

    #countdown-timer span {
        font-size: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .animate-section {
        transform: translateY(30px); /* Kurangi jarak translasi di mobile */
    }

    .qr-modal-content {
        width: 95%;
    }

    .qr-image {
        width: 150px;
        height: 150px;
    }

    #disqus_thread {
        max-width: 100%;
        padding: 0 10px;
    }

    .fixed-controls {
        flex-direction: column;
        gap: 10px;
    }
}