/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}
:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-switcher a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
}

.lang-switcher a:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

.lang-switcher a.active {
    color: var(--primary-color);
    font-weight: 700;
    background: rgba(255, 107, 53, 0.15);
}

.lang-separator {
    color: var(--text-light);
    margin: 0 0.25rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0066cc 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h1 {
    text-align: left;
}

.hero-text p {
    text-align: left;
}

.hero-image {
    flex: 1;
    min-width: 300px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    /* margin-bottom: 2rem; */
    opacity: 0.9;
    animation: fadeInUp 1s ease;
}

.home-banner-img {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    margin-top: 0;
    animation: fadeIn 1.2s ease;
    overflow: hidden;
}

.home-banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.section-description {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* Mission & Vision */
.mission-vision {
    background: var(--bg-light);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.mission-card,
.vision-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.icon-wrapper {
    margin-bottom: 1.5rem;
}

.icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon.su-menh {
    background: linear-gradient(135deg, var(--primary-color), #ff8c5a);
}

.icon.tam-nhin {
    background: linear-gradient(135deg, var(--secondary-color), #0066cc);
}

.mission-card h3,
.vision-card h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.mission-card p,
.vision-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Core Values */
.core-values {
    background: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.value-card {
    background: linear-gradient(135deg, var(--secondary-color), #0066cc);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    color: var(--white);
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.value-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.value-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.value-card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.value-icon {
    font-weight: 700;
    font-size: 1.1rem;
}

.cta-button {
    text-align: center;
    margin-top: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s;
}

.btn-primary:hover {
    background: #ff5722;
    transform: translateY(-2px);
}

/* Impressive Numbers */
.impressive-numbers {
    background: var(--bg-light);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.number-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.number-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.number-icon {
    margin: 0 auto 1.5rem;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.number-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.number-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.number-label {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Products */
.products {
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.products{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:18px;
}

/* card */
.image_product{
    width:500px;
    max-width: 100%;
    position:relative;
    overflow:hidden;
    border-radius:22px;
    cursor:pointer;
}
  
  /* ảnh zoom từ từ */
  .image_product img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    transform:scale(1);
    transition:transform 700ms ease;
  }
  
  /* lớp gradient tối dưới để chữ nổi */
  .image_product::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 55%);
    opacity:1;
    transition:opacity 400ms ease;
    pointer-events:none;
  }
  
  /* overlay text */
  .product-card{
    position:absolute;
    left:0; right:0; bottom:0;
    padding:22px;
    color:#fff;
    z-index:1;
  
    /* CHƯA HOVER: nằm thấp xuống, chỉ lòi title */
    transform:translateY(55%);
    transition:transform 500ms ease;
  }
  
  .product-card{
    position:absolute;
    left:0; right:0; bottom:0;
    padding:22px;
    color:#fff;
    z-index:1;
  
    /* bỏ translateY ở đây để h3 không bị tụt */
    transform:none;
  }
  
  .product-card h3{
    margin:0;
    font-size:28px;
    font-weight:800;
  }
  
  .product-card p{
    margin:10px 0 0;
    line-height:1.5;
  
    opacity:0;
    max-height:0;
    overflow:hidden;
  
    transform:translateY(14px);
    transition: opacity 350ms ease, transform 350ms ease, max-height 500ms ease;
  }
  
  .image_product:hover .product-card p{
    opacity:1;
    max-height:120px;      /* tăng/giảm tùy độ dài text */
    transform:translateY(0);
  }
  
  
  /* .image_product:hover img{
    transform:scale(1.06);
  } */
  
  /* nếu muốn hover tối hơn chút */
  .image_product:hover::after{
    opacity:1;
  }
  
  /* mobile */
  @media (max-width: 560px){
    .image_product{ 
      width:100%; 
      max-width: 100%;
    }
    .product-card{ 
      padding:18px; 
    }
    .product-card h3{ 
      font-size:20px; 
    }
    .product-card p{
      font-size: 0.9rem;
    }
  }
  

/* Partners */
.partners {
    background: var(--bg-light);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.partner-logo {
    height: 120px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}


/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
    line-height: 1.8;
}

.footer-info a {
    color: var(--white);
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: var(--bg-light);
    min-height: calc(100vh - 200px);
}

.contact-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
}

.form-group .required {
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--white);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.btn-submit:hover {
    background: #ff5722;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Form validation styles */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #27ae60;
}

/* Responsive Design */
/* Tablet */
@media (max-width: 1024px) {
    .image_product {
        width: 450px;
        max-width: 100%;
    }

    .hero-content {
        gap: 1.5rem;
    }

    .home-banner-img {
        height: 400px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .mission-vision-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .numbers-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .contact-title {
        font-size: 2rem;
    }

    /* Products section responsive */
    .products {
        flex-direction: column;
        gap: 1.5rem;
    }

    .image_product {
        width: 100% !important;
        max-width: 100%;
    }

    .product-card {
        padding: 1.5rem;
    }

    .product-card h3 {
        font-size: 1.5rem;
    }

    .product-card p {
        font-size: 0.95rem;
    }

    /* Hero section responsive */
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-text {
        width: 100%;
        text-align: center;
    }

    .hero-text h1 {
        text-align: center !important;
        font-size: 2rem;
    }

    .hero-text p {
        text-align: center !important;
    }

    .hero-image {
        width: 100%;
    }

    .home-banner-img {
        width: 100%;
        height: auto;
        min-height: 250px;
        max-height: 400px;
    }

    /* Contact section responsive */
    .contact-content {
        padding: 0;
    }

    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .partner-logo {
        height: 100px;
    }

    .partner-logo img {
        max-width: 80%;
        height: auto;
        object-fit: contain;
    }

    /* Icon images responsive */
    .icon img,
    .number-icon img,
    .value-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .icon {
        width: 70px;
        height: 70px;
    }

    .number-icon {
        width: 80px;
        height: 80px;
    }

    .value-icon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 1.5rem 1rem;
    }

    .contact-title {
        font-size: 1.75rem;
    }

    /* Products section - extra small screens */
    .products {
        gap: 1rem;
    }

    .image_product {
        width: 100% !important;
    }

    .product-card {
        padding: 1rem;
    }

    .product-card h3 {
        font-size: 1.25rem;
    }

    .product-card p {
        font-size: 0.85rem;
        max-height: 100px;
    }

    /* Hero section - extra small */
    .hero-text h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .home-banner-img {
        min-height: 200px;
        max-height: 300px;
    }

    /* Contact form - extra small */
    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .btn-submit {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    /* Numbers section - extra small */
    .number-value {
        font-size: 1.5rem;
    }

    .number-icon {
        width: 80px;
        height: 80px;
    }

    /* Values section - extra small */
    .value-card {
        min-height: 120px;
        padding: 1.5rem;
    }

    .value-icon {
        font-size: 0.9rem;
    }

    /* Partners - extra small */
    .partner-logo {
        height: 80px;
    }
}
