:root {
    /* Pastel Green Theme */
    --primary-color: #8fa785; /* Soft Sage Green */
    --secondary-color: #63765c; /* Darker Sage for contrast */
    --accent-color: #cddbca; /* Very light green for highlights */
    --bg-color: #f4f7f4; /* Off-white pastel green */
    --text-main: #3d4a36; /* Dark green-grey for text */
    --text-light: #6b7d61;
    
    --font-heading: 'Playfair Display', serif;
    --font-script: 'Great Vibes', cursive;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.relative {
    position: relative;
}

/* Batik Kawung Pattern */
.pattern-batik {
    background-color: var(--bg-color);
    background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><path d="M20 0 A 20 20 0 0 0 0 20 A 20 20 0 0 0 20 40 A 20 20 0 0 0 40 20 A 20 20 0 0 0 20 0 Z M 20 10 A 10 10 0 0 1 30 20 A 10 10 0 0 1 20 30 A 10 10 0 0 1 10 20 A 10 10 0 0 1 20 10 Z" fill="none" stroke="%238fa785" stroke-width="1.5" opacity="0.15"/><circle cx="20" cy="20" r="3" fill="%23cddbca" opacity="0.4"/></svg>');
}

.pattern-batik-light {
    background-color: var(--bg-color);
}

.pattern-batik-dark {
    background-color: var(--primary-color);
    background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><path d="M20 0 A 20 20 0 0 0 0 20 A 20 20 0 0 0 20 40 A 20 20 0 0 0 40 20 A 20 20 0 0 0 20 0 Z M 20 10 A 10 10 0 0 1 30 20 A 10 10 0 0 1 20 30 A 10 10 0 0 1 10 20 A 10 10 0 0 1 20 10 Z" fill="none" stroke="%23f4f7f4" stroke-width="1.5" opacity="0.15"/><circle cx="20" cy="20" r="3" fill="%23f4f7f4" opacity="0.2"/></svg>');
}

/* Javanese SVG Dividers */
.jawa-divider-top, .jawa-divider-bottom, .jawa-divider-top-small, .jawa-divider-bottom-small {
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin: 20px auto;
}

.jawa-divider-top {
    height: 30px;
    width: 250px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 250 30" xmlns="http://www.w3.org/2000/svg"><path d="M10,15 L50,15 L60,5 L80,25 L90,15 L160,15 L170,5 L190,25 L200,15 L240,15" fill="none" stroke="%238fa785" stroke-width="2"/><path d="M125,5 L135,15 L125,25 L115,15 Z" fill="%2363765c"/></svg>');
}

.jawa-divider-bottom {
    height: 30px;
    width: 250px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 250 30" xmlns="http://www.w3.org/2000/svg"><path d="M10,15 L50,15 L60,25 L80,5 L90,15 L160,15 L170,25 L190,5 L200,15 L240,15" fill="none" stroke="%238fa785" stroke-width="2"/><path d="M125,5 L135,15 L125,25 L115,15 Z" fill="%2363765c"/></svg>');
}

.jawa-divider-top-small {
    height: 20px;
    width: 150px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 150 20" xmlns="http://www.w3.org/2000/svg"><path d="M0,10 L30,10 L40,0 L60,20 L70,10 L150,10" fill="none" stroke="%238fa785" stroke-width="2"/></svg>');
}

.jawa-divider-bottom-small {
    height: 20px;
    width: 150px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 150 20" xmlns="http://www.w3.org/2000/svg"><path d="M0,10 L30,10 L40,20 L60,0 L70,10 L150,10" fill="none" stroke="%238fa785" stroke-width="2"/></svg>');
}

/* Gunungan Icon */
.gunungan-icon {
    width: 250px;
    height: 250px;
    margin: 0 auto 20px;
    background-color: var(--primary-color);
    -webkit-mask-image: url('gunungan.png');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: url('gunungan.png');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.gunungan-icon-white {
    width: 200px;
    height: 200px;
    margin: 20px auto 0;
    background-color: #ffffff;
    -webkit-mask-image: url('gunungan.png');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: url('gunungan.png');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

/* Welcome Overlay */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
}

.welcome-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.welcome-overlay-darken {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(244, 247, 244, 0.7), rgba(244, 247, 244, 0.9));
    z-index: 2;
}

/* Candi Bentar / Gates (Pastel) */
.gate {
    position: absolute;
    top: 0;
    width: 50vw;
    height: 100vh;
    background-color: var(--accent-color);
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1001;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.gate-left {
    left: 0;
    border-right: 15px solid var(--primary-color);
    box-shadow: inset -5px 0 15px rgba(0,0,0,0.05);
}

.gate-right {
    right: 0;
    border-left: 15px solid var(--primary-color);
    box-shadow: inset 5px 0 15px rgba(0,0,0,0.05);
}

.gate-texture {
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><rect width="20" height="10" fill="none" stroke="%238fa785" stroke-width="0.5" opacity="0.3"/><rect y="10" x="10" width="20" height="10" fill="none" stroke="%238fa785" stroke-width="0.5" opacity="0.3"/></svg>');
}

/* Gunungan Opener Animation */
.gunungan-opener {
    position: absolute;
    bottom: -10vh; /* Sit slightly below the viewport center */
    left: 50%;
    transform: translateX(-50%);
    width: 70vw;
    max-width: 500px;
    height: 70vh;
    background-color: var(--primary-color);
    -webkit-mask-image: url('gunungan.png');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: bottom center;
    mask-image: url('gunungan.png');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: bottom center;
    z-index: 1001;
    opacity: 0.2; /* Subtle in the background before opening */
    transition: transform 2s cubic-bezier(0.77, 0, 0.175, 1), opacity 1.5s ease;
    pointer-events: none;
}

.welcome-overlay.opened .gate-left { transform: translateX(-100%); }
.welcome-overlay.opened .gate-right { transform: translateX(100%); }
.welcome-overlay.opened .gunungan-opener {
    transform: translate(-50%, -120vh); /* Pull upwards out of screen */
    opacity: 0;
}

.welcome-content {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 5px;
    box-shadow: 0 15px 35px rgba(143, 167, 133, 0.2);
    position: relative;
    z-index: 1002;
    transition: opacity 0.5s ease, transform 0.5s ease;
    max-width: 90%;
    width: 450px;
    border: 2px solid var(--primary-color);
    border-radius: 15px 50px; /* Javanese curve style */
}

.welcome-overlay.opened .welcome-content {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.welcome-title {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.welcome-names {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.welcome-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.guest-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--primary-color);
    display: inline-block;
    min-width: 200px;
    color: var(--text-main);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 3px;
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    display: block;
    margin: 10px auto 0;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(143, 167, 133, 0.4);
}

/* Main Container */
.invitation-container {
    display: none;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.invitation-container.visible {
    display: block;
    opacity: 1;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    border-bottom: 2px solid var(--accent-color);
}

.hero-overlay {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: linear-gradient(rgba(244, 247, 244, 0.8), rgba(244, 247, 244, 0.2));
    z-index: 1;
}

.subtitle {
    font-family: var(--font-heading);
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.names {
    font-family: var(--font-script);
    font-size: 6rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.names span {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--secondary-color);
    font-style: italic;
}

.date {
    font-family: var(--font-body);
    font-size: 1.2rem;
    letter-spacing: 5px;
    font-weight: 600;
    color: var(--text-main);
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-main);
    font-size: 0.8rem;
    letter-spacing: 1px;
    z-index: 2;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    margin-top: 10px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 2px;
    animation: scrollMouse 1.5s infinite;
}

/* Sections */
section {
    padding: 100px 0;
    overflow: hidden;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

/* Intro */
.bismillah {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.intro-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 60px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

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

.profile {
    flex: 1;
    min-width: 250px;
}

.profile-img-wrap {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 5px 30px; /* Javanese style corners */
    background-color: var(--accent-color);
    border: 2px solid var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(45deg); /* Diamond shape */
}

.profile-initial {
    font-family: var(--font-script);
    font-size: 5rem;
    color: white;
    transform: rotate(-45deg); /* Counter rotate */
    text-shadow: 1px 1px 3px rgba(143, 167, 133, 0.5);
}

.profile h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-main);
    margin-top: 30px;
}

.and-symbol {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--secondary-color);
}

/* Events */
.event-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px 30px;
    border-radius: 10px 40px;
    box-shadow: 0 15px 40px rgba(143, 167, 133, 0.15);
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid var(--accent-color);
}

.event-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.event-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.event-info {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--primary-color);
}

.event-date {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.event-location h4 {
    margin-bottom: 5px;
    color: var(--secondary-color);
    font-family: var(--font-heading);
}

.event-location p {
    line-height: 1.6;
    color: var(--text-light);
}

.interactive-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 30px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    background: transparent;
}

.interactive-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(143, 167, 133, 0.3);
}

