/* assets/style.css */
.container {
    max-width: 1100px
}

@layer utilities {
    .preserve-3d {
        transform-style: preserve-3d;
    }
}

/* Keyframes xoay slider */
@keyframes rotateCarousel {
    from {
        transform: rotateX(-20deg) rotateY(0deg);
    }

    to {
        transform: rotateX(-20deg) rotateY(360deg);
    }
}

@layer utilities {
    .animate-rotateCarousel {
        animation: rotateCarousel 40s linear infinite;
        animation-play-state: running;
        /* mặc định chạy */
    }

    /* Khi hover slider thì dừng */
    .animate-rotateCarousel:hover {
        animation-play-state: paused;
    }
}

/* Slider container perspective */
#slider {
    transform-origin: center center;
}

/* CSS riêng cho item (dùng biến --translateZ để responsive động) */
.item {
    position: absolute;
    inset: 0;
    transform: rotateY(calc((var(--position) - 1) * (360deg / var(--quantity)))) translateZ(var(--translateZ, 400px));
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Hover effect nhẹ để biết item có thể click */
.item:hover {
    transform: rotateY(calc((var(--position) - 1) * (360deg / var(--quantity)))) translateZ(var(--translateZ, 400px)) scale(1.15);
    z-index: 10;
}

.slider-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(16, 185, 129, 0.25), transparent 20%),
        radial-gradient(circle at 70% 70%, rgba(59, 130, 246, 0.25), transparent 20%);
    filter: blur(80px);
    /* mượt hơn */
    z-index: -1;
}

/* header {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
} */






.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
}

img {
    background: #f3f4f6;
}

img[src*="logo"] {
    background: transparent !important;
}




#app-desc h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

#app-desc h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

#app-desc p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

#app-desc ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

#app-desc li {
    margin-bottom: 0.5rem;
}

#carousel-wrap {
    perspective: 1200px;
}

#carousel {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* mỗi item: đặt vào tâm, sau đó translateZ / rotateY để xếp vòng */
#carousel .carousel-item {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center center;
    transition: transform 0.6s ease, opacity 0.4s ease;
    will-change: transform, opacity;
    cursor: pointer;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

#carousel .carousel-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
    /* rounded-xl */
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    user-select: none;
    pointer-events: none;
}

/* mobile adjustments */
@media (max-width:640px) {
    .container {
        padding-left: 16px;
        padding-right: 16px
    }
}