/* --- 1. CẤU HÌNH MÀU SẮC & CƠ BẢN (Dựa trên ảnh) --- */
:root {
    --primary-color: #FF7F50; /* Cam san hô đậm */
    --secondary-color: #FFB6C1; /* Hồng phấn */
    --accent-color: #66CDAA; /* Xanh ngọc (giống nút Live Streaming) */
    --bg-color: #FFF9F0; /* Màu kem nền */
    --text-dark: #2D3436;
    --text-light: #636e72;
    --white: #ffffff;
    --font-main: 'Nunito', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --font-script: 'Pacifico', cursive;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
    /* Disable text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* --- 2. LOADING SCREEN --- */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF7F50 0%, #FFB6C1 50%, #66CDAA 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 40px;
}

.loading-hearts {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    height: 60px;
    align-items: center;
}

.loading-heart {
    font-size: 40px;
    animation: heartbeat 1.5s ease-in-out infinite;
    opacity: 0;
}

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

.loading-heart:nth-child(2) {
    animation-delay: 0.3s;
}

.loading-heart:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.loading-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
    min-height: 1.2em;
    display: inline-block;
    min-width: 250px; /* Đảm bảo không bị lệch khi gõ */
    text-align: center;
}

.loading-title::after {
    content: '|';
    animation: blink 1s infinite;
    margin-left: 2px;
    color: rgba(255, 255, 255, 0.8);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.loading-subtitle {
    font-size: 1.2rem;
    margin-bottom: 10px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.loading-images-count {
    font-size: 0.95rem;
    margin-bottom: 20px;
    opacity: 0.85;
    min-height: 1.4em;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.loading-progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease 0.4s both;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.95) 50%, #fff 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    width: 0%;
    transition: width 0.35s ease;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
    animation: loading-bar-shine 2s ease-in-out infinite;
}

@keyframes loading-bar-shine {
    0%, 100% { background-position: 100% 0; }
    50% { background-position: 0 0; }
}

.loading-percent {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.loading-content {
    animation: loading-content-pulse 3s ease-in-out infinite;
}

@keyframes loading-content-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.01); }
}

.btn-explore {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-main);
    animation: fadeInUp 0.8s ease 0.6s both, pulse 2s ease infinite 1s;
}

.btn-explore:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn-explore i {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 5px 30px rgba(255, 255, 255, 0.6);
    }
}

/* --- 3. HIỆU ỨNG NỀN TRÁI TIM BAY (Nâng cấp) --- */
.bg-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.heart-bg {
    position: absolute;
    bottom: -50px;
    animation: floatUp 12s infinite linear;
    pointer-events: none;
    user-select: none;
}

@keyframes floatUp {
    0% { 
        transform: translateY(0) translateX(0) rotate(0deg) scale(0.5); 
        opacity: 0; 
    }
    10% { 
        opacity: 0.7; 
    }
    50% { 
        transform: translateY(-50vh) translateX(20px) rotate(180deg) scale(1.2); 
        opacity: 0.8; 
    }
    100% { 
        transform: translateY(-100vh) translateX(-20px) rotate(360deg) scale(0.8); 
        opacity: 0; 
    }
}

.heart-click {
    position: fixed;
    animation: heartClick 1s ease-out forwards;
    pointer-events: none;
    user-select: none;
    z-index: 9998;
}

@keyframes heartClick {
    0% { 
        transform: translateY(0) scale(0.5); 
        opacity: 0; 
    }
    50% { 
        transform: translateY(-50px) scale(1.5); 
        opacity: 1; 
    }
    100% { 
        transform: translateY(-100px) scale(1); 
        opacity: 0; 
    }
}

/* --- 3. UI COMPONENTS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 127, 80, 0.3);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(102, 205, 170, 0.3);
}

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

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

.section-subtitle {
    text-align: center;
    font-family: var(--font-script);
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 50px;
}

/* --- 4. NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(255, 249, 240, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: bold;
    min-height: 1.2em;
    display: inline-block;
    position: relative;
    min-width: 200px; /* Đảm bảo không bị lệch khi gõ */
    text-align: left;
}

.logo::after {
    content: '|';
    animation: blink 1s infinite;
    margin-left: 2px;
    color: var(--primary-color);
    opacity: 0.8;
}

.typing-copyright {
    display: inline-block;
    position: relative;
    min-width: 150px; /* Đảm bảo không bị lệch khi gõ */
    text-align: left;
}

.typing-copyright::after {
    content: '|';
    animation: blink 1s infinite;
    margin-left: 2px;
    color: #999;
    opacity: 0.8;
}

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

.nav-links a {
    margin-left: 30px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
}

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

