/* ==========================================
   Wedding Website - Modern Romantic Design
   Color Palette: Champagne, Blush, Sage
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Romantic Pastel Palette */
    --color-primary: #c4a77d;
    /* Champagne Gold */
    --color-primary-light: #e8dcc8;
    /* Light Champagne */
    --color-secondary: #f5ebe0;
    /* Warm Cream */
    --color-accent: #d4a5a5;
    /* Dusty Rose */
    --color-sage: #a8b5a0;
    /* Sage Green */
    --color-blush: #fdf8f5;
    /* Soft Blush */
    --color-cream: #fffaf7;
    /* Warm White */
    --color-nude: #e8d5c4;
    /* Nude */

    /* Text Colors */
    --color-text: #3d3d3d;
    /* Soft Dark */
    --color-text-light: #7a7a7a;
    /* Muted Gray */
    --color-text-heading: #2c2c2c;
    /* Heading Dark */
    --color-white: #ffffff;

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --font-script: 'Great Vibes', cursive;

    /* Shadows - Soft & Elegant */
    --shadow-soft: 0 4px 20px rgba(196, 167, 125, 0.12);
    --shadow-medium: 0 8px 32px rgba(196, 167, 125, 0.18);
    --shadow-large: 0 16px 48px rgba(196, 167, 125, 0.22);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing */
    --section-padding: 60px;
    --section-padding-mobile: 40px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 15px;
}

html,
body {
    max-width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-cream);
    line-height: 1.8;
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-text-heading);
    letter-spacing: 0.02em;
}

/* ==========================================
   Navigation - Elegant & Minimal
   ========================================== */
#mainNav {
    background: rgba(255, 250, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    transition: var(--transition);
    box-shadow: none;
    border-bottom: 1px solid transparent;
}

#mainNav.scrolled {
    padding: 8px 0;
    box-shadow: 0 2px 20px rgba(196, 167, 125, 0.1);
    border-bottom: 1px solid var(--color-secondary);
}

.navbar-brand {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--color-primary) !important;
    letter-spacing: 0.02em;
}

.nav-link {
    color: var(--color-text) !important;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.85rem;
    padding: 8px 14px !important;
    margin: 0 3px;
    border-radius: 20px;
    transition: var(--transition);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary) !important;
    background: var(--color-secondary);
}

.navbar-toggler {
    border: 1px solid var(--color-primary-light);
    padding: 8px 10px;
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23c4a77d' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#navbarNav {
    background-color: var(--color-blush);
    border-radius: 12px;
    padding: 12px;
    margin-top: 10px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-secondary);
}

@media (min-width: 992px) {
    #navbarNav {
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
        border: none;
    }
}

/* ==========================================
   Hero Section - Modern Romantic
   ========================================== */
.hero-section {
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fffaf7 url("../images/05_02%20ST4%20CamTu_XuanHuynh/HUS06715.jpg") center 15%/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            rgba(255, 250, 247, 0.75) 0%,
            rgba(255, 250, 247, 0.6) 40%,
            rgba(253, 248, 245, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.save-the-date {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-primary);
    margin-bottom: 0.8rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.couple-names {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 1rem;
}

.groom-name,
.bride-name {
    font-family: var(--font-script);
    font-size: 3.2rem;
    color: var(--color-text-heading);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.heart-icon {
    font-size: 1.2rem;
    color: var(--color-accent);
    animation: heartbeat 2s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.wedding-date {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--color-primary);
    letter-spacing: 10px;
    margin-bottom: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Countdown - Compact & Elegant */
.countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    min-width: 70px;
    transition: var(--transition);
    border: 1px solid rgba(196, 167, 125, 0.15);
}

.countdown-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.countdown-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 0.65rem;
    color: var(--color-text-light);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.scroll-down {
    display: inline-block;
    color: var(--color-primary);
    font-size: 1.2rem;
    animation: bounce 2.5s infinite;
    opacity: 0.7;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-6px);
    }
}

/* Floating Hearts */
.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--color-accent);
    transform: rotate(45deg);
    opacity: 0.3;
    animation: float 15s infinite;
}

