/* ============================================
   GENPLUS YEP 2025 - PREMIUM ENHANCED STYLES
   Beautiful, Modern, Animated Experience
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Open+Sans:wght@300;400;600&display=swap');

:root {
    --red: #c40404;
    --dark-red: #8f1315;
    --wine: #6b0f12;
    --cream: #fffef9;
    --cream-dark: #f5f0e8;
    --green: #a9c28f;
    --gold: #d4a574;
    --gold-light: #e8c96d;
    --rose: #e5c3ab;
    --black: #1a1a1a;
    --white: #ffffff;
    --text: #2d2d2d;
    --text-light: #666666;
    /* Mẫu: màu nâu vàng cho tiêu đề, ngày và hoa trang trí */
    --golden-beige: #9a7b5a;
    --golden-beige-light: #b8956e;

    --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 10px 50px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.18);
    --shadow-glow: 0 0 40px rgba(196, 4, 4, 0.2);
}

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

html {
    scroll-behavior: smooth;
    background-color: #fffef9 !important;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #fffef9 !important;
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
    font-size: 16px;
}

/* ============================================
   ANIMATIONS KEYFRAMES
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

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

    50% {
        transform: translateY(-15px);
    }
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}

@keyframes pulse {

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

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

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

    100% {
        background-position: 200% center;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(196, 4, 4, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(196, 4, 4, 0.5);
    }
}

@keyframes drawLine {
    from {
        height: 0;
    }

    to {
        height: 100%;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   MAIN PAGE LAYOUT
   ============================================ */
.main-page {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 60px; /* Giảm 50% top padding: 60px → 30px */
    background-color: #fffef9;
    z-index: 2;
    min-height: 100vh;
}

/* Animated Sections */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header Section */
.header-section {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 40px; /* Đồng bộ spacing */
    position: relative;
    padding-top: 10px;
}

.leaf-decoration-left {
    position: absolute;
    left: -20px;
    top: 120px;
    width: 60px;
    height: 140px;
    transform: rotate(-5deg);
    opacity: 0.8;
}

.leaf-decoration-left svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(1px 2px 2px rgba(122, 154, 92, 0.3));
}



.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px; /* Đồng bộ spacing */
}

.logo-img {
    height: 91px; /* +30% from 70px */
    width: auto;
    object-fit: contain;
}

.main-title {
    margin-bottom: 40px; /* Đồng bộ spacing */
    position: relative;
    z-index: 2;
}

.title-year,
.title-party {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.8rem, 13vw, 6rem);
    color: #c40404;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    /* Subtle shadow for depth */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.title-year:hover,
.title-party:hover {
    text-shadow: 0 4px 40px rgba(196, 4, 4, 0.3);
}

.title-party {
    font-style: italic;
    font-weight: 500;
    /* Lighter weight as per reference */
}

.main-subtitle {
    font-family: 'Great Vibes', cursive;
    /* Using cursive font as reference */
    font-size: 28px;
    font-weight: 500;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto 40px; /* Đồng bộ spacing */
    line-height: 1.6;
    font-style: normal;
    text-shadow: none;
    letter-spacing: 0.5px;
}

/* New Date Block - Vertical Layout */
.date-block-new {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 0 auto 40px; /* Đồng bộ spacing */
}

.date-numbers-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.75;
    /* Tighter line height */
}

.date-numbers-vertical span {
    font-family: 'Open Sans', sans-serif;
    /* Sans-serif font */
    font-weight: 800;
    /* Extra bold */
    color: #cc0000;
}

.date-numbers-vertical .num-2 {
    font-size: 6rem;
    letter-spacing: -2px;
}

.date-numbers-vertical .num-0 {
    font-size: 6rem;
    transform: scaleX(1.4) rotate(-90deg);
    /* Stretch the 0 */
    margin: 5px 0;
    display: block;
}

.date-numbers-vertical .num-25 {
    font-size: 6rem;
    letter-spacing: -4px;
    /* Tighter spacing for 25 */
}

.date-info-side {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.1;
    margin-top: 10px;
}

.date-info-side .month {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #cc0000;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.date-info-side .day {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #cc0000;
    letter-spacing: -0.5px;
}

.date-info-side .year {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #cc0000;
    letter-spacing: -0.5px;
}



/* Slogan Section */
.slogan-section {
    text-align: center;
    padding: 0 20px 40px; /* Đồng bộ spacing */
    max-width: 600px;
    margin: 0 auto;
}

/* 3D Gold Slogan */
.slogan-3d {
    margin-bottom: 25px;
    line-height: 0.85;
    /* Tight overlap */
}

