/* CSS Variables */
:root {
    --color-moody-burgundy: #1a0505;
    --color-moody-burgundy-alt: #2b0b0b;
    --color-soft-gold: #d4af37;
    --color-off-white: #f8f8f8;
    --color-text-dim: #b8b1a9;
    --color-overlay: rgba(26, 5, 5, 0.85);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lora', serif;
    --font-arabic: 'Amiri', serif;
    --font-script: 'Great Vibes', cursive;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-moody-burgundy);
    color: var(--color-text-dim);
    line-height: 1.8;
    overflow-x: hidden;
    letter-spacing: 0.02em;
}

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

a {
    transition: all 0.3s ease;
    color: inherit;
}

/* Global Immersive Background */
.bg-immersive {
    background-image: url('assets/moody-winter-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Utility Classes */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

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

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

.section-moody {
    background: linear-gradient(var(--color-overlay), var(--color-overlay)), url('assets/moody-winter-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-off-white);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 25px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-off-white);
}

.section-text {
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
    opacity: 0.8;
}

.script-text {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--color-soft-gold);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    padding: 30px 0;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-off-white);
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--color-soft-gold);
    opacity: 1;
}

/* Bottom Navigation removed */

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 30px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-off-white);
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--color-off-white);
    opacity: 0.7;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--color-soft-gold);
    opacity: 1;
}

/* Nav Toggle (Hamburger) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1100;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-off-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


.nav-btn {
    border: 1px solid var(--color-soft-gold);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.75rem !important;
}

.nav-btn:hover {
    background-color: var(--color-soft-gold);
    color: var(--color-moody-burgundy) !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(26, 5, 5, 0.85), rgba(26, 5, 5, 0.85)), url('assets/hero-collage.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

.hero-intro {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--color-soft-gold);
    margin-bottom: 15px;
}

.names {
    font-size: 3.5rem;
    color: var(--color-off-white);
    line-height: 0.9;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 400;
}

.names span {
    display: block;
    font-family: var(--font-script);
    font-size: 4rem;
    color: var(--color-soft-gold);
    text-transform: lowercase;
    letter-spacing: 0;
    margin: 20px 0;
}

.date {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-text-dim);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 45px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-outline {
    border: 1px solid var(--color-off-white);
    color: var(--color-off-white);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-off-white);
    color: var(--color-moody-burgundy);
}

.btn-solid {
    background: var(--color-moody-burgundy);
    color: var(--color-off-white);
    border: 1px solid var(--color-off-white);
}

.btn-solid:hover {
    background: var(--color-off-white);
    color: var(--color-moody-burgundy);
}

/* Invitation Section */
.arabic-text {
    font-family: var(--font-arabic);
    font-size: 3rem;
    color: var(--color-gold);
    margin: 20px 0;
}

.floral-divider {
    max-width: 200px;
    margin: 0 auto;
    display: block;
}

.divider-bottom {
    transform: rotate(180deg);
    margin-top: 40px;
}

.details-box {
    margin-top: 60px;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    position: relative;
    z-index: 10;
}

