/* style.css - Full width responsive wedding invite with subtle animations */
:root {
    --bg: #FBFFF5;
    --accent: #39473A;
    --muted: #5A6946;
    --soft: #FFF8F2;
    --glass: rgba(255, 255, 255, 0.6);
}

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

html,
body {
    /* ĐÃ SỬA: Loại bỏ height: 100% để cho phép cuộn dọc */
    width: 100%;
    overflow-x: hidden;
    /* GIỮ LẠI: Ngăn cuộn ngang */
}

body {
    font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial;
    background: var(--bg);
    color: var(--accent);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.pageview {
    width: 100%;
    min-height: 100vh;
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
    /* Ngăn cuộn ngang cho toàn bộ content */
}

/* HERO - Full Width */
.hero {
    position: relative;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    /* Cắt bớt phần vượt ra */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 20px;
    background: linear-gradient(135deg, var(--bg) 0%, rgba(251, 255, 245, 0.9) 50%, var(--bg) 100%);
    z-index: 1;
    max-width: 100vw;
    /* Giới hạn chiều rộng */
}

/* Parallax Background Layers - Full Width */
.parallax-layer {
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    background-attachment: scroll;
    filter: saturate(0.9) opacity(1);
    transform: translateZ(0);
    will-change: transform;
    max-width: 100vw;
    overflow: hidden;
}

/* Định vị từng hình ảnh bằng top/right/bottom/left */
.parallax-img-1 {
    background-image: url('assets/images/1.png');
    width: 50%;
    height: 50%;
    top: 0px;
    left: 0px;
}

.parallax-img-2 {
    background-image: url('assets/images/2.png');
    width: 350px;
    height: 350px;
    top: 0px;
    right: -0px;
}

.parallax-img-3 {
    background-image: url('assets/images/3.png');
    width: 350px;
    height: 350px;
    z-index: 99;
    bottom: 0px;
    right: 20px;
    z-index: 1;
}

.parallax-img-4 {
    background-image: url('assets/images/4.png');
    width: 350px;
    height: 350px;
    bottom: -20px;
    right: 0px;
}

.parallax-img-5 {
    background-image: url('assets/images/5.png');
    width: 350px;
    height: 350px;
    bottom: 0px;
    right: 10px;
}

.parallax-img-6 {
    background-image: url('assets/images/6.png');
    width: 350px;
    height: 350px;
    bottom: 0px;
    left: 0px;
}

.parallax-img-8 {
    background-image: url('assets/images/8.png');
    bottom: 80px;
    left: 180px;
}

/* Cánh hoa sen (7.png) */
.parallax-img-7 {
    background-image: url('assets/images/7.png');
    position: absolute;
    background-size: 70px;
    background-repeat: no-repeat;
    filter: saturate(0.9) opacity(1);
    transform: translateZ(0);
    width: 80px;
    height: 80px;
}

/* Vị trí của từng cánh hoa */
.petal-1 {
    top: 5%;
    right: 20%;
}

.petal-2 {
    top: 25%;
    left: 25%;
}

.petal-3 {
    top: 50%;
    left: 15%;
}

.petal-4 {
    bottom: 55%;
    right: 5%;
}

.petal-5 {
    bottom: 15%;
    right: 5%;
}

.petal-6 {
    bottom: 15%;
    left: 20%;
}

.hero-inner {
    position: relative;
    z-index: 5;
    max-width: 768px;
    padding: 18px 12px;
    text-align: center;
    bottom: 40px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 20px;
    letter-spacing: 1.5px;
}

.couple-names,
.couple-names-and {
    font-family: 'Ephesis', cursive;
    font-weight: 500;
    margin: 0;
    color: var(--accent);
    line-height: 1.1;
}

.couple-names {
    font-size: 60px;
}

.couple-names-and {
    font-size: 26px;
}

.date-big {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--accent);
    font-size: 48px;
    margin: 0px 0 0;
}

.date-year {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--accent);
    font-size: 36px;
    margin: 0;
}

.to-text {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: var(--muted);
    margin: 25px 0 0;
}

.guest-name {
    font-family: 'Dancing Script', cursive;
    font-size: 36px;
    font-weight: bold;
    margin: 8px 0 24px;
}

