@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* Reset mặc định */
* {
    margin: 0;
    padding: 0;
    list-style: none;
    box-sizing: border-box;

}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
}

/* About Section */
.main-title {
    font-size: 48px;
    color: #015871;
    text-align: center;
    margin: 40px 0;
    font-weight: bold;
    text-transform: uppercase;
}

.about-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    width: 100%;
}

.about-text {
    flex: 1;
    max-width: 600px;
}

/* animation */
.about-title {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 0.2s;
}

.about-info li {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease-in-out forwards;
    animation-delay: calc(0.3s + var(--i) * 0.1s);
    /* Delay theo thứ tự */
}

.factory-image {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleUp 0.8s ease-out forwards;
    animation-delay: 0.5s;
}

.story-image img {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s ease-out forwards;
}

.story-text p {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 1s ease-out forwards;
    animation-delay: 0.3s;
}

/*------------------------------- */
.about-title {
    font-size: 28px;
    color: #37bef8;
    margin-bottom: 20px;
    font-weight: bold;

}

.about-info {
    list-style: none;
    padding: 0;
}

.about-info li {
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-info i {
    color: #37bef8;
}

.about-video {
    flex: 1;
    max-width: 500px;
}

.video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.factory-image {
    width: 100%;
    height: auto;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 123, 255, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.play-button:hover {
    background-color: rgba(0, 86, 179, 0.8);
}

/* Footer
.footer {
    text-align: center;
    padding: 20px;
    background-color: #f5f5f5;
    color: #6c757d;
    font-size: 14px;
    margin-top: 20px;
} */

/* Tầm Nhìn & Sứ Mệnh Section */
.vision-mission {
    background: linear-gradient(135deg, #37bef8 0%, #58c5f6 100%);
    padding: 40px 20px;
    color: #fff;
    text-align: center;
}

.vision-mission-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
}

.vision,
.mission {
    flex: 1;
    max-width: 400px;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.vision h3,
.mission h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 10px;
}

.vision p,
.mission p {
    font-size: 14px;
    line-height: 1.6;
}

/* Core Values Section */
.core-values-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
}

.core-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
}

.core-value-item {
    background-color: #fff;
    color: #333;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.core-value-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.core-value-item h3 {
    font-size: 16px;
    color: #37bef8;
    margin-bottom: 10px;
}

.core-value-item p {
    font-size: 14px;
    line-height: 1.6;
}

/* Story Section */
.story-section {
    padding: 50px 20px;
    background-color: #ffffff;
    text-align: center;
}

.story-container {
    max-width: 1200px;
    margin: 0 auto;
}

.story-title {
    font-size: 36px;
    color: #015871;
    font-weight: bold;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.story-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.story-image {
    flex: 1;
    min-width: 300px;
}

.story-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
}

.story-text {
    flex: 2;
    max-width: 600px;
    text-align: left;
}

.story-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

/* Certificates */
.certificates {
    padding: 50px 20px;
    background-color: #ffffff;
    text-align: center;
}

.certificates-container {
    max-width: 1200px;
    margin: 0 auto;
}

.certificates-title {
    font-size: 36px;
    color: #015871;
    font-weight: bold;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.certificates-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.certificate-item {
    flex: 1;
    min-width: 200px;
}

.certificate-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-item:hover img {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.certificates-description {
    font-size: 16px;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Swiper Navigation */
.swiper-button-prev,
.swiper-button-next {
    color: #37bef8;
    transition: color 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    color: #015871;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    background-color: #37bef8;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background-color: #015871;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vision-mission-container {
        flex-direction: column;
    }

    .vision,
    .mission {
        max-width: 100%;
    }

    .core-values-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Design Updates */

/* General responsiveness for smaller screens */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }

    .about-container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .about-text,
    .about-video {
        max-width: 100%;
        flex: none;
    }

    .about-title {
        font-size: 24px;
        text-align: center;
    }

    .about-info li {
        font-size: 14px;
    }

    .factory-image {
        width: 100%;
        height: auto;
    }

    .play-button {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .vision-mission-container {
        flex-direction: column;
        gap: 20px;
    }

    .vision,
    .mission {
        max-width: 100%;
    }

    .core-values-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .core-value-item {
        padding: 15px;
    }

    .story-content {
        flex-direction: column;
    }

    .story-image,
    .story-text {
        width: 100%;
    }

    .certificates-grid {
        flex-direction: column;
        gap: 20px;
    }

    .certificate-item {
        width: 100%;
    }
}

/* For very small devices */
@media (max-width: 480px) {
    .main-title {
        font-size: 28px;
        margin: 20px 0;
    }

    .about-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .vision h3,
    .mission h3 {
        font-size: 18px;
    }

    .vision p,
    .mission p {
        font-size: 13px;
    }

    .core-values-title {
        font-size: 20px;
    }

    .core-value-item h3 {
        font-size: 14px;
    }

    .core-value-item p {
        font-size: 12px;
    }

    .story-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .story-text p {
        font-size: 14px;
    }

    .certificates-title {
        font-size: 24px;
    }

    .certificates-description {
        font-size: 14px;
    }

    .certificate-item img {
        height: auto;
    }

    .swiper-button-prev,
    .swiper-button-next {
        font-size: 18px;
    }

    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }

    .swiper-pagination-bullet-active {
        width: 10px;
        height: 10px;
    }
}

/* Keyframes cho các hiệu ứng */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.vision-mission-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
    opacity: 0;
    animation: slideInUp 1s ease-out forwards;
}

