@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
    --bg-almond: #F6EFE9;
    --bg-latte: #D6B99A;
    --bg-latte-light: #E7D5C5;
    --text-espresso: #4A3022;
    --text-light: #F6EFE9;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background-color: #2b1f1a; /* Dark bold backdrop for desktop framing */
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px; /* Offset for fixed menu */
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: #FFFDF9; /* Default base solid color */
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    position: relative;
    overflow-x: hidden;
    color: var(--text-espresso);
    font-family: var(--font-body);
}

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

/* Background Abstract Lines (Reverted to original) */
.bg-lines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><path d="M-50,150 Q150,50 300,200 T600,100" fill="none" stroke="%23CBA485" stroke-width="1.5" opacity="0.6"/><path d="M-100,600 Q200,700 400,500 T700,600" fill="none" stroke="%23CBA485" stroke-width="1.5" opacity="0.6"/></svg>');
    background-size: cover;
    z-index: 0;
    pointer-events: none;
}

/* Background Abstract Lines for specific sections */
.bg-lines-section {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><path d="M-50,50 Q150,-50 300,100 T600,0" fill="none" stroke="%23CBA485" stroke-width="1.5" opacity="0.5"/><path d="M-100,300 Q200,400 400,200 T700,300" fill="none" stroke="%23CBA485" stroke-width="1.5" opacity="0.5"/></svg>');
    background-size: cover;
    z-index: 0;
    pointer-events: none;
}

/* Ornaments for boxes */
.has-ornament {
    position: relative;
    overflow: hidden;
}
.has-ornament::before,
.has-ornament::after {
    content: '';
    position: absolute;
    width: 50px; height: 50px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="M32 0 C40 20 55 30 64 32 C55 34 40 44 32 64 C24 44 9 34 0 32 C9 30 24 20 32 0 Z" fill="%234A3022" opacity="0.15"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
}
.has-ornament::before {
    top: -15px; left: -15px;
    transform: rotate(45deg);
}
.has-ornament::after {
    bottom: -15px; right: -15px;
    transform: rotate(225deg);
}

.nav-header {
    background-color: rgba(74, 48, 34, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.nav-header a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: var(--font-body);
    font-weight: 700;
}

/* Welcome Screen */
#welcome-screen {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-almond);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 1s ease-in-out;
}

.cover-image-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: -2;
}

.cover-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(74, 48, 34, 0.4));
    z-index: -1;
}

.welcome-box {
    background: rgba(246, 239, 233, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem 1.5rem;
    text-align: center;
    width: 75%;
    max-width: 320px;
    border: 1px solid var(--text-espresso);
    color: var(--text-espresso);
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    margin-top: 0; 
}
.welcome-box::before {
    content: '';
    position: absolute; top: -8px; left: -8px; right: -8px; bottom: -8px;
    border: 1px solid var(--text-espresso);
    pointer-events: none;
    opacity: 0.5;
}
.btn-buka {
    background-color: var(--text-espresso);
    color: var(--text-light);
    border: none; padding: 12px 30px;
    font-family: var(--font-body); text-transform: uppercase;
    font-size: 0.8rem; letter-spacing: 2px; margin-top: 2rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    z-index: 1;
    padding: 4rem 1.5rem;
    text-align: center;
}
.hero-names {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}
.hero-sub {
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 3rem;
}

.layer-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.box-latte-top {
    background-color: var(--bg-latte);
    width: 85%;
    padding: 2.5rem 1rem 5rem 1rem;
    text-align: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.box-latte-top h4 {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.box-latte-top p { margin: 0; font-size: 1rem; font-weight: 300; }

.layer-image {
    width: 60%;
    height: 280px;
    object-fit: cover;
    position: relative;
    z-index: 3;
    margin-top: -3.5rem; 
    border: none;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-radius: 150px 150px 30px 30px; 
    animation: floatImage 4s ease-in-out infinite; 
}

@keyframes floatImage {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.box-latte-bottom {
    background-color: var(--bg-latte);
    width: 85%;
    padding: 4rem 1rem 2rem 1rem;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-top: -2.5rem; 
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.btn-rsvp-hero {
    display: inline-block;
    background-color: transparent;
    border: 1px solid var(--text-espresso);
    color: var(--text-espresso);
    padding: 10px 20px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    position: relative;
    z-index: 5;
    border-radius: 30px;
}
.btn-rsvp-hero:hover {
    background-color: var(--text-espresso);
    color: var(--text-light);
}
.warm-latte-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-top: 10px;
    display: block;
}

/* Generic Section Styles */
.section-pad {
    padding: 4rem 1.5rem;
    position: relative;
    z-index: 1;
}
.title-section {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Acara */
.acara-grid {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}
.acara-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    padding: 2rem 1rem;
    text-align: center;
    border: 1px solid var(--bg-latte);
    flex: 1;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.acara-card h3 {
    text-transform: uppercase; letter-spacing: 2px;
    font-family: var(--font-body);
    font-size: 1.2rem; margin-bottom: 1.5rem;
}

/* Peta */
.map-card {
    background: #fff;
    padding: 1.5rem;
    border: 1px solid var(--bg-latte);
    margin-bottom: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
}
.map-card::before {
    content: '';
    position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 1px dashed var(--bg-latte);
    border-radius: 12px;
    pointer-events: none;
}
.map-container iframe {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 10px;
    position: relative;
    z-index: 2;
}
.btn-outline-dark {
    display: inline-block;
    border: 1px solid var(--text-espresso);
    color: var(--text-espresso);
    padding: 10px 25px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-top: 1.5rem;
    border-radius: 30px;
    position: relative;
    z-index: 2;
}

/* Gift / Amplop Digital */
.gift-card {
    background-color: var(--bg-latte-light);
    padding: 2.5rem 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    border: 1px solid var(--bg-latte);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.btn-copy-rek {
    background-color: var(--text-espresso);
    color: var(--text-light);
    border: none;
    padding: 8px 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-top: 15px;
    border-radius: 30px;
    cursor: pointer;
}

/* RSVP Form */
.rsvp-section {
    background-color: var(--text-espresso);
    color: var(--text-light);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}
.rsvp-section .title-section { color: var(--text-light); }

.rsvp-form-box {
    background-color: var(--bg-almond);
    padding: 3rem 1.5rem;
    color: var(--text-espresso);
    border: 1px solid var(--bg-latte);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.form-control, .form-select {
    border: none; border-bottom: 1px solid var(--text-espresso);
    background: transparent; border-radius: 0; padding-left: 0;
    width: 100%; padding: 10px 0; font-family: var(--font-body);
}
.form-control:focus, .form-select:focus {
    background: transparent; box-shadow: none; border-bottom-color: var(--bg-latte); outline: none;
}
.btn-submit {
    background-color: var(--text-espresso);
    color: var(--text-light);
    border: none; width: 100%; padding: 12px;
    text-transform: uppercase; letter-spacing: 2px; margin-top: 1rem;
    border-radius: 30px;
}

/* Audio Player Button */
.audio-btn {
    position: fixed; bottom: 20px; right: 20px;
    background-color: var(--text-espresso); color: var(--text-light);
    width: 45px; height: 45px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 9999;
}
.audio-btn.playing { animation: pulse 2s infinite; }

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(74, 48, 34, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(74, 48, 34, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(74, 48, 34, 0); }
}
