:root {
    /* Color Palette - Bali Traditional Luxury */
    --primary-color: #CBA153; /* Balinese Gold */
    --primary-dark: #A57C36;
    --accent-color: #7B2C2C; /* Balinese Maroon / Burgundy */
    --accent-dark: #581d1d;
    --bg-color: #FAFAFA; /* Cream / White */
    --bg-dark: #1A1A1A; /* Black Gold Accent */
    --wood-color: #5C4033; /* Wood Brown */
    --leaf-color: #4A5D23; /* Tropical Leaf Green */
    --text-color: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition: all 0.3s ease;
}

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

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

html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, .cover-names, .hero-names, .ampersand, .cover-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--wood-color);
}

.text-center {
    text-align: center;
}

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

.section {
    padding: 80px 0;
    position: relative;
}

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

/* Utilities */
.hidden {
    display: none !important;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 35px;
    border: none;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(123, 44, 44, 0.3);
    border: 1px solid rgba(203, 161, 83, 0.5); /* Gold border touch */
}

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

.btn-outline {
    display: inline-block;
    border: 2px solid var(--primary-color);
    color: var(--wood-color);
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    margin-top: 15px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Cover Screen */
.cover-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/cover-bg.jpg') center/cover no-repeat;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 1s ease-in-out, visibility 1s;
}

.cover-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(26, 26, 26, 0.5), rgba(26, 26, 26, 0.8));
}

.cover-content {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    max-width: 90%;
    width: 450px;
    border: 2px solid var(--primary-color); /* Gold Border */
}

.cover-title {
    font-size: 1.3rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.cover-names {
    font-size: 3rem;
    margin-bottom: 5px;
    color: var(--wood-color);
}

.cover-date {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: 500;
}

.guest-info {
    margin-bottom: 30px;
}

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

#guest-name {
    font-size: 1.5rem;
    margin: 10px 0;
    color: var(--wood-color);
    font-family: var(--font-heading);
}

.guest-apology {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax */
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 40px;
    border: 1px solid rgba(203, 161, 83, 0.4);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    border-radius: 15px;
}

/* Simple Bali CSS frames */
.bali-frame-top, .bali-frame-bottom {
    width: 100px;
    height: 20px;
    margin: 0 auto 20px auto;
    border-top: 3px double var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}
.bali-frame-bottom {
    margin: 30px auto 0 auto;
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 500;
}

.hero-names {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-date {
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: 40px;
    color: #f0f0f0;
}

/* Countdown */
.countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.countdown-item {
    background: rgba(92, 64, 51, 0.6); /* Wood brown with transparency */
    backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: 10px;
    min-width: 80px;
    border: 1px solid var(--primary-color);
}

.countdown-item span {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.countdown-item p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    color: var(--white);
}

/* Floating Flowers Animation */
.floating-flowers {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.flower {
    position: absolute;
    width: 30px;
    height: 30px;
    background: url('images/flower.png') center/contain no-repeat;
    opacity: 0.7;
    animation: falling linear infinite;
}

@keyframes falling {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    color: var(--wood-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-light);
    font-size: 1rem;
}

/* Quote Section */
.quote {
    background: url('images/pattern-bali.png') repeat;
    background-color: rgba(250, 250, 250, 0.9);
    background-blend-mode: overlay;
}

.omkara {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1;
}

.quote p {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 10px;
    line-height: 1.8;
    color: var(--wood-color);
}

.quote span {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 500;
}

.quote-translation {
    font-size: 0.9rem !important;
    margin-top: 20px !important;
    font-family: var(--font-body) !important;
    font-style: normal !important;
    color: var(--text-light) !important;
}

/* Mempelai */
#mempelai {
    background-color: #EBE5DF;
    padding: 100px 0;
}

#mempelai .container {
    max-width: 900px;
}

.couple-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    gap: 50px;
}
.couple-row:last-child {
    margin-bottom: 0;
}

.groom-row {
    flex-direction: row;
}

.bride-row {
    flex-direction: row;
}

.couple-photo {
    width: 320px;
    height: 420px;
    position: relative;
    flex-shrink: 0;
}
.couple-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.groom-photo img {
    border-radius: 0 0 150px 0;
}
.groom-photo::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--white);
    border-radius: 0 0 150px 0;
    z-index: 2;
    pointer-events: none;
}

.bride-photo img {
    border-radius: 0 0 0 150px;
}
.bride-photo::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--white);
    border-radius: 0 0 0 150px;
    z-index: 2;
    pointer-events: none;
}

.couple-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.groom-info {
    align-items: flex-start;
    text-align: left;
}
.bride-info {
    align-items: flex-end;
    text-align: right;
}

.name-wrapper {
    position: relative;
    margin-bottom: 30px;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
}
.groom-info .name-wrapper {
    justify-content: flex-start;
}
.bride-info .name-wrapper {
    justify-content: flex-end;
}

.bg-text {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    color: rgba(92, 64, 51, 0.08); /* Faint wood color */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    z-index: 1;
}
.groom-info .bg-text {
    left: 0;
}
.bride-info .bg-text {
    right: 0;
}

.front-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--wood-color);
    position: relative;
    z-index: 2;
    margin: 0;
    font-style: italic;
    font-weight: 400;
}

.details {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.8;
}
.details p {
    margin-bottom: 5px;
}
.parents-label {
    margin-bottom: 5px;
}
.parents-names {
    margin-bottom: 10px;
}
.address {
    color: var(--text-light);
}

