/* Định nghĩa màu sắc mới cho trang web */
:root {
    --primary-color: #004D99; /* Xanh đậm */
    --secondary-color: #0075C4; /* Xanh trung bình */
    --accent-color: #41B0FF; /* Xanh sáng */
    --highlight-color: #FF6B00; /* Cam làm điểm nhấn */
    --light-blue: #ECF5FF; /* Nền nhẹ */
    --text-color: #212B36; /* Tối hơn để dễ đọc */
    --text-light: #637381; /* Xám trung bình */
    --background-color: #F8FAFC; /* Nền sáng nhẹ */
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 77, 153, 0.08);
    --shadow-hover: 0 10px 20px rgba(0, 77, 153, 0.12);
    --transition: all 0.3s ease;
    --radius: 8px;
    --max-width: 1200px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
}

.about-text p {
    text-align: justify; /* Căn đều hai bên */
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--highlight-color);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 77, 153, 0.2);
}

.btn:hover {
    background-color: var(--highlight-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

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

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.header-scrolled {
    padding: 8px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 77, 153, 0.15);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.6rem;
    margin-bottom: 0;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text h2 {
    font-size: 0.9rem;
    margin-bottom: 0;
    font-weight: 500;
    color: var(--text-light);
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
}

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

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--highlight-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--highlight-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding-top: 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 70%, var(--accent-color) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-content {
    min-height: 275px; /* Giảm xuống 1/2 */
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 550px;
    padding: 35px 0; /* Giảm xuống 1/2 */
}

.hero h1 {
    font-size: 2.3rem; /* Giảm kích thước chữ */
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 800;
}

.hero p {
    font-size: 1.1rem; /* Giảm kích thước chữ */
    margin-bottom: 1.5rem; /* Giảm margin */
    opacity: 0.95;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: 50%;
    z-index: 1;
    opacity: 0.85;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/api/placeholder/1200/600') center/cover no-repeat;
    opacity: 0.07;
    z-index: 1;
}

/* About Section */
.section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.6rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 12px; /* Giảm padding */
    margin-bottom: 0.7rem; /* Giảm margin dưới */
    display: inline-block;
    line-height: 1.1; /* Giảm line-height */
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.section-header p {
    max-width: 700px;
    margin: 0.6rem auto; /* Giảm margin trên-dưới */
    color: var(--text-light);
    font-size: 1.15rem;
    line-height: 1.3; /* Giảm line-height */
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-image-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: var(--white);
    padding: 20px;
    transition: var(--transition);
}

.about-image-gallery:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.gallery-heading {
    margin-bottom: 20px;
}

.logo-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-showcase img {
    width: 280px;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
    margin-bottom: 10px;
    border: 1px solid #eaeaea;
}

.gallery-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

.image-caption {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

@media screen and (max-width: 1024px) {
    .gallery-images {
        grid-template-columns: 1fr;
    }
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    margin-top: 38px;
}

.feature-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--accent-color);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.feature-item:nth-child(2) {
    border-top-color: var(--highlight-color);
}

.feature-item:nth-child(3) {
    border-top-color: var(--secondary-color);
}

.feature-item:nth-child(4) {
    border-top-color: #4caf50; /* Màu xanh lá cho phần "Thân thiện môi trường" */
}

.feature-icon {
    font-size: 2.7rem;
    margin-bottom: 20px;
    display: inline-block;
    color: var(--primary-color);
    background-color: var(--light-blue);
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    border-radius: 50%;
}

.feature-item:nth-child(2) .feature-icon {
    color: var(--highlight-color);
    background-color: rgba(255, 107, 0, 0.1);
}

.feature-item:nth-child(3) .feature-icon {
    color: var(--secondary-color);
    background-color: rgba(0, 117, 196, 0.1);
}

.feature-item:nth-child(4) .feature-icon {
    color: #4caf50;
    background-color: rgba(76, 175, 80, 0.1);
}

.feature-item h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Products Section */
.products-bg {
    background-color: var(--light-blue);
    position: relative;
    overflow: hidden;
}

.products-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(65, 176, 255, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 35px;
    position: relative;
    z-index: 1;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    height: 20px; /* Giảm chiều cao từ 220px xuống 120px */
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 30%;
    object-fit: cover;
    transition: var(--transition);
    display: block; /* Đảm bảo hiển thị */
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-content {
    padding: 30px;
}

.product-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--light-blue);
    padding-bottom: 12px;
}

.product-content ul {
    list-style-position: inside;
    margin-bottom: 25px;
    padding-left: 5px;
}

.product-content li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
    list-style-type: none;
}

.product-content li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -3px;
}

.product-content .btn {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

/* News Section */
.news-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
}

.news-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    height: 100px;
    background-color: var(--light-blue);
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 30%;
    height: 30%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 30px;
}

.news-date {
    display: inline-block;
    color: var(--white);
    font-size: 0.9rem;
    background-color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: 600;
}

.news-content h3 {
    color: var(--text-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content p {
    margin-bottom: 25px;
    color: var(--text-light);
}

.news-content .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    background-color: var(--light-blue);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(0, 77, 153, 0.05));
    z-index: 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.contact-info {
    padding: 40px;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-info h3 {
    color: var(--primary-color);
    font-size: 1.7rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 18px;
    min-width: 30px;
    background-color: var(--light-blue);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-text h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.contact-form {
    padding: 40px;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    color: var(--primary-color);
    font-size: 1.7rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0e6ed;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f9fafc;
}

.form-control:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(65, 176, 255, 0.1);
    background-color: var(--white);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 70px 0 20px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/api/placeholder/1200/600') center/cover no-repeat;
    opacity: 0.03;
    z-index: 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    color: var(--white);
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 8px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 77, 153, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--highlight-color);
    transform: translateY(-5px);
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .hero h1 {
        font-size: 2.7rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .header-container {
        padding: 15px;
    }
    
    .logo img {
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 1.3rem;
    }
    
    .logo-text h2 {
        font-size: 0.8rem;
    }
    
    .nav-links {
        position: fixed;
        top: 90px;
        left: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        height: calc(100vh - 90px);
        z-index: 1000;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .product-cards, .news-cards {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}