/* Countdown */
.countdown-section {
    color: white;
}

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

.time-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 5px 15px;
    min-width: 100px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.time-box span {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    display: block;
    margin-bottom: 5px;
    color: white;
}

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

/* Gallery Break */
.gallery-break {
    height: 40vh;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(99, 118, 92, 0.7), rgba(99, 118, 92, 0.7));
}

.quote {
    font-family: var(--font-script);
    font-size: 4rem;
    color: white;
}

/* Closing */
.closing-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin: 40px auto;
    max-width: 600px;
}

.terima-kasih {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hormat-kami {
    font-size: 1.1rem;
    color: var(--text-main);
}

/* AOS-like Animations */
.animate-on-scroll {
    opacity: 0;
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.animate-on-scroll[data-animation="fade-up"] { transform: translateY(40px); }
.animate-on-scroll[data-animation="fade-down"] { transform: translateY(-40px); }
.animate-on-scroll[data-animation="slide-left"] { transform: translateX(40px); }
.animate-on-scroll[data-animation="slide-right"] { transform: translateX(-40px); }
.animate-on-scroll[data-animation="zoom-in"] { transform: scale(0.8); }
.animate-on-scroll[data-animation="fade-in"] { /* Just opacity */ }
.animate-on-scroll[data-animation="flip-up"] { transform: perspective(400px) rotateX(90deg); }

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes scrollMouse {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-names { font-size: 2.5rem; }
    .names { font-size: 3.5rem; }
    .names span { font-size: 1.2rem; }
    .bismillah { font-size: 2.2rem; word-break: break-word; }
    .quote { font-size: 2.5rem; }
    .couple-profiles { flex-direction: column; gap: 20px; }
    .and-symbol { margin: 10px 0; font-size: 2.5rem; }
    .countdown-timer { gap: 10px; }
    .time-box { min-width: 70px; padding: 15px; }
    .time-box span { font-size: 1.5rem; }
    .section-title { font-size: 1.8rem; }
    .terima-kasih { font-size: 2.5rem; }
    section { padding: 60px 0; }
    
    .gunungan-icon, .gunungan-icon-white {
        width: 150px;
        height: 150px;
    }
}