.heart::before,
.heart::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--color-accent);
    border-radius: 50%;
}

.heart::before {
    top: -10px;
    left: 0;
}

.heart::after {
    left: -10px;
    top: 0;
}

.heart:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.heart:nth-child(2) {
    left: 30%;
    animation-delay: 3s;
}

.heart:nth-child(3) {
    left: 50%;
    animation-delay: 6s;
}

.heart:nth-child(4) {
    left: 70%;
    animation-delay: 9s;
}

.heart:nth-child(5) {
    left: 90%;
    animation-delay: 12s;
}

@keyframes float {
    0% {
        bottom: -50px;
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        bottom: 100%;
        opacity: 0;
    }
}

/* ==========================================
   Section Styles - Compact & Elegant
   ========================================== */
.section-padding {
    padding: var(--section-padding) 0;
}

.bg-light {
    background: linear-gradient(180deg, var(--color-blush) 0%, var(--color-cream) 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 32px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-text-heading);
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.section-title p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 400;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.title-decoration span {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.title-decoration i {
    color: var(--color-accent);
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ==========================================
   Timeline / Love Story - Compact & Elegant
   ========================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 95%;
    background: linear-gradient(180deg,
            transparent 0%,
            var(--color-primary-light) 10%,
            var(--color-primary) 50%,
            var(--color-primary-light) 90%,
            transparent 100%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 10px 40px;
    margin-bottom: 8px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-icon {
    position: absolute;
    width: 36px;
    height: 36px;
    background: var(--color-cream);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    color: var(--color-primary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.timeline-icon:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -18px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -18px;
}

.timeline-content {
    background: var(--color-white);
    padding: 18px 22px;
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid rgba(196, 167, 125, 0.08);
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.timeline-date {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.timeline-content h4 {
    color: var(--color-text-heading);
    margin-bottom: 6px;
    font-size: 1rem;
    font-weight: 500;
}

.timeline-content p {
    color: var(--color-text-light);
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ==========================================
   Couple Section - Elegant & Refined
   ========================================== */
.couple-card {
    text-align: center;
    padding: 28px 24px;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid rgba(196, 167, 125, 0.08);
}

.couple-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.couple-image {
    width: 160px;
    height: 160px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-primary-light);
    box-shadow: 0 8px 24px rgba(196, 167, 125, 0.15);
    transition: var(--transition);
}

.couple-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.couple-card:hover .couple-image img {
    transform: scale(1.08);
}

.couple-info h3 {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--color-text-heading);
    margin-bottom: 4px;
}

.couple-role {
    color: var(--color-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
    margin-bottom: 12px;
}

.couple-desc {
    color: var(--color-text-light);
    font-size: 0.85rem;
    line-height: 1.7;
}

.couple-social {
    margin-top: 16px;
}

.couple-social a {
    display: inline-flex;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-secondary);
    color: var(--color-primary);
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    transition: var(--transition);
    font-size: 0.85rem;
}

.couple-social a:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.couple-heart {
    font-size: 2rem;
    color: var(--color-accent);
    animation: heartbeat 2s ease-in-out infinite;
    margin: 24px 0;
    opacity: 0.8;
}

/* ==========================================
   Event Section - Clean & Minimal
   ========================================== */
.event-card {
    background: var(--color-white);
    padding: 28px;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    text-align: center;
    height: 100%;
    transition: var(--transition);
    margin-bottom: 20px;
    border: 1px solid rgba(196, 167, 125, 0.08);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.event-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.3rem;
    color: var(--color-white);
}

.event-card h4 {
    font-size: 1.1rem;
    color: var(--color-text-heading);
    margin-bottom: 14px;
    font-weight: 500;
}

.event-details {
    text-align: left;
}

.event-details p {
    margin-bottom: 10px;
    color: var(--color-text-light);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.event-details i {
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-top: 2px;
}

.map-wrapper {
    margin-top: 32px;
}

.map-title {
    text-align: center;
    color: var(--color-text-heading);
    margin-bottom: 18px;
    font-size: 1rem;
    font-weight: 500;
}

.map-title i {
    color: var(--color-primary);
    margin-right: 8px;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.map-container iframe {
    display: block;
}

/* ==========================================
   QR Code Section
   ========================================== */
.qr-card {
    background: var(--color-white);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(196, 167, 125, 0.1);
}

.qr-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.qr-image {
    background: var(--color-blush);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 14px;
}

.qr-image img {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 8px;
}

.qr-info h5 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-text-heading);
    margin-bottom: 4px;
    font-weight: 500;
}

.qr-info p {
    font-size: 0.85rem;
    color: var(--color-primary);
    margin: 0;
    font-weight: 500;
}

.qr-image-modal {
    background: var(--color-blush);
    border-radius: 12px;
    padding: 12px;
    margin: 10px 0;
}

.qr-image-modal img {
    width: 100%;
    max-width: 110px;
    height: auto;
    border-radius: 8px;
}

/* ==========================================
   Gallery Section - Horizontal Scroll
   ========================================== */
.gallery-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 24px 0 40px;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.gallery-grid:active {
    cursor: grabbing;
}

.gallery-grid::-webkit-scrollbar {
    height: 8px;
}

.gallery-grid::-webkit-scrollbar-track {
    background: var(--color-secondary);
    border-radius: 10px;
}

.gallery-grid::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: 10px;
}

.gallery-grid::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

.gallery-item {
    flex: 0 0 380px;
    height: 500px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: center;
    box-shadow: 0 8px 32px rgba(196, 167, 125, 0.2);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s ease;
}

.gallery-item-tall,
.gallery-item-wide {
    flex: 0 0 450px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(196, 167, 125, 0.85),
            rgba(212, 165, 165, 0.75));
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-overlay i {
    color: var(--color-white);
    font-size: 2.5rem;
    transform: scale(0.5) rotate(-10deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(196, 167, 125, 0.25);
}

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

/* ==========================================
   Wishes Section
   ========================================== */
.wish-form-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: 25px;
    box-shadow: var(--shadow-soft);
}

.wish-form-card h4,
.wishes-list h4 {
    color: var(--color-text);
    margin-bottom: 25px;
}

.wish-form-card h4 i,
.wishes-list h4 i {
    color: var(--color-accent);
    margin-right: 10px;
}

.form-control {
    border: 2px solid var(--color-blush);
    border-radius: 15px;
    padding: 12px 20px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.1);
}

.form-label {
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 8px;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border: none;
    color: var(--color-white);
    padding: 12px 28px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(196, 167, 125, 0.35);
    color: var(--color-white);
}

.btn-primary-custom i {
    font-size: 0.85rem;
}

.wishes-list {
    background: var(--color-white);
    padding: 40px;
    border-radius: 25px;
    box-shadow: var(--shadow-soft);
    max-height: 500px;
    overflow-y: auto;
}

#wishesContainer {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wish-card {
    background: var(--color-blush);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid var(--color-primary);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wish-card .wish-name {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wish-card .wish-name i {
    font-size: 0.9rem;
}

.wish-card .wish-text {
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.wish-card .wish-time {
    color: var(--color-text-light);
    font-size: 0.8rem;
}

.no-wishes {
    text-align: center;
    color: var(--color-text-light);
    padding: 30px;
}

.no-wishes i {
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
    display: block;
}

/* ==========================================
   Thank You Section
   ========================================== */
.thankyou-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #fdf8f3 0%, #fff5f5 50%, #ffc8dd30 100%);
    overflow: hidden;
}

.thankyou-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.05;
}

.thankyou-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.thankyou-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2.5rem;
    color: var(--color-white);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 175, 204, 0.4);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(255, 175, 204, 0);
    }
}

.thankyou-content h2 {
    font-family: var(--font-script);
    font-size: 4rem;
    color: var(--color-text);
    margin-bottom: 20px;
}

.thankyou-message {
    color: var(--color-text-light);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 30px;
}

.thankyou-signature {
    margin-bottom: 20px;
}

.signature-text {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--color-primary);
}

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

