/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #f8f9fa; color: #333; overflow-x: hidden; line-height: 1.8;}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Header & Navbar */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 50px; background-color: #ffffff; border-bottom: 1px solid #eaeaea; position: sticky; top: 0; z-index: 1000; }
/* Container chứa toàn bộ logo và tên công ty */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px; /* Giới hạn độ rộng tối đa để không lấn át Menu */
}

/* Khung tròn/vuông bao quanh logo */
.logo-icon {
    width: 50px;       /* Cố định độ rộng khung */
    height: 50px;      /* Cố định chiều cao khung */
    overflow: hidden;  /* Cắt bỏ phần ảnh thừa ra ngoài khung */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;  /* Hoặc giữ màu #fbc531 cũ của bạn */
    border-radius: 4px; 
    flex-shrink: 0;    /* Không cho phép logo bị bóp méo khi menu quá dài */
}

/* Cấu hình trực tiếp cho tấm ảnh logo */
.logo-img {
    width: 100%;       /* Ảnh rộng bằng khung chứa */
    height: 100%;      /* Ảnh cao bằng khung chứa */
    object-fit: contain; /* Quan trọng: Giữ đúng tỉ lệ ảnh, không bị móp/méo */
}

/* Cấu hình lại tên công ty để chuyên nghiệp hơn */
.company-name {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    color: #2f3640;
    text-transform: uppercase; /* Viết hoa để tăng tính nhận diện thương hiệu */
}