.detail-item {
    margin-bottom: 30px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item h3 {
    color: var(--color-gold);
    font-size: 1.5rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.detail-item p {
    font-size: 1.2rem;
    color: var(--color-text-main);
}

.highlight-time {
    display: inline-block;
    background-color: var(--color-dark-red);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    padding: 10px 25px;
    margin: 15px 0;
    border: 2px solid var(--color-gold);
    box-shadow: 0 4px 15px rgba(123, 8, 28, 0.2);
    letter-spacing: 2px;
}

.small-text {
    font-size: 0.9rem !important;
    color: var(--color-text-muted) !important;
    font-style: italic;
}

/* Travel Grid */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-card {
    background: transparent;
    padding: 40px 0;
    text-align: center;
    border: none;
    box-shadow: none;
}

.highlight-card {
    border: none;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.card-title {
    color: var(--color-dark-red);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.rate-badge {
    display: inline-block;
    background: var(--color-light-pink);
    color: var(--color-dark-red);
    border: 1px dashed var(--color-gold);
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: bold;
    margin: 15px 0;
}

/* RSVP Form */
.rsvp-container {
    max-width: 650px;
    margin: 0 auto;
    background: transparent;
    padding: 0;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    color: var(--color-soft-gold);
    margin-bottom: 12px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-off-white);
    transition: all 0.3s ease;
    background-color: transparent;
    border-radius: 0;
}

.form-group input:focus, 
.form-group select:focus {
    outline: none;
    border-bottom-color: var(--color-soft-gold);
}

/* Guest Specific Box styling (Dynamic) */
.guest-entry {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.meal-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
    text-align: left;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--color-off-white) !important;
}

.radio-group input[type="radio"] {
    width: auto !important;
    margin: 0;
}

.radio-group span {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.submit-btn {
    width: auto;
    min-width: 280px;
    margin-top: 50px;
    padding: 20px 60px;
    background: transparent;
    color: var(--color-off-white);
    border: 1px solid var(--color-soft-gold) !important;
}

.submit-btn:hover {
    background: var(--color-soft-gold);
    color: var(--color-moody-burgundy);
}

/* Photography Grid & Slider Styling */
.slider-wrapper {
    position: relative;
    width: 100%;
}

.slider-arrow {
    display: none; /* Hidden on desktop */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 5, 5, 0.6);
    color: var(--color-off-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.slider-arrow:hover {
    background: var(--color-soft-gold);
    color: var(--color-moody-burgundy);
}

.slider-arrow.prev { left: 10px; }
.slider-arrow.next { right: 10px; }

.image-scatter-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 100px 0;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.scattered-img {
    position: relative;
    aspect-ratio: 3/4;
    cursor: pointer;
    overflow: hidden;
    filter: brightness(0.9) contrast(1.1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scattered-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.scattered-img:hover {
    transform: translateY(-10px);
    z-index: 10;
    filter: brightness(1) contrast(1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.scattered-img:hover img {
    transform: scale(1.08);
}

.img-arched { border-radius: 0; }

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(26, 5, 5, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        transition: 0.5s ease;
        z-index: 1050;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .names {
        font-size: 1.8rem;
        letter-spacing: 0.15em;
    }

    .hero-intro {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .logo {
        font-size: 0.9rem;
    }

    .hero-date {
        font-size: 0.8rem !important;
        letter-spacing: 0.15em !important;
    }

    /* Mobile Slider & Centering Repairs */
    .info-card {
        border-left: none !important;
        padding-left: 0 !important;
        text-align: center;
    }

    .slider-wrapper {
        overflow: hidden;
    }

    .slider-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .image-scatter-container {
        display: flex;
        grid-template-columns: none;
        margin: 40px 0;
        gap: 0;
    }

    .scattered-img {
        flex: 0 0 100%;
        width: 100%;
    }
}

/* Footer */
footer {
    background-color: var(--color-dark-red);
    color: var(--color-white);
    text-align: center;
    padding: 60px 20px;
    font-family: var(--font-heading);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border: 3px solid var(--color-gold);
    border-radius: 5px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2010;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--color-gold);
}

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

.lightbox-btn:hover {
    background: var(--color-gold);
    color: var(--color-white);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .names { font-size: 3rem; }
    .names span { font-size: 2rem; }
    .hero {
        background: linear-gradient(rgba(26, 5, 5, 0.75), rgba(26, 5, 5, 0.75)), url('assets/hero-mobile-collage.jpg');
        background-size: cover;
        background-position: center;
    }
    .hero-content { 
        padding: 40px 20px; 
        width: 85%; /* Memberikan space di kanan dan kiri */
        max-width: 350px; /* Memastikan tidak terlalu lebar di layar kecil */
    }
    .grid-2 { grid-template-columns: 1fr; }
    
    /* Mobile Nav Styles */
    .nav-toggle { display: flex; }
    
    .nav-links { 
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1050;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links .nav-btn {
        padding: 12px 40px;
        border-radius: 5px;
    }
    
    .rsvp-container { padding: 30px 20px; }
    
    .gallery-grid { 
        gap: 15px;
        padding: 10px 0 30px 0;
    }
    .gallery-item {
        height: 250px; /* Smaller height on mobile */
    }
    .mt-50 { margin-top: 0; }
}
