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

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Javanese&display=swap');

body {
    font-family: 'Noto Serif Javanese', 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    position: relative;
    min-height: 100vh;
    background: url('images/slide1.jpg') center/cover fixed no-repeat;
    transition: background-image 1s;
}

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

/* Dekorasi Jawa */
.jawa-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.jawa-decoration::before,
.jawa-decoration::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
}

.jawa-decoration::before {
    top: 20px;
    left: 20px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,0 C22.4,0 0,22.4 0,50 C0,77.6 22.4,100 50,100 C77.6,100 100,77.6 100,50 C100,22.4 77.6,0 50,0 Z M50,90 C28.1,90 10,71.9 10,50 C10,28.1 28.1,10 50,10 C71.9,10 90,28.1 90,50 C90,71.9 71.9,90 50,90 Z" fill="%23000"/></svg>');
}

.jawa-decoration::after {
    bottom: 20px;
    right: 20px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,0 C22.4,0 0,22.4 0,50 C0,77.6 22.4,100 50,100 C77.6,100 100,77.6 100,50 C100,22.4 77.6,0 50,0 Z M50,90 C28.1,90 10,71.9 10,50 C10,28.1 28.1,10 50,10 C71.9,10 90,28.1 90,50 C90,71.9 71.9,90 50,90 Z" fill="%23000"/></svg>');
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    /* background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero-bg.jpg'); */
    background: none !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero .container {
    background: rgba(255,255,255,0.9);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2rem 1.5rem;
    border: 2px solid #8B4513;
    position: relative;
}

.hero .container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid #8B4513;
    border-radius: 20px;
    z-index: -1;
}

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

.hero-content, .hero .container {
    padding-top: 32px;
    padding-bottom: 32px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 1rem;
}

.date {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    min-width: 100px;
}

.countdown-item span {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
}

/* Couple Section */
.couple {
    padding: 100px 0;
    background: none !important;
    position: relative;
}

.couple::before {
    content: none !important;
}

.couple .container {
    position: relative;
    z-index: 1;
}

.couple .container {
    background: rgba(255,255,255,0.9);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2rem 1.5rem;
    border: 2px solid #8B4513;
    position: relative;
}

.couple .container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid #8B4513;
    border-radius: 20px;
    z-index: -1;
}

.couple h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.couple-content {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.bride, .groom {
    text-align: center;
}

.bride img, .groom img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

/* Event Section */
.event {
    padding: 100px 0;
    background: none !important;
    position: relative;
}

.event::before {
    content: none !important;
}

.event .container {
    position: relative;
    z-index: 1;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 20px;
}

.event h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.event-details {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    margin: 0 auto 40px auto;
    background: none;
}

.event-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.9) !important;
    border-radius: 10px;
    min-width: 300px;
    border: 2px solid #8B4513;
    position: relative;
}

.event-item::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid #8B4513;
    border-radius: 12px;
    z-index: -1;
}

.event-item i {
    font-size: 2.5rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.9);
    position: relative;
    margin: 2rem auto;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    width: 95%;
}

.gallery .container {
    padding: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
    margin: 0 auto;
    max-width: 1000px;
}

