

:root {
    --item1-transform: translateX(-100%) translateY(-5%) scale(1.5);
    --item1-filter: blur(30px);
    --item1-zIndex: 11;
    --item1-opacity: 0;

    --item2-transform: translateX(0);
    --item2-filter: blur(0px);
    --item2-zIndex: 10;
    --item2-opacity: 1;

    --item3-transform: translate(50%, 10%) scale(0.8);
    --item3-filter: blur(10px);
    --item3-zIndex: 9;
    --item3-opacity: 1;

    --item4-transform: translate(90%, 20%) scale(0.5);
    --item4-filter: blur(30px);
    --item4-zIndex: 8;
    --item4-opacity: 1;

    --item5-transform: translate(120%, 30%) scale(0.3);
    --item5-filter: blur(40px);
    --item5-zIndex: 7;
    --item5-opacity: 0;

    --primary-color: var(--primary);
    --secondary-color: var(--primary);
}

.carousel-container {
    position: relative;
    margin: 20px 0;
}

.carousel {
    position: relative;
    height: 800px;
    overflow: hidden;
    margin-top: 0px;
    font-family: Poppins, sans-serif;
}

.carousel .list {
    position: absolute;
    width: 1140px;
    max-width: 90%;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.carousel .list .item {
    position: absolute;
    left: 0%;
    width: 80%;
    height: 100%;
    font-size: 15px;
    transition: left .5s, opacity .5s, width .5s;
}

.carousel .list .item:nth-child(n + 6) {
    opacity: 0;
}

.carousel .list .item:nth-child(2) {
    z-index: 10;
    transform: translateX(0);
}

.carousel .list .item img {
    width: 50%;
    aspect-ratio: 500 / 500;
    height: auto;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: right 1.5s;
    object-fit: contain;
    max-height: 80%;
}

.carousel .list .item .introduce {
    opacity: 0;
    padding: 10px;
    pointer-events: none;
}

.carousel .list .item:nth-child(2) .introduce {
    opacity: 1;
    pointer-events: auto;
    width: 400px;
    padding: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity .5s;
}

.carousel .list .item .introduce .title {
    font-size: 2em;
    font-weight: 500;
    line-height: 1em;
    margin-bottom: 10px;
}

.carousel .list .item .introduce .topic {
    font-size: 2em;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 15px;
}

.carousel .list .item .introduce .des {
    font-size: small;
    color: #5559;
    margin-bottom: 20px;
    line-height: 1.5;
}

.carousel .list .item .introduce .seeMore {
    margin-top: 1.2em;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background .3s;
    cursor: pointer;
}

.carousel .list .item .introduce .seeMore:hover {
    background: var(--primary-hover);
}

.carousel .list .item:nth-child(1) {
    transform: var(--item1-transform);
    filter: var(--item1-filter);
    z-index: var(--item1-zIndex);
    opacity: var(--item1-opacity);
    pointer-events: none;
}

.carousel .list .item:nth-child(3) {
    transform: var(--item3-transform);
    filter: var(--item3-filter);
    z-index: var(--item3-zIndex);
}

.carousel .list .item:nth-child(4) {
    transform: var(--item4-transform);
    filter: var(--item4-filter);
    z-index: var(--item4-zIndex);
}

.carousel .list .item:nth-child(5) {
    transform: var(--item5-transform);
    filter: var(--item5-filter);
    opacity: var(--item5-opacity);
    pointer-events: none;
}

.carousel .list .item:nth-child(2) .introduce .title,
.carousel .list .item:nth-child(2) .introduce .topic,
.carousel .list .item:nth-child(2) .introduce .des,
.carousel .list .item:nth-child(2) .introduce .seeMore {
    opacity: 0;
    animation: showContent .5s 1s ease-in-out 1 forwards;
}

@keyframes showContent {
    from {
        transform: translateY(-30px);
        filter: blur(10px);
    }

    to {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0px);
    }
}

.carousel .list .item:nth-child(2) .introduce .topic {
    animation-delay: 1.2s;
}

.carousel .list .item:nth-child(2) .introduce .des {
    animation-delay: 1.4s;
}

.carousel .list .item:nth-child(2) .introduce .seeMore {
    animation-delay: 1.6s;
}

.carousel.next .item:nth-child(1) {
    animation: transformFromPosition2 .5s ease-in-out 1 forwards;
}

@keyframes transformFromPosition2 {
    from {
        transform: var(--item2-transform);
        filter: var(--item2-filter);
        opacity: var(--item2-opacity);
    }
}

.carousel.next .item:nth-child(2) {
    animation: transformFromPosition3 .7s ease-in-out 1 forwards;
}

@keyframes transformFromPosition3 {
    from {
        transform: var(--item3-transform);
        filter: var(--item3-filter);
        opacity: var(--item3-opacity);
    }
}

.carousel.next .item:nth-child(3) {
    animation: transformFromPosition4 .9s ease-in-out 1 forwards;
}

@keyframes transformFromPosition4 {
    from {
        transform: var(--item4-transform);
        filter: var(--item4-filter);
        opacity: var(--item4-opacity);
    }
}