/* --- 5. HERO SECTION --- */
.hero {
    display: flex;
    align-items: center;
    min-height: 90vh;
    position: relative;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-tag {
    color: var(--accent-color);
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    color: #1a1a40; /* Màu xanh đậm trong ảnh */
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-img-container {
    width: 100%;
    height: 500px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    box-shadow: 20px 20px 0px rgba(255, 127, 80, 0.1);
    background: #fff;
    position: relative;
    animation: morph 8s ease-in-out infinite;
}

.hero-img-container .image-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    z-index: 1;
}

.hero-img-container img.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
    z-index: 2;
}

.hero-img-container img.hero-main-img.loaded {
    opacity: 1;
}

@keyframes morph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* --- 6. COUPLE PROFILES --- */
.profile-section {
    padding: 80px 0;
}

.profiles-wrapper {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: nowrap; /* Luôn ngang, không wrap */
    overflow-x: hidden; /* Ẩn scrollbar, dùng nút để chuyển đổi */
    -webkit-overflow-scrolling: touch;
    position: relative;
    scroll-behavior: smooth;
}

.profile-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: 350px;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.profile-buttons-wrapper {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.profile-card:hover {
    transform: translateY(-10px);
}

.profile-buttons-wrapper {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.profile-toggle-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 127, 80, 0.3);
    transition: all 0.3s ease;
    font-family: var(--font-main);
    display: none; /* Ẩn mặc định, chỉ hiện trên mobile */
}

.profile-toggle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 127, 80, 0.4);
    background: var(--secondary-color);
}

.profile-toggle-btn:active {
    transform: translateY(-1px);
}

/* Ẩn nút trên desktop */
@media (min-width: 769px) {
    .profile-buttons-wrapper {
        display: none;
    }
}

.profile-img-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.profile-img-wrapper .image-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    z-index: 1;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--bg-color);
    box-shadow: 0 0 0 2px var(--primary-color);
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
    z-index: 2;
}

.profile-img.loaded {
    opacity: 1;
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-dark);
}

.profile-role {
    color: var(--accent-color);
    font-family: var(--font-script);
    margin-bottom: 15px;
}

/* --- 7. LOVE TIMER --- */
.timer-section {
    padding: 80px 0;
    background-color: #fff;
    text-align: center;
    position: relative;
}

/* Shape divider */
.custom-shape-divider-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.timer-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.time-box {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 15px;
    width: 120px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.time-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
}

.time-box h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 800;
}

.time-box p {
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* --- 8. SPECIAL IMAGE 30 SECTION --- */
.special-image-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 127, 80, 0.05) 0%, rgba(255, 182, 193, 0.05) 100%);
}

.special-title {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-shadow: 2px 2px 10px rgba(255, 127, 80, 0.2);
}

.shake-animation {
    animation: shake 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    10% {
        transform: translateX(-2px) translateY(-2px) rotate(-1deg);
    }
    20% {
        transform: translateX(2px) translateY(2px) rotate(1deg);
    }
    30% {
        transform: translateX(-1px) translateY(1px) rotate(-0.5deg);
    }
    40% {
        transform: translateX(1px) translateY(-1px) rotate(0.5deg);
    }
    50% {
        transform: translateX(-1px) translateY(0) rotate(-0.5deg);
    }
    60% {
        transform: translateX(1px) translateY(0) rotate(0.5deg);
    }
    70% {
        transform: translateX(0) translateY(-1px) rotate(0deg);
    }
    80% {
        transform: translateX(0) translateY(1px) rotate(0deg);
    }
    90% {
        transform: translateX(-1px) translateY(-1px) rotate(-0.3deg);
    }
}

.special-image-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(255, 127, 80, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.special-image-wrapper:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(255, 127, 80, 0.4);
}

.special-image-wrapper {
    background: linear-gradient(90deg, rgba(255,127,80,0.06) 0%, rgba(255,182,193,0.1) 50%, rgba(255,127,80,0.06) 100%);
    background-size: 200% 100%;
    animation: gallery-skeleton 1.5s ease-in-out infinite;
}

.special-image-wrapper .special-image.loaded {
    animation: image-fade-in 0.6s ease forwards;
}

.special-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.6s ease;
    object-fit: contain;
}

.special-image.loaded {
    opacity: 1;
}

.special-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px; /* Chiều cao mặc định */
    background: linear-gradient(
        90deg,
        var(--bg-color) 0%,
        rgba(255, 127, 80, 0.15) 50%,
        var(--bg-color) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* --- 8. GALLERY --- */
.gallery-section {
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
}

.gallery-item {
    position: relative;
}

.gallery-item {
    background: linear-gradient(90deg, rgba(255,127,80,0.08) 0%, rgba(255,182,193,0.12) 50%, rgba(255,127,80,0.08) 100%);
    background-size: 200% 100%;
    animation: gallery-skeleton 1.5s ease-in-out infinite;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.6s ease;
    display: block;
    opacity: 0;
}

.gallery-item img.loaded {
    opacity: 1;
    animation: image-fade-in 0.6s ease forwards;
}

.gallery-item:has(img.loaded) {
    animation: none;
    background: transparent;
}

.special-image-wrapper:has(.special-image.loaded) {
    animation: none;
    background: transparent;
}

@keyframes gallery-skeleton {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: 0 0; }
}

