/* ===== VARIABLES ===== */
:root {
    --primary: #E08D9D;
    --primary-dark: #c9707f;
    --bg-light: #FFFCFD;
    --surface: #FFFFFF;
    --text-dark: #1a1a1a;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --border: #f3f4f6;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 0.75rem;
    --radius-xl: 1.5rem;
}

/* Dark theme */
[data-theme="dark"] {
    --bg-light: #1a1a2e;
    --surface: #16213e;
    --text-dark: #f1f5f9;
    --text-gray: #cbd5e1;
    --text-light: #94a3b8;
    --border: #334155;
}

[data-theme="dark"] .navbar {
    background: rgba(26, 26, 46, 0.95);
}

[data-theme="dark"] .nav-links {
    background: var(--surface);
}

[data-theme="dark"] .hero {
    background: linear-gradient(180deg, var(--bg-light) 0%, #1f1f3a 40%, #252545 100%);
}

[data-theme="dark"] .big-day {
    background: var(--surface);
}

[data-theme="dark"] .gallery {
    background: var(--bg-light);
}

[data-theme="dark"] .detail-card {
    background: var(--bg-light);
}

[data-theme="dark"] .timeline-card {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .timeline-card h3 {
    color: var(--text-dark);
}

[data-theme="dark"] .timeline-card p {
    color: var(--text-gray);
}

[data-theme="dark"] .party-card {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .wedding-party-section {
    background: linear-gradient(180deg, var(--bg-light) 0%, #1f1f3a 50%, var(--bg-light) 100%);
}

[data-theme="dark"] .timeline-section {
    background: linear-gradient(180deg, var(--surface) 0%, #1f1f3a 50%, var(--surface) 100%);
}

[data-theme="dark"] .timeline::before {
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
}

[data-theme="dark"] .timeline-dot {
    border-color: var(--surface);
}

[data-theme="dark"] .footer {
    background: var(--bg-light);
}

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Leaflet tiles should not inherit global img sizing */
.leaflet-container img {
    max-width: none !important;
    height: auto !important;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 20px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

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

.nav-logo {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--text-dark);
    transition: color 0.3s;
}

.nav-logo span {
    color: var(--primary);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dark);
    transition: color 0.3s;
}

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

.btn-rsvp-nav {
    background: var(--primary) !important;
    color: var(--text-dark) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    box-shadow: 0 4px 14px rgba(224, 141, 157, 0.4);
    transition: transform 0.3s, box-shadow 0.3s !important;
}

.btn-rsvp-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 141, 157, 0.5);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    color: #f59e0b;
    font-size: 1.25rem;
    margin-left: 1rem;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.theme-toggle:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.theme-toggle .material-icons-round {
    font-size: 1.4rem;
}

[data-theme="dark"] .theme-toggle {
    background: var(--surface);
    border-color: var(--border);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 1.5rem;
}

/* ===== NAVBAR RESPONSIVE (TABLET) ===== */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 1rem;
    }
    .nav-logo {
        font-size: 2.1rem;
    }
    .nav-links {
        gap: 1.2rem;
    }
    .nav-links a {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }
    .btn-rsvp-nav {
        padding: 0.5rem 1.1rem;
        font-size: 0.7rem !important;
    }
    .theme-toggle {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }
}

/* ===== HERO ===== */
.hero {
    padding: 8rem 0 6rem;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, #fff 0%, #fdf8f9 40%, #faf0f2 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-script {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: var(--primary);
    transform: rotate(-2deg);
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1.05;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero-title-italic {
    font-style: italic;
    font-weight: 400;
    color: var(--primary);
}

.hero-names span {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.25rem;
    color: var(--primary);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-gray);
    margin: 2rem 0;
    font-weight: 300;
    max-width: 450px;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.badge .material-icons-round {
    color: var(--primary);
    font-size: 1.4rem;
}

.badge span:last-child {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1rem;
}

/* Hero Photos */
.hero-photos {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-bg-glow {
    position: absolute;
    inset: 0;
    background: var(--primary);
    opacity: 0.08;
    border-radius: 50%;
    filter: blur(60px);
    transform: scale(0.75);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(0.75); opacity: 0.08; }
    50% { transform: scale(0.85); opacity: 0.12; }
}

.collage-img {
    position: absolute;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s ease, z-index 0s;
}

.collage-img:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 50;
}

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

.collage-img-1 {
    width: 220px;
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    transform: rotate(-12deg);
    top: 20px;
    left: 10px;
    z-index: 10;
}

.collage-img-2 {
    width: 220px;
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    transform: rotate(12deg);
    bottom: 20px;
    right: 10px;
    z-index: 20;
}

.collage-img-3 {
    width: 240px;
    aspect-ratio: 1;
    border-radius: 50%;
    border-width: 8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
}

/* ===== SECTIONS COMMON ===== */
.section-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-subtitle {
    display: block;
    text-align: center;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 3.5rem;
}

/* ===== THE BIG DAY ===== */
.big-day {
    padding: 6rem 0;
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.big-day::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(224,141,157,0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: blobFloat 8s ease-in-out infinite;
}

.big-day::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(199,116,133,0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: blobFloat 8s ease-in-out 3s infinite;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.detail-card {
    position: relative;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem 2rem;
    text-align: center;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.detail-card:hover {
    border-color: rgba(224, 141, 157, 0.3);
    box-shadow: var(--shadow-lg);
}

.detail-icon {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--text-dark);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(224, 141, 157, 0.4);
}

.detail-icon .material-icons-round {
    font-size: 1.5rem;
}

.detail-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.detail-main {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 300;
}

.detail-sub {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.btn-view-map {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.4rem 1.2rem;
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    transition: background 0.3s, color 0.3s;
}

.btn-view-map:hover {
    background: var(--primary);
    color: white;
}

/* ===== GALLERY ===== */
.gallery {
    padding: 6rem 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(224,141,157,0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: blobFloat 10s ease-in-out infinite;
}

.gallery::after {
    content: '';
    position: absolute;
    bottom: 5%;
    right: -5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(240,230,246,0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: blobFloat 10s ease-in-out 4s infinite;
}

.gallery .section-container {
    max-width: 1200px;
}

.gallery-script {
    display: block;
    text-align: center;
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/4;
    box-shadow: var(--shadow);
}

.gallery-item-tall {
    grid-row: span 2;
    aspect-ratio: auto;
}

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

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

.gallery-overlay span {
    font-family: 'Great Vibes', cursive;
    font-size: 1.75rem;
    color: white;
}

/* ===== REGISTRY ===== */
.registry {
    padding: 6rem 0;
    background: linear-gradient(135deg, #fdf8f9 0%, #f8f0f5 50%, #f0e6f6 100%);
    position: relative;
    overflow: hidden;
}

.registry-card {
    background: #1a1a2e;
    border-radius: var(--radius-xl);
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.registry-blob {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.2;
}

.registry-blob-1 {
    width: 8rem;
    height: 8rem;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
}

.registry-blob-2 {
    width: 10rem;
    height: 10rem;
    bottom: 0;
    right: 0;
    transform: translate(30%, 30%);
}

.registry-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.registry-card p {
    color: #d1d5db;
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 550px;
    margin: 0 auto 2.5rem;
    position: relative;
    z-index: 1;
}

.btn-registry {
    display: inline-block;
    background: var(--primary);
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    transition: background 0.3s, transform 0.3s;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 14px rgba(224, 141, 157, 0.4);
}

.btn-registry:hover {
    background: white;
    transform: translateY(-2px);
}

/* ===== RSVP ===== */
.rsvp-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.rsvp-form {
    max-width: 650px;
    margin: 0 auto;
    background: var(--surface);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    padding: 0.85rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg-light);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(224, 141, 157, 0.15);
}

.form-group textarea {
    resize: vertical;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.radio-label input[type="radio"] {
    accent-color: var(--primary);
    width: 1.1rem;
    height: 1.1rem;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 4px 14px rgba(224, 141, 157, 0.4);
}

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

/* ===== FOOTER ===== */
.footer {
    padding: 4rem 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.footer-logo {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-socials a {
    color: var(--text-light);
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: var(--primary);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-light);
}

.footer-credit {
    font-size: 0.75rem;
    color: #d1d5db;
    margin-top: 0.5rem;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: #065f46;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s ease;
    z-index: 200;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Slide from left */
.slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from right */
.slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up */
.scale-up {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-up.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children animation delay */
.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.5s; }

/* Hero entrance animations */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes floatPhoto {
    0%, 100% { transform: rotate(var(--rotate)) translateY(0); }
    50% { transform: rotate(var(--rotate)) translateY(-8px); }
}

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

.hero-content {
    animation: heroFadeUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero-photos {
    animation: heroFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

.collage-img-1 {
    --rotate: -12deg;
    animation: floatPhoto 4s ease-in-out infinite;
}

.collage-img-2 {
    --rotate: 12deg;
    animation: floatPhoto 4s ease-in-out 1s infinite;
}

.collage-img-3 {
    --rotate: -5deg;
    animation: floatPhoto 4s ease-in-out 2s infinite;
}

/* Hero title shimmer on mobile */
@media (max-width: 768px) {
    .hero-title {
        background: linear-gradient(90deg, var(--text-dark) 40%, var(--primary) 50%, var(--text-dark) 60%);
        background-size: 200% auto;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: shimmer 4s linear infinite;
    }
}

/* Parallax-like scroll effect for sections */
.section-container {
    position: relative;
    z-index: 1;
}

.section-subtitle {
    transition: transform 0.3s ease;
}

/* Gallery items hover/tap effect */
.gallery-item {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.gallery-item:active {
    transform: scale(0.95);
}

/* Detail cards entrance */
.detail-card {
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Badge subtle bounce */
@keyframes badgeBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.badge {
    animation: badgeBounce 3s ease-in-out infinite;
}

.badge:nth-child(2) {
    animation-delay: 0.5s;
}

/* Timeline cards animation */
.timeline-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Party cards pop effect */
.party-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.party-card:active {
    transform: scale(0.96);
}

/* Registry card floating blobs animation */
@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10px, -10px) scale(1.05); }
    66% { transform: translate(-5px, 5px) scale(0.95); }
}

.registry-blob {
    animation: blobFloat 6s ease-in-out infinite;
}

.registry-blob-2 {
    animation-delay: 2s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        order: 2;
    }

    .hero-photos {
        order: 1;
        height: 350px;
    }

    .hero-script {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-badges {
        justify-content: center;
    }

    .collage-img-1 {
        width: 150px;
    }

    .collage-img-2 {
        width: 150px;
    }

    .collage-img-3 {
        width: 180px;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-item-tall {
        grid-row: span 1;
        aspect-ratio: 3/4;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .rsvp-form {
        padding: 2rem 1.5rem;
    }

    .registry-card {
        padding: 3rem 1.5rem;
    }

    .section-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-photos {
        height: 280px;
    }

    .collage-img-1 {
        width: 120px;
    }

    .collage-img-2 {
        width: 120px;
    }

    .collage-img-3 {
        width: 150px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .badge {
        width: 100%;
        justify-content: center;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ===== PRESENTATION VIDEO ===== */
.presentation-video {
    padding: 5rem 0;
    background: #fdf8f9;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    aspect-ratio: 16/9;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== TIMELINE ===== */
.timeline-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #fff 0%, #fdf8f9 50%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -15%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(224,141,157,0.04) 0%, transparent 70%);
    border-radius: 50%;
    animation: blobFloat 9s ease-in-out 1s infinite;
}

.timeline {
    position: relative;
    max-width: 700px;
    margin: 3rem auto 0;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    padding: 1rem 0;
    display: flex;
    align-items: center;
}

.timeline-item.left {
    justify-content: flex-start;
    padding-right: calc(50% + 30px);
}

.timeline-item.right {
    justify-content: flex-end;
    padding-left: calc(50% + 30px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary);
    z-index: 1;
}

.timeline-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f3e8eb;
    max-width: 280px;
    transition: transform 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-4px);
}

.timeline-date {
    font-family: 'Great Vibes', cursive;
    color: var(--primary);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.timeline-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #2d2d2d;
}

.timeline-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* ===== WEDDING PARTY ===== */
.wedding-party-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #fdf8f9 0%, #fff 50%, #fdf8f9 100%);
    position: relative;
    overflow: hidden;
}

.wedding-party-section::before {
    content: '';
    position: absolute;
    top: 30%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(224,141,157,0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: blobFloat 7s ease-in-out 2s infinite;
}

.party-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 3rem auto 0;
}

.party-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #f3e8eb;
    transition: transform 0.3s ease;
}

.party-card:hover {
    transform: translateY(-6px);
}

.party-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.party-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.party-avatar .material-icons-round {
    font-size: 2.5rem;
    color: var(--primary);
}

.party-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.party-role {
    display: block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.party-side {
    display: block;
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 0.75rem;
}

.party-bio {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.party-funfact {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.party-funfact .material-icons-round {
    font-size: 0.9rem;
    color: #ffc107;
}

/* ===== TIMELINE RESPONSIVE ===== */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item.left,
    .timeline-item.right {
        padding-left: 50px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-card {
        max-width: 100%;
    }

    .party-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .party-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.2s;
}

.lang-switcher-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.lang-switcher-dropdown {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.2s;
    min-width: 140px;
}

.lang-switcher.open .lang-switcher-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.lang-switcher-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.15s;
}

.lang-switcher-dropdown a:hover {
    background: #fff5f7;
}

.lang-switcher-dropdown a.active {
    background: #fff0f3;
    font-weight: 600;
    color: var(--primary);
}

.lang-flag {
    font-size: 1.1rem;
}

/* Dark mode lang switcher */
body.dark-mode .lang-switcher-btn {
    background: #2d2d2d;
    border-color: #444;
    color: #eee;
}

body.dark-mode .lang-switcher-dropdown {
    background: #2d2d2d;
    border-color: #444;
}

body.dark-mode .lang-switcher-dropdown a {
    color: #eee;
}

body.dark-mode .lang-switcher-dropdown a:hover {
    background: #3a3a3a;
}

body.dark-mode .lang-switcher-dropdown a.active {
    background: #3a2a2d;
}