.carousel.next .item:nth-child(4) {
    animation: transformFromPosition5 1.1s ease-in-out 1 forwards;
}

@keyframes transformFromPosition5 {
    from {
        transform: var(--item5-transform);
        filter: var(--item5-filter);
        opacity: var(--item5-opacity);
    }
}

.carousel.prev .list .item:nth-child(5) {
    animation: transformFromPosition4 .5s ease-in-out 1 forwards;
}

.carousel.prev .list .item:nth-child(4) {
    animation: transformFromPosition3 .7s ease-in-out 1 forwards;
}

.carousel.prev .list .item:nth-child(3) {
    animation: transformFromPosition2 .9s ease-in-out 1 forwards;
}

.carousel.prev .list .item:nth-child(2) {
    animation: transformFromPosition1 1.1s ease-in-out 1 forwards;
}

@keyframes transformFromPosition1 {
    from {
        transform: var(--item1-transform);
        filter: var(--item1-filter);
        opacity: var(--item1-opacity);
    }
}

.carousel .list .item .detail {
    opacity: 0;
    padding: 10px;
    pointer-events: none;
}

.carousel.showDetail .list .item:nth-child(3),
.carousel.showDetail .list .item:nth-child(4) {
    left: 100%;
    opacity: 0;
    pointer-events: none;
}

.carousel.showDetail .list .item:nth-child(2) {
    width: 100%;
}

.carousel.showDetail .list .item:nth-child(2) .introduce {
    opacity: 0;
    pointer-events: none;
}

.carousel.showDetail .list .item:nth-child(2) img {
    right: 50%;
}

.carousel.showDetail .list .item:nth-child(2) .detail {
    opacity: 1;
    width: 50%;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
    pointer-events: auto;
}

.carousel.showDetail .list .item:nth-child(2) .detail .title {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.carousel.showDetail .list .item:nth-child(2) .detail .price {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.carousel.showDetail .list .item:nth-child(2) .detail .des {
    font-size: 1em;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.carousel.showDetail .list .item:nth-child(2) .detail .specifications {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    border-top: 1px solid #5553;
    padding-top: 20px;
    margin-bottom: 25px;
}

.carousel.showDetail .list .item:nth-child(2) .detail .specifications div {
    min-width: 90px;
    text-align: center;
    flex-shrink: 0;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 8px;
}

.carousel.showDetail .list .item:nth-child(2) .detail .specifications div p:nth-child(1) {
    font-weight: bold;
    margin-bottom: 5px;
}

.carousel.showDetail .list .item:nth-child(2) .detail .specifications div p:nth-child(2) {
    color: #666;
}

.carousel.showDetail .list .item:nth-child(2) .detail .actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.carousel.showDetail .list .item:nth-child(2) .detail .actions a,
.carousel.showDetail .list .item:nth-child(2) .detail .actions button {
    padding: 12px 16px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #ddd;
    background: #fff;
    font-weight: 500;
    text-decoration: none;
    color: #333;
}

.carousel.showDetail .list .item:nth-child(2) .detail .actions a.primary,
.carousel.showDetail .list .item:nth-child(2) .detail .actions button.primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.carousel.showDetail .list .item:nth-child(2) .detail .actions a.primary:hover,
.carousel.showDetail .list .item:nth-child(2) .detail .actions button.primary:hover {
    background: var(--primary-hover);
}

.carousel.showDetail .list .item:nth-child(2) .detail .title,
.carousel.showDetail .list .item:nth-child(2) .detail .price,
.carousel.showDetail .list .item:nth-child(2) .detail .des,
.carousel.showDetail .list .item:nth-child(2) .detail .specifications,
.carousel.showDetail .list .item:nth-child(2) .detail .actions {
    opacity: 0;
    animation: showContent .5s 1s ease-in-out 1 forwards;
}

.arrows {
    position: absolute;
    bottom: 10px;
    width: 1140px;
    max-width: 90%;
    display: flex;
    justify-content: space-between;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

#prev,
#next {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #5555;
    font-size: 20px;
    cursor: pointer;
    transition: all .3s ease;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
    display: flex;
    align-items: center;
    justify-content: center;
}

#prev:hover,
#next:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

#prev:disabled,
#next:disabled {
    opacity: .4;
    cursor: not-allowed;
}

#back {
    border: none;
    border-radius: 4px;
    font-weight: bold;
    letter-spacing: 1px;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    transition: all .5s;
    cursor: pointer;
    display: none;
}

#back:hover {
    background: var(--primary-hover);
}

.carousel.showDetail #back {
    display: block;
}

.carousel.showDetail #prev,
.carousel.showDetail #next {
    opacity: 0;
    pointer-events: none;
}

.carousel::before {
    width: 500px;
    height: 300px;
    content: '';
    background-image: linear-gradient(70deg, var(--secondary-color), var(--primary-color));
    position: absolute;
    z-index: -1;
    border-radius: 20% 30% 80% 10%;
    filter: blur(150px);
    top: 50%;
    left: 50%;
    transform: translate(-10%, -50%);
    transition: 1s;
}

