/* ==== VARIABLES & RESETS ==== */
:root {
    --primary-color: #9b6ab3; /* Soft Purple */
    --primary-color-hover: #7d5490;
    --bg-white: #ffffff;
    --bg-beige: #f9f5fb; /* Very soft purple-ish beige */
    --text-dark: #2c2c2c;
    --text-light: #6c757d;
    --error-color: #e63946;
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    --font-script: 'Meow Script', cursive;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 1rem;
}

body.locked {
    overflow: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6, .title, .subtitle, .section-title {
    font-family: var(--font-serif);
    font-weight: normal;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.w-100 { width: 100%; }
.bg-light { background-color: #f8f9fa; }
.bg-white { background-color: var(--bg-white); }
.bg-beige { background-color: var(--bg-beige); }

/* Layout Containers */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-full {
    width: 100%;
    overflow: hidden;
}

.section {
    padding: 5rem 0; /* Consistent and substantial padding */
}

/* ==== BUTTONS ==== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2.2rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent; /* better touch handling */
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(155, 106, 179, 0.2);
}

.btn-primary:hover, .btn-primary:active {
    background-color: var(--primary-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(155, 106, 179, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover, .btn-outline:active {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* ==== UTILITIES & ANIMATIONS ==== */
.hidden { display: none !important; }

/* Intersection Observer Initial States */
.animate-fade-in { opacity: 0; transition: opacity 1s ease-out; }
.animate-slide-up { opacity: 0; transform: translateY(40px); transition: all 1s ease-out; }
.animate-slide-left { opacity: 0; transform: translateX(30px); transition: all 1s ease-out; }
.animate-slide-right { opacity: 0; transform: translateX(-30px); transition: all 1s ease-out; }

/* Intersection Observer Active States (triggered by JS) */
.is-visible {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* ==== BOTTOM NAVIGATION ==== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px; /* limits width on huge screens */
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.8rem 0;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.08);
    z-index: 999;
    border-top: 1px solid rgba(155, 106, 179, 0.1);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.5s ease;
    border-radius: 20px 20px 0 0;
}

@media screen and (min-width: 769px) {
    .bottom-nav {
         bottom: 20px;
         border-radius: 50px;
         border: 1px solid rgba(155, 106, 179, 0.2);
    }
}

.bottom-nav.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(150%);
    display: flex !important; /* overrides normal hidden logic */
}

.nav-item {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    gap: 0.3rem;
    transition: var(--transition-smooth);
    width: 20%;
    -webkit-tap-highlight-color: transparent;
}

.nav-item i {
    font-size: 1.6rem;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.nav-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-item.active i {
    transform: translateY(-4px) scale(1.1);
}

/* Update toast and music control bottom position */
.music-control {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--bg-white);
    color: var(--primary-color);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 1000;
    cursor: pointer;
    transition: var(--transition-smooth);
    -webkit-tap-highlight-color: transparent;
}

.music-control:hover, .music-control:active {
    transform: scale(1.1);
}

.rotate-anim { animation: rotate 4s linear infinite; }
.paused-anim { animation-play-state: paused; }
@keyframes rotate { 100% { transform: rotate(360deg); } }

/* Toast Message */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(150px);
    background: #333;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 10000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.95rem;
    font-weight: 500;
}
.toast-show {
    transform: translateX(-50%) translateY(0);
}
.toast i { font-size: 1.3rem; color: #4cd137; }

/* ==== COVER PAGE ==== */
.cover-page {
    position: fixed;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    /* Modern vignette to ensure text contrast */
    background: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%), 
                url('../img/cover_vector_bg.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    text-align: center;
    color: #fff;
    transition: transform 1s cubic-bezier(0.86, 0, 0.07, 1);
}

.cover-page.slide-up {
    transform: translateY(-100%);
}

.cover-content {
    background: rgba(255, 255, 255, 0.05); /* very subtle */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 3.5rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.15);
    width: 90%;
    max-width: 500px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.cover-content .title {
    font-size: clamp(3.5rem, 12vw, 5.5rem);
    margin: 0.5rem 0;
    line-height: 0.8; /* Reduced line-height to make names closer */
    color: var(--primary-color);
    font-family: var(--font-script);
}

.ampersand-cover {
    font-size: 0.6em;
    font-style: normal;
    font-weight: 300;
    display: block;
    margin: -0.2rem 0; /* Pulled closer to names */
}

.cover-content .subtitle {
    letter-spacing: 4px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.guest-info { margin: 2rem 0; font-size: 0.95rem; }
.guest-name {
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 0.5rem;
    font-family: var(--font-serif);
    color: #fff;
}

/* ==== HERO SECTION & PARTICLES ==== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: url('https://images.unsplash.com/photo-1522673607200-164d1b6ce486?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    background-attachment: fixed; /* Parallax effect */
    overflow: hidden;
}

/* iOS Parallax fallback */
@supports (-webkit-touch-callout: none) {
    .hero { background-attachment: scroll; }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.75);
    z-index: 2;
}

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

.hero-title {
    font-size: clamp(3.5rem, 12vw, 5.5rem);
    color: var(--primary-color);
    font-family: var(--font-script);
    margin: 1.5rem 0;
    text-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-light);
}

.hero-date {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-dark);
}

/* Magical Particles */
.particles-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden; z-index: 1;
}

