/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d4a373;
    --secondary-color: #8b4513;
    --accent-color: #f7e7ce;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --pink: #FFB6C1;
    --blue: #87CEEB;
    --gold: #FFD700;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== FALLING STARS BACKGROUND ===== */

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

/* ===== MUSIC CONTROL ===== */
/* Keep above iOS home indicator / browser bottom chrome via safe-area insets */
.music-control {
    position: fixed;
    bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    right: calc(30px + env(safe-area-inset-right, 0px));
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10050;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.music-control:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.music-control i {
    color: var(--white);
    font-size: 24px;
}

/* ===== NAVIGATION ===== */
/* Desktop Sidebar Navigation */
.navbar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 80px;
    background: rgba(255, 182, 193, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 20px 0;
    transition: width 0.3s ease;
    border-radius: 20px 0 0 20px;
    overflow: hidden;
}

.navbar:hover {
    width: 350px;
}

.navbar .logo {
    display: none;
}

.menu-toggle {
    display: none;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    display: block;
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.nav-menu li:last-child {
    border-bottom: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 15px;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.2);
    padding-left: 30px;
}

.nav-menu a i {
    font-size: 1.8rem;
    min-width: 40px;
    text-align: center;
}

.nav-menu a span {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar:hover .nav-menu a span {
    opacity: 1;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.navbar::after {
    content: "";
    display: table;
    clear: both;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
                url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1200') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.invitation-text {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.invitation-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.3s both;
}

.event-info {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: rgba(255,255,255,0.97);
    color: var(--text-dark);
    border-radius: 20px;
    margin-top: 30px;
    animation: fadeInUp 1s ease 0.6s both;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

.event-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 35px 25px;
    text-align: center;
}

.event-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.6rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.event-info-sep {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 8px;
    color: var(--primary-color);
    font-size: 1.2rem;
    gap: 8px;
}

.event-info-sep-line {
    width: 1px;
    flex: 1;
    min-height: 30px;
    background: rgba(0,0,0,0.08);
}

.event-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin: 0 0 12px 0;
    color: var(--text-dark);
}

.event-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.6;
}

.event-location {
    font-size: 1.1rem;
    font-weight: 600;
}

.venue-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    padding: 4px 8px;
    border-bottom: 2px dashed var(--primary-color);
    animation: venuePulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.venue-link i {
    font-size: 0.85rem;
    margin-left: 4px;
    animation: tapHint 1.5s ease-in-out infinite;
}

.venue-link:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
    transform: scale(1.05);
}

@keyframes venuePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes tapHint {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

.event-address {
    color: var(--text-light);
    margin-top: 5px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down i {
    font-size: 2rem;
    color: var(--white);
}

/* ===== COUNTDOWN SECTION ===== */
.countdown-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffeef8 0%, #fff4e6 100%);
    text-align: center;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-align: center;
}

.countdown-subtitle {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.countdown-item {
    background: var(--white);
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    min-width: 150px;
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.countdown-value {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.countdown-label {
    display: block;
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 10px;
    letter-spacing: 2px;
}

/* ===== COUPLE SECTION ===== */
.couple-section {
    padding: 80px 0;
    background: var(--white);
}

.couple-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: nowrap;
    flex-direction: row;
    padding: 0 20px;
}

.couple-box {
    text-align: center;
    animation: fadeIn 1s ease;
    flex: 0 0 auto;
    max-width: 300px;
}

.couple-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.couple-image:hover {
    transform: scale(1.05);
}

.couple-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.couple-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-style: italic;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    white-space: nowrap;
}

.couple-title {
    font-size: 1.1rem;
    color: var(--text-light);
}

.heart-divider {
    font-size: 3rem;
    color: var(--pink);
    animation: heartbeat 1.5s infinite;
    /* width: 100%; */
    text-align: center;
    min-width: 60px;
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

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

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

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

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

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.95);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    animation: zoom 0.3s;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s;
    user-select: none;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.btn-primary {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--primary-color);
    color: var(--white);
}

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

/* ===== GIFT SECTION ===== */
.gift-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffeef8 0%, #fff4e6 100%);
    text-align: center;
}