.gallery h2 {
    text-align: center;
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: #8B4513;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.2);
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Location Section */
.location {
    padding: 100px 0;
}

.location .container {
    background: rgba(255,255,255,0.92);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    padding: 2.5rem 1.5rem;
    margin: 0 auto 2rem auto;
    max-width: 900px;
}

.location h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.map-container {
    background: rgba(255,255,255,0.92);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 1rem;
    margin-bottom: 2rem;
}

.location-details {
    background: rgba(255,255,255,0.92);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 2rem;
    margin-bottom: 2rem;
}

.location-details .container {
    background: rgba(255,255,255,0.85);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2rem 1.5rem;
}

.location-details h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.location-details p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.location-details i {
    margin-right: 0.5rem;
    color: #666;
}

.direction-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.direction-btn:hover {
    background: #555;
}

.direction-btn i {
    color: white;
    margin-right: 0.5rem;
}

/* RSVP Section */
.rsvp {
    padding: 100px 0;
    background: none !important;
    position: relative;
}

.rsvp::before {
    content: none !important;
}

.rsvp .container {
    position: relative;
    z-index: 1;
}

.rsvp .container {
    background: rgba(255,255,255,0.85);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2rem 1.5rem;
}

.rsvp h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

input, select, textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

textarea {
    height: 150px;
    resize: vertical;
}

.btn-submit {
    background: #333;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: #555;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: #333;
    color: white;
}

/* Responsive Design */
/* Desktop (1200px ke atas) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-content h1 {
        font-size: 4.5rem;
    }
}

/* Tablet Landscape (992px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .countdown-item {
        min-width: 90px;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .countdown {
        gap: 1.5rem;
    }
    
    .countdown-item {
        min-width: 80px;
    }
    
    .couple-content, .event-details {
        gap: 3rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .date {
        font-size: 1.2rem;
    }
    
    .countdown {
        gap: 1rem;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 0.8rem;
    }
    
    .countdown-item span {
        font-size: 1.8rem;
    }
    
    .countdown-item p {
        font-size: 0.8rem;
    }
    
    .couple-content, .event-details {
        gap: 2rem;
    }
    
    .bride img, .groom img {
        width: 150px;
        height: 150px;
    }
    
    .event-item {
        min-width: 250px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .location-details h3 {
        font-size: 1.5rem;
    }
    
    .location-details p {
        font-size: 1rem;
    }
    
    .greeting-undangan {
        font-size: 1.1rem;
    }
    
    .greeting-undangan b {
        font-size: 1.3rem;
    }
    
    .video-section h2 {
        font-size: 1.3rem;
    }
}

/* Mobile Portrait (575px ke bawah) */
@media (max-width: 575px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        min-height: 80vh;
        padding-top: 24px;
        padding-bottom: 24px;
    }
    .hero-content, .hero .container {
        padding-top: 18px;
        padding-bottom: 18px;
    }
    .hero-content h1 {
        font-size: 2rem;
        word-break: break-word;
    }
    
    .date {
        font-size: 1rem;
    }
    
    .countdown {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 0.6rem;
    }
    
    .countdown-item span {
        font-size: 1.5rem;
    }
    
    .countdown-item p {
        font-size: 0.8rem;
    }
    
    .couple h2, .event h2, .gallery h2, .location h2, .rsvp h2 {
        font-size: 2rem;
    }
    
    .couple-content {
        gap: 1.5rem;
    }
    
    .bride img, .groom img {
        width: 120px;
        height: 120px;
    }
    
    .event-details {
        gap: 1.5rem;
    }
    
    .event-item {
        min-width: 100%;
        padding: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    .map-container {
        height: 300px;
    }
    
    .location-details {
        padding: 1.5rem;
    }
    
    .location-details h3 {
        font-size: 1.3rem;
    }
    
    .location-details p {
        font-size: 0.9rem;
    }
    
    .direction-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    input, select, textarea {
        padding: 0.8rem;
    }
    
    .btn-submit {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Perbaikan untuk layar sangat kecil */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .countdown-item {
        min-width: 50px;
        padding: 0.5rem;
    }
    
    .countdown-item span {
        font-size: 1.2rem;
    }
    
    .countdown-item p {
        font-size: 0.7rem;
    }
    
    .bride img, .groom img {
        width: 100px;
        height: 100px;
    }
}

/* Perbaikan untuk orientasi landscape di mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 50px 0;
    }
    
    .countdown {
        margin-top: 1rem;
    }
    
    .couple, .event, .gallery, .location, .rsvp {
        padding: 50px 0;
    }
}

/* Sapaan Undangan */
.greeting-undangan {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #333;
    position: relative;
    z-index: 2;
}
.greeting-undangan b {
    font-size: 2.1rem;
    color: #8d5a2b;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    letter-spacing: 1px;
}
.greeting-undangan::before, .greeting-undangan::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: #8d5a2b;
    margin: 12px auto;
    border-radius: 2px;
}
.greeting-undangan::before {
    margin-bottom: 10px;
}
.greeting-undangan::after {
    margin-top: 10px;
}

/* Video Section */
.video-section {
    padding: 80px 0 60px 0;
    background: none !important;
    text-align: center;
}
.video-section .container {
    background: rgba(255,255,255,0.85);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2rem 1.5rem;
}
.video-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #8d5a2b;
    margin-bottom: 2rem;
}
.video-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

