/* CSS Variables - Javanese Theme Palette */
:root {
    --gold-primary: #d4af37;      /* Classic Gold */
    --gold-secondary: #c2943c;
    --dark-sogan: #2b1b11;       /* Very Dark Brown */
    --brown-sogan: #4a2e1b;      /* Sogan Brown */
    --cream-bg: #fbf8f1;         /* Cream / Off-white */
    --maroon: #5c1a1b;           /* Javanese Maroon */
    
    --text-dark: #3a2e26;
    --text-light: #fbf8f1;
    
    --font-script: 'Great Vibes', cursive;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(212, 175, 55, 0.4);
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream-bg);
    color: var(--text-dark);
    overflow: hidden; /* Prevent scroll when cover active */
}

/* Typography Classes */
.font-script {
    font-family: var(--font-script);
    color: var(--gold-primary);
    font-weight: 400;
}

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

/* Cover Section */
.cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('assets/images/javanese_batik_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--gold-primary);
    z-index: 1000;
    transition: opacity 1s ease-in-out, transform 1s ease;
}
.cover::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(43,27,17,0.7) 0%, rgba(43,27,17,0.95) 100%);
}
.cover-content {
    position: relative;
    z-index: 1;
    padding: 30px;
    background: rgba(43, 27, 17, 0.6);
    border: 1px solid var(--gold-primary);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}
.gunungan-cover {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px auto;
    background-image: url('assets/images/GUNUNGAN-WAYANG-01-1-1-2.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}
.cover-content p {
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--cream-bg);
}
.cover-content h1 {
    font-size: 5rem;
    margin: 0.5rem 0;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.cover-content .guest-name {
    font-weight: 600;
    font-size: 1.3rem;
    margin: 10px 0 25px 0;
    font-family: var(--font-heading);
    color: var(--gold-primary);
}
#open-invitation {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    color: var(--dark-sogan);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}
#open-invitation:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

/* Main Content */
#main-content {
    display: none;
    padding-bottom: 80px;
}

/* Utility Classes */
.btn, .btn-outline {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    margin-top: 1rem;
    cursor: pointer;
    border: none;
}
.btn {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    color: var(--dark-sogan);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}
.btn-outline {
    border: 2px solid var(--gold-primary);
    color: var(--dark-sogan);
    background-color: transparent;
}
.btn-outline:hover {
    background-color: var(--gold-primary);
    color: var(--dark-sogan);
}
.section-intro {
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: var(--text-dark);
}
.section-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--gold-primary);
}
.divider {
    height: 2px;
    width: 60px;
    background: var(--gold-primary);
    margin: 10px auto;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('assets/images/javanese_hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(43,27,17,0.4), rgba(43,27,17,0.9));
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}
.hero-content p {
    font-size: 1.2rem;
    letter-spacing: 4px;
    font-family: var(--font-heading);
    color: var(--cream-bg);
}
.hero-content h1 {
    font-size: 6rem;
    margin: 1rem 0;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

/* Ornament Section Styling */
.ornament-section {
    position: relative;
    padding: 6rem 1.5rem;
    text-align: center;
    overflow: hidden;
}
.dark-section {
    background-color: var(--dark-sogan);
    color: var(--cream-bg);
}
.dark-section .section-intro {
    color: var(--cream-bg);
}
.batik-pattern-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('assets/images/javanese_batik_bg.png');
    background-size: 300px;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}
.dark-section .batik-pattern-bg {
    opacity: 0.15;
}
.ornament-section > * {
    position: relative;
    z-index: 1;
}

/* Couple Section */
#couple .bismillah {
    width: 220px;
    margin-bottom: 2rem;
    filter: invert(24%) sepia(16%) saturate(1478%) hue-rotate(345deg) brightness(91%) contrast(93%); /* Makes it brownish */
}
.couple-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}
.profile-card {
    max-width: 300px;
}
.image-wrapper {
    width: 180px;
    height: 240px;
    margin: 0 auto 1.5rem auto;
    border-radius: 100px 100px 10px 10px;
    padding: 5px;
    background: linear-gradient(135deg, var(--gold-primary), transparent);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 95px 95px 8px 8px;
}
.profile-card h2 {
    font-size: 3.5rem;
    line-height: 1;
}
.profile-card p {
    font-size: 0.9rem;
    margin-top: 5px;
}
.ampersand {
    font-size: 5rem;
    line-height: 1;
}