.slogan-3d .slogan-line1,
.slogan-3d .slogan-line2 {
    display: block;
    font-family: 'Open Sans', sans-serif;
    /* Thick sans-serif */
    font-size: clamp(3rem, 12vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;

    /* Metallic Gold Gradient */
    background: linear-gradient(180deg,
            #FDD074 0%,
            #BF953F 20%,
            #B38728 40%,
            #FBF5B7 60%,
            #AA771C 80%,
            #BF953F 100%);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    /* 3D Drop Shadow Effect */
    filter: drop-shadow(0px 1px 0px #8B6914) drop-shadow(0px 2px 0px #8B6914) drop-shadow(0px 3px 0px #8B6914) drop-shadow(0px 4px 0px #8B6914) drop-shadow(0px 6px 3px rgba(0, 0, 0, 0.3));

    position: relative;
    z-index: 10;
}

/* Interlocking Effect Attempt via margins */
.slogan-3d .slogan-line2 {
    margin-top: -10px;
    /* Overlap */
    z-index: 11;
}



/* Quote Box with Frame */
.quote-box-framed {
    position: relative;
    border: 1.5px solid #888;
    /* Darker, slightly thicker border */
    padding: 20px 25px;
    margin: 0 auto;
    max-width: 450px;
    background: transparent;
    /* Transparent background as per reference */
}

.quote-box-framed .quote-content p {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    /* Darker text */
    line-height: 1.5;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
}

.quote-floral {
    position: absolute;
    bottom: -20px;
    right: -25px;
    width: 100px;
    height: 60px;
    z-index: 12;
}

.quote-floral svg {
    width: 100%;
    height: 100%;
}



/* Event Section */
.event-section {
    max-width: 450px;
    margin: 40px auto;
    padding: 0 20px;
}

.event-image-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.event-image-wrap:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.event-photo {
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
}

.event-image-wrap:hover .event-photo {
    transform: scale(1.05);
}

.event-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 30px 15px 15px;
    backdrop-filter: blur(8px);
}

.event-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--white);
}

.info-col {
    text-align: center;
}

.day-name {
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.date-num {
    font-size: 20px;
    font-weight: 700;
    display: block;
}

.date-year {
    font-size: 14px;
    opacity: 0.7;
}

.time {
    font-size: 17px;
    font-weight: 600;
}

.info-divider {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    border-radius: 2px;
}

/* Add to Calendar Section */
.calendar-section {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #faf9f6 0%, #f5f0e8 100%);
    border-radius: 20px;
    margin: 40px 0; /* Đồng bộ spacing */
    position: relative;
    overflow: hidden;
}

/* Animated Calendar Icon */
.calendar-icon-animated {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    animation: floatCalendar 3s ease-in-out infinite;
}

.calendar-icon-animated svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(196, 4, 4, 0.2));
}

@keyframes floatCalendar {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

.calendar-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.calendar-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

@keyframes btnGlow {
    0% {
        box-shadow: 0 0 5px rgba(66, 133, 244, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(66, 133, 244, 0.6), 0 0 10px rgba(66, 133, 244, 0.4);
    }

    100% {
        box-shadow: 0 0 5px rgba(66, 133, 244, 0.2);
    }
}

@keyframes btnGlowBlack {
    0% {
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 0, 0, 0.3);
    }

    100% {
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    }
}

.calendar-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.calendar-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.calendar-btn:hover svg {
    transform: scale(1.2) rotate(5deg);
}

.calendar-btn.google-cal {
    background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);
    color: white;
}

.calendar-btn.google-cal:hover {
    background: linear-gradient(135deg, #1a73e8 0%, #0d5bcd 100%);
    transform: translateY(-3px) scale(1.05);
    animation: btnGlow 1.5s infinite;
}

.calendar-btn.apple-cal {
    background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
    color: white;
}

.calendar-btn.apple-cal:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    transform: translateY(-3px) scale(1.05);
    animation: btnGlowBlack 1.5s infinite;
}

/* Dresscode Section */
.dresscode-section {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    margin: 40px 0;
    box-shadow: var(--shadow-soft);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.dresscode-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 7vw, 2.8rem);
    color: var(--red);
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 8px;
}

.dresscode-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    font-style: italic;
}

.dresscode-circles {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 25px;
}

.dresscode-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.circle-black,
.circle-white {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.circle-black {
    background: linear-gradient(135deg, #2a2a2a 0%, #000000 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.circle-white {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border: 2px solid #e0e0e0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Shimmer effect for white circle */
.circle-white::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.8) 50%,
        transparent 70%
    );
    animation: shimmerEffect 3s ease-in-out infinite;
}

@keyframes shimmerEffect {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.outfit-icon {
    width: 36px;
    height: 36px;
    position: relative;
    z-index: 1;
}

.circle-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text);
    text-transform: uppercase;
}

