:root {
    --primary-brown: #8B4513;
    --light-brown: #D2B48C;
    --dark-brown: #654321;
    --cream: #F5F5DC;
    --white: #FFFFFF;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-600: #6C757D;
    --gray-800: #343A40;
    --accent-gold: #FFD700;
    --text-dark: #2C3E50;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* [data-theme="dark"] {
            --white: #1A1A1A;
            --gray-100: #2D2D2D;
            --gray-200: #3A3A3A;
            --gray-300: #4A4A4A;
            --text-dark: #E8E8E8;
            --cream: #2A2A2A;
        } */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    transition: all 0.3s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--gray-200);
}

/* [data-theme="dark"] .navbar {
            background: rgba(26, 26, 26, 0.95);
        } */

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-brown);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-brown);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-brown);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}


.lang-toggle {
    background: none;
    border: 2px solid var(--primary-brown);
    color: var(--primary-brown);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.lang-toggle:hover {
    background: var(--primary-brown);
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 100vh;
    /* background: linear-gradient(135deg, rgba(139, 69, 19, 0.8), rgba(101, 67, 33, 0.9)),
                url('assets/images/banner/banner.jpg'); */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 1000px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: #22c55e;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: #FFC107;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--gray-100);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 3rem;
    color: var(--primary-brown);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-brown);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Products Section */
.products {
    padding: 4rem 0;
    /* Giảm padding để tránh khoảng trống lớn */
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    /* Giảm margin-top để cân đối */
    max-width: 1200px;
    /* Giới hạn chiều rộng tối đa */
    margin-left: auto;
    margin-right: auto;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Tách transition để rõ ràng */
    border: 3px solid var(--primary-brown);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
    /* Tăng thời gian transition cho mượt hơn */
    display: block;
    /* Đảm bảo không có khoảng trắng thừa */
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Đảm bảo hình ảnh không bị cắt xén khi scale */
.product-card .image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
    /* Khớp với chiều cao của product-image */
}

.product-info {
    padding: 1.5rem;
    /* Giảm padding để cân đối hơn */
    text-align: center;
}

/* Product Badge (Bestseller, Premium, v.v.) */
.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-gold);
    color: var(--dark-brown);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 2;
    white-space: nowrap;
    /* Tránh xuống dòng */
}

/* Amazon Badge - Góc trái trên cùng */
.amazon-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
    white-space: nowrap;
}

.amazon-badge i {
    margin-right: 0.5rem;
    color: #ff9900;
}

/* Amazon Button - Giữa dưới cùng */
.amazon-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #ffc107;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Arial', sans-serif;
    border: 1px solid #d39e00;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 1rem;
}

.amazon-button:hover {
    background: #ffca28;
    transform: scale(1.05);
}

.product-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--dark-brown);
    /* Đổi thành màu có độ tương phản cao hơn */
}

.product-description {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        /* Giảm gap trên mobile */
    }

    .product-image {
        height: 280px;
        /* Giảm chiều cao một chút để cân đối */
    }

    .product-title {
        font-size: 1.2rem;
    }

    .product-description {
        font-size: 0.9rem;
    }

    .amazon-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .amazon-badge,
    .product-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        top: 0.5rem;
        /* Giảm khoảng cách trên mobile */
    }
}

@media (max-width: 480px) {
    .product-info {
        padding: 1rem;
    }

    .product-image {
        height: 220px;
        /* Giảm thêm chiều cao trên màn hình rất nhỏ */
    }

    .amazon-badge,
    .product-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .amazon-button {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--cream);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0; /* Loại bỏ padding để không bị lệch */
}

.about-text {
    padding-left: 0; /* Đảm bảo không có padding trái */
    margin-left: 0; /* Đảm bảo không có margin trái */
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-brown);
    margin-bottom: 2rem;
    margin-left: 0;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-left: 0;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 0;
    margin: 0;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Certificates Section */
.certificates {
    padding: 6rem 0;
    background: #fff;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.certificate-card {
    position: relative;
    background: var(--gray-100);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 3px solid var(--primary-brown);
    transition: all 0.3s ease;
}

.certificate-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.certificate-icon {
    font-size: 3rem;
    color: var(--primary-brown);
    margin-bottom: 1rem;
}

.certificate-logo {
    position: absolute;
    top: -1.3rem;
    right: -0.8rem;
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--gray-100);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 3px solid var(--primary-brown);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-brown);
    margin-right: 1rem;
    width: 30px;
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 3px solid var(--primary-brown);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-brown);
}

