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

body{
    font-family: Arial, sans-serif;
    background:#fff8f0;
    line-height:1.6;
}

/* NAVBAR */
nav{
    background:#0a8f3c;
    padding:15px;
    text-align:center;
    position:sticky;
    top:0;
    z-index:1000;
}

nav a{
    color:white;
    text-decoration:none;
    margin:0 15px;
    font-weight:bold;
    transition:0.3s;
}

nav a:hover{
    color:#ffd700;
}

/* HERO HEADER */
/* HERO HEADER BACKGROUND IMAGE */
.hero{
    height:100vh;
    background-image: url("../images/banner.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    position:relative;
}

/* Overlay làm tối ảnh để chữ nổi bật */
.hero::after{
    content:"";
    position:absolute;
    width:100%;
    height:100%;
    background:linear-gradient(
        rgba(0,0,0,0.5),
        rgba(196,0,0,0.4)
    );
}

/* Nội dung nằm trên overlay */
.hero-content{
    position:relative;
    z-index:2;
    color:white;
    max-width:800px;
    padding:20px;
}

/* Tiêu đề lớn */
.hero h1{
    font-size:3.2rem;
    margin-bottom:20px;
    letter-spacing:2px;
    text-shadow:2px 2px 10px rgba(0,0,0,0.6);
}

/* Mô tả */
.hero p{
    font-size:1.3rem;
    margin-bottom:30px;
}

/* Nút */
.btn{
    background:#ffd700;
    color:#c40000;
    padding:14px 30px;
    border-radius:40px;
    text-decoration:none;
    font-weight:bold;
    transition:0.3s;
}

.btn:hover{
    background:white;
    transform:scale(1.05);
}

/* SECTION */
.container{
    width:90%;
    margin:auto;
    padding:40px 0;
}

.section{
    margin-bottom:50px;
    opacity:0;
    transform:translateY(40px);
    transition:0.8s;
}

.section.show{
    opacity:1;
    transform:translateY(0);
}

.section h2{
    color:#c40000;
    margin-bottom:20px;
}

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

.card{
    background:white;
    padding:15px;
    border-radius:15px;
    box-shadow:0 0 10px rgba(0,0,0,0.1);
    transition:0.3s;
}

.card:hover{
    transform:scale(1.05);
}

.card img{
    width:100%;
    border-radius:10px;
    margin-bottom:10px;
}

/* SLIDESHOW */
.slideshow{
    max-width:800px;
    margin:40px auto;
    position:relative;
}

.slide{
    width:100%;
    display:none;
    border-radius:15px;
}

.slide.active{
    display:block;
    animation:fadeSlide 1s;
}

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

/* FOOTER */
footer{
    background:#c40000;
    color:white;
    text-align:center;
    padding:20px;
    margin-top:40px;
}

/* RESPONSIVE */
@media(max-width:768px){
    nav a{
        display:block;
        margin:10px 0;
    }

    .hero h1{
        font-size:1.8rem;
    }

    .hero p{
        font-size:1rem;
    }
}

@media(max-width:768px){
    .hero h1{
        font-size:2rem;
    }

    .hero p{
        font-size:1rem;
    }
}

/* SUB BANNER */
.sub-banner{
    height:50vh;
    background:url("../images/banner2.jpg") center/cover no-repeat;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    position:relative;
}

.sub-banner::after{
    content:"";
    position:absolute;
    width:100%;
    height:100%;
    background:rgba(196,0,0,0.6);
}

.sub-banner-content{
    position:relative;
    z-index:2;
    color:white;
}

.sub-banner h1{
    font-size:2.5rem;
    margin-bottom:10px;
}

/* TWO COLUMN LAYOUT */
.two-column{
    display:flex;
    align-items:center;
    gap:40px;
    margin-bottom:60px;
}

.two-column .text{
    flex:1;
}

.two-column .image{
    flex:1;
}

.two-column img{
    width:100%;
    border-radius:15px;
    box-shadow:0 10px 20px rgba(0,0,0,0.2);
}

/* Đảo cột */
.reverse{
    flex-direction:row-reverse;
}

/* Responsive */
@media(max-width:768px){
    .two-column{
        flex-direction:column;
    }

    .reverse{
        flex-direction:column;
    }
}

/* HIỆU ỨNG HOVER ẢNH */

.two-column .image{
    overflow:hidden;
    border-radius:15px;
}

.two-column img{
    width:100%;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.two-column img:hover{
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* GALLERY CHUYÊN NGHIỆP */

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

.gallery-item{
    position:relative;
    overflow:hidden;
    border-radius:15px;
    box-shadow:0 10px 20px rgba(0,0,0,0.15);
}

.gallery-item img{
    width:100%;
    height:250px; /* Cố định chiều cao */
    object-fit:cover; /* Giữ tỷ lệ đẹp */
    transition:0.4s ease;
}

/* Hover effect */
.gallery-item:hover img{
    transform:scale(1.1);
}

/* Caption */
.gallery-caption{
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    background:rgba(0,0,0,0.6);
    color:white;
    text-align:center;
    padding:10px;
    font-size:14px;
}

/* FORM CONTACT */

form{
    display:flex;
    flex-direction:column;
    gap:15px;
}

form input, form textarea{
    padding:12px;
    border-radius:8px;
    border:1px solid #ccc;
    font-size:14px;
    transition:0.3s;
}

form input:focus,
form textarea:focus{
    border-color:#0a8f3c;
    box-shadow:0 0 8px rgba(10,143,60,0.3);
    outline:none;
}

form button{
    background:#c40000;
    color:white;
    padding:12px;
    border:none;
    border-radius:8px;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

form button:hover{
    background:#0a8f3c;
}

/* LIXI GAME */

#lixiOverlay{
    position:fixed;
    width:100%;
    height:100%;
    background:linear-gradient(135deg,#c40000,#ff0000);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.lixi-box{
    background:white;
    padding:40px;
    border-radius:20px;
    text-align:center;
    max-width:400px;
    box-shadow:0 20px 40px rgba(0,0,0,0.3);
}

#lixiEnvelope{
    font-size:80px;
    cursor:pointer;
    transition:0.3s;
    margin:20px 0;
}

#lixiEnvelope:hover{
    transform:scale(1.2);
}

#lixiResult{
    font-size:22px;
    color:#c40000;
    font-weight:bold;
    margin-top:15px;
}

#enterBtn{
    margin-top:20px;
    padding:10px 20px;
    background:#0a8f3c;
    color:white;
    border:none;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
}

/* FIREWORK CANVAS */
#fireworks{
    position:absolute;
    width:100%;
    height:100%;
    top:0;
    left:0;
    pointer-events:none;
}