:root {
    --main-color: linear-gradient(to right, #2b1404, #976017);

    --text-color: #eef5ea;
    --title-color: #976017;
    --button-color: #e9d3b4;
    --border-color: #d8b98a;
}

/* =========================
       HERO
    ========================= */

.hero-section {
    min-height: 650px;
    background: var(--main-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    top: -200px;
    right: -150px;
}

.hero-section::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    bottom: -180px;
    left: -100px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--button-color);
    font-size: 14px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 58px;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 25px;
}

.hero-title span {
    color: var(--button-color);
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    max-width: 650px;
    color: rgba(238, 245, 234, 0.85);
    margin-bottom: 35px;
}

.hero-buttons .btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
}

.btn-main {
    background: var(--button-color);
    color: #2b1404;
    border: none;
}

.btn-main:hover {
    background: #fff;
    color: #2b1404;
}

.btn-outline-main {
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-outline-main:hover {
    background: var(--button-color);
    color: #2b1404;
    border-color: var(--button-color);
}

/* =========================
       FEATURES
    ========================= */

.features-section {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    color: var(--title-color);
    font-weight: 800;
}

.section-description {
    max-width: 650px;
    margin: 0 auto;
    color: #666;
}

.feature-card {
    height: 100%;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(43, 20, 4, 0.1);
    border-color: var(--border-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--main-color);
    color: var(--button-color);
    font-size: 25px;
    margin-bottom: 20px;
}

.feature-card h5 {
    font-weight: 700;
    color: #2b1404;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
}

/* =========================
       CATEGORY
    ========================= */

.category-section {
    padding: 80px 0;
    background: #f8f6f3;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    min-height: 230px;
    background: var(--main-color);
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card i {
    font-size: 35px;
    color: var(--button-color);
    margin-bottom: 15px;
}

.category-card h4 {
    font-weight: 700;
    margin-bottom: 10px;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* =========================
       CTA
    ========================= */

.cta-section {
    padding: 80px 0;
}

.cta-box {
    background: var(--main-color);
    color: var(--text-color);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-box p {
    max-width: 650px;
    margin: 0 auto 30px;
    color: rgba(238, 245, 234, 0.85);
}

/* =========================
       RESPONSIVE
    ========================= */

@media (max-width: 991px) {
    .hero-section {
        min-height: 580px;
    }

    .hero-title {
        font-size: 45px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: auto;
        padding: 90px 0;
        text-align: center;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .features-section,
    .category-section,
    .cta-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .cta-box {
        padding: 45px 25px;
    }

    .cta-box h2 {
        font-size: 28px;
    }
}

/* Hiệu ứng cuộn xuất hiện */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hiệu ứng khi trang vừa load (riêng cho Hero) - hiện từ trái qua phải */
.reveal-load {
    opacity: 0;
    transform: translateX(-40px); /* trước đó là translateY(25px) */
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}
.reveal-load.active {
    opacity: 1;
    transform: translateX(0);
}

/* Tạo các hình ảnh di chuyển từ trái qua phải */
/* =====================================================
   IMAGE SHOWCASE
===================================================== */

.image-showcase-section {
    padding: 40px 0;
    overflow: hidden;
}

.image-showcase {
    width: 100%;
    overflow: hidden;
}

.image-track {
    display: flex;
    width: max-content;
    gap: 24px;

    animation: showcase-right 30s linear infinite;
}

.showcase-item {
    flex: 0 0 320px;
    height: 200px;

    border-radius: 16px;
    overflow: hidden;

    background: #fff;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.showcase-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

/* Chạy từ trái sang phải */
@keyframes showcase-right {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

/* =====================================================
   IMAGE MODAL
===================================================== */

.image-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;

    background: rgba(0, 0, 0, 0.75);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

/* Modal đang mở */

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Khu vực chứa ảnh */

.image-modal-content {
    position: relative;

    max-width: 90vw;
    max-height: 90vh;

    transform: scale(0.85);

    transition: transform 0.3s ease;
}

/* Khi modal mở thì phóng ảnh */

.image-modal.active .image-modal-content {
    transform: scale(1);
}

/* Ảnh */

.image-modal-content img {
    display: block;

    max-width: 90vw;
    max-height: 85vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 12px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* Nút X */

.image-modal-close {
    position: absolute;

    top: 25px;
    right: 30px;

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.95);

    color: #222;

    font-size: 18px;

    cursor: pointer;

    z-index: 2;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.image-modal-close:hover {
    transform: rotate(90deg);

    background: #fff;
}
