/* ===================================
   SERVICES SECTION STYLES
   ===================================
   Services section with orbital layout
*/

.services {
    /* background: linear-gradient(180deg, #4b5563, #0a0a0a); */
    position: relative;
    /* min-height: 100vh; */
    height: 1100px;
    display: flex;
    flex-direction: column;
    padding: 90px 0;
}

.services h2 {
    flex-shrink: 0; /* Không co lại */
    margin: 0 auto 30px auto;
    text-align: center;
    z-index: 10;
}

.service-container {
    position: relative;
    
    width: 100%;
    flex: 1; /* Chiếm không gian còn lại */
    max-width: 1200px;
    margin: 0 auto;
    min-height: 600px; /* Minimum height để đảm bảo layout */
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-image {
    position: absolute; /* Thay đổi từ absolute thành relative */
    width: 400px;
    height: 400px;
    background: url(/assets/images/VietRover-T5_no.png) no-repeat center/cover;
    border-radius: 50%;
    border: 3px solid #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.service-item {
    position: absolute;
    width: 200px;
    text-align: center;
    transition: transform 0.3s ease;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid #6b7280;
    backdrop-filter: blur(5px);
    z-index: 1; /* Thêm z-index cơ bản */
}

.service-item:hover {
    transform: scale(1.1);
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
    z-index: 1000; /* Tăng z-index khi hover để lên trên cùng */
}

.service-item h3 {
    /* font-family: 'Orbitron', sans-serif; */
    font-size: 18px;
    color: #ffd700;
    margin-bottom: 10px;
}

.service-item .content {
    display: none;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #6b7280;
    position: absolute;
    top: 100%;
    font-size: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    z-index: 1001; /* Z-index cao hơn service-item */
    margin-top: 10px;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
}

.service-item .content::before {
    content: '';
    position: absolute;
    top: -10px; /* Chiều cao bằng margin-top */
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
    z-index: 1002;
}

@media (min-width: 1025px) {
    .service-item:hover .content {
        display: block;
        animation: fadeInUp 0.3s ease forwards;
        cursor: pointer;
    }
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.service-item p {
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
}


/* Mobile Services Styles */
@media (max-width: 768px) {
    .services {
        height: auto;
        padding: 50px 20px;
    }
    
    .service-container {
        position: static;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .service-image {
        position: static;
        transform: none;
        width: 200px;
        height: 200px;
        margin: 0 auto 30px;
    }
    
    .service-item {
        position: static;
        width: 90%;
        max-width: 400px; /* Giới hạn width tối đa */
        margin: 0 auto 20px auto; /* Căn giữa với margin auto */
        transform: none !important;
    }
    
    .service-item .content {
        position: static;
        display: block;
        transform: none;
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .services {
        padding: 40px 15px;
    }
    
    .service-image {
        width: 150px;
        height: 150px;
    }
    
    .service-item {
        width: 95%;
        max-width: 350px;
        margin: 0 auto 15px auto;
    }
    
    .service-item h3 {
        font-size: 16px;
    }
    
    .service-item p {
        font-size: 12px;
    }

}