#bgVideo {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}

.bg-slideshow {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.doa-penyambutan {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(141,90,43,0.08);
    padding: 2rem 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: #4a3c1a;
    font-family: 'Poppins', sans-serif;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    border: 1.5px solid #e7d7c1;
}
.doa-penyambutan b, .doa-penyambutan p[style*='rtl'] {
    color: #8d5a2b;
}
.doa-penyambutan p {
    margin-bottom: 0.7rem;
}

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:wght@400;600&display=swap');

.invitation-bg {
    max-width: 650px;
    margin: 32px auto;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff8f38c 60%, #fbeee6 60%);
    box-shadow: 0 8px 40px rgba(141, 90, 43, 0.63);
    padding: 32px 0;
    position: relative;
}
@media (max-width: 700px) {
    .invitation-bg {
        max-width: 98vw;
        padding: 12px 0;
        border-radius: 16px;
        margin: 10px auto;
    }
}
.hero-invitation {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}
.invitation-container {
    background: rgb(255, 255, 255);
    border-radius: 24px;
    box-shadow: 0 6px 32px rgba(141,90,43,0.10);
    padding: 2.5rem 2rem 2.5rem 2rem;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    border: 2px solid #e7d7c1;
}
.inv-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3.2rem;
    color: #8d5a2b;
    margin-bottom: 0.5rem;
    font-weight: normal;
    letter-spacing: 2px;
}
.inv-bismillah {
    font-family: 'Montserrat', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #7a5a3a;
    margin-bottom: 1.2rem;
}
.inv-opening {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #4a3c1a;
    margin-bottom: 2.2rem;
}
.inv-nama-mempelai {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.7rem;
    flex-wrap: wrap;
}
.inv-nama-block {
    flex: 1 1 180px;
    min-width: 150px;
}
.inv-nama {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.1rem;
    color: #8d5a2b;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.inv-orangtua {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.98rem;
    color: #7a5a3a;
    margin-bottom: 0.5rem;
}
.inv-and {
    font-size: 2.5rem;
    color: #b08a5a;
    font-family: 'Great Vibes', cursive;
    align-self: center;
    margin: 0 0.5rem;
}
.inv-tanggal {
    margin-bottom: 1.7rem;
}
.inv-hari {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: #b46316;
    font-weight: 600;
}
.inv-tgl {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #8d5a2b;
    font-weight: 600;
    margin: 0.2rem 0 0.2rem 0;
    letter-spacing: 2px;
}
.inv-jam {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #4a3c1a;
}
.inv-tempat {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.7rem;
    flex-wrap: wrap;
}
.inv-tempat-block {
    flex: 1 1 180px;
    min-width: 150px;
    background: #fbeee6;
    border-radius: 12px;
    padding: 1rem 0.7rem;
    box-shadow: 0 2px 8px rgba(141, 90, 43, 0);
}
.inv-tempat-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #8d5a2b;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.inv-tempat-nama {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: #b08a5a;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.inv-tempat-alamat {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.98rem;
    color: #7a5a3a;
}
.inv-penutup {
    text-align: center;
    margin: 2rem 0;
    font-style: italic;
}

