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

html {
    scroll-behavior: smooth;
}

body {

    font-family: 'Be Vietnam Pro', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f0f0;
}

.container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

h1,
h2,
h3 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    text-align: center;
    color: #444;
}

h3 {
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    color: #333;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    color: #555;
    text-align: justify;
}

.welcome-bg,
.photo-bg,
.contact-bg {
    background-color: #f7f0eb;
}

.schedule-bg,
.location-bg {
    background-color: #eef2f5;
}

.section-icon {
    display: inline-block;
    font-size: 2.5rem;
    color: #888;
    margin-right: 1rem;
    margin-top: -1rem;
}

.section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}


.hero-section {
    width: 100%;
    background: transparent;
    padding: 0;
    margin: 0;

    height: auto;
    min-height: 0;
    overflow: hidden;
}


.hero-wrapper {
    position: relative;
    width: 100%;
    line-height: 0;
}

.hero-main-image {
    width: 100%;
    height: auto;
    display: block;
}


.guest-name-overlay {
    position: absolute;

    top: 75.5%;
    transform: translateY(-50%);


    left: 0;
    width: 100%;

    padding-left: 43%;
    text-align: left;
    margin-left: 0;


    font-size: 3.5vw;


    line-height: normal;
    font-family: 'Dancing Script', cursive;
    font-weight: bold;
    color: #f24976;
    z-index: 10;
    white-space: nowrap;

    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.2),
        0 0 5px rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
    padding-bottom: 2px;
}


.hero-content,
.scroll-down {
    display: none;
}



.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}


.hero-content h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
}

.hero-content .greeting-text {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}


.scroll-down {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    font-size: 1rem;
    font-weight: bolder;
    text-shadow: #000;
    letter-spacing: 1px;
    color: palevioletred;
}

.hamburger-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    border-radius: 5px;
    color: #333;
}

.sidebar-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    z-index: 1002;
    padding: 4rem 2rem 2rem 2rem;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-nav.open {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: #888;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    margin-top: 2rem;
}

.nav-links li {
    margin-bottom: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #444;
    font-size: 1.2rem;
}

.nav-links a:hover {
    color: #000;
    font-weight: 700;
}

.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: opacity 0.4s ease, visibility 0.4s ease;
}

.overlay.open {
    opacity: 1;
    visibility: visible;
}

.schedule-list {
    position: relative;
    margin-top: 2rem;
}

.schedule-list::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 24px;
    width: 2px;
    background: #d4d4d4;
    z-index: 1;
}

.schedule-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.schedule-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #d4d4d4;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: #555;
    flex-shrink: 0;
}

.schedule-content {
    margin-left: 1.5rem;
    padding-top: 0.5rem;
}

.schedule-content h3 {
    margin-bottom: 0.3rem;
}

.schedule-content p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0;
}

#social p {
    text-align: center;
}

.upload-label {
    display: block;
    width: fit-content;
    margin: 1rem auto 0.5rem auto;
    background: #5a67d8;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}

.upload-label:hover {
    background: #434190;
}

.upload-label i {
    margin-right: 0.5rem;
}

.upload-label:hover {
    background: #434190;
}

.upload-label i {
    margin-right: 0.5rem;
}

.upload-note {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 2rem;
}

#social h3 {
    text-align: center;
    border-top: 1px solid #ddd;
    padding-top: 2rem;
}

.gallery-swiper {
    width: 100%;
    height: 320px;
    padding: 20px 0 30px 0;
    margin-top: 1rem;
    background: transparent;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.swiper-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.swiper-button-next,
.swiper-button-prev {
    color: #5a67d8;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(90, 103, 216, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: static;
    margin: 0;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 0.9rem;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: #5a67d8;
    color: #ffffff;
}

.swiper-scrollbar-drag {
    background: #5a67d8;
}

.swiper-wrapper:empty::before {
    content: "Chưa có ảnh nào được tải lên...";
    font-style: italic;
    color: #999;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.swiper-navigation-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    gap: 20px;
}

#location p,
.upload-note,
footer p {
    text-align: center;
}

#location p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

#location p strong {
    color: #333;
}

.map-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    margin-top: 1.5rem;
    border-radius: 8px;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* CONTACT SECTION*/
