﻿
/* Fullscreen section */
.slider-fullscreen {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    z-index: 2;
    margin: 0; /* Remove any margin */
    padding: 0; /* Remove any padding */
    box-sizing: border-box; /* Ensures padding/border doesn't affect size */
}

/* Wrapper that replaces old .container */
.slider-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    max-width: 100%;
    position: relative;
    box-shadow: none !important; /* remove inner white box look */
    padding: 0;
    margin: 0;
    background: linear-gradient(to top right, black 0%, black 30%, transparent 100%);
}

.slide {
    height: 100%;
}


    .slide .item {
        width: 200px;
        height: 300px;
        position: absolute;
        top: 50%;
        transform: translate(0, -50%);
        background-position:80%;
        transition: 0.5s;
    }

        /* Position each item */
        .slide .item:nth-child(1) {
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            border-radius: 0;
            transform: none;
            background-position: left center;
            background-size: cover;
        }

        .slide .item:nth-child(2) {
            left: 55%;
            z-index: 12;
            top: 70%;
            border-radius: 16px; /* or 20px, adjust as you like */
            overflow: hidden;
            width: 250px; /* Increase the width */
            height: 400px; /* Increase the height */
         
        }

        .slide .item:nth-child(3) {
            left: calc(60% + 220px);
            z-index: 12;
            top: 75%;
            border-radius: 16px; /* or 20px, adjust as you like */
            overflow: hidden;
        }

        .slide .item:nth-child(4) {
            left: calc(60% + 440px);
            z-index: 12;
            top: 75%;
            border-radius: 16px; /* or 20px, adjust as you like */
            overflow: hidden;
        }


        .slide .item:nth-child(n + 5) {
            left: calc(50% + 660px);
            opacity: 0;
        }

/* Content styling */
.item .content {
    position: absolute;
    top: 50%;
    left: 100px;
    width: 300px;
    text-align: left;
    color: #eee;
    transform: translateY(-50%);
    display: none;
    z-index: 20;
}

.slide .item:nth-child(1) .content {
    display: block;
}

.content .name {
    font-size: 40px;
    font-weight: bold;
    animation: animate 1s ease-in-out 0.2s forwards;
    text-transform: uppercase;
}

.content .des {
    margin: 10px 0 20px;
    opacity: 0;
    animation: animate 1s ease-in-out 0.4s forwards;
}

.content button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    opacity: 0;
    animation: animate 1s ease-in-out 0.6s forwards;
    background: white;
    color: black;
    font-weight: bold;
    border-radius: 6px;
    transition: 0.3s;
}

    .content button:hover {
        background: #444;
        color: white;
    }

@keyframes animate {
    from {
        opacity: 0;
        transform: translateY(100px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Arrows */
.button {
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 20px;
    z-index: 999;
}

    .button button {
        width: 40px;
        height: 35px;
        border-radius: 8px;
        border: 1px solid #000;
        cursor: pointer;
        margin: 0 5px;
        background: white;
        transition: 0.3s;
    }

        .button button:hover {
            background: #ababab;
            color: #fff;
        }
.item {
    position: relative;
    overflow: hidden;
}

    .item img {
        width: 100%;
        height: 100%;
        object-fit: fill;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        border-radius: inherit;
    }

    .item .content {
        position: relative;
        z-index: 12;
    }

.slide .item:nth-child(2) img,
.slide .item:nth-child(3) img,
.slide .item:nth-child(4) img {
    border-radius: inherit;
}


.slider-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Adjust for how wide the black fade should go */
    height: 100%;
     background: linear-gradient(to top right, black 0%, black 15%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}
.name{

    color:green;
}



/* Large screens (default adjustments) */
@media (max-width: 1199px) {
    .slide .item:nth-child(2),
    .slide .item:nth-child(3),
    .slide .item:nth-child(4) {
        width: 180px;
        height: 300px;
        top: 58%;
        transform: translateX(0);
    }

    .slide .item:nth-child(2) {
        left: 50%;
    }

    .slide .item:nth-child(3) {
        left: calc(50% + 200px);
    }

    .slide .item:nth-child(4) {
        left: calc(50% + 400px);
    }

    .item .content {
        width: 240px;
        left: 40px;
    }
}

/* Medium screens */
@media (max-width: 992px) {
    .slide .item:nth-child(2),
    .slide .item:nth-child(3),
    .slide .item:nth-child(4) {
        width: 150px;
        height: 260px;
        top: 62%;
    }

    .slide .item:nth-child(2) {
        left: 46%;
    }

    .slide .item:nth-child(3) {
        left: calc(46% + 170px);
    }

    .slide .item:nth-child(4) {
        left: calc(46% + 340px);
    }

    .item .content {
        width: 200px;
        left: 30px;
        padding-top: 15px;
    }

    .content .name {
        font-size: 18px;
    }

    .content .des {
        font-size: 12px;
    }

    .content button {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Small tablets and large phones */
@media (max-width: 768px) {
    .slide .item:nth-child(2),
    .slide .item:nth-child(3),
    .slide .item:nth-child(4) {
        width: 120px;
        height: 210px;
        top: 64%;
    }

    .slide .item:nth-child(2) {
        left: 42%;
    }

    .slide .item:nth-child(3) {
        left: calc(42% + 130px);
    }

    .slide .item:nth-child(4) {
        left: calc(42% + 260px);
    }

    .item .content {
        width: 160px;
        left: 16px;
        padding-top: 12px;
    }

    .content .name {
        font-size: 16px;
    }

    .content .des {
        font-size: 11px;
    }

    .content button {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* Phones */
@media (max-width: 576px) {
    .slide .item:nth-child(2),
    .slide .item:nth-child(3),
    .slide .item:nth-child(4) {
        width: 100px;
        height: 180px;
        top: 62%;
    }

    .slide .item:nth-child(2) {
        left: 36%;
    }

    .slide .item:nth-child(3) {
        left: calc(36% + 110px);
    }

    .slide .item:nth-child(4) {
        left: calc(36% + 220px);
    }

    .item .content {
        width: 140px;
        left: 8px;
        padding-top: 10px;
    }

    .content .name {
        font-size: 14px;
    }

    .content .des {
        font-size: 10px;
    }

    .content button {
        font-size: 10px;
        padding: 4px 8px;
    }
}