body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: #E8DCC8; /* Nâu be nhạt */
    color: #3B2F2F; /* Nâu đậm */
}

/* HEADER */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: url('img/logo/hinhnen.png') center/cover no-repeat;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo a {
    display: inline-block;
}

.logo img {
    height: 80px;   /* chỉnh chiều cao logo */
    width: auto;    /* tự co theo tỉ lệ */
    object-fit: contain;
}

nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #3B2F2F;
    font-weight: 500;
}

/* HERO */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 40px;
    gap: 40px;
}

.hero-text h1 {
    font-size: 42px;
    font-weight: 700;
}

.hero-text p {
    font-size: 18px;
    margin: 10px 0 25px;
}

.btn {
    background: #3B2F2F;
    color: #E8DCC8;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
}

.hero-slider {
    width: 480px;
    height: 320px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    position: relative;
}

.hero-slider .slide {
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Auto scale đồng bộ */
}

/* SECTIONS */
section {
    padding: 80px 40px;
    text-align: center;
}

.subtitle {
    opacity: 0.7;
    margin-top: -10px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stats strong {
    font-size: 36px;
    color: #3B2F2F;
}

/* SERVICES */
.services .grid, .portfolio .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.card {
    padding: 30px;
    background: #F3E9D7;
    border-radius: 8px;
    border: 1px solid #CBB89D;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #3B2F2F;
}

/* PORTFOLIO */
.portfolio img {
    width: 100%;
    border-radius: 8px;
    transition: 0.3s;
}

.portfolio img:hover {
    transform: scale(1.03);
}

.clients {
    padding: 80px 40px;
    text-align: center;
}

/* CUON LOGO KHACH HANG TIEU BIEU */
.client-slider {
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
}

.client-track {
    display: flex;
    gap: 40px;
    animation: scroll 20s linear infinite;
}

.client-track img {
    width: 140px;
    height: 80px;
    object-fit: contain;
    opacity: 0.4;
    filter: grayscale(100%);
    transition: 0.3s;
}

.client-track img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Cuộn liên tục không dừng */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* FOOTER */
footer {
    background: #3B2F2F;
    color: #E8DCC8;
    padding: 20px;
    text-align: center;
}