@keyframes image-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Image Loading Skeleton */
.image-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--bg-color) 0%,
        rgba(255, 127, 80, 0.1) 50%,
        var(--bg-color) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 15px;
    z-index: 1;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.gallery-item img[style*="opacity: 1"],
.gallery-item[data-loaded="true"] img {
    position: relative;
    z-index: 2;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.gallery-caption {
    font-size: 0.9rem;
    margin-top: 8px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

/* --- LIGHTBOX / MODAL --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 40px 100px;
    box-sizing: border-box;
}

.lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 180px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: zoomIn 0.3s;
}

.lightbox-image.loaded {
    opacity: 1;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-caption-text {
    margin-top: 20px;
    color: white;
    font-size: 1.2rem;
    font-family: var(--font-script);
    text-align: center;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    display: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Bỏ đi prev/next và counter - chỉ giữ nút close */

@media (max-width: 768px) {
    .album-carousel-item {
        padding: 40px 20px;
    }
    
    .album-carousel-item img {
        max-height: 85vh;
    }
    
    .lightbox-content {
        padding: 60px 20px 80px;
    }
    
    .lightbox-image {
        max-height: calc(100vh - 140px);
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    
    .lightbox-caption-text {
        font-size: 1rem;
        margin-top: 15px;
    }
}

/* --- 8.5. VIDEO MODAL --- */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 20px 80px;
    box-sizing: border-box;
}

.video-modal-content video {
    max-width: 95vw;
    max-height: calc(100vh - 140px);
    width: auto;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8), 0 0 0 2px rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #1a1a1a, #000);
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.video-caption {
    margin-top: 25px;
    color: #fff;
    font-size: 1.4rem;
    font-family: var(--font-script);
    text-align: center;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 127, 80, 0.3);
    animation: fadeInUp 0.6s ease 0.4s both;
    background: linear-gradient(45deg, #FF7F50, #FFB6C1, #66CDAA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(255, 127, 80, 0.4));
}

.video-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.video-modal-close:hover {
    background: linear-gradient(135deg, rgba(255, 127, 80, 0.3), rgba(255, 182, 193, 0.3));
    border-color: rgba(255, 127, 80, 0.5);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 12px 40px rgba(255, 127, 80, 0.3);
}

@media (max-width: 768px) {
    .video-modal-content {
        padding: 50px 15px 70px;
    }

    .video-modal-content video {
        max-width: 98vw;
        max-height: calc(100vh - 120px);
        border-radius: 15px;
        border: 2px solid rgba(255, 255, 255, 0.1);
    }

    .video-modal-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 24px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .video-caption {
        font-size: 1.2rem;
        margin-top: 20px;
        padding: 0 10px;
    }
}

/* --- 8.6. SCROLL ANIMATIONS --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Different animation delays for each section */
.fade-in-section:nth-child(1) { transition-delay: 0.1s; }
.fade-in-section:nth-child(2) { transition-delay: 0.2s; }
.fade-in-section:nth-child(3) { transition-delay: 0.3s; }
.fade-in-section:nth-child(4) { transition-delay: 0.4s; }

/* Enhanced smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Ripple effect for navigation buttons */
.nav-ripple {
    position: relative;
    overflow: hidden;
}

.nav-ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-ripple:active::before {
    width: 300px;
    height: 300px;
}

/* --- 8.7. MEME MODAL --- */
.meme-modal {
    display: none;
    position: fixed;
    z-index: 100000; /* Cao hơn tất cả */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: transparent; /* No background color */
    animation: fadeIn 0.3s;
    align-items: center;
    justify-content: center;
}

@keyframes memePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.meme-modal.active {
    display: flex;
}

.meme-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 90%;
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.meme-image {
    max-width: 100%;
    max-height: 50vh; /* Reduced height for better mobile layout */
    filter: none;
    animation: memePulse 2s infinite ease-in-out;
}

.meme-text {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 25px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    font-family: var(--font-heading);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 20px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(255, 127, 80, 0.3);
    display: inline-block;
    animation: textPop 1.5s ease-in-out infinite alternate;
    max-width: 90vw;
    line-height: 1.4;
}

@keyframes textPop {
    from { transform: scale(1); box-shadow: 0 10px 40px rgba(255, 127, 80, 0.3); }
    to { transform: scale(1.05); box-shadow: 0 15px 50px rgba(255, 127, 80, 0.5); }
}

@media (max-width: 768px) {
    .meme-image {
        max-height: 40vh;
    }
    
    .meme-text {
        font-size: 1.1rem;
        padding: 15px 20px;
        margin-top: 20px;
        border-width: 2px;
    }
    
    .meme-modal-close {
        top: 20px;
        right: 20px;
        font-size: 30px;
    }
}

.meme-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.meme-modal-close:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* --- 9. WISH FORM / CONTACT --- */
.wish-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.wish-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--bg-color);
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--bg-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.1);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.view-wishes-link {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--bg-color);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- 10. FOOTER --- */
footer {
    background: white;
    padding: 50px 0;
    text-align: center;
    border-top: 2px solid var(--bg-color);
}

