@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Bungee&family=Oswald:wght@400;700&display=swap');

: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;
}

* {
    font-family: 'Oswald', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #F4F4F4;
    font-family: Poppins;
    color: white;
}

nav {
    font-size: 20px;
}

.carousel {
    position: relative;
    height: 900px;
    overflow: hidden;
    margin-top: 0px;
    z-index: 1;
    color: white;
}

.carousel::before {
    content: '';
    width: 500px;
    height: 300px;
    background-image: linear-gradient(70deg, #DC422A, blue);
    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);
}

.carousel .list {
    position: absolute;
    width: 1140px;
    max-width: 90%;
    height: 80%;
    left: 50%;
    transform: translateX(-50%);
}

.carousel .list .item {
    position: absolute;
    left: 0%;
    width: 70%;
    height: 100%;
    font-size: 15px;
    transition: left 0.5s, opacity 0.5s, width 0.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%;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: right 1.5s;
}

.carousel .list .item .introduce {
    opacity: 0;
    pointer-events: none;
}

.carousel .list .item:nth-child(2) .introduce {
    opacity: 1;
    pointer-events: auto;
    width: 400px;
    position: absolute;
    top: 50%;
    transform:  translateY(-50%);
    transition: opacity 0.5s;
}

.carousel .list .item .introduce .title {
    font-size: 2em;
    font-weight: 500;
    line-height: 1em;
}

.carousel .list .item .introduce .topic {
    font-size: 4em;
    font-weight: 500;
}

.carousel .list .item .introduce .des {
    font-size: small;
    color: #5559;
}

.carousel .list .item .introduce .seeMore {
    font-family: Poppins;
    margin-top: 1.2em;
    padding: 5px 0;
    border: none;
    border-bottom: 1px solid #555;
    background-color: transparent;
    font-weight: bold;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel .list .item .introduce .seeMore:hover {
    background: #000;
    color: white;
    padding: 5px 10px;
}

.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 0.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 0.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 0.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 0.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 0.5s ease-in-out 1 forwards;
}

.carousel.prev .list .item:nth-child(4) {
    animation: transformFromPosition3 0.7s ease-in-out 1 forwards;
}

.carousel.prev .list .item:nth-child(3) {
    animation: transformFromPosition2 0.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;
    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: 4em;
}

.carousel.showDetail .list .item:nth-child(2) .detail .specifications {
    display: flex;
    gap: 10px;
    width: 100%;
    border-top: 1px solid #5553;
    margin-top: 20px;
}

.carousel.showDetail .list .item:nth-child(2) .detail .specifications div {
    width: 90px;
    text-align: center;
    flex-shrink: 0;
}

.carousel.showDetail .list .item:nth-child(2) .detail .specifications div p:nth-child(1) {
    font-weight: bold;
}

.carousel.carousel.showDetail .list .item:nth-child(2) .checkout button {
    font-family: Poppins;
    background-color: transparent;
    border: 1px solid #5555;
    margin-left: 5px;
    padding: 5px 10px;
    background-color: #693EFF;
    color: #eee;
    letter-spacing: 2px;
    font-weight: 500;
}

.carousel.carousel.showDetail .list .item:nth-child(2) .checkout button:nth-child(2) {
    background-color: #693EFF;
    color: #eee;
}

.carousel.showDetail .list .item:nth-child(2) .detail  .title,
.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 .checkout {
    opacity: 0;
    animation: showContent 0.5s 1s ease-in-out 1 forwards;
}

.carousel.showDetail .list .item:nth-child(2) .detail  .des {
    animation-delay: 1.2s;
}

.carousel.showDetail .list .item:nth-child(2) .detail .specifications {
    animation-delay: 1.4s;
}

.carousel.showDetail .list .item:nth-child(2) .detail .checkout {
    animation-delay: 1.6s;
}

.arrows {
    position: absolute;
    bottom: 10px;
    width: 100%; /* Changed from 1140px to 100% */
    max-width: 90%;
    display: flex;
    justify-content: space-between;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12; /* Added to ensure arrows are visible on top */
}

#prev,
#next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-family: monospace;
    border: 1px solid #5555;
    font-size: large;
    bottom: 20%;
    background-color: rgba(0, 0, 0, 0.5); /* Added for better visibility */
    color: white; /* Added for better visibility */
    cursor: pointer; /* Added to indicate clickable */
}

#prev {
    left: 10px; /* Changed from 10% */
}

#next {
    right: 10px; /* Changed from 10% */
}

#back {
    display: none; /* Initially hide the button */
    position: absolute;
    z-index: 100;
    bottom: 0%;
    left: 50%;
    transform: translateX(-50%);
    border: none;
    border-bottom: 1px solid #555;
    font-family: Poppins;
    font-weight: bold;
    letter-spacing: 3px;
    background-color: transparent;
    padding: 10px;
    transition: opacity 0.5s;
}

.carousel.showDetail #back {
    display: block; /* Show the button when in detail view */
}

#background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #000000;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
}

#blur-effect {
    position: absolute;
    width: 500px;
    height: 300px;
    background-image: linear-gradient(70deg, #DC422A, blue);
    border-radius: 20% 30% 80% 10%;
    filter: blur(150px);
    top: 50%;
    left: 50%;
    transform: translate(-10%, -50%);
    transition: 1s;
    opacity: 0.7;
}