.thankyou-date i {
    color: var(--color-accent);
    margin-right: 8px;
}

/* Floating Petals */
.floating-petals {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 15px;
    height: 20px;
    background: var(--color-secondary);
    border-radius: 50% 0 50% 50%;
    opacity: 0.4;
    animation: falling 12s infinite linear;
}

.petal:nth-child(1) {
    left: 5%;
    animation-delay: 0s;
}

.petal:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
}

.petal:nth-child(3) {
    left: 40%;
    animation-delay: 4s;
}

.petal:nth-child(4) {
    left: 60%;
    animation-delay: 6s;
}

.petal:nth-child(5) {
    left: 80%;
    animation-delay: 8s;
}

.petal:nth-child(6) {
    left: 95%;
    animation-delay: 10s;
}

@keyframes falling {
    0% {
        top: -20px;
        transform: rotate(0deg) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        top: 100%;
        transform: rotate(360deg) translateX(50px);
        opacity: 0;
    }
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--color-text);
    padding: 40px 0;
    color: var(--color-white);
}

.footer-hearts {
    margin-bottom: 15px;
}

.footer-hearts i {
    color: var(--color-accent);
    margin: 0 5px;
    font-size: 0.8rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.footer-hearts i:nth-child(2) {
    animation-delay: 0.5s;
}

.footer-hearts i:nth-child(3) {
    animation-delay: 1s;
}

.footer-names {
    font-family: var(--font-script);
    font-size: 2rem;
    margin-bottom: 5px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* ==========================================
   Modal / Lightbox
   ========================================== */
#galleryModal .modal-content {
    background: transparent;
    border: none;
}

#galleryModal .btn-close {
    position: absolute;
    top: -40px;
    right: 0;
    opacity: 1;
    filter: invert(1);
}