.vision,
.mission {
    flex: 1;
    max-width: 400px;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(20px);
}

.vision:hover,
.mission:hover {
    transform: translateY(0);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.vision h3,
.mission h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 10px;
    animation: slideInUp 1.2s ease-out forwards;
}

.vision p,
.mission p {
    font-size: 14px;
    line-height: 1.6;
    animation: slideInUp 1.4s ease-out forwards;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.core-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
    opacity: 0;
    animation: zoomIn 1s ease-out forwards;
}

.core-value-item {
    background-color: #fff;
    color: #333;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.core-value-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.core-value-item h3 {
    font-size: 16px;
    color: #37bef8;
    margin-bottom: 10px;
    animation: zoomIn 1.5s ease-out forwards;
}

.core-value-item p {
    font-size: 14px;
    line-height: 1.6;
    animation: zoomIn 1.7s ease-out forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-text p {
    opacity: 0;
    /* Bắt đầu ẩn */
    transform: translateX(-50px);
    /* Dịch sang trái */
    animation: fadeInLeft 1s ease-out forwards;
    /* Gọi animation */
    animation-delay: 0.5s;
    /* Thời gian trễ để hiệu ứng bắt đầu */
}

.hidden {
    visibility: hidden;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vision-mission-container {
    opacity: 0;
    /* Bắt đầu ẩn */
    transform: translateY(50px);
    /* Dịch xuống */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.vision-mission-container.visible {
    opacity: 1;
    transform: translateY(0);
    /* Quay về vị trí ban đầu */
}

/* Định dạng chung cho icon */
.about-info i,
.about-title i,
.about-text i {
    color: #37bef8;
    margin-right: 10px;
    font-size: 18px;
}

/* Play button style */
.play-button i {
    font-size: 24px;
    color: #fff;
    transition: transform 0.3s ease, color 0.3s ease;
}

.play-button:hover i {
    transform: scale(1.2);
    color: #37bef8;
}


@media (max-width: 1024px) {

    /* Hiển thị trên tablet và mobile */
    .services-mobile {
        display: block;
    }

    .services {
        display: none;
        /* Ẩn giao diện desktop */
    }
}

@media (max-width: 768px) {
    .services-title-mobile {
        font-size: 1.25rem;
    }

    .services-content-mobile,
    .services-list-mobile li {
        font-size: 0.85rem;
    }

    .services-highlight-mobile {
        font-size: 0.9rem;
    }
}

/* Keyframes for zoom-in and fade-in animation */
@keyframes zoomInFade {
    0% {
        transform: scale(0.8);
        /* Thu nhỏ */
        opacity: 0;
        /* Ẩn */
    }

    50% {
        transform: scale(1.05);
        /* Phóng lớn hơn một chút */
        opacity: 0.5;
        /* Tăng dần độ rõ */
    }

    100% {
        transform: scale(1);
        /* Quay lại kích thước ban đầu */
        opacity: 1;
        /* Hoàn toàn hiện ra */
    }
}

/* Animation class */
.animated-title {
    animation: zoomInFade 1.2s ease-out forwards;
    opacity: 0;
    /* Đặt ẩn mặc định trước khi chạy animation */
    transform-origin: center;
    /* Tâm của hiệu ứng */
    text-align: center;
    color: #015871;
    font-size: 48px;
    font-weight: bold;
    text-transform: uppercase;
}

.core-value-item h3::first-letter {
    font-size: 28px;
    /* Phóng to chữ cái đầu tiên */
    color: #46dffa;
    /* Màu xanh nổi bật */
    font-weight: bold;
}

/* Tạo điểm nhấn cho phần sứ mệnh */
.highlight-text {
    color: #d61b1b;
    /* Màu đỏ theo tone logo */
    font-weight: bold;
    font-style: italic;
    background: linear-gradient(135deg, #d61b1b, #ff3d3d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 5px rgba(214, 27, 27, 0.3);
    display: inline-block;
    padding: 3px;
}

@keyframes fadeInHighlight {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.highlight-text {
    color: #37bef8;
    font-weight: bold;
    font-style: italic;
    background: linear-gradient(135deg, #1bd3d6, #37bef8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 5px rgba(27, 173, 214, 0.3);
    display: inline-block;
    padding: 3px;
    animation: fadeInHighlight 0.5s ease-in-out;
}