.animation-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.animation-container h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 120px;
    color: white;
    padding: 0 clamp(1rem, 2vw, 3rem);
    border-radius: clamp(0.4rem, 0.75vw, 1rem);
    transition: background-color 0.3s, color 0.3s;
    cursor: default;
}

.banner-image {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    max-height: 400px;
    width: auto;
}

@media (min-width: 768px) {
    .banner-image {
        width: auto;
        height: 500px;
        max-height: none;
        object-fit: contain;
    }
}

@media (max-width: 767px) {
    .arrows {
        display: flex; /* Ensure arrows are displayed on mobile */
        bottom: 20px; /* Adjust position for mobile */
        z-index: 9999; /* Increase z-index to ensure visibility */
    }

    #prev,
    #next {
        width: 30px; /* Smaller size for mobile */
        height: 30px;
        font-size: medium;
        background-color: rgba(0, 0, 0, 0.5); /* Ensure background for visibility */
        color: white; /* Ensure arrows are visible */
        cursor: pointer; /* Indicate clickable */
    }

    .banner-image {
        width: 100%;
        max-height: 300px;
        margin: 20px auto;
    }
}

@media screen and (max-width: 991px) {
    .carousel .list .item {
        width: 90%;
    }

    .carousel.showDetail .list .item:nth-child(2) .detail .specifications {
        overflow: auto;
    }

    .carousel.showDetail .list .item:nth-child(2) .detail .title {
        font-size: 2em;
    }
}

@media screen and (max-width: 767px) {
    .carousel {
        height: 600px;
    }

    /* Remove this block to keep arrows visible on mobile */
    /*.arrows {
        display: none;
    }*/

    .arrows {
        bottom: 20px; /* Adjust position for mobile */
    }

    #prev,
    #next {
        width: 30px; /* Smaller size for mobile */
        height: 30px;
        font-size: medium;
    }

    .banner-image {
        width: 100%;
        max-height: 300px;
        margin: 20px auto;
    }

    .carousel .list .item {
        width: 100%;
        font-size: 10px;
    }
    
    .carousel .list {
        height: 100%;
    }

    .carousel .list .item:nth-child(2) .introduce {
        width: 50%;
    }
    
    .carousel .list .item img {
        width: 40%;
    }

    .carousel.showDetail .list .item:nth-child(2) .detail {
        backdrop-filter: blur(10px);
        font-size: small;
    }

    .carousel .list .item:nth-child(2) .introduce .des,
    .carousel.showDetail .list .item:nth-child(2) .detail .des {
        height: 100px;
        overflow: auto;
    }

    .carousel.showDetail .list .item:nth-child(2) .detail .checkout {
        display: flex;
        width: max-content;
        float: right;
    }
}

.checkout {
    padding-top: 15px;
    text-align: right;
    padding-right: 30px;
}

.checkout button {
    font-family: Poppins;
    margin-right: 0;
    margin-left: 0;
    padding: 10px 25px;
    color: white;
    letter-spacing: 2px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    background: linear-gradient(270deg, #DC422A, #693EFF, #DC422A, #693EFF);
    background-size: 300% 100%;
    box-shadow: 0 5px 15px rgba(105, 62, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.checkout button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(105, 62, 255, 0.5);
    letter-spacing: 3px;
    animation: gradientShift 3s ease infinite;
}

.checkout button:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 10px rgba(105, 62, 255, 0.3);
}

.checkout button::before {
    display: none;
}

.checkout button::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.6s ease;
    z-index: -1;
}

.checkout button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(105, 62, 255, 0.3);
}

/* Add ripple effect on click */
.checkout button.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    from {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

.des {
    color: white !important;
    font-size: 18px !important;
    font-family: Arial, sans-serif !important;
}

.item img {
    max-width: 100%;
    height: auto;
    display: block;
}

.item {
    width: 100px;
    height: auto;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    margin: 5px;
}

/* Add these styles at the end of the file */

.features-section {
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-title {
    text-align: center;
    font-size: 3em;
    margin-bottom: 50px;
    color: white;
    font-family: 'Blanka', sans-serif;
    letter-spacing: 2px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.features-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #DC422A, #693EFF);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
}

.feature-card {
    background: rgba(20, 20, 20, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(20, 20, 20, 0.5);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card i {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #693EFF;
    background: linear-gradient(45deg, #DC422A, #693EFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: white;
}

.feature-card p {
    color: #999;
    line-height: 1.6;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .features-section {
        padding: 40px 15px;
    }

    .features-title {
        font-size: 2em;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 20px;
    }
}

/* Update the slider item styles to include horizontal padding */
.slider .list .item {
    width: var(--width);
    height: var(--height);
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    margin: 3px;
    flex-shrink: 0;
    padding: 0 2px; /* Added 2px padding on left and right */
}

/* Ensure the product info section aligns with the padding */
.slider .list .item .product-info {
    position: absolute;
    bottom: 0;
    left: 2px; /* Align with the left padding */
    right: 2px; /* Align with the right padding */
    width: calc(100% - 4px); /* Account for the padding */
    padding: 10px;
    background: transparent;
    color: white;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Update the product info section to have only transparent background */
.slider .list .item .product-info {
    position: absolute;
    bottom: 0;
    left: 2px;
    right: 2px;
    width: calc(100% - 4px);
    padding: 10px;
    background: transparent;
    color: white;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Keep text shadow for readability */
}

/* Remove the gradient overlay by removing this entire block
.slider .list .item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    pointer-events: none;
}
*/

