/* --- PHẦN DÙNG CHUNG TOÀN WEBSITE --- */

html {
    scroll-behavior: smooth;
}

::selection {
    background-color: #1345B2;
    color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #ffffff;
    /* Quay lại nền trắng toàn bộ trang */
    color: #222;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* CONTAINER CHUẨN */
.container {
    max-width: 1280px;
    margin: auto;
}

/* HEADER STYLE */
.site-header {
    background: #1345B2;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
    max-width: 1280px;
    margin: auto;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    height: clamp(36px, 5vw, 42px);
    width: auto;
}

.header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.3;
}

.company-name {
    color: #fff;
    font-size: clamp(14px, 4vw, 18px);
    font-weight: 700;
    letter-spacing: 0.4px;
}

.company-slogan {
    color: #dbeafe;
    font-size: clamp(10px, 2.5vw, 12px);
    margin-top: 2px;
    letter-spacing: 0.3px;
}

.header-menu {
    display: flex;
}

.header-menu a {
    color: #e0e7ff;
    margin-left: 12px;
    padding: 8px 18px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* Khoảng cách giữa icon và chữ */
}

.header-menu a i {
    font-size: 14px;
}

.header-menu a:hover,
.header-menu a.active {
    background: #ffffff;
    color: #1345B2;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* FOOTER STYLE */
.site-footer {
    background: #0b2f7a;
    color: #e0e7ff;
    padding: 50px 0 20px;
}

.footer-inner {
    max-width: 1280px;
    margin: auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #3b82f6;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #cbd5e1;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #cbd5e1;
    font-size: 14.5px;
    transition: 0.3s;
}

.contact-item i {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    color: #3b82f6;
    /* Màu xanh nổi bật cho icon */
    border-radius: 8px;
    /* Bo góc nhẹ cho hiện đại */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: #ffffff;
}

.contact-item:hover i {
    background: #3b82f6;
    color: #ffffff;
    transform: rotate(5deg) scale(1.1);
}

.footer-logo {
    margin-top: 15px;
    height: 80px;
    width: auto;
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
}

/* CHUNG CHO BANNER & SECTION */
.hero {
    max-width: 1280px;
    margin: 10px auto;
    width: calc(100% - 30px);
    aspect-ratio: 1280 / 420;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ffffff;
    /* Banner nền trắng */
    border-radius: 12px;
}

section {
    padding: clamp(40px, 10vw, 40px) 0;
}

.section-title {
    font-size: clamp(22px, 5vw, 28px);
    margin-bottom: 30px;
    font-weight: 700;
    text-transform: uppercase;
}

.highlight {
    background: #ffffff;
}

/* ABOUT SECTION */
.about-section .section-title {
    color: #1345B2;
    padding-left: 20px;
    border-left: 5px solid #1345B2;
    position: relative;
    letter-spacing: 0.5px;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    /* Căn giữa theo chiều dọc để đẹp hơn */
    background: #ffffff;
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    /* Đổ bóng để không trùng nền */
    border: 1px solid #f1f5f9;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 16px;
    color: #374151;
    line-height: 1.8;
    text-align: justify;
}

.about-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-images img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.about-images img:hover {
    transform: scale(1.05);
    /* Zoom nhẹ ảnh giới thiệu */
}

/* LIGHTBOX MODAL */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.image-caption {
    margin-top: 10px;
    font-size: 14px;
    color: #1e3a8a;
    text-align: center;
    font-weight: 500;
}

/* SERVICES GRID (INDEX) */
.services-section .section-title {
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 50px;
}

.services-section .section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #1345B2;
    border-radius: 2px;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-box {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    /* Viền xám đậm và rõ nét hơn */
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    /* Đổ bóng xuống dưới rõ nét hơn */
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(19, 69, 178, 0.15);
    /* Bóng đổ đậm và sâu hơn khi hover */
    border-color: #1345B2;
}

.service-box img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.service-box:hover img {
    transform: scale(1.1);
    /* Zoom ảnh sản phẩm trang chủ */
}

.service-box h4 {
    padding: 25px 20px;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: #1e3a8a;
    transition: color 0.3s ease;
}

.service-box:hover h4 {
    color: #1345B2;
}

/* PARTNERS/PRODUCTS GRID (INDEX) */
.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Load chính xác 3 item mỗi hàng */
    gap: 30px;
}

@media (max-width: 992px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products {
        grid-template-columns: 1fr;
    }
}

.product {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 10px;
    /* Giảm viền (padding) để ảnh to ra sát mép */
    text-align: center;
    background: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Căn giữa hoàn toàn */
    align-items: center;
    min-height: 380px;
    /* Tăng chiều cao box để ảnh hiện to hơn */
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    border-color: #1345B2;
}

.product img {
    width: 96%;
    /* Ảnh to gần như sát mép khung */
    height: 250px;
    /* Tăng thêm chiều cao ảnh */
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
    cursor: zoom-in;
    /* Thêm con trỏ để báo hiệu xem được ảnh */
    transition: transform 0.3s ease;
}

.product h4 {
    font-size: 14px;
    color: #1e3a8a;
    line-height: 1.5;
    font-weight: 700;
}

/* SECTION BANDS */
.section-band {
    padding: 10px 0;
}