#galleryModal img {
    border-radius: 15px;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 991px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 20px;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-icon {
        left: 5px !important;
        right: auto !important;
    }

    .couple-heart {
        margin: 20px 0;
    }

    .gallery-item {
        flex: 0 0 260px;
        height: 350px;
    }

    .gallery-item-tall,
    .gallery-item-wide {
        flex: 0 0 300px;
    }
}

@media (max-width: 767px) {
    :root {
        --section-padding: 40px;
    }

    .section-padding {
        padding: var(--section-padding-mobile) 0;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .groom-name,
    .bride-name {
        font-size: 2.2rem;
    }

    .countdown-wrapper {
        gap: 10px;
    }

    .countdown-item {
        padding: 12px 16px;
        min-width: 60px;
    }

    .countdown-number {
        font-size: 1.4rem;
    }

    .countdown-label {
        font-size: 0.55rem;
    }

    .couple-image {
        width: 130px;
        height: 130px;
    }

    .couple-info h3 {
        font-size: 1.5rem;
    }

    .thankyou-content h2 {
        font-size: 2.2rem;
    }

    .wish-form-card,
    .wishes-list {
        padding: 20px;
        margin-bottom: 16px;
    }

    .event-card {
        padding: 20px;
        margin-bottom: 16px;
    }

    .couple-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .gallery-item {
        flex: 0 0 320px;
        height: 450px;
    }

    .gallery-item-tall,
    .gallery-item-wide {
        flex: 0 0 350px;
    }
}

@media (max-width: 575px) {

    .groom-name,
    .bride-name {
        font-size: 1.8rem;
    }

    .save-the-date {
        font-size: 0.65rem;
    }

    .wedding-date {
        font-size: 1.8rem;
        letter-spacing: 6px;
        font-weight: 700;
    }

    .countdown-wrapper {
        gap: 8px;
    }

    .countdown-item {
        padding: 10px 12px;
        min-width: 55px;
    }

    .countdown-number {
        font-size: 1.2rem;
    }

    .countdown-label {
        font-size: 0.5rem;
        letter-spacing: 1px;
    }

    .event-card {
        padding: 18px;
    }

    .timeline-content {
        padding: 14px 18px;
    }

    .timeline-content h4 {
        font-size: 0.9rem;
    }

    .timeline-content p {
        font-size: 0.8rem;
    }

    .gallery-item {
        flex: 0 0 280px;
        height: 400px;
    }

    .gallery-item-tall,
    .gallery-item-wide {
        flex: 0 0 300px;
    }
}

/* Fix horizontal overflow on mobile */
body {
    overflow-x: hidden;
    width: 100%;
}

.wish-form-card,
.wishes-list {
    height: 600px !important;
}


.row {
    margin-left: 0;
    margin-right: 0;
}

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

.map-container iframe {
    max-width: 100%;
}

/* ==========================================
   Floating Wishes Button & Sidebar
   ========================================== */
.floating-wishes-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(212, 163, 115, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse-btn 2s infinite;
}

.floating-wishes-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(212, 163, 115, 0.6);
}

