/* Variables & Reset */
:root {
    --primary-color: #D8A7B1;
    /* Pastel Pink */
    --text-color: #333;
    --heading-color: #333;
    --bg-color: #fff;
    --font-serif: 'Playfair Display', serif;
    --font-cursive: 'dancing_scriptregular', 'Dancing Script', cursive;
    --font-sans: 'Open Sans', sans-serif;
    --border-color: #e5e5e5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal overflow */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for sticky header */
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    color: var(--heading-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 40px 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-half {
    width: 50%;
    padding: 0 15px;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.topbar {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    text-align: center;
}

.site-logo h1 {
    font-family: var(--font-cursive);
    font-size: 35px;
    /* Slightly larger for cursive */
    margin: 0;
    color: #202A41;
    font-weight: 400;
}

.site-logo span {
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
}

.site-logo i {
    color: var(--primary-color);
    font-size: 20px;
    margin: 0 5px;
}

.navigation {
    padding: 15px 0;
    text-align: center;
}

.nav-links {
    list-style: none;
    display: inline-block;
}

.nav-links li {
    display: inline-block;
    margin: 0 15px;
}

.nav-links a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
}

.topbar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Hero Section */
.hero-slider {
    position: relative;
    height: 100vh;
    /* Full screen */
    overflow: hidden;
    margin-top: 120px; /* Offset for fixed header */
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 17%;
    filter: brightness(0.8);
}

/* Specific adjustment for the second slide to show faces */
.slide-bg-2 {
    background-position: center 20%;
    /* Move focus up to show faces */
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    text-align: center;
    color: #fff;
    z-index: 10;
    pointer-events: none;
    padding: 0 15px;
}

.slide-title h2 {
    font-family: var(--font-cursive);
    font-size: 80px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-title i {
    color: var(--primary-color);
    font-size: 40px;
    vertical-align: middle;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.wedding-date span {
    font-size: 20px;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 30px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

/* Invitation Section */
.invitation-section {
    background-color: #fafafa;
}

.invitation-box {
    background: #fff;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    border: 15px solid rgba(216, 167, 177, 0.1);
    /* Frame effect */
}

/* Decorative corner elements - using CSS instead of external images */
.left-vec,
.right-vec {
    position: absolute;
    width: 80px;
    height: 80px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

.left-vec {
    left: 10px;
    top: 10px;
    border-left: 2px solid var(--primary-color);
    border-top: 2px solid var(--primary-color);
}

.right-vec {
    right: 10px;
    bottom: 10px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.invitation-box .inner {
    position: relative;
    z-index: 1;
}

.invitation-box h2 {
    font-family: var(--font-cursive);
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 400;
}

.invitation-box h3 {
    font-family: var(--font-cursive);
    font-size: 45px;
    margin: 20px 0;
    font-weight: 400;
}

.mini_calendar table {
    width: 100%;
    text-align: center;
}

.mini_calendar th,
.mini_calendar td {
    padding: 10px;
}

#today {
    background: var(--primary-color);
    color: #fff;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    margin: 0 auto;
}

.count-down-clock {
    margin-top: 30px;
}

#clock {
    display: flex;
    justify-content: center;
    gap: 15px;
}

#clock .box {
    width: 70px;
    height: 70px;
    background: #f9f9f9;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #eee;
}

#clock .time {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

#clock span {
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
}

/* Couple Section */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    font-size: 40px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

.couple-row {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
}

.couple-row.last-row {
    margin-bottom: 0;
}

.img-holder {
    width: 50%;
    padding: 0 15px;
}

.img-holder img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.details {
    width: 50%;
    padding: 0 30px;
}

.details h2 {
    font-family: var(--font-cursive);
    font-size: 50px;
    margin-bottom: 15px;
    color: #202A41;
    /* Updated color from user image */
    font-weight: 400;
}

/* Story Section */
.story-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    background: #eee;
    transform: translateX(-50%);
}

.story-item {
    display: flex;
    margin-bottom: 60px;
    position: relative;
}

.story-item.reverse {
    flex-direction: row-reverse;
}

.story-item .details,
.story-item .img-holder {
    width: 50%;
    padding: 0 30px;
}

.story-item .details {
    text-align: right;
}

.story-item.reverse .details {
    text-align: left;
}

.story-item .date {
    display: block;
    color: var(--primary-color);
    font-style: italic;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Events Section */
.event-section {
    background-color: #f9f9f9;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.event-item {
    background: #fff;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.event-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
    height: 40px;
    /* Align heights */
}

.event-item .image-wrap {
    margin-bottom: 15px;
    height: 300px;
    overflow: hidden;
    border-radius: 5px;
}

.event-item .image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-item .time {
    color: #333;
    margin-bottom: 5px;
}

.event-item .location {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    min-height: 60px;
}

.btn-secondary {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 13px;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    object-position: top;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

/* Gift Box */
.gift-container {
    text-align: center;
}

.qr-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.qr-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
}

.qr-image {
    width: 250px;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.qr-img-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Footer */
.site-footer {
    background: #f5f5f5;
    text-align: center;
    padding: 60px 0;
}

.couple-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.couple-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Music Control - Right Side */
.music-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998;
}

#music-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-color), #c68c98);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(216, 167, 177, 0.4);
    animation: pulse 2s infinite;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#music-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(216, 167, 177, 0.5);
}

#music-btn i {
    font-size: 18px;
}

.music-label {
    font-family: var(--font-sans);
}

#music-btn.playing {
    animation: none;
    background: linear-gradient(135deg, #c68c98, var(--primary-color));
}

#music-btn.muted i::before {
    content: "\f6a9"; /* fa-volume-mute */
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(216, 167, 177, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(216, 167, 177, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(216, 167, 177, 0);
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

.modal-content h3 {
    font-family: var(--font-cursive);
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-sans);
}

.modal-content textarea {
    height: 100px;
    resize: vertical;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #c68c98;
}

.wishes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.wish-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--primary-color);
    display: flex;
    flex-direction: column;
}