.countdown-container {
    text-align: center;
    margin: 3rem 0;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(141, 90, 43, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-container h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #8d5a2b;
    font-family: 'Great Vibes', cursive;
    letter-spacing: 1px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.countdown-item span:first-child {
    font-size: 3rem;
    font-weight: 600;
    color: #8d5a2b;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #fff8f3, #fbeee6);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    min-width: 100px;
    box-shadow: 0 8px 25px rgba(141, 90, 43, 0.1);
    border: 1px solid rgba(141, 90, 43, 0.1);
    transition: transform 0.3s ease;
}

.countdown-item:hover span:first-child {
    transform: translateY(-5px);
}

.countdown-label {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: #7a5a3a;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

@media (max-width: 768px) {
    .countdown-container {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }
    
    .countdown-container h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .countdown {
        gap: 1.5rem;
    }
    
    .countdown-item span:first-child {
        font-size: 2.2rem;
        min-width: 80px;
        padding: 0.8rem 1.2rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .countdown-container {
        padding: 1.5rem 1rem;
    }
    
    .countdown {
        gap: 1rem;
    }
    
    .countdown-item span:first-child {
        font-size: 1.8rem;
        min-width: 60px;
        padding: 0.6rem 1rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 600px) {
    .invitation-container {
        padding: 1.2rem 0.5rem;
    }
    .inv-title {
        font-size: 2.1rem;
    }
    .inv-nama {
        font-size: 1.2rem;
    }
    .inv-and {
        font-size: 1.5rem;
    }
    .inv-tgl {
        font-size: 1.2rem;
    }
    .inv-tempat {
        flex-direction: column;
        gap: 1.2rem;
    }
    .inv-tempat-block {
        padding: 0.7rem 0.3rem;
    }
}

/* Animasi Buka Undangan */
.undangan-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.undangan-wrapper.active {
    opacity: 1;
}

.undangan-box {
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transform: scale(0.5);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 90vw;
    width: 400px;
    border: 2px solid #8B4513;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.undangan-wrapper.active .undangan-box {
    transform: scale(1);
    opacity: 1;
}

.undangan-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(139, 69, 19, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.undangan-box h2 {
    color: #8B4513;
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.undangan-box p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.undangan-box #guestNameDisplay {
    color: #8B4513;
    font-weight: bold;
    font-size: 1.3rem;
    display: block;
    margin: 0.5rem 0;
}

.undangan-box .btn-buka {
    background: #8B4513;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
}

.undangan-box .btn-buka:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
    background: #9B5523;
}

.undangan-box .btn-buka:active {
    transform: translateY(0);
}

.undangan-box .btn-buka::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: buttonShine 3s infinite;
}

@keyframes buttonShine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* Name Overlay */
.name-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(8px);
}

.name-overlay-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 90vw;
    width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease;
    border: 2px solid #8B4513;
}

.name-overlay-content h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: #8B4513;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.name-overlay-content p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.name-input-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.name-input-container input {
    padding: 1rem;
    border: 2px solid #e7d7c1;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.name-input-container input:focus {
    border-color: #8B4513;
    outline: none;
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.2);
}

.name-input-container button {
    padding: 1rem;
    background: #8B4513;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.name-input-container button:hover {
    background: #6B3410;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.name-input-container button:active {
    transform: translateY(1px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shine {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Modal Gallery */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

.gallery-modal-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
}

.gallery-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}

.gallery-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-modal-close:hover {
    transform: rotate(90deg);
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.gallery-modal-nav button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-modal-nav button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.quran-verse {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #8B4513;
    text-align: center;
    font-family: 'Noto Serif Javanese', serif;
    color: #333;
    line-height: 1.8;
    position: relative;
}

.quran-verse p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: justify;
}

.quran-verse .verse-source {
    font-style: italic;
    color: #8B4513;
    font-size: 1.1rem;
    margin-top: 1rem;
    text-align: center;
}

.quran-verse::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid rgba(139, 69, 19, 0.3);
    border-radius: 18px;
    z-index: -1;
}

@media (max-width: 768px) {
    .quran-verse {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .quran-verse p {
        font-size: 1.1rem;
    }
    
    .quran-verse .verse-source {
        font-size: 1rem;
    }
}

.event-schedule {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.event-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .event-schedule {
        padding: 0 1rem;
        width: 100%;
    }
    
    .event-item {
        padding: 1.5rem;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
    }
    
    .gallery {
        width: 90%;
        margin: 1rem auto;
        padding: 50px 0;
    }
    
    .gallery .container {
        padding: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .event-item {
        padding: 1.2rem;
    }
    
    .gallery {
        width: 95%;
        padding: 30px 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

#countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    font-size: 1.5rem;
    color: #8B4513;
    text-align: center;
    width: 100%;
}

@media (max-width: 768px) {
    .location .container {
        padding: 1.2rem 0.5rem;
        border-radius: 14px;
    }
    .map-container,
    .location-details {
        padding: 0.7rem;
        border-radius: 10px;
    }
}

.event-floating-container {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    padding: 2.5rem 1.5rem;
    margin: 0 auto;
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.event-floating-container h2 {
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: center;
}

.ig-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(238,42,123,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 0 4px;
    text-decoration: none;
}
.ig-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(238,42,123,0.25);
    color: #fff;
} 