@keyframes pulse-btn {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 175, 204, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 175, 204, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 175, 204, 0);
    }
}

.wishes-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-text);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-white);
}

/* Sidebar */
.wishes-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-white);
    z-index: 1001;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.wishes-sidebar.active {
    right: 0;
}

.wishes-sidebar-header {
    padding: 20px 25px;
    background: var(--color-blush);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.wishes-sidebar-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--color-text);
}

.wishes-sidebar-header h4 i {
    color: var(--color-accent);
    margin-right: 10px;
}

.wishes-sidebar-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--color-text-light);
    cursor: pointer;
    transition: var(--transition);
}

.wishes-sidebar-close:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
}

.wishes-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.wishes-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(3px);
}

.wishes-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Update sidebar wish card styles */
.wishes-sidebar .wish-card {
    margin-bottom: 15px;
    background: var(--color-cream);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

@media (max-width: 575px) {
    .floating-wishes-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* ==========================================
   Improved Wishes UI (Overrides)
   ========================================== */
.wishes-list::-webkit-scrollbar {
    width: 6px;
}

.wishes-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.wishes-list::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: 10px;
}

.wishes-list::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

.wishes-list {
    padding: 30px !important;
    max-height: 600px !important;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

#wishesContainer {
    gap: 20px !important;
}

.wish-card {
    background: #fff !important;
    padding: 20px 25px !important;
    border-radius: 20px 20px 20px 0 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(212, 163, 115, 0.15) !important;
    border-left: 1px solid rgba(212, 163, 115, 0.15) !important;
    /* Override old border-left */
    position: relative;
    margin-left: 10px;
}

.wish-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -10px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-bottom-right-radius: 15px;
    z-index: 10;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.02);
}

.wish-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 163, 115, 0.1) !important;
}

.wish-card .wish-name {
    font-weight: 700 !important;
    color: var(--color-text) !important;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.wish-card .wish-name i {
    color: var(--color-accent) !important;
    font-size: 1.2rem;
}

.wish-text {
    color: var(--color-text-light) !important;
    font-size: 0.95rem;
    font-style: italic;
}

.wish-time {
    font-size: 0.75rem !important;
    color: #aeaeae !important;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
}


/* ==========================================
   Equal Height Fix for Wishes Section
   ========================================== */
.wish-form-card,
.wishes-list {
    height: 100%;
}


.wishes-list {
    max-height: 100% !important;
}


/* ==========================================
   Fixed Header & Scrollable Content for Wishes
   ========================================== */
.wishes-list {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    /* Move scroll to inner container */
}

.wishes-list h4 {
    flex-shrink: 0 !important;
    margin-bottom: 20px !important;
}

#wishesContainer {
    overflow-y: auto !important;
    flex: 1 !important;
    padding-right: 5px;
    /* Space for scrollbar */
    min-height: 0;
    /* Important for flex scrolling */
}