.circle-black:hover,
.circle-white:hover {
    transform: scale(1.1) translateY(-5px);
}

.circle-black:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.circle-white:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.dresscode-tips {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: var(--text-light);
    padding: 12px 20px;
    background: linear-gradient(135deg, #faf9f6 0%, #f5f0e8 100%);
    border-radius: 30px;
    display: inline-block;
    margin-top: 10px;
}

/* Venue Section */
.venue-section {
    text-align: center;
    padding: 40px 20px 20px; /* Giảm bottom padding */
    max-width: 450px;
    margin: 40px auto 0; /* Bỏ bottom margin */
}

.venue-label {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: var(--text);
}

.venue-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.venue-address {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 25px;
}

.map-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.map-link:hover {
    transform: scale(1.05);
}

.map-link:hover .map-preview,
.map-link:hover .map-preview-realistic {
    box-shadow: 0 15px 40px rgba(169, 194, 143, 0.4);
}



/* Venue Floral Decorations */
.venue-floral-top {
    width: 200px;
    height: 80px;
    margin: 0 auto 10px;
}

.venue-floral-top svg {
    width: 100%;
    height: 100%;
}

/* Arch-shaped Map Container */
.map-container-arch {
    position: relative;
    max-width: 320px;
    margin: 20px auto;
}

.map-floral-left {
    position: absolute;
    left: -40px;
    bottom: -30px;
    width: 100px;
    height: 120px;
    z-index: 10;
    pointer-events: none;
}

.map-floral-left svg {
    width: 100%;
    height: 100%;
}

.map-link-arch {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.map-link-arch:hover {
    transform: scale(1.02);
}

.map-link-arch:hover .map-arch-frame {
    box-shadow: 0 15px 40px rgba(169, 194, 143, 0.4);
}

.map-arch-frame {
    width: 280px;
    height: 340px;
    margin: 0 auto;
    position: relative;
    border-radius: 140px 140px 10px 10px;
    overflow: hidden;
    border: 2px solid #d0d0d0;
    background: #f0eeea;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s ease;
}

.map-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.map-static-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    /* Will show if API key works */
}

.map-svg-fallback {
    width: 100%;
    height: 100%;
    display: block;
}

.map-pin-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -70%);
    width: 50px;
    height: 60px;
    z-index: 5;
    animation: float 3s ease-in-out infinite;
}

.map-pin-overlay svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}



.map-hint {
    font-family: 'Great Vibes', cursive;
    font-size: 18px;
    color: #e67e22;
    margin-top: 20px;
    font-weight: 600;
}

/* Timeline Section */
.timeline-section {
    padding: 20px 20px 20px; /* Giảm bottom padding */
    max-width: 500px;
    margin: 0 auto 0; /* Bỏ bottom margin */
}

.timeline-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
}

.timeline-subtitle {
    font-family: 'Great Vibes', cursive;
    font-size: 18px;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

.timeline {
    position: relative;
    padding-left: 90px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 72px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: linear-gradient(180deg, var(--red) 0%, var(--gold) 50%, var(--green) 100%);
    border-radius: 3px;
    animation: drawLine 1.5s ease-out;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.timeline-item .time {
    position: absolute;
    left: -90px;
    width: 60px;
    font-size: 15px;
    font-weight: 700;
    text-align: right;
    color: var(--text);
}

.timeline-item .dot {
    position: absolute;
    left: -22px;
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--white);
    border-radius: 50%;
    border: 4px solid var(--red);
    box-shadow: 0 0 0 4px rgba(196, 4, 4, 0.15);
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 8px rgba(196, 4, 4, 0.2);
}

.timeline-item .content {
    padding-left: 15px;
}

.timeline-item .content p {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
}

.timeline-item .content .sub {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 2px;
}

/* Closing Section */
.closing-section {
    text-align: center;
    padding: 20px 20px 60px; /* Giảm top padding */
    max-width: 600px;
    margin: 0 auto 40px; /* Bỏ top margin */
    position: relative;
}

.closing-decoration {
    width: 120px;
    margin: 0 auto 25px;
    animation: float 6s ease-in-out infinite;
}

.closing-decoration svg {
    width: 100%;
    filter: drop-shadow(0 2px 6px rgba(169, 194, 143, 0.3));
}

.closing-message {
    background: var(--white);
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    margin-bottom: 35px;
    transition: transform 0.3s ease;
}

.closing-message:hover {
    transform: translateY(-5px);
}

.closing-message p {
    font-family: 'Great Vibes', cursive;
    font-size: 28px;
    line-height: 1.6;
    color: var(--text);
}

.closing-message .highlight {
    color: var(--red);
    font-weight: 700;
    margin-top: 12px;
    font-size: 30px;
}

.closing-image {
    margin-bottom: 35px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: transform 0.4s ease;
}

.closing-image:hover {
    transform: scale(1.02);
}

.closing-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--wine) 100%);
    padding: 15px 30px;
    border-radius: 10px;
    gap: 15px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-medium), var(--shadow-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-badge:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-strong), 0 0 50px rgba(196, 4, 4, 0.3);
}