/* Invite card - Full Width Container */
.invite {
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--bg);
}

.card-section {
    width: 100%;
    padding: 40px 0px;
    display: flex;
    justify-content: center;
    text-align: center;
    background: var(--bg);
    position: relative;
}

/* Trang trí phần báo tin - Transparent background */
.card-shape {
    background: transparent;
    padding: 50px 0px;
    position: relative;
    overflow: visible;
    max-width: 600px;
    width: 100%;
    z-index: 2;
}

.card-shape::before,
.card-shape::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    opacity: 0.45;
    z-index: -1;
}

.card-shape::before {
    top: -40px;
    left: -0px;
    background: url('assets/images/8.png') no-repeat center/contain;
}

.card-shape::after {
    bottom: -40px;
    right: -30px;
    background: url('assets/images/9.png') no-repeat center/contain;
}

.parents-info p {
    font-size: 13px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    line-height: 1.5;
    color: var(--accent);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.parents-info {
    display: flex;
    justify-content: space-between;
    text-align: center;
    margin-bottom: 25px;
    font-size: 11px;
    line-height: 2;
    gap: 40px;
}

.couple-names-card,
.couple-names-card-and {
    font-weight: 500;
    text-shadow: 0 2px 4px #39473a69;
}

.couple-names-card {
    font-family: 'Ephesis', serif;
    font-size: 45px;
    margin: 20px 0 10px;
    text-align: center;
    flex-wrap: nowrap;
    line-height: 1.2;
    color: var(--accent);
}

.couple-names-card-and {
    font-family: 'Ephesis', serif;
    font-size: 20px;
}

.card-inner p {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    color: var(--accent);
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 500;
    padding: 10px;
}

/* LỊCH THÁNG */
.calendar-section {
    padding: 40px 20px 60px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: 40px;
}

.calendar-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--soft);
    opacity: 0.8;
    z-index: -1;
}

.calendar-section .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.calendar-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    max-width: 450px;
    margin: 0 auto;
    background: url(assets/images/3.png) no-repeat center / cover;
    padding: 15px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-grid>div {
    padding: 8px 0;
    font-size: 14px;
    color: var(--accent);
    text-align: center;
    position: relative;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calendar-grid>div:hover:not(.blank-day, .day-of-week) {
    background-color: rgba(0, 0, 0, 0.05);
}

.day-of-week {
    font-weight: 700;
    color: var(--muted);
    font-size: 12px;
}

.blank-day {
    opacity: 0;
    cursor: default;
}

.wedding-day {
    color: var(--accent);
    font-weight: 900;
    font-size: 1.2rem;
    z-index: 1;
}

.wedding-day::before {
    content: '♥';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: #E74C3C;
    z-index: -1;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.8;
    }
}

/* COUNTDOWN SECTION */
.countdown-section {
    padding: 40px 20px;
    text-align: center;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: url('assets/images/8.png') no-repeat center/contain;
    opacity: 0.15;
    z-index: 0;
}

.countdown-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: url('assets/images/9.png') no-repeat center/contain;
    opacity: 0.15;
    z-index: 0;
}