.particle {
    position: absolute;
    bottom: -20px;
    width: 6px; height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.5;
    animation: floatUp infinite ease-in;
    box-shadow: 0 0 10px rgba(155, 106, 179, 0.8);
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    20% { opacity: 0.8; }
    100% { transform: translateY(-110vh) scale(1.5); opacity: 0; }
}

/* ==== COUPLE SECTION ==== */
.couple-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.groom, .bride {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.couple-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 8px solid #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.couple-name {
    font-size: clamp(2.5rem, 6vw, 3.2rem);
    color: var(--primary-color);
    font-family: var(--font-script);
    margin-bottom: 0.5rem;
    animation: floatingName 3s ease-in-out infinite;
}

@keyframes floatingName {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.couple-parents {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 0.5rem;
    transition: var(--transition-smooth);
}

.social-link:hover {
    color: var(--text-dark);
    transform: translateY(-2px);
}

.ampersand-symbol {
    font-size: 4rem;
    font-family: var(--font-serif);
    color: var(--primary-color);
    opacity: 0.6;
    margin: 0 1rem;
}

/* New Aesthetic Elements */
.relative { position: relative; }

.ornament {
    position: absolute;
    width: 150px;
    height: 150px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,0 Q50,0 50,50 Q50,100 100,100" fill="none" stroke="%239b6ab3" stroke-width="0.5" opacity="0.3"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}

.ornament-top-left { top: 0; left: 0; transform: rotate(0deg); }
.ornament-bottom-right { bottom: 0; right: 0; transform: rotate(180deg); }

.img-wrapper {
    position: relative;
    display: inline-block;
    padding: 15px;
    background: radial-gradient(circle, rgba(155, 106, 179, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    margin-bottom: 2rem;
}

.couple-img.vector {
    width: 250px;
    height: 250px;
    border: none;
    box-shadow: none;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.couple-img.vector:hover {
    transform: scale(1.05) translateY(-10px);
}

/* ==== COUNTDOWN ==== */
.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cd-box {
    background: var(--bg-beige);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(155, 106, 179, 0.3);
}

.cd-box span {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1;
}

.cd-box small {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
    color: var(--text-light);
}

/* ==== EVENTS ==== */
.events {
    background: url('../img/events_vector_bg.png') center/cover;
    position: relative;
    padding: 6rem 0; /* Extra padding for spacious look */
}

/* Optional soft overlay to blend the vector slightly if needed */
.events::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(249, 245, 251, 0.4); 
    z-index: 0;
}

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

.events-grid {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.event-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    flex: 1;
    min-width: 280px;
    max-width: 450px;
    border-top: 5px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.event-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.event-time {
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.event-date {
    margin-bottom: 0.5rem;
}

.event-location { 
    color: var(--text-light); 
    font-size: 0.95rem; 
    line-height: 1.6;
}

/* ==== STORY TIMELINE ==== */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 2rem;
    border-left: 2px solid rgba(155, 106, 179, 0.4);
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -2.4rem;
    top: 0.3rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--bg-beige);
    box-shadow: 0 0 0 3px rgba(155, 106, 179, 0.3);
}

.timeline-date {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-item p {
    color: var(--text-light);
}

/* ==== GALLERY ==== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #000;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, opacity 0.5s;
}

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

.gallery-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: #fff;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

/* Infinite Gallery Scroll */
.gallery-container {
    overflow: hidden;
    white-space: nowrap;
    padding: 2rem 0;
    position: relative;
    width: 100%;
}

.gallery-track {
    display: flex;
    gap: 1.5rem;
    animation: scrollGallery 30s linear infinite;
    width: max-content;
}

.gallery-track:hover {
    animation-play-state: paused;
}

.gallery-item-scroll {
    flex: 0 0 auto;
    width: 250px;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(155, 106, 179, 0.15);
    background: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item-scroll:hover {
    transform: scale(1.05) translateY(-5px);
    border: 2px solid var(--primary-color);
}

.gallery-item-scroll img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-1 * (250px + 1.5rem) * 10)); }
}

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

.lightbox-close {
    position: absolute;
    top: 25px; right: 35px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}
.lightbox-close:hover { color: var(--primary-color); }

/* ==== DIGITAL GIFT ==== */
.gift-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: stretch;
}

.gift-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    border: 1px solid rgba(155, 106, 179, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gift-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.account-number {
    font-size: 1.4rem;
    font-weight: 600;
    font-family: var(--font-serif);
    color: var(--text-dark);
    letter-spacing: 2px;
    margin: 0.5rem 0;
}

.account-name {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ==== RSVP FORM ==== */
.rsvp-wrapper {
    background: var(--bg-beige);
    padding: 3.5rem 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.8rem;
    text-align: left;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--bg-white);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(155, 106, 179, 0.15);
}

.form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea {
    border-color: var(--error-color);
}

.error-msg {
    color: var(--error-color);
    font-size: 0.85rem;
    display: none;
    margin-top: 0.4rem;
}
.form-group.has-error .error-msg { display: block; }

/* Wishes List */
.wishes-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color);
}