#contact .container {
    text-align: center;
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    padding: 1rem 1.8rem;
    border-radius: 8px;
    min-width: 240px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-button i {
    margin-right: 0.75rem;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.contact-button .zalo-icon {
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.75rem;
    vertical-align: middle;
}

.contact-button.phone {
    background-color: #25d366;
}

.contact-button.facebook {
    background-color: #0084ff;
}

.contact-button.zalo {
    background-color: #0084ff;
}

/*refresh*/
.refresh-btn {
    display: block;
    margin: -1.5rem auto 1.5rem auto;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #5a67d8;
    background-color: transparent;
    border: 2px solid #5a67d8;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.refresh-btn i {
    margin-right: 0.5rem;
    transition: transform 0.5s ease;
}

.refresh-btn:hover {
    background-color: #5a67d8;
    color: #ffffff;
}


.refresh-btn:hover i {
    transform: rotate(360deg);
}

/* === CSS CHO CHỈ DẪN CUỘN === */
.scroll-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    text-align: center;
    color: #514f4f;
    opacity: 0.8;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}


.scroll-hint.hidden {
    opacity: 0;
    visibility: hidden;
}

.scroll-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    display: block;
    font-weight: 600;
}

.scroll-arrow {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
    /* Hiệu ứng nảy */
}

/* Hiệu ứng nảy lên xuống */
@keyframes bounce {

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

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

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

/* Responsive cho Desktop */
@media (min-width: 768px) {
    .contact-links {
        flex-direction: row;
        /* Xếp ngang trên desktop */
        justify-content: center;
    }
}

footer {
    background: #eef2f5;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: #888;
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .gallery-swiper {
        height: 380px;
        padding: 20px 0 40px 0;
    }
}

@media (min-width: 1024px) {
    .page-wrapper {
        max-width: 1100px;
        margin: 2rem auto;
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        overflow: hidden;
        position: relative;
    }
}

@media (max-width: 1023px) {
    .page-wrapper {
        width: 100%;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
        overflow: hidden;
        position: relative;
    }

    .hero-section {
        height: auto;
        min-height: 0;
    }

    .hero-main-image {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 767px) {

    /* 1. Tinh chỉnh Container */
    .container {
        width: 92%;
        padding: 1.5rem 0;
    }

    /* 2. Tinh chỉnh Section Header (Icon + Tiêu đề) */
    .section-header {
        margin-bottom: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .section-icon {
        margin-right: 0;
        margin-top: 0;
        font-size: 2rem;
    }

    h2 {
        margin-bottom: 0.5rem;
    }

    /* 3. Tinh chỉnh Schedule */
    .schedule-list {
        margin-top: 1rem;
    }

    .schedule-list::before {
        left: 20px;
    }

    .schedule-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .schedule-content {
        margin-left: 1rem;
        padding-top: 0;
    }


    .schedule-content h3,
    .schedule-content p {
        text-align: left;
    }

    /* 4. Tinh chỉnh phần Upload Ảnh */
    .upload-label {
        width: 100%;
        text-align: center;
    }

    /* 5. Tinh chỉnh Map & Location */
    #location p {
        font-size: 1rem;
        padding: 0;
    }

    .map-container {
        margin-top: 1rem;
        border-radius: 4px;
    }

    /* 6. Tinh chỉnh Contact Me */
    .contact-links {
        width: 100%;
    }

    .contact-button {
        width: 100%;
        min-width: auto;
        font-size: 1rem;
        padding: 0.8rem;
    }

    /* 7. Hero Section (Giữ nguyên logic auto height) */
    .hero-section {
        height: auto;
        min-height: 0;
    }

    .page-wrapper {
        width: 100%;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
        overflow: hidden;
    }
}



@media (min-width: 1200px) {
    .guest-name-overlay {
        font-size: 40px;

        padding-left: 470px;
    }
}


@media (max-width: 480px) {
    .guest-name-overlay {
        font-size: 3.5vw;
        top: 76%;
        padding-left: 42%;
    }
}


.map-toggles {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.map-toggle-btn {
    background: transparent;
    border: none;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 1.1rem;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px 10px;
    position: relative;
}

.toggle-separator {
    font-size: 1.2rem;
    color: #ccc;
    font-weight: 300;
}


.map-toggle-btn:hover {
    color: #5a67d8;
}

/* Trạng thái đang chọn (Active) */
.map-toggle-btn.active {
    color: #5a67d8;
    font-weight: 700;
}



.map-container img.map-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #eef2f5;
}

/* Class để ẩn bản đồ */
.map-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: -1;
}


.map-content {
    transition: opacity 0.4s ease;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f7f0eb;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* Class để ẩn preloader */
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Vòng quay loading */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ddd;
    border-top: 5px solid #c71610;
    /* Màu đỏ chủ đạo */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: #555;
    font-size: 1rem;
    letter-spacing: 1px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}