//* Thêm vào đầu file style.css */
html {
    scroll-behavior: smooth;
    height: 100%;
    overflow-y: scroll; /* Đảm bảo luôn có thanh cuộn */
}

body {
    min-height: 100%;
    position: relative;
    overscroll-behavior-y: none; /* Ngăn chặn hiệu ứng "bounce" trên một số trình duyệt */
}* Thiết lập chung */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 0;
}

.section-title {
    color: #b67d39;
    text-align: center;
    margin-bottom: 25px;
    font-size: 2rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background-color: #b67d39;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo img {
    max-height: 60px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #b67d39;
}

/* Hero Section */
.hero {
    height: 95vh; /* Tăng chiều cao từ 80vh lên 95vh */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 80px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45); /* Giảm độ mờ từ 0.6 xuống 0.45 */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3; /* Đảm bảo nội dung hiển thị trên lớp overlay */
    color: white; /* Đổi màu chữ sang trắng để nổi bật */
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Thêm bóng đổ cho chữ */
}

.hero-content p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Thêm bóng đổ cho chữ */
}

/* About Section */
.about {
    padding: 30px 0 10px 0; /* Giảm padding bottom để gần với factory */
    background-color: #fff;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 20px;
}

.about-content h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: #555;
}

.about-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.about-content li {
    margin-bottom: 5px;
}

/* Factory Section */
.factory {
    padding: 10px 0 30px 0; /* Giảm padding top để gần với about */
    background-color: #f9f9f9;
}

.factory-image {
    text-align: center;
    margin-top: 20px;
}

.factory-image img {
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Achievements Section */
.achievements {
    padding: 30px 0;
    background-color: #fff;
}

.achievements-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.achievement-item {
    text-align: center;
}

.achievement-number {
    font-size: 4rem;
    font-weight: 700;
    color: #b67d39;
    line-height: 1;
}

.achievement-text {
    color: #b67d39;
    font-size: 1.2rem;
}

/* Products Section */
.products {
    padding: 30px 0;
    background-color: #f9f9f9;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.product-item {
    flex: 0 0 calc(50% - 30px);
    max-width: 500px;
}

.product-item h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #333;
}

.product-image {
    text-align: center;
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image img {
    max-width: 100%;
    max-height: 250px; /* Chiều cao tối đa, ảnh không bị cắt */
    width: auto;
    height: auto;
    object-fit: contain; /* Hiển thị toàn bộ ảnh, không bị cắt */
    display: inline-block;
}

/* Stats Section */
.stats {
    padding: 30px 0;
    background-color: #f9f9f9;
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('../images/factory.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    flex: 0 0 200px;
}

.stat-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid #b67d39;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

.stat-label {
    font-size: 1rem;
    color: #666;
}

.stat-description {
    color: #888;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 30px 0;
    background-color: #fff;
}

.contact-info {
    text-align: center;
    margin-top: 20px;
}

.contact-phone, .contact-email {
    color: #b67d39;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.contact-button {
    display: inline-block;
    background-color: #222;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.contact-button:hover {
    background-color: #b67d39;
}

/* Footer */
.footer {
    background-color: #f5f5f5;
    padding: 15px 0;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    margin-top: 15px;
}

.footer .container {
    padding: 15px 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .product-item {
        flex: 0 0 100%;
    }
    
    .product-image img {
        max-height: 220px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-200%);
        transition: transform 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        gap: 20px;
    }
    
    .stat-circle {
        width: 120px;
        height: 120px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .product-image img {
        max-height: 180px;
    }
}