.social-icons {
    margin: 20px 0;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--bg-color);
    color: var(--primary-color);
    border-radius: 50%;
    margin: 0 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--primary-color);
    color: white;
}

/* --- MUSIC PLAYER --- */
.music-player {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.music-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(255, 127, 80, 0.4);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 127, 80, 0.6);
}

.music-controls {
    position: absolute;
    bottom: 60px;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.music-controls.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.music-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    margin: 0 auto;
}

.music-btn:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
}

.music-volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.music-volume-control i {
    color: var(--text-dark);
    font-size: 14px;
    min-width: 20px;
}

.music-volume-control input[type="range"] {
    flex: 1;
    height: 5px;
    border-radius: 5px;
    background: var(--bg-color);
    outline: none;
    -webkit-appearance: none;
}

.music-volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.music-volume-control input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

@media (max-width: 768px) {
    .loading-title {
        font-size: 2rem;
    }
    
    .loading-subtitle {
        font-size: 1rem;
    }
    
    .loading-hearts {
        gap: 15px;
        height: 50px;
    }
    
    .loading-heart {
        font-size: 30px;
    }
    
    .btn-explore {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .music-player {
        bottom: 15px;
        left: 15px;
    }
    
    .music-toggle {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .music-controls {
        min-width: 180px;
        padding: 12px;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero { flex-direction: column-reverse; text-align: center; padding-top: 100px; }
    .hero-content { padding-right: 0; margin-top: 40px; }
    .hero h1 { font-size: 2.5rem; }
    nav { padding: 15px 20px; }
    .nav-links { display: none; } /* Đơn giản hóa cho mobile */
    .timer-container { gap: 10px; }
    .time-box { width: 80px; }
    .time-box h3 { font-size: 1.5rem; }
    
    /* Đảm bảo profiles-wrapper luôn ngang trên mobile */
    .profiles-wrapper {
        flex-wrap: nowrap !important;
        gap: 30px;
        padding: 0 20px;
        justify-content: flex-start;
        overflow-x: hidden; /* Ẩn scrollbar */
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    
    .profile-card {
        min-width: 280px;
        width: calc(100vw - 80px); /* Chiếm gần hết màn hình trừ padding */
        flex-shrink: 0;
        scroll-snap-align: center;
    }
    
    /* Nút chuyển đổi profile */
    .profile-toggle-btn {
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 10px 25px;
        border-radius: 50px;
        font-size: 0.95rem;
        font-weight: bold;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(255, 127, 80, 0.3);
        transition: all 0.3s ease;
        font-family: var(--font-main);
        display: inline-block;
    }
    
    /* Nút trong profile card */
    .profile-inline-btn {
        width: auto;
    }
    
    .profile-buttons-wrapper {
        margin-top: 20px;
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .profile-toggle-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(255, 127, 80, 0.4);
        background: var(--secondary-color);
    }
    
    .profile-toggle-btn:active {
        transform: translateY(-1px);
    }
    
    .profiles-wrapper {
        padding-bottom: 20px; /* Giảm padding vì không còn nút bên ngoài */
    }
    
    /* Special Image 30 Section trên mobile */
    .special-title {
        font-size: 2rem;
    }
    
    .special-image-section {
        padding: 60px 0;
    }
    
    .special-image-wrapper {
        max-width: 100%;
        margin: 0 16px;
    }
    
    .special-image-wrapper .special-image {
        max-height: 70vh;
        width: 100%;
        object-fit: contain;
    }
    
    .special-skeleton {
        height: 300px;
    }
    
    /* Gallery: resize cho mobile, đảm bảo hiển thị */
    .gallery-section {
        padding: 40px 16px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .gallery-item {
        height: 160px;
        min-height: 120px;
    }
    
    .gallery-item img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: cover;
    }
}

/* Ẩn nút trên desktop - chỉ hiện trên mobile */
@media (min-width: 769px) {
    .profile-buttons-wrapper {
        display: none !important;
    }
}

