﻿@font-face {
    font-family: 'Good Time';
    src: url('/font/Good Times Rg.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

/*OKAI*/
#tech-heading {
    color: #C21F61;
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.6s ease-out;
    position: relative;
    z-index: 1;
}

    #tech-heading.show {
        opacity: 1;
        transform: translateY(0);
    }

.elementor-element-8a12f77 .elementor-heading-title {
    font-family: "Orbitron", sans-serif !important;
    font-size: 48px !important;
    font-weight: 700 !important;
}

/* Căn giữa nội dung trong cột */
.text-right-container {
    display: flex; /* bật flex cho container */
    justify-content: center; /* căn giữa theo ngang */
    align-items: center; /* căn giữa theo dọc (nếu container cao) */
    height: 100%; /* đảm bảo căn giữa theo dọc */
}

#tech-heading.show {
    opacity: 1;
    transform: translateY(0);
}

.text-right-container {
    text-align: right; /* Căn toàn bộ nội dung bên trong sang phải */
}

/* Nếu muốn chỉ căn h2 */
#tech-heading {
    display: inline-block; /* để text-align trên container có hiệu quả */
    text-align: right;
}

/*image robot*/
#tech-image {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
    position: relative;
    z-index: 2;
}

    #tech-image.show {
        opacity: 1;
        transform: translateY(0);
    }

/* Ẩn phần tử trước khi animation */
.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

    .slide-up.show {
        opacity: 1;
        transform: translateY(0);
    }

/* Ẩn phần tử ban đầu (trượt từ trái sang phải) */
.slide-right {
    opacity: 0;
    transform: translateX(-50px); /* Trượt từ trái */
    transition: all 0.8s ease-out;
}

    /* Khi active sẽ hiện ra */
    .slide-right.show {
        opacity: 1;
        transform: translateX(0);
    }


/* Container cho ảnh */
#tech-image {
    position: relative;
    display: inline-block;
}

    /* Ảnh */
    #tech-image img {
        display: block;
        width: 100%;
        height: auto;
    }

    /* Overlay đáy mờ */
    #tech-image::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 10%; /* chiều cao phần đáy mờ */
        background: linear-gradient(to top, rgba(255,255,255,3.5), rgba(255,255,255,0));
        pointer-events: none; /* không che chắn tương tác */
    }
/* Nút Get Started màu C21F61, override CSS plugin */
.ekit-wid-con .elementskit-btn {
    background: #C21F61 !important; /* màu nền */
    color: #ffffff !important; /* màu chữ */
    border: none !important; /* bỏ viền */
    transition: all 0.3s ease !important;
}

#my-button .elementskit-btn {
    font-size: 16px;
    background-color: #C21F61 !important;
    color: #fff !important;
}
/* Hover */
.ekit-wid-con .elementskit-btn:hover {
    background-color: #a71f52 !important; /* màu đậm hơn khi hover */
    color: #ffffff !important;
}

/*THIẾT BỊ AI (PHYSICAL AI)*/

.elementor-heading-title .elementor-size {
    font-family: "Orbitron", sans-serif !important;
    font-size: 48px !important;
    font-weight: 700 !important;
}

.robot-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    padding: 40px 0;
}

.robot-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.5s ease;
}

    .robot-item img:hover {
        transform: scale(1.07);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }

.robot-item {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

    .robot-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    }


    .robot-item h3 {
        margin: 10px 10px 10px 10px;
        color: #C21F61;
        font-size: 1.2rem;
        font-weight: 600;
    }

.elementor-element-a4a94ab p {
    text-align: center;
    max-width: 800px; /* Giới hạn chiều rộng để đọc dễ hơn */
    margin: 0 auto; /* Căn giữa khối văn bản */
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.robot-item p {
    font-size: 14px;
    color: #555;
    margin-top: 8px;
    line-height: 1.5;
    margin: 10px 10px 10px 10px;
}

/* Responsive: 2 cột trên tablet, 1 cột trên điện thoại */
@media (max-width: 992px) {
    .robot-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .robot-section {
        grid-template-columns: 1fr;
    }
}

/*MÁY SẤY THÔNG MINH*/
.dryer-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 80px;
    width: 100%;
    max-width: 1000px;
    margin: 60px auto;
}

.dryer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 320px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .dryer-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .dryer-item img {
        width: 250px;
        height: 250px;
        object-fit: cover;
        display: block;
        margin: 0 auto 20px;
        transition: transform 0.4s ease;
    }

    .dryer-item:hover img {
        transform: scale(1.05);
    }

    .dryer-item h3 {
        margin: 30px 10px 10px 10px;
        font-size: 22px;
        font-weight: 600;
        margin-bottom: 10px;
        color: #C21F61;
    }

    .dryer-item p {
        font-size: 15px;
        color: #555;
        line-height: 1.6;
        max-width: 280px;
    }

/* Responsive */
@media (max-width: 768px) {
    .dryer-section {
        flex-direction: column;
        gap: 40px;
    }

    .dryer-item img {
        width: 200px;
        height: 200px;
    }
}

/* Ẩn ban đầu */
.slide-up, .slide-right, .fade-up, .fade-down {
    opacity: 0;
    transform: translate(0, 0) scale(0.8);
    transition: all 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bounce effect */
    will-change: transform, opacity;
}

/* Hướng di chuyển */
.slide-up {
    transform: translateY(180px) scale(0.8); /* Từ xa phía dưới lên */
}

.slide-right {
    transform: translateX(200px) scale(0.8); /* Từ xa bên phải bay vào */
}

.fade-up {
    transform: translateY(100px) scale(0.85); /* Mờ từ xa lên */
}

.fade-down {
    transform: translateY(-100px) scale(0.85); /* Mờ từ xa xuống */
}

/* Khi hiển thị */
.show {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}
