/* IMPORT FONT */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fff8f6;
    color: #1f2937;
    line-height: 1.6;
}

/* NAVBAR */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 18px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(193, 18, 31, 0.9);
    backdrop-filter: blur(0px);
    transition: all 0.4s ease;
    z-index: 1000;
}

/* Khi scroll */
#navbar.scrolled {
    padding: 12px 60px;
    background: rgba(193, 18, 31, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* LOGO */
.logo {
    color: white;
    font-weight: 700;
    font-size: 20px;
    transition: 0.3s ease;
}

.logo:hover {
    text-shadow:
        0 0 5px #ffd166,
        0 0 10px #ffd166,
        0 0 20px #ffd166;
    transform: scale(1.05);
}

/* NAV LINKS */
nav a {
    position: relative;
    text-decoration: none;
    margin-left: 28px;
    font-weight: 500;
    color: white;
    padding: 6px 0;
    transition: color 0.3s ease;
}

/* Underline animation */
nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: #ffd166;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover {
    color: #ffd166;
}

nav a:hover::after {
    width: 100%;
}

/* HERO */
.hero {
    padding: 120px 20px;
    text-align: center;
    background: linear-gradient(120deg, #c1121f, #2d6a4f);
    color: white;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero p {
    max-width: 700px;
    margin: auto;
    font-size: 18px;
    opacity: 0.9;
}

/* SECTION */
.section {
    padding: 80px 80px;
}

.section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #c1121f;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.card h3 {
    margin-bottom: 10px;
    color: #c1121f;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-top: 4px solid #2d6a4f;
}

/* FOOTER */
footer {
    background: #2d6a4f;
    color: white;
    text-align: center;
    padding: 25px;
    font-size: 14px;
}

body {
    padding-top: 70px;
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #c1121f;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 999;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

/* CONTENT ROW */
.content-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.content-row.reverse {
    flex-direction: row-reverse;
}

.content-row .text {
    flex: 0.9;
}

.content-row .image {
    flex: 1.1;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

/* IMAGE */
.content-row img {
    width: 100%;
    display: block;
    border-radius: 20px;
    transition: transform 0.6s ease;
}

/* Hover zoom */
.content-row:hover img {
    transform: scale(1.08);
}

/* Overlay gradient */
.content-row .image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom right,
        rgba(193, 18, 31, 0.2),
        rgba(45, 106, 79, 0.2)
    );
    opacity: 0;
    transition: 0.5s ease;
}

.content-row:hover .image::after {
    opacity: 1;
}

.fade {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade.show {
    opacity: 1;
    transform: translateY(0);
}

.stack-wrapper {
    position: relative;
}

/* Mỗi card chiếm full màn hình */
.stack-card {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

/* Xếp lớp tăng dần */
.stack-card:nth-child(1) { z-index: 1; }
.stack-card:nth-child(2) { z-index: 2; }
.stack-card:nth-child(3) { z-index: 3; }

/* Nội dung card */
.stack-content {
    position: relative;
    width: 85%;
    height: 80%;
    background: linear-gradient(135deg, #c1121f, #2d6a4f);
    border-radius: 40px;
    padding: 80px;
    color: white;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;

    transition: transform 0.4s ease;
}

/* Số nền lớn */
.bg-number {
    position: absolute;
    top: 40px;
    left: 60px;
    font-size: 130px;
    font-weight: 800;
    color: rgba(255,255,255,0.07);
    pointer-events: none;
}

/* Tiêu đề */
.stack-content h2 {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -1px;
}

/* Nội dung */
.stack-content p {
    font-size: 20px;
    line-height: 1.8;
    max-width: 650px;
    color: rgba(255,255,255,0.95);
}

/* Ảnh */
.stack-content img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 20px;
    margin-top: 20px;
}

.stack-card {
    will-change: transform;
}

@media (max-width: 900px) {

    .stack-content {
        width: 95%;
        height: auto;
        padding: 50px 30px;
        border-radius: 25px;
    }

    .bg-number {
        font-size: 80px;
        top: 20px;
        left: 20px;
    }

    .stack-content h2 {
        font-size: 28px;
    }

    .stack-content p {
        font-size: 16px;
    }

}

.food-carousel-section {
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
    background: #f6f1ef;
}

.carousel-title {
    font-size: 42px;
    margin-bottom: 80px;
    color: #c1121f;
    font-weight: 700;
}

.carousel-wrapper {
    perspective: 2000px;
    height: 500px;
    position: relative;
    user-select: none;
    cursor: none; 
}

.drag-indicator {
    position: fixed;
    width: 90px;
    height: 90px;
    background: #111;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
    z-index: 9999;
}

.carousel-wrapper:hover .drag-indicator {
    opacity: 1;
}

.carousel {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.carousel-card {
    position: absolute;
    width: 260px;
    height: 360px;
    left: 50%;
    top: 50%;
    margin: -180px 0 0 -130px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    color: #c1121f;
    backface-visibility: hidden;
}

/* CARD 3D STYLE */
.carousel-card {
    position: absolute;
    width: 260px;
    height: 360px;
    left: 50%;
    top: 50%;
    margin: -180px 0 0 -130px;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(145deg, #fff5e1, #ffe5b4);
    box-shadow: 0 25px 60px rgba(193,18,31,0.35);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* IMAGE */
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

/* OVERLAY */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: white;
    transform: translateY(100%);
    transition: 0.4s ease;
}

/* Hover effect */
.carousel-card:hover .card-overlay {
    transform: translateY(0);
}

.carousel-card:hover img {
    filter: brightness(0.7);
}

/* Text style */
.card-overlay h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.card-overlay p {
    font-size: 14px;
    line-height: 1.6;
}

.parallax-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.parallax-1 {
    background-image: url("./pic/vanhoa/bai-choi.jpg");
}

.parallax-2 {
    background-image: url("./pic/vanhoa/le-hoi.jpg");
}

.parallax-3 {
    background-image: url("./pic/vanhoa/cho-tet.jpg");
}

/* Overlay tối nhẹ */
.parallax-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

/* Content nổi */
.parallax-content {
    position: relative;
    max-width: 700px;
    padding: 40px;
}

.parallax-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ffd60a;
}

.parallax-content p {
    font-size: 20px;
    line-height: 1.8;
}

.contact-section {
    padding: 120px 60px;
    background: linear-gradient(135deg, #fff1e6, #ffe8d6);
}

.contact-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 80px;
    color: #c1121f;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form,
.contact-info {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(193,18,31,0.15);
}

.contact-form h2,
.contact-info h2 {
    margin-bottom: 20px;
    color: #c1121f;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #c1121f;
}

.contact-form button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #c1121f;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.contact-form button:hover {
    background: #9d0208;
}

.map {
    margin-top: 20px;
    border-radius: 15px;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

.mini-slider-section {
    padding: 100px 20px;
    text-align: center;
}

.mini-slider-title {
    font-size: 28px;
    margin-bottom: 40px;
    color: #c1121f;
}

.mini-slider {
    position: relative;
    width: 600px;
    max-width: 90%;
    margin: auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(193,18,31,0.2);
}

.mini-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.mini-slides img {
    width: 100%;
    flex-shrink: 0;
    height: 300px;
    object-fit: cover;
}

/* Nút trái phải */
.mini-slider button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(193,18,31,0.8);
    border: none;
    color: white;
    font-size: 22px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
}

.mini-slider .prev { left: 10px; }
.mini-slider .next { right: 10px; }

.mini-slider button:hover {
    background: #9d0208;
}

/* Dots */
.dots {
    text-align: center;
    padding: 10px 0;
}

.dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ffd60a;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    opacity: 0.5;
}

.dots span.active {
    opacity: 1;
}