.gift-subtitle {
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.qr-container-main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.qr-box-main {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    min-width: 280px;
    max-width: 350px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-box-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.qr-icon {
    font-size: 3rem;
    text-align: center;
    animation: bounceIcon 2s infinite;
    width: 100%;
}

.qr-box-main h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    text-align: center;
}

.qr-image-wrapper {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    min-height: 390px;
}

.qr-image-wrapper img {
    width: 100%;
    height: 100%;
    max-width: 350px;
    max-height: 350px;
    border-radius: 10px;
    border: 3px solid var(--primary-color);
    object-fit: contain;
}

.qr-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.btn-download-qr {
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-download-qr:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.qr-divider {
    font-size: 2.5rem;
    color: var(--pink);
    animation: heartbeat 1.5s infinite;
}

/* Old button - keep for backward compatibility but hide */
.btn-gift {
    display: none;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideDown 0.3s ease;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
}

.close-modal:hover {
    color: #000;
}

.modal-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

.qr-container {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
}

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

.qr-box h4 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.qr-box img {
    width: 200px;
    height: 200px;
    border: 3px solid var(--primary-color);
    border-radius: 10px;
    margin-bottom: 10px;
}

.qr-box p {
    color: var(--text-light);
}

/* ===== WISHES SECTION ===== */
.wishes-section {
    padding: 80px 0;
    background: var(--white);
}

.wishes-section .section-title {
    text-align: center;
}

.wish-form {
    max-width: 600px;
    margin: 0 auto 50px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wish-form input,
.wish-form textarea {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.wish-form input:focus,
.wish-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.wishes-admin {
    max-width: 800px;
    margin: 0 auto 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-download {
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.wish-count {
    color: var(--text-dark);
    font-size: 1rem;
}

.wish-count strong {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.wishes-list {
    max-width: 800px;
    margin: 0 auto;
}

.wishes-loading,
.wishes-error {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.wishes-loading i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.wishes-error {
    background: #fff3cd;
    border-radius: 10px;
    border: 2px solid #ffc107;
}

.wishes-error i {
    font-size: 3rem;
    color: #ff9800;
    margin-bottom: 15px;
    display: block;
}

.wishes-error p {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.wishes-error .btn-primary {
    margin-top: 10px;
}

.wish-item {
    display: flex;
    gap: 20px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.3s ease;
}

/* Wish hover effect */
.wish-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.wish-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.wish-content {
    flex: 1;
}

.wish-content h5 {
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.wish-content p {
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.5;
    word-wrap: break-word;
}

.wish-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== MAP SECTION ===== */
.map-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.map-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0 30px;
    flex-wrap: wrap;
}

.map-tab-btn {
    padding: 15px 40px;
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-tab-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(212, 163, 115, 0.3);
}

.map-tab-btn i {
    font-size: 1.3rem;
}

.map-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.map-content.active {
    display: block;
}

.map-container {
    margin: 40px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.map-info {
    text-align: center;
    margin-top: 30px;
}

.map-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.map-info p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.map-info .parking-note {
    display: inline-block;
    background: linear-gradient(135deg, #fff3e0, #ffe0cc);
    color: #b5651d;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 10px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 20px;
}

.map-info .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ===== FOOTER ===== */
/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

@keyframes bounceIcon {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-8px);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes zoom {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
/* ===== MULTI COUNTDOWN SECTION ===== */
.multi-countdown-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #c9a96e 0%, #a07840 100%);
    text-align: center;
}

.multi-countdown-title {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: #fff;
    margin-bottom: 40px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.multi-countdown-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.multi-countdown-item {
    flex: 1;
    min-width: 260px;
    max-width: 380px;
}

.mcd-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.mcd-date {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.mcd-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.mcd-unit {
    display: flex;
    align-items: center;
}

.mcd-num {
    font-size: 3.2rem;
    font-weight: 300;
    color: #fff;
    min-width: 72px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    letter-spacing: -1px;
}

.mcd-sep {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.6);
    margin: 0 2px;
    line-height: 1;
}

.mcd-unit-labels {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 8px;
}

.mcd-unit-labels span {
    min-width: 72px;
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.65);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.mcd-divider {
    font-size: 2rem;
    color: rgba(255,255,255,0.5);
    padding: 0 10px;
}

/* ===== THANK YOU SECTION ===== */
.thankyou-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thankyou-bg {
    position: absolute;
    inset: 0;
}

.thankyou-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.thankyou-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.thankyou-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 32px;
    max-width: 640px;
}

.thankyou-title {
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem;
    color: #fff;
    margin-bottom: 28px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.thankyou-text {
    font-size: 1rem;
    color: rgba(255,255,255,0.92);
    line-height: 1.9;
    font-style: italic;
}

@media (max-width: 768px) {
    .multi-countdown-wrapper { flex-direction: column; gap: 40px; }
    .mcd-divider { transform: none; }
    .mcd-num { font-size: 2.4rem; min-width: 54px; }
    .mcd-unit-labels span { min-width: 54px; }
    .multi-countdown-title { font-size: 3rem; }
    .thankyou-title { font-size: 3.5rem; }
}

/* ===== CALENDAR SECTION ===== */
.calendar-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.calendar-bg {
    position: absolute;
    inset: 0;
}

.calendar-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}

.calendar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
}

.calendar-content {
    position: relative;
    z-index: 1;
    padding: 60px 24px 70px;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.calendar-month {
    font-family: 'Great Vibes', cursive;
    font-size: 5rem;
    color: #fff;
    margin-bottom: 32px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px 4px;
}

.cal-header {
    color: rgba(255,255,255,0.75);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding-bottom: 10px;
}

.cal-day {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 400;
    padding: 10px 4px;
    line-height: 1;
}

.cal-day.cal-wedding {
    position: relative;
    font-weight: 700;
    color: #c0392b;
}

.cal-day.cal-wedding::before {
    content: '♥';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    color: #fff;
    line-height: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

@media (max-width: 480px) {
    .calendar-month { font-size: 3.5rem; }
    .cal-day { font-size: 1rem; padding: 8px 2px; }
    .cal-header { font-size: 0.68rem; }
    .cal-day.cal-wedding::before { font-size: 2rem; }
}

/* ===== TIMELINE SECTION ===== */
.timeline-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fdf6f0 0%, #fff9f5 100%);
}

.timeline-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 520px;
    margin: 0 auto;
}

.timeline-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-card-inner {
    width: 100%;
    background: #fff;
    border: 1.5px solid #c9a96e;
    border-radius: 4px;
    padding: 36px 32px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 24px rgba(180,140,80,0.08);
}

.timeline-card-inner::before,
.timeline-card-inner::after {
    content: '✦';
    position: absolute;
    color: #c9a96e;
    font-size: 0.75rem;
    top: 10px;
}
.timeline-card-inner::before { left: 14px; }
.timeline-card-inner::after  { right: 14px; }

.timeline-label {
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: #b8935a;
    text-transform: uppercase;
    margin-bottom: 14px;
    font-weight: 500;
}

.timeline-venue {
    font-family: 'Great Vibes', cursive;
    font-size: 2.4rem;
    color: #6b4c2a;
    margin: 0 0 10px;
    line-height: 1.3;
}

.timeline-address {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 22px;
    line-height: 1.6;
}

.timeline-time {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #4a3520;
    margin-bottom: 14px;
}

.timeline-date-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-top: 1.5px solid #c9a96e;
    border-bottom: 1.5px solid #c9a96e;
    padding: 10px 0;
    margin-bottom: 14px;
}

.timeline-day,
.timeline-date {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #4a3520;
}

.timeline-date-sep {
    color: #c9a96e;
    font-size: 1.2rem;
    font-weight: 300;
}

.timeline-lunar {
    font-size: 0.82rem;
    color: #aaa;
    font-style: italic;
    margin-bottom: 18px;
}

.timeline-directions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #b8935a;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
}

.timeline-directions:hover {
    color: #6b4c2a;
}

.timeline-divider {
    display: flex;
    align-items: center;
    width: 80%;
    padding: 16px 0;
    gap: 12px;
    color: #c9a96e;
}

.timeline-divider-line {
    flex: 1;
    height: 1px;
    background: #c9a96e;
    opacity: 0.5;
}

.timeline-divider-icon {
    font-size: 1.5rem;
    color: #c9a96e;
}

@media screen and (max-width: 768px) {
    /* Mobile: Reset navbar to top horizontal style */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        padding: 15px 0;
        border-radius: 0;
        overflow: visible;
        z-index: 10000;
    }
    
    .navbar:hover {
        width: 100%;
    }
    
    .navbar .logo {
        display: block;
        font-family: 'Great Vibes', cursive;
        font-size: 2rem;
        color: var(--primary-color);
        float: left;
        padding-left: 20px;
    }
    
    .menu-toggle {
        display: block;
        float: right;
        padding-right: 20px;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--primary-color);
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-menu li {
        display: block;
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        color: var(--text-dark);
        padding: 15px 10px;
    }
    
    .nav-menu a:hover {
        background: #f8f9fa;
        padding-left: 20px;
    }
    
    .nav-menu a i {
        font-size: 1.3rem;
        min-width: 30px;
    }
    
    .nav-menu a span {
        opacity: 1;
        font-size: 0.9rem;
    }
    
    .navbar::after {
        content: "";
        display: table;
        clear: both;
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 20px 50px;
    }
    
    .invitation-text {
        font-size: 2rem;
    }
    
    .event-info {
        padding: 25px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .countdown {
        gap: 15px;
    }
    
    .countdown-item {
        padding: 20px 25px;
        min-width: 120px;
    }
    
    .countdown-value {
        font-size: 2.5rem;
    }
    
    .couple-container {
        gap: 20px;
        flex-direction: column;
        padding: 0 20px;
    }
    
    .couple-box {
        width: 100%;
        max-width: 280px;
    }
    
    .couple-image {
        width: 200px;
        height: 200px;
    }
    
    .couple-name {
        font-size: 2rem;
    }
    
    .heart-divider {
        font-size: 2.5rem;
        transform: rotate(0deg);
        margin: 10px 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    

    
    .qr-container-main {
        flex-direction: column;
        gap: 30px;
    }
    
    .qr-box-main {
        min-width: 100%;
        max-width: 100%;
    }
    
    .qr-image-wrapper {
        max-width: 350px;
        min-height: 350px;
    }
    
    .qr-image-wrapper img {
        width: 100%;
        height: 100%;
        max-width: 300px;
        max-height: 300px;
    }
    
    .qr-divider {
        transform: rotate(90deg);
    }
    
    .qr-container {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-content {
        width: 95%;
        padding: 25px;
        margin: 10% auto;
    }
    
    .music-control {
        width: 50px;
        height: 50px;
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        right: calc(16px + env(safe-area-inset-right, 0px));
    }
    
    .music-control i {
        font-size: 20px;
    }
    
    /* Wishes responsive */
}

@media screen and (max-width: 480px) {
    .navbar .logo {
        font-size: 1.5rem;
        padding-left: 20px;
    }
    
    .invitation-text {
        font-size: 1.5rem;
    }
    
    .invitation-subtitle {
        font-size: 1rem;
    }
    
    .event-info {
        flex-direction: column;
    }

    .event-info-sep {
        flex-direction: row;
        padding: 8px 20px;
    }

    .event-info-sep-line {
        width: auto;
        height: 1px;
        flex: 1;
        min-height: unset;
    }

    .event-card {
        padding: 25px 20px;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .countdown-item {
        padding: 15px 20px;
        min-width: 100px;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    .couple-image {
        width: 180px;
        height: 180px;
    }
}

/* ===== INVITATION HERO SECTION ===== */
.invitation-section {
    background: #f9f6f0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 40px;
}

.inv-inner {
    max-width: 760px;
    width: 100%;
    text-align: center;
}

.inv-header {
    margin-bottom: 52px;
}

.inv-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 22px;
}

.inv-orn-line {
    display: block;
    width: 80px;
    height: 1px;
    background: #9b7b2e;
}

.inv-orn-diamond {
    font-size: 0.6rem;
    color: #9b7b2e;
}

.inv-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #1c1c1c;
}

.inv-vline {
    width: 1px;
    height: 48px;
    background: #9b7b2e;
    margin: 18px auto;
}

.inv-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: #555;
    font-style: italic;
}

.inv-couple {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    justify-content: center;
}

.inv-groom,
.inv-bride {
    flex: 1;
    max-width: 320px;
    text-align: center;
}

.inv-role {
    font-family: 'Great Vibes', cursive;
    font-size: 2.4rem;
    color: #9b7b2e;
    margin: 12px 0 4px;
    line-height: 1.2;
}

.inv-name {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #9b7b2e;
    margin: 0 0 18px;
}

.inv-photo {
    width: 100%;
    overflow: hidden;
    box-shadow: 6px 10px 35px rgba(0, 0, 0, 0.15);
}

.inv-bride .inv-photo {
    aspect-ratio: 2/3;
}

.inv-groom .inv-photo {
    aspect-ratio: 3/4;
}

.inv-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

@media (max-width: 768px) {
    .invitation-section {
        padding: 50px 24px;
        min-height: unset;
    }

    .inv-title {
        font-size: 1.1rem;
        letter-spacing: 0.12em;
    }

    .inv-couple {
        flex-direction: column;
        align-items: center;
        gap: 36px;
    }

    .inv-groom,
    .inv-bride {
        max-width: 260px;
        width: 100%;
    }
}