/* Move custom scrollbar style to wishesContainer */
.wishes-list::-webkit-scrollbar {
    display: none;
    /* Hide parent scrollbar */
}

#wishesContainer::-webkit-scrollbar {
    width: 6px;
}

#wishesContainer::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#wishesContainer::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: 10px;
}

#wishesContainer::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ==========================================
   Wedding Gift QR Feature
   ========================================== */
.floating-gift-btn {
    position: fixed;
    bottom: 190px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: gift-shake 2s infinite;
}

.floating-gift-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

@keyframes gift-shake {
    0% {
        transform: rotate(0);
    }

    10% {
        transform: rotate(-10deg);
    }

    20% {
        transform: rotate(10deg);
    }

    30% {
        transform: rotate(-10deg);
    }

    40% {
        transform: rotate(10deg);
    }

    50% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(0);
    }
}

/* Modal Styling */
.gift-modal-content {
    border-radius: 20px;
    border: none;
    background: #fff url('../images/pattern-bg.png');
    /* Fallback if no image */
    background-size: cover;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.gift-title {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.gift-subtitle {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--color-text-light);
}

.qr-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
}

.qr-card:hover {
    transform: translateY(-5px);
}

.qr-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    margin: 15px 0;
}

.qr-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.bank-logo .badge {
    font-size: 1rem;
    padding: 8px 15px;
    border-radius: 50px;
}

.account-name {
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.account-number {
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 1px;
}

/* Resizing Gift Modal for Mobile */
@media (max-width: 767px) {
    .gift-title {
        font-size: 1.8rem !important;
        margin-bottom: 5px !important;
    }

    .gift-subtitle {
        font-size: 1.2rem !important;
    }

    .qr-card {
        padding: 15px !important;
        border-radius: 12px !important;
    }

    .account-name {
        font-size: 0.9rem !important;
    }

    .account-number {
        font-size: 1rem !important;
    }
}

/* ==========================================
   Global Falling Petals (Full Screen)
   ========================================== */
.floating-petals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 15px;
    height: 20px;
    background: #ffafcc;
    /* Pastel Pink */
    border-radius: 50% 0 50% 50%;
    opacity: 0;
    animation: falling 15s infinite linear;
}

.petal:nth-child(1) {
    left: 5%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.petal:nth-child(2) {
    left: 15%;
    animation-duration: 15s;
    animation-delay: 2s;
}

.petal:nth-child(3) {
    left: 25%;
    animation-duration: 10s;
    animation-delay: 4s;
}

.petal:nth-child(4) {
    left: 35%;
    animation-duration: 14s;
    animation-delay: 1s;
}

.petal:nth-child(5) {
    left: 45%;
    animation-duration: 16s;
    animation-delay: 5s;
}

.petal:nth-child(6) {
    left: 55%;
    animation-duration: 11s;
    animation-delay: 3s;
}

.petal:nth-child(7) {
    left: 65%;
    animation-duration: 13s;
    animation-delay: 7s;
}

.petal:nth-child(8) {
    left: 75%;
    animation-duration: 15s;
    animation-delay: 2s;
}

.petal:nth-child(9) {
    left: 85%;
    animation-duration: 12s;
    animation-delay: 6s;
}

@keyframes falling {
    0% {
        top: -5%;
        transform: rotate(0deg) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        top: 105%;
        transform: rotate(360deg) translateX(50px);
        opacity: 0;
    }
}

/* ==========================================
   Music Control Button
   ========================================== */
.music-control {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--color-white);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    font-size: 1.8rem;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    transition: all 0.3s ease;
}

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

.music-control.playing {
    animation: vinyl-spin 4s linear infinite;
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.music-control.muted {
    color: #999;
    border-color: #999;
}

@keyframes vinyl-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 575px) {
    .floating-gift-btn {
        bottom: 140px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .music-control {
        bottom: 80px;
        /* 20px + 50px + 10px spacing */
        right: 20px;
        left: auto;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}