/* Tinh chỉnh Responsive cho Mobile */
@media (max-width: 768px) {
    .logo-icon {
        width: 40px;   /* Nhỏ hơn một chút trên điện thoại */
        height: 40px;
    }
    .company-name {
        display: block; /* Hiện lại tên nhưng cho chữ nhỏ xuống thay vì ẩn đi hoàn toàn */
        font-size: 11px;
        max-width: 150px;
    }
}
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* Navigation Links */
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links > li > a { font-size: 14px; font-weight: 500; transition: color 0.3s; display: block; }
.nav-links > li > a:hover, .nav-links > li > a.active { color: #e84118; }

/* --- 3-Level Dropdown Logic (Desktop) --- */
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background-color: #ffffff; min-width: 220px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); border: 1px solid #eaeaea; padding: 10px 0; z-index: 1001; }
.dropdown-submenu { position: relative; }
.dropdown-menu-deep { display: none; position: absolute; top: 0; left: 100%; background-color: #ffffff; min-width: 200px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); border: 1px solid #eaeaea; padding: 10px 0; }
.dropdown-menu li { padding: 10px 20px; transition: background 0.2s; }
.dropdown-menu li:hover { background-color: #f8f9fa; }
.dropdown-menu a { display: flex; justify-content: space-between; font-size: 14px; }

/* Desktop Hover Triggers */
@media (min-width: 769px) {
    .dropdown:hover > .dropdown-menu { display: block; }
    .dropdown-submenu:hover > .dropdown-menu-deep { display: block; }
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 400px;
    background: url('assets/images/logo.jpg') no-repeat center center/cover;
    background-attachment: fixed; /* Parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* Lớp phủ để làm nổi bật chữ */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Phủ đen mờ 50% */
}

/* Products Carousel Section */
.product-section { padding: 50px 20px; text-align: center; background: #fff; }
.section-title { margin-bottom: 30px; font-size: 24px; font-weight: 600; }
.carousel-container { display: flex; align-items: center; justify-content: center; gap: 15px; max-width: 1200px; margin: 0 auto; width: 100%; }
.carousel-btn { background: #f8f9fa; border: 1px solid #ddd; border-radius: 50%; width: 40px; height: 40px; font-size: 18px; cursor: pointer; color: #333; flex-shrink: 0; }
.carousel-btn:hover { background: #eaeaea; }
.carousel-track-wrapper { overflow: hidden; width: 100%; }
.carousel-track { display: flex; transition: transform 0.4s ease-in-out; }

/* Default Desktop Card Width (3 items) */
.product-card { flex: 0 0 33.333%; padding: 0 10px; box-sizing: border-box; }
.product-card img { width: 100%; height: auto; display: block; border-radius: 8px 8px 0 0; }
.product-info { padding: 15px; border: 1px solid #eaeaea; border-top: none; border-radius: 0 0 8px 8px; text-align: left; }
.product-info h3 { font-size: 16px; margin-bottom: 8px; }
.product-info p { font-size: 13px; color: #666; line-height: 1.4; }

/* =========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================= */

/* Tablet & Smaller Laptops */
@media (max-width: 1024px) {
    .product-card { flex: 0 0 50%; } /* Show 2 items on tablet */
    .navbar { padding: 15px 30px; }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .navbar { padding: 15px 20px; }
    .company-name { display: none; } /* Hide long text on mobile */
    .menu-toggle { display: block; }
    
    /* Mobile Navigation */
    .nav-links { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: #ffffff; 
        box-shadow: 0 10px 10px rgba(0,0,0,0.1); 
        padding: 0; 
        gap: 0;
        align-items: flex-start;
    }
    .nav-links.active { display: flex; }
    .nav-links > li { width: 100%; border-bottom: 1px solid #f0f0f0; }
    .nav-links > li > a { padding: 15px 20px; }
    
    /* Mobile Dropdown (Accordion Style) */
    .dropdown-menu, .dropdown-menu-deep { position: static; box-shadow: none; border: none; width: 100%; padding-left: 20px; background-color: #f8f9fa; }
    .dropdown-menu-deep { padding-left: 40px; background-color: #f1f2f3; }
    .dropdown-menu li { padding: 0; }
    .dropdown-menu a { padding: 12px 20px; }
    
    .product-card { flex: 0 0 100%; } /* Show 1 item on mobile */
    .carousel-btn { width: 35px; height: 35px; font-size: 14px; }

/* === CHÍNH: ABOUT SECTION STYLES === */
    /* 1. Container chính */
        .pro-about-section {
            width: 100%;
            padding: 80px 0; /* Margin-top và margin-bottom lớn (Hiệu ứng khoảng trống) */
            background-color: #fff;
            display: flex;
            justify-content: center;
        }

        /* 2. Căn giữa nội dung bên trong */
        .pro-about-container {
            max-width: 1200px; /* Độ rộng tối đa */
            width: 90%; /* Độ rộng khi co màn hình */
            display: flex;
            align-items: center;
            gap: 60px; /* Khoảng cách giữa 2 cột (Margin-right cho cột ảnh) */
        }

        /* 3. Cột Ảnh */
        .pro-about-image-column {
            flex: 1; /* Cột ảnh chiếm 50% */
            position: relative;
        }

        .pro-about-image {
            width: 100%;
            border-radius: 12px; /* Bo góc nhẹ */
            box-shadow: 0 15px 45px rgba(0,0,0,0.1); /* Hiệu ứng đổ bóng chuyên nghiệp */
            
            /* --- Hiệu ứng 1: Chuyển động (Transition) --- */
            transition: transform 0.4s ease, box-shadow 0.4s ease;
        }

        /* 4. Cột Nội Dung Text */
        .pro-about-content-column {
            flex: 1; /* Cột chữ chiếm 50% */
            padding-right: 20px;
        }

        /* 5. Tiêu đề (Về Chúng Tôi) */
        .pro-about-title {
            font-size: 40px;
            font-weight: 700;
            color: #222;
            margin-bottom: 25px; /* Margin-bottom (Căn lề) */
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative; /* Để tạo hiệu ứng underline */
        }

        /* --- Hiệu ứng 2: Gạch chân (Animated Underline) --- */
        .pro-about-title::after {
            content: '';
            display: block;
            width: 60px; /* Chiều rộng ban đầu */
            height: 4px;
            background-color: #007bff; /* Màu nhấn (Màu chủ đạo của bạn) */
            margin-top: 10px;
            border-radius: 2px;
            
            /* Transition */
            transition: width 0.4s ease;
        }

        /* 6. Đoạn văn (P) */
        .pro-about-text {
            font-size: 16px;
            color: #555;
            margin-bottom: 20px; /* Margin-bottom (Căn lề) */
            text-align: justify; /* Canh đều hai bên (Rất chuyên nghiệp) */
        }

        /* 7. Đoạn văn cuối cùng (Margin lớn hơn) */
        .pro-about-text.last-text {
            margin-bottom: 35px;
        }

        /* 8. Nút hành động (Button) */
        .pro-about-btn {
            display: inline-block;
            padding: 12px 30px;
            background-color: #007bff; /* Màu nhấn */
            color: white;
            text-decoration: none;
            border-radius: 25px; /* Nút bo tròn */
            font-weight: 600;
            
            /* --- Hiệu ứng 3: Chuyển động nút --- */
            transition: background-color 0.3s ease, transform 0.2s ease;
        }


        /* === CHÍNH: EFFECTS ON HOVER (Kích hoạt khi di chuột) === */
        
        /* Hiệu ứng: Cột chứa nội dung mở rộng underline tiêu đề */
        .pro-about-section:hover .pro-about-title::after {
            width: 120px; /* Underline dài ra */
        }

        /* Hiệu ứng: Ảnh chuyển động bay nhẹ (Floating) và bóng đậm hơn */
        .pro-about-section:hover .pro-about-image {
            transform: translateY(-8px); /* Bay lên một chút */
            box-shadow: 0 25px 55px rgba(0,0,0,0.15); /* Bóng đậm hơn */
        }

        /* Hiệu ứng: Nút đổi màu */
        .pro-about-btn:hover {
            background-color: #0056b3;
            transform: scale(1.05); /* Phóng to nhẹ nút */
        }

        /* === RESPONSIVE: Dành cho Mobile (Cực kỳ quan trọng) === */
        @media (max-width: 991px) {
            .pro-about-container {
                flex-direction: column-reverse; /* Đảo cột: Text lên trước, ảnh xuống sau (tùy ý bạn) */
                gap: 40px;
                text-align: center; /* Căn giữa text khi trên mobile */
            }

            .pro-about-title {
                font-size: 32px;
            }

            .pro-about-title::after {
                margin: 10px auto 0 auto; /* Canh giữa gạch chân trên mobile */
            }

            .pro-about-text {
                text-align: center; /* Canh giữa text trên mobile */
            }
        }
    
    /* CONTACT SECTION PRO */
    .contact-section {
        padding: 80px 0;
        background: linear-gradient(135deg, #2f3640 0%, #212529 100%); /* Màu tối sang trọng */
        color: #fff;
        display: flex;
        justify-content: center;
    }

    .contact-container {
        max-width: 1200px;
        width: 90%;
        display: flex;
        gap: 60px;
        align-items: flex-start;
    }

    .contact-info {
        flex: 1;
    }

    .info-item {
        display: flex;
        gap: 15px;
        margin-bottom: 20px;
        align-items: center;
    }

    .info-item span {
        font-size: 24px;
        color: #ed1c24; /* Màu đỏ thương hiệu của bạn */
    }

    /* FORM STYLES */
    .contact-form-pro {
        flex: 1.2;
        background: #fff;
        padding: 40px;
        border-radius: 15px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-row {
        display: flex;
        gap: 20px;
        margin-bottom: 20px;
    }

    .contact-form-pro input, 
    .contact-form-pro textarea {
        width: 100%;
        padding: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        outline: none;
        font-size: 15px;
        transition: border-color 0.3s;
    }

    .contact-form-pro input:focus, 
    .contact-form-pro textarea:focus {
        border-color: #ed1c24;
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
        .contact-container {
            flex-direction: column;
            gap: 40px;
        }
        .form-row {
            flex-direction: column;
            gap: 20px;
        }
        .contact-form-pro {
            padding: 25px;
        }
    }
}