@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Great+Vibes&family=Marcellus&display=swap');

:root {
    --inv-bg: #ffffff;
    --inv-base: #3e6692;
    --inv-accent: #83b2ec;
    --inv-border: #483E26;
    --font-base: 'Marcellus', serif;
    --font-accent: 'DM Serif Display', serif;
    --font-latin: 'Great Vibes', cursive;
    --menu-bg: #c7dffb;
    --menu-inactive: #3e6692;
    --menu-active: #83b2ec;
    --btn-color: #ffffff;
    
    /* Legacy compat */
    --primary-blue: var(--inv-base);
    --accent-gold: #c6915a; /* From source inline color */
    --btn-blue: var(--inv-accent);
}

@keyframes wave-1 { 0% { transform: rotate(-2deg); } 100% { transform: rotate(2deg); } }
@keyframes wave-2 { 0% { transform: rotate(-3deg); } 100% { transform: rotate(3deg); } }
@keyframes wave-3 { 0% { transform: rotate(2deg); } 100% { transform: rotate(-2deg); } }
@keyframes wave-4 { 0% { transform: rotate(3deg); } 100% { transform: rotate(-3deg); } }

.animate-left-1 img { transform-origin: 50% 100%; animation: wave-1 4s ease-in-out infinite alternate; }
.animate-left-2 img { transform-origin: 50% 100%; animation: wave-2 3s ease-in-out infinite alternate; }
.animate-right-1 img { transform-origin: 50% 100%; animation: wave-3 4s ease-in-out infinite alternate; }
.animate-right-2 img { transform-origin: 50% 100%; animation: wave-4 3s ease-in-out infinite alternate; }

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

body {
    font-family: var(--font-base);
    color: var(--inv-base);
    background-color: var(--inv-bg);
    overflow: hidden; /* Lock scroll strictly for tabbed view */
}

.serif-font { font-family: var(--font-accent); }
.script-font { font-family: var(--font-latin); }
.gold-text { color: var(--accent-gold); }
.white-text { color: var(--text-white); }
.hidden { display: none !important; }
.blue-text { color: var(--primary-blue); }
.font-small { font-size: 0.9rem; margin-bottom: 2px; }

/* Buttons */
.btn-primary {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: scale(1.05);
    background-color: #c49a2d;
}

.btn-outline {
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
}

.btn-outline:hover {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
}

/* Cover Overlay */
.cover-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    background-image: url('https://satumomen.com/themes/jawa-biru/bg-floral.webp'); /* Assuming a floral bg exists or just subtle clean bg */
    background-size: cover;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 1s ease-in-out;
    overflow: hidden;
}

.illustration-container {
    width: 150px;
    height: 200px;
    margin: 0 auto 20px;
    overflow: hidden;
}

.main-illustration {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.frame-tl { position: absolute; top: 0; left: 0; }
.frame-tr { position: absolute; top: 0; right: 0; }

.ornament-wrap {
    position: absolute;
}

.w-100 { width: 100%; }

.color-accent { color: var(--inv-accent); }
.editable { margin-bottom: 5px; }
.h5 { font-weight: 700; }

.cover-content {
    max-width: 500px;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.gunungan-container {
    margin-bottom: 20px;
}

.main-gunungan {
    width: 180px;
    filter: none;
}

.pair-name {
    font-size: 3.5rem;
    margin: 5px 0 20px;
}

.guest-info {
    margin: 20px 0;
}

.guest-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 10px;
}

.btn-open-undangan {
    background-color: var(--inv-base);
    color: white;
    border: none;
    padding: 10px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(62, 102, 146, 0.3);
}

.btn-open-undangan:hover {
    background-color: var(--inv-accent);
    transform: translateY(-2px);
}

.bottom-ornaments {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
}

.bottom-wayang {
    position: absolute;
    bottom: 0;
    z-index: 1;
}

.floating-icons {
    position: absolute;
    right: 20px;
    top: 60%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.icon-circle {
    width: 45px;
    height: 45px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    color: var(--btn-blue);
    font-size: 1.2rem;
}

.icon-circle:first-child { color: #25D366; } /* WA Color */

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--primary-blue);
    background-image: linear-gradient(rgba(0,46,93,0.7), rgba(0,46,93,0.7)), url('navy_batik_pattern_bg_seamless_design_luxury_wedding_1774307656374.png');
    background-size: cover;
    color: var(--text-white);
    overflow: hidden;
}

/* Frame ornaments are now global per section */
.ornament-wrap {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.hero-section h1 {
    font-size: 4rem;
    color: var(--accent-gold);
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.countdown-item {
    background: var(--inv-base);
    color: white;
    width: 80px;
    padding: 15px 5px;
    border-radius: 10px;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.countdown-item span {
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
    color: var(--accent-gold);
}

.countdown-item p {
    font-size: 0.8rem;
    margin: 5px 0 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    padding: 60px 20px 100px;
    text-align: center;
    overflow: hidden; /* Disable scrolling globally as per user request */
    display: none; /* Hidden by default in tabbed mode */
    background-image: url('https://satumomen.com/themes/jawa-biru/bg.webp');
    background-size: cover;
    z-index: 5;
}

.section.active {
    display: flex; /* Shown when active */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Couple Section */
.couple-section .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.couple-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.couple-img-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid var(--accent-gold);
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #ddd;
}

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

.social-links {
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--inv-base);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: 0.3s;
    border: 1px solid var(--accent-gold);
}

.social-links a:hover {
    background: var(--inv-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.social-links i {
    font-size: 1.1rem;
}

.ampersand {
    font-size: 3rem;
}

/* Event Section */
.event-section {
    background-color: #f0f2f5;
}

.event-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px 0;
}

@media(min-width: 768px) {
    .event-grid { grid-template-columns: 1fr 1fr; }
    .couple-section .container { flex-direction: row; justify-content: space-around; }
}

.event-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--accent-gold);
}

.event-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.event-card p {
    margin: 8px 0;
    color: var(--gray);
}

.event-card i {
    width: 25px;
    color: var(--accent-gold);
}

/* Quotes Section */
.quotes-section {
    background-color: white;
    padding: 100px 20px;
}

.quotes-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--primary-blue);
    max-width: 600px;
    margin: 0 auto;
}