/* Event Section */
.event-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 3rem 0;
}
.glass-card {
    background: var(--glass-bg);
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: var(--text-dark);
}
.event-card h3 {
    font-size: 1.8rem;
    color: var(--dark-sogan);
}
.event-day {
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 10px;
}
.event-time {
    color: var(--gold-secondary);
    font-weight: 600;
    margin-bottom: 10px;
}
.event-location {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}
.timer-box {
    border: 1px solid var(--gold-primary);
    color: var(--cream-bg);
    padding: 1rem;
    border-radius: 10px;
    width: 80px;
    height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 0.75rem;
    backdrop-filter: blur(5px);
}
.timer-box span {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--gold-primary);
    line-height: 1.1;
}
.event-finished {
    background-color: var(--gold-primary);
    color: var(--dark-sogan);
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.gallery-grid img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Gift Section */
.gift-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 400px;
    margin: 3rem auto 0 auto;
}
.bank-logo {
    height: 35px;
    margin-bottom: 1rem;
    object-fit: contain;
}
.account-number {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-family: monospace;
}
.copy-btn {
    width: 100%;
    font-size: 0.9rem;
    padding: 10px;
}

/* Toast Notification */
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--dark-sogan);
    color: var(--gold-primary);
    text-align: center;
    border-radius: 30px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 0.9rem;
    border: 1px solid var(--gold-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}
@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

/* --- Wishes Section --- */
.rsvp-form {
    max-width: 600px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.rsvp-form input, .rsvp-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: rgba(255,255,255,0.7);
    outline: none;
}
.rsvp-form input:focus, .rsvp-form textarea:focus {
    border-color: var(--gold-primary);
    background: #fff;
}
.wishes-board {
    max-width: 700px;
    margin: 0 auto;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(255,255,255,0.5);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}
/* Custom Scrollbar for wishes board */
.wishes-board::-webkit-scrollbar {
    width: 6px;
}
.wishes-board::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
}
.wishes-board::-webkit-scrollbar-thumb {
    background: var(--gold-secondary);
    border-radius: 3px;
}
.wish-card {
    background: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: left;
    margin-bottom: 15px;
    border-left: 4px solid var(--gold-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.wish-card h4 {
    color: var(--dark-sogan);
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.wish-card p {
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
}

/* Closing Section */
.closing {
    line-height: 1.8;
}
.closing-content {
    max-width: 700px;
    margin: 0 auto;
}
.closing h2 {
    font-size: 5rem;
    margin-top: 3rem;
    color: var(--gold-primary);
    font-family: var(--font-script);
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #1a100a;
    color: #888;
    font-size: 0.8rem;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--cream-bg);
    box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    padding: 12px 0 8px 0;
    z-index: 50;
    display: none;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}
.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #888;
    font-size: 0.7rem;
    font-weight: 500;
    transition: color 0.3s;
}
.bottom-nav a i {
    font-size: 1.3rem;
    margin-bottom: 5px;
}
.bottom-nav a:hover, .bottom-nav a.active {
    color: var(--gold-secondary);
}


/* Media Queries for Desktop */
@media (min-width: 768px) {
    .cover-content h1 { font-size: 7rem; }
    .hero-content h1 { font-size: 9rem; }
    .section-title { font-size: 5rem; }
    
    .couple-profile {
        flex-direction: row;
        justify-content: center;
        gap: 4rem;
    }
    .event-details {
        flex-direction: row;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
    .event-card {
        flex: 1;
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .gift-cards {
        flex-direction: row;
        max-width: 800px;
    }
    .gift-card {
        flex: 1;
    }
}