.badge-date {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.badge-month,
.badge-time {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.badge-divider {
    width: 2px;
    height: 50px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    border-radius: 2px;
}

.footer-address p {
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--text-light);
    line-height: 1.7;
    text-transform: uppercase;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE OPTIMIZED
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    .main-page {
        padding: 25px 25px 50px; /* Giảm 50% top padding: 50px → 25px */
    }

    .header-section,
    .slogan-section,
    .venue-section,
    .timeline-section,
    .closing-section {
        max-width: 100%;
    }

    .event-section {
        max-width: 100%;
        padding: 0 15px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }



    .main-subtitle {
        font-size: 22px;
        padding: 0 10px;
        line-height: 1.5;
    }

    .closing-message p {
        font-size: 22px !important;
        line-height: 1.5;
    }

    .closing-message .highlight {
        font-size: 24px !important;
        margin-top: 15px;
    }



    .event-section {
        margin: 30px auto;
        padding: 0 10px;
    }

    .event-overlay {
        padding: 20px 12px 12px;
    }

    .event-info {
        gap: 10px;
    }

    .day-name {
        font-size: 14px;
    }

    .date-num {
        font-size: 16px;
    }

    .date-year {
        font-size: 12px;
    }

    .time {
        font-size: 14px;
    }

    .info-divider {
        height: 30px;
    }

    .dresscode-section {
        padding: 30px 20px;
        margin: 30px 0; /* Đồng bộ mobile spacing */
    }

    .circle-black,
    .circle-white {
        width: 70px;
        height: 70px;
    }

    .dresscode-circles {
        gap: 20px;
    }

    .venue-section {
        padding: 30px 20px 15px;
        margin: 30px auto 0;
    }

    .venue-label {
        font-size: 1.5rem;
    }

    .venue-address {
        font-size: 13px;
        padding: 0 10px;
    }



    .map-hint {
        font-size: 13px;
    }

    .timeline-section {
        padding: 15px 15px 15px;
        margin: 0 auto 0;
    }

    .timeline-title {
        font-size: 1.8rem;
    }

    .timeline-subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .timeline {
        padding-left: 75px;
    }

    .timeline::before {
        left: 58px;
    }

    .timeline-item {
        margin-bottom: 20px;
    }

    .timeline-item .time {
        left: -75px;
        width: 52px;
        font-size: 13px;
    }

    .timeline-item .dot {
        left: -20px;
        width: 12px;
        height: 12px;
    }

    .timeline-item .content p {
        font-size: 14px;
    }

    .timeline-item .content .sub {
        font-size: 12px;
    }

    .closing-section {
        padding: 15px 20px 40px;
        margin: 0 auto 30px;
    }

    .closing-decoration {
        width: 100px;
    }

    .closing-message {
        padding: 25px 20px;
        margin-bottom: 25px;
    }



    .closing-image {
        margin-bottom: 25px;
    }

    .closing-image img {
        max-width: 100%;
    }

    .footer-badge {
        padding: 12px 20px;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .badge-date {
        font-size: 2.5rem;
    }

    .badge-month,
    .badge-time {
        font-size: 1.2rem;
    }

    .badge-divider {
        height: 40px;
    }

    .footer-address p {
        font-size: 11px;
    }
}

/* Small Mobile */
@media (max-width: 360px) {


    .title-year,
    .title-party {
        font-size: 3rem;
    }

    .slogan-line1,
    .slogan-line2 {
        font-size: 2rem;
    }

    .num-2,
    .num-0,
    .num-25 {
        font-size: 2.5rem;
    }

    .timeline {
        padding-left: 70px;
    }

    .timeline::before {
        left: 53px;
    }

    .timeline-item .time {
        left: -70px;
        width: 48px;
        font-size: 12px;
    }

    .badge-date {
        font-size: 2rem;
    }

    .badge-month,
    .badge-time {
        font-size: 1rem;
    }
}

/* ============================================
   LOADING & TRANSITIONS
   ============================================ */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.page-transition.hide {
    opacity: 0;
}

body.loaded .page-transition {
    display: none;
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {

    .circle-black:hover,
    .circle-white:hover {
        transform: none;
    }

    .circle-black:active,
    .circle-white:active {
        transform: scale(0.95);
    }

    .event-image-wrap:hover,
    .closing-message:hover,
    .footer-badge:hover {
        transform: none;
    }
}