.countdown-title {
    font-family: 'Ephesis', cursive;
    font-size: 2rem;
    /* font-weight: 700; */
    color: var(--accent);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.countdown-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    /* gap: 15px; */
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.countdown-number {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.countdown-label {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-separator {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.5;
    line-height: 1;
    margin: 0 5px;
}

/* Cover image giữa card và event-details - Full Width */
.cover-section {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.cover-image {
    width: 100%;
    /* height: 600px; */
    display: block;
    object-fit: cover;
}

/* Overlay gradient trắng từ dưới lên */
.cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--bg) 100%);
}

/* Trang trí Event Details - Full Width */
.event-details {
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.event-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/11.png') no-repeat bottom/cover;
    opacity: 0.35;
    z-index: -1;
}

.event-details h3 {
    font-size: 22px;
    margin: 12px 0 16px;
}

.invitation-text {
    font-size: 16px;
    margin-bottom: 10px;
}

.venue {
    padding-top: 16px;
    margin: 6px 0;
}

.venue-name {
    font-size: 26px;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 12px;
}

.event-location {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.event-location .small {
    font-size: 13px;
    font-style: italic;
}

.date-line {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 500px;
    padding: 0 20px;
}

.date-line .center {
    flex: 1;
    position: relative;
}

.date-line .left,
.date-line .right {
    flex: 1;
    position: relative;
    padding: 8px 0;
}

.date-line .left::before,
.date-line .left::after,
.date-line .right::before,
.date-line .right::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 1px;
    background: #444;
    width: 80px;
}

.date-line .left::before,
.date-line .right::before {
    top: 0;
}

.date-line .left::after,
.date-line .right::after {
    bottom: 0;
}

.date-line .center .day {
    font-size: 60px;
    font-weight: bold;
    color: #a21203;
    line-height: 1;
}

.date-line .center .month {
    font-size: 16px;
    margin-top: 4px;
}

.lunar-date {
    font-style: italic;
    font-size: 14px;
    color: var(--accent);
}

.event-time-label {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 42px;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--soft);
    color: var(--accent);
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.btn-primary {
    padding: 12px 30px;
    border-radius: 42px;
    background: var(--accent);
    color: #fff;
    font-weight: bold;
}

/* RSVP form - Full Width Container */
.rsvp {
    width: 100%;
    max-width: 720px;
    margin: 40px auto;
    padding: 18px 20px;
}

.rsvp::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -50px;
    width: 200px;
    height: 200px;
    opacity: 0.25;
    z-index: -1;
    transform: translateY(var(--parallax-y)) translateZ(0);
    will-change: transform;
}

.rsvp-header {
    background-color: var(--accent);
    color: white;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.rsvp-header h3 {
    margin: 0;
    font-size: 18px;
}

#rsvpForm {
    display: grid;
    gap: 10px;
    width: 100%;
}

#rsvpForm label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    color: var(--muted);
}

#rsvpForm input,
#rsvpForm select,
#rsvpForm textarea {
    padding: 10px;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 6px;
    width: 100%;
}

.select-wrapper {
    position: relative;
    margin-top: 6px;
}

.custom-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    padding: 10px;
    background: white;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
}

.custom-select::-ms-expand {
    display: none;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* PHẦN ALBUM ẢNH */
.photo-album-section {
    padding: 0px 20px 80px;
    text-align: center;
}

.album-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 30px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.album-title span {
    background: var(--bg);
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.album-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--muted);
    z-index: 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.album-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.photo-more-btn {
    max-width: fit-content;
}

/* PHẦN LỜI CẢM ƠN */
.thank-you-section {
    position: relative;
    height: 500px;
    /* Giữ nguyên yêu cầu */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
    padding: 0 20px 40px;
    background: url('assets/cover_hori.jpg') no-repeat center/cover;
}

.thank-you-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 600px;
    color: var(--accent);
    margin-bottom: 0;
}

.thank-you-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 55%, var(--bg) 95%);
    z-index: 1;
}

.thank-you-content p {
    font-family: 'Dancing Script', cursive;
    font-size: 16px;
    color: var(--accent);
}

.thank-you-content .final-couple-names {
    font-family: 'Great Vibes', cursive;
    font-size: 48px;
}

/* Footer - Full Width */
.footer {
    height: 13vh;
    width: 100%;
    text-align: center;
    padding: 40px 0;
    color: var(--muted);
    font-size: 14px;
    align-content: flex-end;
    font-family: 'Playfair Display', serif;
}

/* MODAL THANK YOU */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 0;
}

.modal.show {
    display: flex;
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 20px;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    background-color: var(--bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin: auto 20px;
}

.modal-background {
    width: 100%;
    padding-top: 100%;
    height: 0;
    background: url('assets/4.jpg') no-repeat center/cover;
    background-size: cover;
    position: relative;
}

/* THÊM LỚP OVERLAY GRADIENT */
.modal-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, var(--bg) 0%, rgba(255, 255, 255, 0.2) 60%, rgba(255, 255, 255, 0) 100%);
}

.modal-text {
    padding: 20px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    color: var(--accent);
    text-align: center;
}

.modal-title {
    font-family: 'Great Vibes', cursive;
    font-size: 42px;
    color: var(--accent);
    text-align: center;
    margin-bottom: 15px;
    display: block;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.modal-text p {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--accent);
}