.wishes-list {
    max-height: 450px;
    overflow-y: auto;
    text-align: left;
    padding-right: 15px;
}

/* Custom Scrollbar */
.wishes-list::-webkit-scrollbar { width: 6px; }
.wishes-list::-webkit-scrollbar-track { background: transparent; }
.wishes-list::-webkit-scrollbar-thumb { background: rgba(155, 106, 179, 0.4); border-radius: 10px; }
.wishes-list::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

.wish-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
}

.wish-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    align-items: center;
}

.wish-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.wish-status {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}
.status-hadir { background: rgba(76, 209, 55, 0.15); color: #2e8b22; }
.status-tidak { background: rgba(230, 57, 70, 0.12); color: #d63031; }

.wish-date { 
    font-size: 0.8rem; 
    color: var(--text-light); 
    display: block; 
    margin-bottom: 0.8rem; 
}

.wish-message {
    color: var(--text-dark);
    line-height: 1.6;
}

/* ==== FOOTER ==== */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 5rem 0 3rem;
}

.footer h2 {
    color: var(--primary-color);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 1rem;
}

.footer-credit {
    margin-top: 3.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 2.5rem;
    font-size: 0.9rem;
    color: #888;
}

/* ==== RESPONSIVE DESIGN ==== */
@media screen and (max-width: 768px) {
    .section { padding: 4rem 0; }
    .hero-title { font-size: 3.2rem; }
    .section-title { font-size: 2.2rem; }
    
    .couple-grid { flex-direction: column; gap: 1rem; }
    .ampersand-symbol { margin: 1rem 0; font-size: 3rem; transform: rotate(-10deg); }
    .groom, .bride { width: 100%; }
    
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .gallery-item img { height: 200px; }
    
    .events-grid, .gift-grid { flex-direction: column; align-items: stretch; gap: 1.5rem; }
    .event-card, .gift-card { width: 100%; max-width: 100%; min-width: auto; }
    
    .rsvp-wrapper { padding: 2rem 1.5rem; }
}

@media screen and (max-width: 480px) {
    .section { padding: 3rem 0; }
    .container { padding: 0 1rem; }
    
    .countdown-grid { gap: 0.8rem; }
    .cd-box { width: 75px; height: 75px; }
    .cd-box span { font-size: 1.4rem; }
    .cd-box small { font-size: 0.7rem; }
    
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item img { height: 250px; }
    
    .timeline { padding-left: 1.5rem; }
    .timeline-dot { left: -1.9rem; width: 14px; height: 14px; }
    .timeline-date { font-size: 1.2rem; }
    
    .btn { width: 100%; padding: 1rem; justify-content: center; }
    .btn-sm { width: auto; padding: 0.6rem 1.2rem; display: inline-flex; }
    
    .music-control { width: 45px; height: 45px; font-size: 1.6rem; bottom: 85px; right: 20px;}
    .toast { width: 90%; font-size: 0.85rem; padding: 0.8rem; text-align: center; justify-content: center; }
}