.ampersand-divider {
    margin-top: -60px;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

.ampersand {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.6;
    font-weight: 400;
    margin: 0;
}

@media (max-width: 768px) {
    .ampersand-divider {
        margin-top: -80px;
        margin-bottom: 50px;
    }
    
    .couple-row {
        flex-direction: column !important;
        gap: 15px;
        margin-bottom: 100px;
    }
    
    .bride-row {
        flex-direction: column-reverse !important;
    }
    
    .couple-info {
        align-items: center;
        text-align: center;
    }
    
    .groom-info, .bride-info {
        align-items: center;
        text-align: center;
    }
    
    .name-wrapper {
        justify-content: center !important;
        height: auto;
        padding: 15px 0 5px 0;
        margin-bottom: 10px;
    }
    
    .bg-text {
        font-size: 3.5rem;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%);
    }
    
    .front-text {
        font-size: 1.4rem;
    }
    
    .couple-photo {
        width: 280px;
        height: 360px;
    }
}

/* Acara */
.bg-pattern {
    background-color: var(--bg-color);
    background-image: radial-gradient(var(--primary-color) 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    background-position: 0 0;
}

.event-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.event-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    flex: 1;
    min-width: 300px;
    border-top: 6px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

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

.event-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--wood-color);
}

.event-detail p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

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

/* Maps */
.maps-container {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(203, 161, 83, 0.2);
}

.maps-container h3 {
    margin-bottom: 15px;
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--wood-color);
}

.maps-container iframe {
    border-radius: 10px;
    margin-bottom: 15px;
}

.maps-spacer {
    height: 40px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 3px solid var(--white);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Love Story Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 24px;
    height: 24px;
    right: -12px;
    background-color: var(--white);
    border: 5px solid var(--primary-color);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right .timeline-dot {
    left: -12px;
}

.timeline-content {
    padding: 25px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: right;
    border-left: 4px solid var(--accent-color);
}

.timeline-item.right .timeline-content {
    text-align: left;
    border-left: none;
    border-right: 4px solid var(--accent-color);
}

.timeline-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.timeline-content h3 {
    margin-bottom: 5px;
    font-size: 1.4rem;
    color: var(--wood-color);
}

.timeline-content .date {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Kado Digital */
.kado-digital {
    background: url('images/cover-bg.jpg') center/cover no-repeat fixed;
    position: relative;
}

.kado-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 26, 26, 0.85); /* Dark overlay */
}

.relative-z {
    position: relative;
    z-index: 2;
}

.text-white {
    color: var(--white) !important;
}

.kado-digital .section-title::after {
    background-color: var(--primary-color);
}

.gift-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.gift-card {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid var(--primary-color);
}

.gift-info {
    flex: 1;
    min-width: 0;
}

.gift-info h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    font-family: var(--font-heading);
}

.account-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.account-name-highlight {
    font-size: 1rem;
    font-weight: 600;
    color: var(--wood-color);
    margin-bottom: 10px;
}

.account-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--wood-color);
    letter-spacing: 2px;
    font-family: var(--font-body);
}

.btn-copy {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin-left: 15px;
    box-shadow: 0 4px 10px rgba(203, 161, 83, 0.3);
}

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

/* Footer */
.footer {
    background: var(--wood-color);
    color: var(--white);
    padding: 60px 0;
    position: relative;
    border-top: 5px solid var(--primary-color);
}

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

.footer p {
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
}

.footer-shanti {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 20px !important;
    font-style: italic;
}

/* Music Button */
.music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.music-btn:hover {
    transform: scale(1.1);
    background-color: var(--accent-color);
}

.music-btn.muted i {
    position: relative;
}

.music-btn.muted i::after {
    content: '';
    position: absolute;
    top: 50%; left: -20%; width: 140%; height: 3px;
    background-color: var(--white);
    transform: translateY(-50%) rotate(-45deg);
    border-radius: 2px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex !important;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10001;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s, color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--primary-color);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Toast Notification */
.toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: var(--wood-color);
    color: #fff;
    text-align: center;
    border-radius: 30px;
    padding: 16px;
    position: fixed;
    z-index: 99999;
    left: 50%;
    bottom: 30px;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid var(--primary-color);
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .cover-content { padding: 40px 20px; }
    .hero-names { font-size: 3.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .countdown-item { min-width: 65px; padding: 10px; }
    .countdown-item span { font-size: 1.6rem; }
    
    .couple-wrapper { flex-direction: column; gap: 30px; }
    .couple-card { width: 100%; min-width: 0; }
    .couple-img { width: 180px; height: 180px; }
    
    .event-cards { flex-direction: column; gap: 20px; }
    .event-card { width: 100%; min-width: 0; padding: 30px 20px; }
    
    .timeline::before { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 0; }
    .timeline-item.right { left: 0; }
    .timeline-dot { left: 8px !important; right: auto; }
    .timeline-content { text-align: left; border-left: 4px solid var(--accent-color); border-right: none !important; }
    
    .gift-card { padding: 20px; flex-direction: column; align-items: flex-start; gap: 15px; }
    .btn-copy { align-self: flex-end; margin-left: 0; width: 100%; height: 45px; }
    
    .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.2rem; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 10px; right: 20px; font-size: 30px; }
    
    .music-btn { bottom: 20px; right: 20px; width: 45px; height: 45px; font-size: 1.2rem; }
}