.submit-button {
    width: 100%;
    background: var(--primary-brown);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: var(--dark-brown);
    transform: translateY(-2px);
}

.footer {
    background: linear-gradient(180deg, #2f1c0d 0%, #1a0f07 100%);
    color: #fff;
    padding: 5rem 0 2.5rem;
    font-family: 'Roboto', sans-serif;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #8B4513;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-section {
    padding: 1.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-section h3 {
    margin-bottom: 1.8rem;
    color: var(--accent-gold, #d4a017);
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-gold, #d4a017);
}

.footer-section p {
    color: #ddd;
    line-height: 1.8;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #ddd;
    display: flex;
    align-items: center;
}

.footer-section ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-gold, #d4a017);
    transform: translateX(5px);
}

.footer-section ul li i {
    margin-right: 1rem;
    color: var(--accent-gold, #d4a017);
    font-size: 1.2rem;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    margin-top: 10px;
}

.footer-contact i {
    margin-right: 1rem;
    color: var(--accent-gold, #d4a017);
    font-size: 1.2rem;
    margin-top: 0.3rem;
}

.footer-social {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-social a {
    color: #ddd;
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.footer-social a:hover {
    color: var(--accent-gold, #d4a017);
    transform: scale(1.2);
}

.footer-social a::after {
    content: attr(aria-label);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.footer-social a:hover::after {
    opacity: 1;
    visibility: visible;
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #aaa;
    font-size: 0.95rem;
}

.footer-bottom .footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-bottom .footer-links a {
    color: #ddd;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom .footer-links a:hover {
    color: var(--accent-gold, #d4a017);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        padding: 1rem;
    }

    .footer-section h3 {
        font-size: 1.5rem;
    }

    .footer-contact p {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-section ul li i {
        margin-right: 0.75rem;
    }

    .footer-bottom .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-section h3 {
        font-size: 1.3rem;
    }

    .footer-social a {
        font-size: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Ẩn mặc định trên mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98); /* Tăng độ mờ nhẹ */
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        align-items: center;
        max-height: 70vh; /* Giới hạn chiều cao tối đa */
        overflow-y: auto; /* Kích hoạt thanh cuộn dọc */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-brown);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
}

.scroll-top:hover {
    background: var(--dark-brown);
    transform: translateY(-3px);
}

.scroll-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #FFFFFF;
}

.scroll-band {
    position: absolute;
    width: 100%;
    height: 60px;
    overflow: hidden;
    white-space: nowrap;
}

.orange-band-1 {
    top: 0;
    background-color: #8B4513;
}

.white-band {
    top: 80px;
    background-color: #fff;
}

.orange-band-2 {
    top: 140px;
    background-color: #8B4513;
}

.scroll-text {
    position: absolute;
    width: 200%;
    height: 100%;
    display: flex;
}

.right-scroll {
    animation: scrollRight 30s linear infinite;
}

.left-scroll {
    animation: scrollLeft 25s linear infinite;
}

.scroll-text span {
    display: inline-block;
    padding: 15px 30px;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    color: #111;
}

.white-band .scroll-text span {
    color: #000;
}

.orange-band-1 .scroll-text span,
.orange-band-2 .scroll-text span {
    color: #fff;
}

@keyframes scrollRight {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollLeft {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.marquee-section {
    background: #FFFFFFFF;
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
}

.marquee-container {
    display: inline-block;
    white-space: nowrap;
}

.marquee {
    display: inline-flex;
    align-items: center;
    animation: marquee 20s linear infinite;
}

.marquee-item {
    display: flex;
    align-items: center;
    margin: 0 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #242222FF;
}

.marquee-item span {
    margin-left: 0.5rem;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .marquee {
        animation: marquee 25s linear infinite;
    }

    .marquee-item {
        margin: 0 1rem;
        font-size: 1rem;
    }
}

/* Company Introduction */
.company-intro {
    padding: 8rem 0;
    background: #fff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    margin-bottom: 3rem;
    /* Giảm khoảng cách dưới */
    padding: 0 1rem;
    /* Giảm padding ngang */
}

.hero-logo {
    width: 250px;
    /* Giảm kích thước logo xuống 250px */
    height: auto;
    margin: 0 auto;
    /* Căn giữa lại */
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #374151, #1f2937);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0; /* Loại bỏ padding để không bị lệch */
}

.intro-content {
    padding-left: 0; /* Đảm bảo không có padding trái */
    margin-left: 0; /* Đảm bảo không có margin trái */
}

.intro-content h3 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1f2937;
    margin-left: 0;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 2rem;
    margin-left: 0;
}

.highlight-text {
    color: #8B4513;
    font-weight: 600;
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border-left: 4px solid #8B4513;
}

.feature-item i {
    font-size: 1.5rem;
    color: #8B4513;
    margin-right: 1rem;
}

.intro-image {
    position: relative;
    padding: 0;
    margin: 0;
}

.intro-image img {
    width: 100%;
    border-radius: 20px;
    border: 3px solid var(--primary-brown);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services {
    padding: 8rem 0;
    background: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.4rem;
    margin-top: 4rem;
}

.service-card {
    position: relative;
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 3px solid var(--primary-brown);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: #8B4513;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 150px;
    margin-bottom: 2rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.service-card p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.5rem 0;
    color: #4b5563;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #8B4513;
    font-weight: bold;
}


/* Process Section */
.process-section {
    padding: 8rem 0;
    background: #ffffff;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    padding: 0 2rem;
    /* Padding mặc định */
    position: relative;
    /* Đảm bảo căn giữa tuyệt đối */
}

.hero-logo {
    width: 500px;
    /* Kích thước mặc định trên desktop */
    height: auto;
    display: block;
    margin: 0 auto;
    /* Căn giữa logo */
    max-width: 100%;
    /* Đảm bảo logo không vượt quá container */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
}



.process-steps {
    max-width: 1200px;
    margin: 0 auto;
}

.process-row {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.process-step {
    text-align: center;
    max-width: 300px;
    padding: 1rem;
    border-radius: 20px;
    border: 3px solid var(--primary-brown);
}

.step-number {
    width: 80px;
    height: 80px;
    background: #8B4513;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    transition: transform 0.3s ease;
}

.process-step:hover .step-number {
    transform: scale(1.1);
}

.process-step h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.process-step p {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
}

/* KOTHECHE Brand Section */
.brand-section1 {
    padding: 8rem 0;
    background: linear-gradient(135deg, #8B4513 0%, #A95518FF 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.brand-section1::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.brand-content {
    position: relative;
    z-index: 2;
}

.brand-grid1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-top: 4rem;
}

.brand-info1 h3 {
    font-size: 2.0rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.brand-description1 {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.brand-stats1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item1 {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-number1 {
    font-size: 2rem;
    font-weight: 800;
    display: block;
}

.stat-label1 {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.products-showcase1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.product-card1 {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 3px solid #fff;
}

.product-card1:hover {
    transform: translateY(-5px);
}

.product-image1 {
    position: relative;
    width: 100%;
    height: 400px;
}

.product-image1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-overlay1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.product-card1:hover .product-overlay1 {
    opacity: 1;
}

.product-overlay1 h4 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.product-overlay1 p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.gallery-section {
    background: #ffffff;
    padding: 6rem 0;
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid var(--primary-brown);

}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;

}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.popup-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #8B4513;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: #A0522D;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 250px;
    }
}

.reviews-section {
    background: linear-gradient(to bottom, #ffffff, #ba7424);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.swiper-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.review-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 360px;
    width: 100%;
    max-width: 350px;
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #ff6b6b, #4ecdc4);
    border-radius: 16px 16px 0 0;
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.reviewer-avatar {
    margin-bottom: 1rem;
}

.avatar-initials {
    width: 60px;
    height: 60px;
    background-color: #8B4513;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto;
    text-transform: uppercase;
}

.reviewer-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.review-product {
    font-size: 1rem;
    font-style: italic;
    color: #6b7280;
    margin-bottom: 1rem;
}

.star-rating {
    margin-bottom: 1rem;
}

.star-rating .star {
    color: #facc15;
    font-size: 1.2rem;
}

.star-rating .star.half {
    color: #d1d5db;
}

.review-text {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.swiper-pagination-bullet {
    background: #8B4513;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: #8B4513;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .reviews-section {
        padding: 4rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .review-card {
        padding: 1.5rem;
        min-height: 280px;
    }

    .avatar-initials {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Factory Gallery Section */
.factory-gallery {
    background: #fff;
    padding: 6rem 0;
}

.factory-gallery .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.factory-gallery .section-title {
    font-size: 2.5rem;
    color: var(--dark-brown, #2f1c0d);
    margin-bottom: 1rem;
}

.factory-gallery .section-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto;
}

.factory-swiper {
    position: relative;
    padding: 1rem 0;
}

.factory-slide {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 3px solid var(--primary-brown);
}

.factory-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.factory-slide:hover {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.factory-slide:hover .slide-overlay {
    opacity: 1;
}

.slide-overlay h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.slide-overlay p {
    font-size: 0.9rem;
    line-height: 1.4;
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--accent-gold, #d4a017);
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: #fff;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 18px;
}

.swiper-pagination-bullet {
    background: #ccc;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: var(--accent-gold, #d4a017);
}

/* Responsive Design */
@media (max-width: 768px) {
    .factory-gallery .section-title {
        font-size: 2rem;
    }

    .factory-slide img {
        height: 300px;
    }

    .slide-overlay h4 {
        font-size: 1.1rem;
    }

    .slide-overlay p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .factory-slide img {
        height: 250px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 30px;
        height: 30px;
    }

    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 14px;
    }
}

/* Contact Icons */
.contact-icons {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
    transition: opacity 0.3s ease;
    /* Hiệu ứng mờ khi ẩn/hiện */
}

.contact-icons.hidden {
    opacity: 0;
    pointer-events: none;
    /* Ngăn tương tác khi ẩn */
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-brown);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-icon:hover {
    background: var(--accent-gold);
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.contact-icon:hover::before {
    width: 100px;
    height: 100px;
}

.contact-icon i {
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 2rem;
    /* Giảm thêm khoảng cách */
    padding: 0 0.5rem;
    /* Giảm padding hơn nữa */
}

.hero-logo {
    width: 150px;
    /* Giữ kích thước 150px như hiện tại */
    height: auto;
    margin: 0 auto;
    /* Đảm bảo căn giữa */
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-icons {
        bottom: 15px;
        left: 15px;
        gap: 10px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Popup Overlay */
.popup-overlay,
.popup {
    display: none;
    /* Ẩn mặc định */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Làm mờ nền */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Popup Content */
.popup-content {
    position: relative;
    /* width: 100%; */
    /* height: 100%; */
    text-align: center;
    padding: 0;
}

/* Ảnh trong Popup (tràn viền, không viền) */
.popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ảnh tràn viền, giữ tỷ lệ */
    border: none;
    /* Không viền */
}

/* Nút Điều hướng */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    z-index: 1001;
}

#prevBtn {
    left: 10px;
}

#nextBtn {
    right: 10px;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Nút Đóng */
.closeBtnPopup {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #8B4513;
    /* Màu nâu */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    z-index: 1001;
}

.closeBtnPopup:hover {
    background-color: #A0522D;
}

/* Hiển thị Popup */
.popup-overlay.active {
    display: flex;
}


.phone-wrapper {
    display: flex;
    gap: 10px;
    /* Khoảng cách giữa select và input */
    align-items: center;
}

.phone-wrapper select {
    width: 160px;
    /* Điều chỉnh độ rộng tùy thích */
    padding: 8px;
    font-size: 14px;
    border-radius: 50px;
    text-align: center;
}

.phone-wrapper input[type="tel"] {
    flex: 1;
    /* Input chiếm phần còn lại */
    padding: 8px;
    font-size: 14px;
}

.kotheche-btn {
    background: var(--primary-brown);
    border: 2px solid var(--primary-brown);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    animation: pulse-border 2s infinite;
    text-decoration: none;
}

.kotheche-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 69, 19, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(139, 69, 19, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(139, 69, 19, 0);
    }
}

@keyframes shine {
    0% {
        left: -50%;
    }

    100% {
        left: 150%;
    }
}

.kotheche-btn:hover {
    background: var(--dark-brown);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

/* Previous styles from the last response are retained. Adding new styles below. */

/* Reviews Section */
@media (max-width: 768px) {
    .review-card {
        min-height: 250px;
        padding: 1.2rem;
    }

    .reviewer-name {
        font-size: 1.2rem;
    }

    .review-product {
        font-size: 0.9rem;
    }

    .review-text {
        font-size: 0.85rem;
        line-height: 1.5;
        word-wrap: break-word;
    }

    .avatar-initials {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .review-card {
        min-height: 220px;
    }

    .reviewer-name {
        font-size: 1.1rem;
    }

    .review-text {
        font-size: 0.8rem;
    }
}

/* Factory Gallery Section */
@media (max-width: 768px) {
    .factory-slide img {
        height: 250px;
    }

    .slide-overlay h4 {
        font-size: 1rem;
    }

    .slide-overlay p {
        font-size: 0.8rem;
        word-wrap: break-word;
    }

    .factory-gallery .section-title {
        font-size: 1.8rem;
    }

    .factory-gallery .section-subtitle {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .factory-slide img {
        height: 200px;
    }

    .slide-overlay h4 {
        font-size: 0.9rem;
    }

    .slide-overlay p {
        font-size: 0.75rem;
    }
}

/* Scroll Container (Marquee Bands) */
@media (max-width: 768px) {
    .scroll-container {
        height: 150px;
    }

    .scroll-band {
        height: 50px;
    }

    .orange-band-1 {
        top: 0;
    }

    .white-band {
        top: 50px;
    }

    .orange-band-2 {
        top: 100px;
    }

    .scroll-text span {
        font-size: 18px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .scroll-container {
        height: 120px;
    }

    .scroll-band {
        height: 40px;
    }

    .orange-band-1 {
        top: 0;
    }

    .white-band {
        top: 40px;
    }

    .orange-band-2 {
        top: 80px;
    }

    .scroll-text span {
        font-size: 16px;
        padding: 8px 15px;
    }
}

/* General Vietnamese Text Handling */
body,
p,
h1,
h2,
h3,
h4,
li,
a,
span {
    word-wrap: break-word;
    hyphens: auto;
}

/* Ensure buttons have sufficient touch target size */
.cta-button,
.amazon-button,
.submit-button,
.kotheche-btn {
    min-width: 120px;
    min-height: 44px;
    /* Minimum touch target size */
}

/* Adjust section padding for mobile */
@media (max-width: 768px) {

    .features,
    .about,
    .certificates,
    .contact,
    .company-intro,
    .services,
    .process-section,
    .brand-section1,
    .gallery-section,
    .reviews-section,
    .factory-gallery {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {

    .features,
    .about,
    .certificates,
    .contact,
    .company-intro,
    .services,
    .process-section,
    .brand-section1,
    .gallery-section,
    .reviews-section,
    .factory-gallery {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }
}

/* Hamburger Button and Language Toggle */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #8B4513;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-lang-toggle {
    display: none;
    background: #8B4513;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 24px;
    font-size: 1.2rem;
    cursor: pointer;
    margin-right: 1rem;
}

/* Default hide mobile-only items */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .nav-controls {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .mobile-lang-toggle {
        display: inline-block;
    }
    /* Tùy chỉnh thanh cuộn trên mobile */
    .nav-links::-webkit-scrollbar {
        width: 8px;
    }

    .nav-links::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .nav-links::-webkit-scrollbar-thumb {
        background: var(--primary-brown);
        border-radius: 10px;
    }

    .nav-links::-webkit-scrollbar-thumb:hover {
        background: var(--dark-brown);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #b5b5b5;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        align-items: center;
    }
    .btn-primary{
        margin-bottom: 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 0.8rem;
        display: block;
        transition: background 0.3s ease;
    }

    .nav-links a:hover {
        background: #f5f5f5;
    }

    .mobile-only {
        display: block;
    }

    .nav-links .kotheche-btn {
        margin: 0.5rem auto;
        width: fit-content;
        font-size: 1.2rem;
        padding: 0.8rem;
    }
}


/* Hide mobile-only items on desktop */
@media (min-width: 769px) {
    .mobile-lang-toggle {
        display: none;
    }
}

/* Hero Section */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        word-wrap: break-word;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.4;
        word-wrap: break-word;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Features Section */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }
}

/* About Section */
@media (max-width: 768px) {
    .about-image img {
        height: 300px;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .about-text p {
        font-size: 0.95rem;
        line-height: 1.6;
        word-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .about-image img {
        height: 250px;
    }

    .about-text h2 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 0.85rem;
    }
}

/* Certificates Section */
@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .certificate-card {
        padding: 1.5rem;
    }

    .certificate-card h3 {
        font-size: 1.2rem;
    }

    .certificate-card p {
        font-size: 0.9rem;
    }
}

/* Contact Section */
@media (max-width: 768px) {

    .contact-info,
    .contact-form {
        padding: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .submit-button {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .phone-wrapper select,
    .phone-wrapper input[type="tel"] {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
}

@media (max-width: 480px) {
    .phone-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }

    .phone-wrapper select {
        width: 100%;
    }
}

/* Footer */
@media (max-width: 768px) {
    .footer-section h3 {
        font-size: 1.2rem;
    }

    .footer-section p,
    .footer-section ul li {
        font-size: 0.9rem;
    }

    .footer-social a {
        font-size: 1.2rem;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }
}

/* Marquee Section */
@media (max-width: 768px) {
    .marquee-item {
        font-size: 0.9rem;
        margin: 0 0.8rem;
    }

    .marquee {
        animation: marquee 20s linear infinite;
    }
}

/* Popup Gallery */
@media (max-width: 768px) {
    .popup-content {
        max-width: 90%;
        max-height: 70%;
    }

    .popup-image {
        object-fit: contain;
    }

    .nav-btn,
    .closeBtnPopup {
        padding: 8px;
        font-size: 14px;
    }
}

/* Contact Icons */
@media (max-width: 768px) {
    .contact-icons {
        bottom: 10px;
        left: 10px;
    }

    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Company Intro, Services, Process, and Brand Sections */
@media (max-width: 768px) {

    .intro-grid,
    .brand-grid1 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .intro-content h3,
    .brand-info1 h3 {
        font-size: 1.8rem;
        text-align: center;
    }

    .intro-text,
    .brand-description1 {
        font-size: 0.95rem;
        word-wrap: break-word;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .process-row {
        flex-direction: column;
        gap: 2rem;
    }

    .process-step {
        max-width: 100%;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

}

@media (max-width: 480px) {

    .intro-content h3,
    .brand-info1 h3 {
        font-size: 1.5rem;
    }

    .intro-text,
    .brand-description1 {
        font-size: 0.9rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .process-step h4 {
        font-size: 1.1rem;
    }

    .hero-logo {
        width: 150px;
    }
}
.contracts-section {
    padding: 5rem 0;
    background: #fff;

}

.contracts-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
}

.contracts-section .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #1f2937;
    max-width: 900px;
    margin: 0 auto 3rem;

}

.contracts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contract-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background-image: linear-gradient(to bottom, #fff, #f9fafb);
}

.contract-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contract-header {
    display: flex;
    align-items: center;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}

.contract-icon {
    font-size: 1.8rem;
    margin-right: 0.8rem;
    color: #4a5568;
}

.contract-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    line-height: 1.4;
}

.contract-body p {
    font-size: 1rem;
    color: #1f2937;
    margin-bottom: 0.6rem;
}

.contract-meta {
    font-size: 0.95rem;
    color: #718096;
    font-style: italic;
}

.contract-footer {
    margin-top: 1rem;
    text-align: right;
}

.contract-stamp {
    font-size: 0.9rem;
    color: #2f855a;
    font-weight: 600;
    background: #e6fffa;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid #38a169;
    display: inline-block;
}

.contract-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #2d3748;
    transition: width 0.3s ease;
}

.contract-card:hover::before {
    width: 6px;
}

/* Watermark effect */
.contract-card::after {
    content: 'CONFIDENTIAL';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 2rem;
    color: rgba(0, 0, 0, 0.05);
    font-weight: 700;
    text-transform: uppercase;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contracts-grid {
        grid-template-columns: 1fr;
    }

    .contract-card h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 375px) {
    .nav-container {
        padding: 0 0.5rem; /* Giảm padding để tiết kiệm không gian */
    }

    .logo {
        font-size: 1.3rem; /* Giảm kích thước logo thêm */
        gap: 0.3rem; /* Giảm khoảng cách giữa các phần tử trong logo */
    }

    .hamburger {
        font-size: 1.5rem; /* Giảm kích thước nút hamburger */
        padding: 0.3rem;
    }

    .nav-links {
        padding: 0.8rem 0; /* Giảm padding của menu */
        max-height: 60vh; /* Giảm chiều cao tối đa để phù hợp với màn hình nhỏ */
    }

    .nav-links a {
        font-size: 0.9rem; /* Giảm kích thước chữ trong menu */
        padding: 0.5rem;
    }

    .lang-toggle {
        padding: 0.3rem 0.8rem; /* Giảm kích thước nút ngôn ngữ */
        font-size: 0.9rem;
    }
}
@media (max-width: 375px) {
    .brand-section1 {
        padding: 3rem 0; /* Giảm padding trên và dưới */
    }

    .brand-grid1 {
        gap: 2rem; /* Giảm khoảng cách giữa các phần */
    }

    .brand-info1 h3 {
        font-size: 1.3rem; /* Giảm kích thước tiêu đề */
        margin-bottom: 1rem; /* Giảm khoảng cách dưới tiêu đề */
    }

    .brand-description1 {
        font-size: 0.85rem; /* Giảm kích thước mô tả */
        margin-bottom: 2rem; /* Giảm khoảng cách dưới mô tả */
    }

    .brand-stats1 {
        grid-template-columns: 1fr; /* Chuyển thành 1 cột */
        gap: 1.5rem;
    }

    .stat-item1 {
        padding: 1rem; /* Giảm padding trong stat-item */
    }

    .stat-number1 {
        font-size: 1.5rem; /* Giảm kích thước số */
    }

    .stat-label1 {
        font-size: 0.8rem; /* Giảm kích thước nhãn */
    }

    .product-image1 {
        height: 200px; /* Giảm chiều cao hình ảnh */
    }

    .product-overlay1 h4 {
        font-size: 1.1rem; /* Giảm kích thước tiêu đề overlay */
    }

    .product-overlay1 p {
        font-size: 0.8rem; /* Giảm kích thước mô tả overlay */
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .contracts-section .section-title {
        font-size: 2rem;
    }

    .contracts-section .section-subtitle {
        font-size: 1rem;
    }

    .contracts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contract-card {
        padding: 1.5rem;
    }

    .contract-card h3 {
        font-size: 1.4rem;
    }

    .contract-card p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .contracts-section {
        padding: 4rem 0;
    }

    .contracts-section .section-title {
        font-size: 1.8rem;
    }

    .contract-card h3 {
        font-size: 1.3rem;
    }

    .contract-card p {
        font-size: 0.9rem;
    }

    .contract-card::after {
        font-size: 1.2rem;
    }
}

@media (max-width: 425px) {
    .nav-container {
        padding: 0 0.5rem; /* Giảm padding để tiết kiệm không gian */
    }

    .logo {
        font-size: 1.3rem; /* Giảm kích thước logo thêm */
        gap: 0.3rem; /* Giảm khoảng cách giữa các phần tử trong logo */
    }

    .hamburger {
        font-size: 1.5rem; /* Giảm kích thước nút hamburger */
        padding: 0.3rem;
    }

    .nav-links {
        padding: 0.8rem 0; /* Giảm padding của menu */
        max-height: 60vh; /* Giảm chiều cao tối đa để phù hợp với màn hình nhỏ */
    }

    .nav-links a {
        font-size: 0.9rem; /* Giảm kích thước chữ trong menu */
        padding: 0.5rem;
    }

    .lang-toggle {
        /* padding: 0.3rem 0.8rem;  */
        font-size: 0.9rem;
    }
}
@media (max-width: 425px) {
    .brand-section1 {
        padding: 3rem 0; /* Giảm padding trên và dưới */
    }

    .brand-grid1 {
        gap: 2rem; /* Giảm khoảng cách giữa các phần */
    }

    .brand-info1 h3 {
        font-size: 1.3rem; /* Giảm kích thước tiêu đề */
        margin-bottom: 1rem; /* Giảm khoảng cách dưới tiêu đề */
    }

    .brand-description1 {
        font-size: 0.85rem; /* Giảm kích thước mô tả */
        margin-bottom: 2rem; /* Giảm khoảng cách dưới mô tả */
    }

    .brand-stats1 {
        grid-template-columns: 1fr; /* Chuyển thành 1 cột */
        gap: 1.5rem;
    }

    .stat-item1 {
        padding: 1rem; /* Giảm padding trong stat-item */
    }

    .stat-number1 {
        font-size: 1.5rem; /* Giảm kích thước số */
    }

    .stat-label1 {
        font-size: 0.8rem; /* Giảm kích thước nhãn */
    }

    .product-image1 {
        height: 200px; /* Giảm chiều cao hình ảnh */
    }

    .product-overlay1 h4 {
        font-size: 1.1rem; /* Giảm kích thước tiêu đề overlay */
    }

    .product-overlay1 p {
        font-size: 0.8rem; /* Giảm kích thước mô tả overlay */
    }
}