.batik-divider {
    height: 50px;
    background-image: url('navy_batik_pattern_bg_seamless_design_luxury_wedding_1774307656374.png');
    background-size: contain;
    background-repeat: repeat-x;
    margin: 20px 0;
    opacity: 0.3;
}

.mb-20 { margin-bottom: 20px; }
.italic { font-style: italic; }

/* Gallery Section */
.gallery-section {
    background-color: #f8f9fa;
    background-image: url('navy_batik_pattern_bg_seamless_design_luxury_wedding_1774307656374.png');
    background-size: 200px;
    background-blend-mode: overlay;
}

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

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Gift Section */
.bank-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 350px;
    margin: 15px auto;
    border-left: 10px solid var(--accent-gold);
}

.account-number {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 10px 0;
    letter-spacing: 1px;
    word-break: break-all;
}

.btn-copy {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.3s;
}

.btn-copy:hover {
    background: var(--accent-gold);
}

/* RSVP Form */
.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 30px auto;
}

.rsvp-form input, .rsvp-form select, .rsvp-form textarea {
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-family: inherit;
}

/* Bottom Nav Styling (Reference Design) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #d1e5ff; /* Light blue background from reference */
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-item {
    text-decoration: none;
    color: #4a6fa5;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    padding: 8px 10px;
    border-radius: 15px;
    transition: 0.3s;
    flex: 1;
}

.nav-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.nav-item.active {
    background: #83b2ec; /* Pill shape highlight */
    color: white;
}

.nav-item.active i {
    color: white;
}

.btn-petunjuk {
    display: inline-block;
    padding: 12px 30px;
    background: #83b2ec;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(131, 178, 236, 0.3);
}

.btn-petunjuk:hover {
    background: #4a6fa5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 111, 165, 0.4);
}

.event-styled {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding-top: 40px;
}

.event-title, .event-location-title {
    color: #4a6fa5;
    font-size: 1.2rem;
    margin: 10px 0;
}

.event-time {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.event-day {
    color: #4a6fa5;
    font-size: 4rem;
    line-height: 1;
    margin: 0;
}

.event-date-large {
    color: #83b2ec;
    font-size: 5rem;
    line-height: 1;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.event-address {
    color: #4a6fa5;
    font-size: 1rem;
    max-width: 300px;
}

.gate-divider {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.gate-group {
    display: flex;
    gap: 6px;
}

.gate-bar {
    width: 5px;
    height: 45px;
    background: #c6915a;
    border-radius: 2px;
}

/* Music Control */
.music-player {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 800;
}

.btn-music {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.rotating {
    animation: rotate 5s linear infinite;
}

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

/* Animations */
[data-aos] {
    opacity: 0;
    transition: 1s ease;
}

.fade-up {
    transform: translateY(30px);
}

.aos-animate {
    opacity: 1;
    transform: none;
}

/* Mobile Optimization for No-Scroll Layout */
@media (max-width: 600px) {
    .section {
        padding: 40px 15px 80px; /* Thinner padding on mobile */
    }
    
    .serif-font.mb-20, .script-font.mb-20 {
        margin-bottom: 10px;
    }

    .couple-img-wrapper {
        width: 140px;
        height: 140px;
    }
    
    .bank-card {
        padding: 15px;
        margin: 10px auto;
        max-width: 280px;
    }
    
    .event-styled {
        padding-top: 20px;
    }
    
    .event-date-large {
        font-size: 3.5rem;
    }
    
    .event-day {
        font-size: 3rem;
    }
}