.carousel.showDetail::before {
    transform: translate(-100%, -50%) rotate(90deg);
    filter: blur(130px);
}

/* Tablet Styles */
@media screen and (max-width: 1024px) {
    .carousel {
        height: 700px;
        margin-top: -50px;
    }

    .carousel .list .item:nth-child(2) .introduce {
        width: 350px;
    }

    .carousel .list .item .introduce .title {
        font-size: 1.8em;
    }

    .carousel .list .item .introduce .topic {
        font-size: 1.8em;
    }
}

/* Mobile Styles */
@media screen and (max-width: 767px) {
    .carousel {
        height: 550px;
        margin-top: 0;
    }

    .carousel .list .item {
        width: 100%;
        font-size: 12px;
    }

    /* Introduce section - make it more readable on mobile */
    .carousel .list .item:nth-child(2) .introduce {
        width: 90%;
        max-width: 300px;
        padding: 15px;
    }

    .carousel .list .item .introduce .title {
        font-size: 1.5em;
        margin-bottom: 8px;
    }

    .carousel .list .item .introduce .topic {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    .carousel .list .item .introduce .des {
        font-size: 0.85em;
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .carousel .list .item .introduce .seeMore {
        padding: 8px 16px;
        font-size: 0.85em;
    }

    /* Image adjustments */
    .carousel .list .item img {
        width: 100%;
        aspect-ratio: 500 / 500;
        height: auto;
        position: relative;
        right: auto;
        top: 20%;
        transform: translateY(0);
        max-height: 250px;
        margin: 0 auto;
        display: block;
    }

    /* Detail view - full screen on mobile */
    .carousel.showDetail .list .item:nth-child(2) {
        width: 100%;
    }

    .carousel.showDetail .list .item:nth-child(2) img {
        width: 100%;
        right: auto;
        top: 10%;
        max-height: 200px;
        position: relative;
        transform: translateY(0);
    }

    .carousel.showDetail .list .item:nth-child(2) .detail {
        width: 100% !important;
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        text-align: left;
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, .95);
        padding: 20px;
        border-radius: 15px;
        margin-top: 20px;
        max-height: 300px;
        overflow-y: auto;
    }

    .carousel.showDetail .list .item:nth-child(2) .detail .title {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    .carousel.showDetail .list .item:nth-child(2) .detail .price {
        font-size: 1.3em;
        margin-bottom: 10px;
    }

    .carousel.showDetail .list .item:nth-child(2) .detail .des {
        font-size: 0.9em;
        margin-bottom: 15px;
        line-height: 1.5;
    }

    .carousel.showDetail .list .item:nth-child(2) .detail .specifications {
        gap: 10px;
        padding-top: 15px;
        margin-bottom: 15px;
        justify-content: flex-start;
    }

    .carousel.showDetail .list .item:nth-child(2) .detail .specifications div {
        min-width: 80px;
        padding: 8px;
        font-size: 0.85em;
    }

    .carousel.showDetail .list .item:nth-child(2) .detail .actions {
        justify-content: flex-start;
        gap: 8px;
    }

    .carousel.showDetail .list .item:nth-child(2) .detail .actions a,
    .carousel.showDetail .list .item:nth-child(2) .detail .actions button {
        padding: 10px 14px;
        font-size: 0.9em;
        flex: 1;
        text-align: center;
    }

    /* Arrows/Navigation */
    .arrows {
        bottom: 5px;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }

    #prev,
    #next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    #back {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    /* Adjust carousel container */
    .carousel-container {
        margin: 10px 0;
    }
}

/* Extra small screens */
@media screen and (max-width: 480px) {
    .carousel {
        height: 500px;
    }

    .carousel .list .item:nth-child(2) .introduce {
        width: 85%;
        max-width: 250px;
        padding: 10px;
    }

    .carousel .list .item .introduce .title {
        font-size: 1.3em;
    }

    .carousel .list .item .introduce .topic {
        font-size: 1.3em;
    }

    .carousel .list .item .introduce .des {
        font-size: 0.8em;
    }

    .carousel.showDetail .list .item:nth-child(2) .detail {
        padding: 15px;
        max-height: 280px;
    }

    .carousel.showDetail .list .item:nth-child(2) .detail .title {
        font-size: 1.3em;
    }

    .carousel.showDetail .list .item:nth-child(2) .detail .price {
        font-size: 1.2em;
    }

    .carousel.showDetail .list .item:nth-child(2) .detail .specifications div {
        min-width: 70px;
        font-size: 0.75em;
    }

    #prev,
    #next {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}
 .hero-gradient {
        background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/storage/home/photo-1520340356584-f9917d1eea6f_hero.avif');
        background-size: cover;
        background-position: center;
    }

.stats-bg {
            background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('/storage/home/photo-1552519507-vcb.avif');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
        }

 .promo-card-bg {
        background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/storage/home/photo-1520340356584-f9917d1eea6f_hero.avif');
        background-size: cover;
        background-position: center;
    }


    