.band-wrap {
    background: linear-gradient(90deg, #2563eb, #0b2f7a);
    border-radius: 8px;
    padding: 22px;
    text-align: center;
}

.band-wrap .section-title {
    color: #fff;
    margin: 0;
    font-size: 22px;
}

/* LETTER BOX */
.letter-box {
    background: #fff;
    padding: clamp(20px, 5vw, 60px);
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    border-left: 6px solid #2563eb;
}

.letter-box p {
    margin-bottom: 16px;
    font-size: 15px;
    color: #374151;
    text-align: justify;
}

.letter-sign {
    margin-top: 30px;
}

/* VISION/WHY GRIDS */
.vision-grid,
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.vision-box,
.why-box {
    background: #fff;
    border-radius: 14px;
    padding: 35px;
    border: 1px solid #e5ebf5;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Đổ bóng để nhìn rõ viền */
}

.vision-box h3,
.why-box h3 {
    color: #1e3a8a;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.vision-box p,
.why-box p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
}

.vision-box ul {
    padding-left: 20px;
}

/* PARTNERS LIST (ABOUT PAGE) */
.partners-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 item mỗi hàng */
    gap: 30px;
}

@media (max-width: 992px) {
    .partners-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .partners-list {
        grid-template-columns: 1fr;
    }
}

.partner-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 10px;
    /* Giảm viền để ảnh to ra sát mép */
    text-align: center;
    border: 1.5px solid #dbe3f1;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    color: #1e3a8a;
    transition: all 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    border-color: #1345B2;
}

.partner-item img {
    width: 96%;
    /* Ảnh to sát mép */
    height: 250px;
    /* Tăng chiều cao ảnh */
    object-fit: contain;
    margin-bottom: 20px;
    cursor: zoom-in;
    /* Thêm con trỏ để báo hiệu xem được ảnh */
}

.partner-item span {
    font-size: 16px;
    line-height: 1.5;
}

/* NĂNG LỰC SẢN XUẤT PAGE */
.section-strip {
    background: linear-gradient(90deg, #1e4fa3, #2f6fb2);
    padding: 16px 20px;
    text-align: center;
    border-radius: 6px;
    margin-bottom: 30px;
}

.section-strip h2 {
    color: #fff;
    font-size: 20px;
    margin: 0;
    text-transform: uppercase;
}

.content-box {
    background: #fff;
    border: 1px solid #dce7f3;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.content-box p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.product-line-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.product-card {
    background: #fff;
    border: 1px solid #dce7f3;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Đổ bóng nhẹ thay cho border top */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.product-image {
    height: 180px;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card h3 {
    padding: 20px 20px 10px;
    font-size: 17px;
    color: #1f3c68;
    text-transform: uppercase;
}

.product-card p {
    padding: 0 20px 20px;
    font-size: 14px;
}

.tech-list {
    list-style: none;
}

.tech-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}

.tech-list li::before {
    content: "✔️";
    position: absolute;
    left: 0;
    color: #1e4fa3;
}

/* SẢN PHẨM TIÊU BIỂU PAGE */
/* SẢN PHẨM TIÊU BIỂU PAGE */
.featured-products {
    background-color: #ffffff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 20px;
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    color: inherit;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    /* Viền xám đậm và rõ nét hơn */
    padding: 24px;
    border-radius: 12px;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    /* Đổ bóng rõ nét hơn trên nền trắng */
}

.product-card:hover {
    transform: translateY(-8px);
    /* Nổi bật hơn khi hover */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    /* Bóng đậm và rộng hơn khi di chuột */
    border-color: #1345B2;
}

.product-card .product-image {
    width: 100%;
    aspect-ratio: 1.5;
    object-fit: contain;
    background-color: #ffffff;
    /* Ảnh trên nền trắng để nổi bật trên card */
    border-radius: 4px;
    margin-bottom: 20px;
    transition: all 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
    /* Zoom ảnh sản phẩm trang tiêu biểu */
}

.product-card h3 {
    color: #1345B2;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    text-align: left;
}

.product-card p {
    color: #1345B2;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.export-note {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    margin-top: 40px;
    font-weight: 600;
    color: #1e3a8a;
}

/* RESPONSIVE HEADERS */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        aspect-ratio: 2.2 / 1;
        /* Hiển thị đầy đủ nội dung banner trên mobile */
        background-size: 100% 100%;
    }

    .header-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #1345B2;
        flex-direction: column;
        padding: 10px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .header-menu.active {
        display: flex;
    }

    .header-menu a {
        margin: 0;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-inner {
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-wrapper,
    .vision-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 40px 0;
    }
}

/* PRODUCT DETAIL PAGE */
.product-detail-section {
    padding-top: 20px;
}

.breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: #64748b;
}

.breadcrumb a {
    color: #1345B2;
    text-decoration: none;
    transition: 0.3s;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.main-image-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-display-image {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
}

.gallery-item:hover {
    border-color: #1345B2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.detail-title {
    font-size: 32px;
    color: #1345B2;
    margin-bottom: 20px;
    font-weight: 700;
}

.product-description h3,
.product-specs h3 {
    font-size: 18px;
    color: #1e3a8a;
    margin-bottom: 12px;
    border-left: 4px solid #1345B2;
    padding-left: 12px;
}

.product-description p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 30px;
}

.tech-list-detail {
    list-style: none;
    margin-bottom: 40px;
}

.tech-list-detail li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    color: #4b5563;
}

.tech-list-detail li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1345B2;
    font-weight: bold;
}

.contact-cta {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 30px;
    border-radius: 12px;
}

.contact-cta p {
    font-weight: 600;
    margin-bottom: 15px;
}

.cta-button {
    display: block;
    background: #1345B2;
    color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.cta-button:hover {
    background: #0b2f7a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(11, 47, 122, 0.3);
}

@media (max-width: 992px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* SCROLL REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* FLOATING CONTACT BUTTON */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.fab-button {
    width: 60px;
    height: 60px;
    background: #1345B2;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 10px 30px rgba(19, 69, 178, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(19, 69, 178, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(19, 69, 178, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(19, 69, 178, 0);
    }
}

.fab-button:hover {
    background: #0b2f7a;
    transform: translateY(-5px);
}