.wish-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: var(--font-serif);
}

.wish-card .wish-message {
    flex: 1;
    max-height: 7.5em; /* ~5 lines at 1.5 line-height */
    overflow-y: auto;
    line-height: 1.5;
    margin-bottom: 10px;
    padding-right: 5px;
}

.wish-card .wish-message::-webkit-scrollbar {
    width: 4px;
}

.wish-card .wish-message::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.wish-card .wish-message::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

.wish-card .wish-time {
    font-size: 12px;
    color: #999;
    font-style: italic;
    margin-top: auto;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.3s ease;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-nav.prev {
    left: 20px;
    z-index: 10;
}

.lightbox-nav.next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .lightbox-nav.prev {
        left: 10px;
        z-index: 10;
    }
    
    .lightbox-nav.next {
        right: 10px;
    }
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

/* Header Shrink on Scroll */
.site-header {
    transition: all 0.3s ease;
}

.site-header.scrolled .topbar {
    padding: 8px 0;
}

.site-header.scrolled .site-logo h1 {
    font-size: 26px;
}

.site-header.scrolled .site-logo span {
    font-size: 10px;
}

.site-header.scrolled .navigation {
    padding: 10px 0;
}

/* Menu Active State */
.nav-links a.active {
    color: var(--primary-color);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Landscape */
@media (max-width: 1024px) {
    .wishes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding: 0 20px;
    }
    
    .event-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item img {
        height: 350px;
    }
    
    .slide-title h2 {
        font-size: 60px;
    }
    
    .invitation-box h2 {
        font-size: 40px;
    }
    
    .invitation-box h3 {
        font-size: 35px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 60px;
    }
    
    .section-padding {
        padding: 30px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Header Mobile */
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }
    
    .topbar {
        padding: 10px 0;
    }
    
    .site-logo h1 {
        font-size: 24px;
    }
    
    .site-logo i {
        font-size: 16px;
    }
    
    .site-logo span {
        font-size: 10px;
    }
    
    /* Mobile Menu */
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .site-header .navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .site-header .navigation.active {
        display: block;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        padding: 15px 0;
    }
    
    .nav-links li {
        display: block;
        margin: 0;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 12px 20px;
        font-size: 14px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-links li:last-child a {
        border-bottom: none;
    }
    
    .nav-links a:hover,
    .nav-links a:active {
        background: #f9f9f9;
        color: var(--primary-color);
    }
    
    /* Hero Mobile */
    .hero-slider {
        height: 70vh;
        min-height: 400px;
        margin-top: 60px;
    }
    
    /* Show full image on mobile */
    .slide-bg {
            background-position: center 15%;
    }
    
    .slide-bg-2 {
        background-position: center 15%;
    }
    
    .slide-title h2 {
        font-size: 32px;
        line-height: 1.3;
        padding: 0 10px;
    }
    
    .slide-title i {
        font-size: 24px;
        margin: 0 5px;
    }
    
    .wedding-date span {
        font-size: 14px;
        padding: 10px 20px;
        letter-spacing: 1px;
    }
    
    /* Invitation Mobile */
    .row {
        margin: 0;
    }
    
    .col-half {
        width: 100%;
        padding: 0;
        margin-bottom: 20px;
    }
    
    .col-half:last-child {
        margin-bottom: 0;
    }
    
    .invitation-box {
        padding: 25px 15px;
        border-width: 10px;
    }
    
    .invitation-box h2 {
        font-size: 32px;
    }
    
    .invitation-box h3 {
        font-size: 28px;
        margin: 15px 0;
    }
    
    .invitation-box p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* Calendar Mobile */
    .mini_calendar th,
    .mini_calendar td {
        padding: 6px 4px;
        font-size: 12px;
    }
    
    .calendar-month {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    #today {
        width: 26px;
        height: 26px;
        line-height: 26px;
        font-size: 12px;
    }
    
    /* Countdown Mobile */
    #clock {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    #clock .box {
        width: 55px;
        height: 55px;
    }
    
    #clock .time {
        font-size: 18px;
    }
    
    #clock span {
        font-size: 9px;
    }
    
    /* Section Title Mobile */
    .section-title {
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .section-title p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* Couple Section Mobile */
    .couple-row {
        flex-direction: column;
        text-align: center;
        margin-bottom: 40px;
    }

    .couple-row.last-row {
        flex-direction: column-reverse;
        margin-bottom: 0;
    }

    .img-holder,
    .details {
        width: 100%;
        padding: 0;
    }

    .img-holder {
        margin-bottom: 20px;
    }
    
    .img-holder img {
        max-height: none;
        object-fit: contain;
        width: 100%;
    }
    
    .details {
        padding: 0 10px;
    }
    
    .details h2 {
        font-size: 36px;
    }
    
    .details p {
        font-size: 14px;
        line-height: 1.7;
    }

    /* Story Section Mobile */
    .story-timeline {
        padding-left: 10px;
    }
    
    .story-timeline::before {
        left: 10px;
        width: 2px;
    }

    .story-item,
    .story-item.reverse {
        flex-direction: column;
        padding-left: 25px;
        margin-bottom: 40px;
        position: relative;
    }
    
    .story-item::before {
        content: '';
        position: absolute;
        left: 4px;
        top: 5px;
        width: 12px;
        height: 12px;
        background: var(--primary-color);
        border-radius: 50%;
        border: 2px solid #fff;
        box-shadow: 0 0 0 2px var(--primary-color);
    }

    .story-item .details,
    .story-item .img-holder {
        width: 100%;
        padding: 0;
        text-align: left;
    }

    .story-item .img-holder {
        margin-top: 15px;
        order: 2;
    }
    
    .story-item .details {
        order: 1;
    }
    
    .story-item .details h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .story-item .details p {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .story-item .date {
        font-size: 13px;
    }
    
    .story-item .img-holder img {
        max-height: 100% !important;
        max-height: none;
        object-fit: contain;
        margin-bottom: 10px;
        width: 100%;
        border-radius: 8px;
    }

    /* Events Mobile */
    .event-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-item {
        padding: 15px;
    }
    
    .event-item h3 {
        font-size: 16px;
        height: auto;
        margin-bottom: 10px;
    }

    
    .event-item .location {
        min-height: auto;
        font-size: 12px;
    }
    
    /* Gallery Mobile */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gallery-item img {
        height: 180px;
    }
    
    /* Gift Section Mobile */
    #gift {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .qr-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .qr-card {
        width: 100%;
        max-width: 300px;
    }
    
    .qr-image {
        width: 200px;
        max-width: 100%;
    }
    
    .gift-instruction {
        font-size: 14px;
        line-height: 1.6;
        padding: 0 10px;
    }
    
    /* Wishes Mobile */
    .wishes-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .wish-card {
        padding: 15px;
    }
    
    .wish-card h4 {
        font-size: 16px;
    }
    
    .wish-card p {
        font-size: 14px;
    }
    
    /* Footer Mobile */
    .site-footer {
        padding: 40px 0;
    }
    
    .couple-pic {
        width: 120px;
        height: 120px;
    }
    
    .site-footer h2 {
        font-size: 28px;
    }
    
    /* Modal Mobile */
    .modal-content {
        padding: 25px 20px;
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .modal-content h3 {
        font-size: 28px;
    }
    
    /* Lightbox Mobile */
    .lightbox-content {
        max-width: 95%;
        max-height: 80%;
    }
    
    .close-lightbox {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    
    /* Music Control Mobile */
    .music-control {
        bottom: 15px;
        right: 15px;
    }
    
    #music-btn {
        padding: 12px;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        justify-content: center;
    }
    
    #music-btn i {
        font-size: 18px;
    }
    
    .music-label {
        display: none;
    }
    
    /* Menu active mobile */
    .nav-links a.active {
        background: rgba(216, 167, 177, 0.1);
    }
    
    .nav-links a.active::after {
        display: none;
    }
    
    .slide-title h2 {
        font-size: 26px;
    }
    
    .slide-title i {
        font-size: 20px;
    }
    
    .wedding-date span {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .invitation-box h2 {
        font-size: 26px;
    }
    
    .invitation-box h3 {
        font-size: 22px;
    }
    
    #clock .box {
        width: 50px;
        height: 50px;
    }
    
    #clock .time {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .details h2 {
        font-size: 30px;
    }
    
    .gallery-item img {
        height: 150px;
    }
    

    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .site-logo h1 {
        font-size: 18px;
    }
    
    .slide-title h2 {
        font-size: 22px;
    }
    
    .invitation-box {
        padding: 20px 10px;
    }
    
    .mini_calendar th,
    .mini_calendar td {
        padding: 4px 2px;
        font-size: 11px;
    }
    
    #clock .box {
        width: 45px;
        height: 45px;
    }
    
    #clock .time {
        font-size: 14px;
    }
    
    #clock span {
        font-size: 8px;
    }
    
    .section-title h2 {
        font-size: 22px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 250px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-slider {
        height: 100vh;
        min-height: 300px;
    }
    
    .slide-title h2 {
        font-size: 28px;
    }
    
    .wedding-date span {
        font-size: 12px;
    }
}