.modal-button-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 0 20px 20px 0;
}

.modal-close-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
    font-size: 15px;
}

.modal-close-btn:hover {
    background: #303d32;
}

/* NÚT ĐIỀU KHIỂN NHẠC CỐ ĐỊNH */
.music-control-btn {
    position: fixed;
    bottom: 20px;
    z-index: 1000;
    right: 20px;
    left: auto;

    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--accent);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.music-control-btn.playing {
    animation: rotate-once 4s linear infinite;
}

.music-control-btn .icon {
    width: 20px;
    height: 20px;
    fill: var(--accent);
    display: none;
}

.music-control-btn.playing .icon.pause {
    display: block;
}

.music-control-btn.playing .icon.play {
    display: none;
}

.music-control-btn:not(.playing) .icon.play {
    display: block;
}

.music-control-btn:not(.playing) .icon.pause {
    display: none;
}

.music-control-btn.playing {
    box-shadow: 0 0 12px rgba(255, 192, 203, 0.8);
    animation: pulseMusic 2s infinite;
}

@keyframes pulseMusic {
    0% {
        box-shadow: 0 0 6px rgba(255, 192, 203, 0.3);
    }

    50% {
        box-shadow: 0 0 12px rgba(255, 192, 203, 0.8);
    }

    100% {
        box-shadow: 0 0 6px rgba(255, 192, 203, 0.3);
    }
}

/* INTRO OVERLAY */
.overlay-hidden {
    overflow: hidden;
    /* Ngăn cuộn khi lớp phủ được ẩn */
}

/* .intro-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #fff5f8, #fefaf0);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: opacity 1.2s ease;
}

.intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    color: var(--accent);
    max-width: 600px;
    width: 100%;
    padding: 0 15px;
}

.intro-names {
    font-family: 'Great Vibes', cursive;
    font-size: 48px;
    margin-bottom: 10px;
}

.intro-text {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    margin-bottom: 25px;
} */

.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    /* Giữ background nhạt như hình */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 1s ease-out;
    overflow: hidden;
}

.intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 90%;
    padding-top: 50px;
}

.save-date {
    font-family: 'Dancing Script', cursive;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
    color: var(--accent);
}

.intro-names {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 10px;
    line-height: 1.1;
    color: var(--accent);
}

.wedding-date {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    /* margin-bottom: 30px; */
    letter-spacing: 1px;
    color: var(--accent);
}

/* Khung chứa phong bì (giữ nguyên, khớp hình) */
.envelope-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 0 auto 30px;
    overflow: hidden;
}

/* Các phần khác của envelope giữ nguyên */
.envelope-top,
.envelope-bottom,
.couple-photo {
    position: absolute;
    height: auto;
    pointer-events: none;
    left: 0;
    transition: transform 0.8s ease-in-out, opacity 0.5s;
}

.couple-photo {
    z-index: 2;
    transition: none;
    object-fit: cover;
    width: 100%;
    height: 270px;
    top: 40px;
    padding: 60px 30px 0px 30px;
}

.envelope-bottom {
    z-index: 3;
    bottom: -6px;
    width: 99%;
}

.envelope-top {
    z-index: 2;
    transform-origin: top;
    cursor: pointer;
    bottom: -6px;
    width: 100%;
}

.wax-seal {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    z-index: 5;
    cursor: pointer;
    transition: opacity 0.3s;
}

.click-icon {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translate(-50%, 0%) translateY(40px);
    width: 40px;
    height: 40px;
    z-index: 5;
    pointer-events: none;
    animation: bounceIn 1s infinite;
}

/* Animation mở phong bì giữ nguyên */
.intro-overlay.fade-out .envelope-top {
    transform: rotateX(180deg);
    opacity: 0;
    transition-delay: 0.1s;
}

.intro-overlay.fade-out .wax-seal,
.intro-overlay.fade-out .click-icon {
    opacity: 0;
    transition: opacity 0.3s;
}

.envelope-bottom::before {
  content: "";
  position: absolute;
  top: -20px; /* đè lên phần không đều */
  left: 0;
  width: 100%;
  height: 40px;
  background: #0d5036; /* màu bìa */
  z-index: 4; /* giữa ảnh và bìa */
}


