/* CSS Variables & Fonts */
:root {
    --primary: #8a7968;
    --primary-dark: #6e5e4f;
    --secondary: #dcd2c6;
    --accent: #b38b69;
    --accent-light: #e6dacd;
    --bg-light: #fcfbfa;
    --bg-alt: #f1eve8;
    --text-dark: #3a3532;
    --text-mid: #68635e;
    --text-light: #ffffff;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-script: 'Great Vibes', cursive;
    --font-body: 'Montserrat', sans-serif;
    
    --radius: 12px;
    --transition: all 0.4s ease;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   Cover Pop-up
========================================= */
.cover-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-light);
    background-image: linear-gradient(rgba(252, 251, 250, 0.9), rgba(252, 251, 250, 0.9)), url('foto_slideshow1.jpeg');
    background-size: cover;
    background-position: center;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), opacity 1s ease;
}

.cover-wrapper.opened {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.cover-content {
    z-index: 2;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(138, 121, 104, 0.3);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    max-width: 90%;
    width: 400px;
    animation: fadeIn 1.5s ease;
}

.cover-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}

.cover-title {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 400;
}

.cover-title span {
    display: block;
    margin: 0;
    font-family: var(--font-heading);
    font-size: 2.5rem;
}

.cover-text {
    font-size: 0.9rem;
    color: var(--text-mid);
    margin-bottom: 30px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
    border: none;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(138, 121, 104, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 121, 104, 0.4);
}

/* =========================================
   Hero Section
========================================= */
.main-content {
    opacity: 0;
    transition: opacity 1.5s ease 0.5s; /* Delays fade-in until cover starts opening */
}

body.allow-scroll .main-content {
    opacity: 1;
}

.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: zoomInOut 20s infinite alternate linear;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: 2;
}

.hero-text {
    z-index: 3;
    color: var(--text-light);
    padding: 20px;
}

.hero-text h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.9;
}

.hero-text h2 {
    font-family: var(--font-script);
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-text h2 span {
    display: block;
    margin: 5px 0;
    font-family: var(--font-heading);
    font-size: 2.5rem;
}

.hero-text p {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255,255,255,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s infinite;
}

.scroll-indicator p {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* =========================================
   Global Section Styles
========================================= */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

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

.section-title p {
    color: var(--text-mid);
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.95rem;
}

/* =========================================
   Couple Section
========================================= */
.couple-section {
    padding: 80px 0 30px;
    background-color: var(--bg-light);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23dcd2c6' fill-opacity='0.2'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.couple-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.couple-box {
    text-align: center;
    flex: 1;
    min-width: 250px;
}

.couple-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background-size: cover;
    background-position: center;
    border: 5px solid var(--accent-light);
    box-shadow: 0 10px 25px rgba(138, 121, 104, 0.2);
}

.groom-img {
    background-image: url('ode2.jpeg');
}

.bride-img {
    background-image: url('dinda.jpeg');
}

.couple-box h3 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.couple-box p {
    font-size: 0.9rem;
    color: var(--text-mid);
}

.couple-and {
    font-family: var(--font-script);
    font-size: 4rem;
    color: var(--accent);
}

/* =========================================
   Event Section
========================================= */
.event-section {
    padding: 80px 0;
    background-color: #fff;
}

.event-card {
    background: var(--bg-light);
    border: 1px solid var(--accent-light);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.03);
    position: relative;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 10px; right: 10px; bottom: 10px; left: 10px;
    border: 1px solid var(--accent-light);
    border-radius: 8px;
    pointer-events: none;
}

.event-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.event-card h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.detail-item i {
    font-size: 1.2rem;
    color: var(--primary);
}

.detail-item p {
    font-size: 0.95rem;
    color: var(--text-mid);
}

.detail-item strong {
    color: var(--text-dark);
    font-weight: 500;
}

.location-img-wrapper {
    margin-top: 30px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.location-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.location-img:hover {
    transform: scale(1.05);
}

/* =========================================
   Gallery Section
========================================= */
.gallery-section {
    padding: 10px 0 80px;
    background-color: var(--bg-light);
}

.slideshow-container {
    max-width: 600px;
    height: 750px;
    position: relative;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 5px solid #fff;
    background: var(--bg-light);
}

@media (max-width: 768px) {
    .slideshow-container {
        height: 500px;
    }
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide img.img-top {
    object-position: top;
}

.slide img.img-bottom {
    object-position: bottom;
}

.fade {
    animation-name: slideFade;
    animation-duration: 4s;
}

@keyframes slideFade {
    from { opacity: 0.6; transform: scale(1.05); } 
    to { opacity: 1; transform: scale(1); }
}

/* =========================================
   Footer
========================================= */
.footer-section {
    background-color: var(--primary-dark);
    color: var(--text-light);
    text-align: center;
    padding: 60px 0 40px;
}

.footer-section h2 {
    font-family: var(--font-script);
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 15px;
}

.footer-section p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-divider {
    width: 50px;
    height: 1px;
    background-color: rgba(255,255,255,0.3);
    margin: 30px auto;
}

.copyright {
    font-size: 0.8rem !important;
    opacity: 0.6 !important;
}

/* =========================================
   Music Player Button
========================================= */
.music-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.music-player.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
}

.music-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--primary);
    border: 2px solid var(--accent-light);
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.music-btn.playing {
    animation: rotate 4s linear infinite;
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* =========================================
   Animations
========================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomInOut {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

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

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

/* Reveal Animation (Intersection Observer) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Responsive
========================================= */
@media (max-width: 768px) {
    .cover-title { font-size: 2.8rem; }
    .hero-text h2 { font-size: 3.5rem; }
    .section-title h2 { font-size: 2rem; }
    .couple-row { flex-direction: column; gap: 10px; }
    .couple-and { padding: 10px 0; line-height: 1; }
    .event-card { padding: 30px 20px; }

}