/* ===== FALLING FLOWERS EFFECT ===== */
.falling-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.flower {
    position: absolute;
    top: -50px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ===== SMOOTH SCROLL ANIMATIONS ===== */

/* Fade In Up Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Left Animation */
.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade In Right Animation */
.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale In Animation */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delay for children */
.stagger-children > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.6s; }

/* ===== GPU ACCELERATION & PERFORMANCE ===== */

/* GPU acceleration for animated elements */
.hero-slider,
.swiper-slide,
.gallery-item img,
.couple-row,
.story-item,
.event-item,
.wish-card {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Smooth hover transitions */
.gallery-item img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-item,
.wish-card,
.qr-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-item:hover,
.wish-card:hover,
.qr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .fade-in-up,
    .fade-in-left,
    .fade-in-right,
    .scale-in {
        opacity: 1;
        transform: none;
    }
    
    .falling-container {
        display: none;
    }
}

/* Welcome Modal */
.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(216, 167, 177, 0.95), rgba(198, 140, 152, 0.95));
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.welcome-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.welcome-content {
    text-align: center;
    color: #fff;
    padding: 40px;
    animation: fadeInUp 0.8s ease;
}

.welcome-hearts {
    font-size: 60px;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

.welcome-content h2 {
    font-family: var(--font-cursive);
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.welcome-content p {
    font-family: var(--font-sans);
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.welcome-content .btn-primary {
    background: #fff;
    color: var(--primary-color);
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.welcome-content .btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .welcome-content h2 {
        font-size: 32px;
    }
    .welcome-content p {
        font-size: 16px;
        padding: 0 20px;
    }
    .welcome-hearts {
        font-size: 48px;
    }
}