@keyframes bounceIn {
  0%, 20%, 40%, 60%, 80%, 100% {
    transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
  }
  0% {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  20% {
    transform: scale3d(1.1, 1.1, 1.1);
  }
  40% {
    transform: scale3d(0.9, 0.9, 0.9);
  }
  60% {
    opacity: 1;
    transform: scale3d(1.03, 1.03, 1.03);
  }
  80% {
    transform: scale3d(0.97, 0.97, 0.97);
  }
  100% {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

.btn-enter {
    font-family: 'Playfair Display', serif;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-enter:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Hiệu ứng xoay nhẹ */
@keyframes rotate-once {
    from {
        transform: rotate(0deg);
    }

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: 90vh;
        padding: 20px 15px;
    }

    .couple-names {
        font-size: 5rem;
    }

    .couple-names-card {
        font-size: 38px;
        font-weight: 500;
        line-height: 1.2;
    }

    .date-big {
        font-size: 42px;
    }

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

    .final-couple-names {
        font-size: 38px !important;
    }

    .card-shape {
        padding: 30px 0px;
    }

    .rsvp-header h3 {
        font-size: 16px;
    }

    .event-details {
        padding: 40px 0px;
    }

    .parallax-img-1,
    .parallax-img-2,
    .parallax-img-3,
    .parallax-img-4,
    .parallax-img-5,
    .parallax-img-6 {
        width: 380px;
        height: 380px;
    }

    .photo-grid {
        gap: 10px;
    }

    .calendar-grid {
        max-width: 100%;
    }

    .music-control-btn {
        right: 15px;
        bottom: 15px;
    }

    /* Thêm để ngăn cuộn ngang cho các section khác */
    .hero,
    .card-section,
    .cover-section,
    .countdown-section,
    .event-details,
    .calendar-section,
    .rsvp,
    .photo-album-section,
    .thank-you-section {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .couple-names {
        font-size: 3.5rem;
    }

    .date-big {
        font-size: 36px;
    }

    .guest-name {
        font-size: 28px;
    }

    .parents-info {
        padding: 0px 20px;
    }

    .cover-image {
        height: 600px;
    }

    .thank-you-content .final-couple-names {
        font-size: 36px;
    }

    .music-control-btn {
        right: 10px;
        width: 40px;
        height: 40px;
    }
}

/* ========================================================================= */
/* ALBUM SWIPER STYLES */
/* ========================================================================= */
/* .album-gallery {
  max-width: 600px;
  margin: 0 auto 30px auto;
}

.album-gallery .swiper {
  width: 100%;
} */

.album-gallery .mySwiper2 .swiper-slide {
    position: relative;
    overflow: hidden;
}

.album-gallery .mySwiper2 .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* QUAN TRỌNG: Lớp này sẽ sao chép background-image của cha */
    background-image: inherit;
    background-size: cover;
    background-position: center;

    /* HIỆU ỨNG MỜ */
    filter: blur(50px);
    opacity: 0.7;
    z-index: 0;
}

/* Đảm bảo ảnh chính nằm trên lớp nền mờ và vừa khít */
.album-gallery .mySwiper2 .swiper-slide img {
    position: relative;
    z-index: 1;

    /* Đảm bảo ảnh vừa khít chiều cao */
    width: auto;
    height: 100%;
    object-fit: contain;
    margin: 0 auto;

    /* Optional: Thêm đổ bóng nhẹ cho ảnh chính nổi bật khỏi nền mờ */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.album-gallery .mySwiper {
    height: 100px;
    /* Chiều cao thumbnail */
    box-sizing: border-box;
    padding: 0;
}

.album-gallery .mySwiper .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s;
}

.album-gallery .mySwiper .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid var(--accent);
    /* Viền nổi bật cho thumbnail đang active */
}

.album-gallery .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tùy chỉnh nút điều hướng */
.album-gallery .swiper-button-next,
.album-gallery .swiper-button-prev {
    color: var(--accent);
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.4));
}

@media (max-width: 768px) {
    .album-gallery .mySwiper2 {
        height: 300px;
        /* Giảm chiều cao trên mobile */
    }

    .album-gallery .mySwiper {
        height: 80px;
    }
}