* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    background: black;
    width: 100%;
}

/*---------star effect start----------*/

canvas {
    height: auto;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

/*---------star effect close---------*/

#canvas {
    width: 100%;
    height: inherit;
    position: absolute;
    top: 0;
    right: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

/*--------portfolio banner start--------------*/

.portfolio-bg {
    height: 700px;
    width: 100%;
    /* margin-top: 100px; */
    background-image: url(../images/portfolio-banner-final.jpg);
    background-position: 100% 100%;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
}

.portfolio-bg img {
    height: 150px;
    width: 650px;
    margin-top: 80px;
}

/* Mobile devices (up to 767px) */
@media (max-width: 767px) {
    .portfolio-bg {
        height: 200px;
    }

    .portfolio-bg img {
        height: 50px;
        width: 200px;
        margin-top: 10px;
    }
}

/* Tablets (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .portfolio-bg {
        height: 327px;
        background-size: contain;
    }

    .portfolio-bg img {
        height: 90px;
        width: 400px;
        margin-top: 50px;
    }
}

/* Small Laptops / Desktop (1025px to 1366px) */
@media (min-width: 1025px) and (max-width: 1366px) {
    .portfolio-bg {
        height: 500px;
    }

    .portfolio-bg img {
        height: 130px;
        width: 550px;
        margin-top: 50px;
    }
}

/*----------portfolio banner close------------*/

/*---------portfolio start------------*/

.main-port {
    /* border: 1px solid yellow; */
    padding: 0 0 50px 0;
}

.main-port .head-port {
    /* border: 1px solid red; */
    padding: 50px 0 50px 0;
    text-align: center;
    color: white;
}

.main-port .head-port h1 {
    color: white;
    font-family: Savate, sans-serif;
    font-weight: 600;
    letter-spacing: 2px;
}

.main-port .inner-port {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    padding: 0 150px 0 150px;
}

.main-port .inner-port .port1 {
    height: 435px;
    width: 47%;
    border: 2px dotted orange;
    box-shadow: 0 0 15px #F09E1F;
}

.main-port .inner-port .port1 .port {
    height: 350px;
    width: 100%;
    background: rgb(0, 0, 0);
}

.main-port .inner-port .port1 .port img {
    height: 100%;
    width: 100%;
    /* object-fit: contain; */
}

.main-port .inner-port .port1 .port-h {
    height: 80px;
    width: 100%;
    /* background: coral; */
    text-align: center;
    line-height: 80px;
}

.main-port .inner-port .port1 .port-h h2 {
    font-family: sora, sans-serif;
    font-size: 20px;
    color: white;
    font-weight: 400;
    letter-spacing: 2px;
}

/* Mobile devices (up to 767px) */
@media (max-width: 767px) {
    .main-port .inner-port {
        gap: 30px;
        padding: 0 0px 0 0px;
    }

    .main-port .inner-port .port1 {
        height: 280px;
        width: 100%;
    }

    .main-port .inner-port .port1 .port {
        height: 230px;
        width: 100%;
    }

    .main-port .inner-port .port1 .port-h {
        height: 50px;
        width: 100%;
        line-height: 50px;
    }
}

/* Tablets (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .main-port .inner-port {
        gap: 30px;
        padding: 0 0px 0 0px;
    }

    .main-port .inner-port .port1 {
        height: 320px;
        width: 48%;
    }

    .main-port .inner-port .port1 .port {
        height: 250px;
        width: 100%;
    }

    .main-port .inner-port .port1 .port-h {
        height: 70px;
        width: 100%;
        line-height: 70px;
    }
}

/* Small Laptops / Desktop (1025px to 1366px) */
@media (min-width: 1025px) and (max-width: 1366px) {
    .main-port .inner-port {
        padding: 0 30px 0 50px;
    }
}

/*---------portfolio close-----------*/




/*Ten part start*/
.wrapper {
    height: 100px;
    display: grid;
    place-items: center;
    background-color: rgb(9, 9, 9);
    transition: background-color 0.8s;
}

.marquee {
    display: grid;
    grid-template-columns: repeat(9, minmax(12vmin, 1fr));
    width: 100%;
    height: 100px;
    overflow: hidden;
    /* border: 2px solid yellow; */
    background: #81C5C4;
    mask-image: linear-gradient(to right,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 1) 10%,
            rgba(0, 0, 0, 1) 90%,
            rgba(0, 0, 0, 0));

    & img {
        --time: 50s;
        position: relative;
        width: 220px;
        height: 100%;
        aspect-ratio: 1;
        grid-column: 1;
        grid-row: 1;
        /* border: 2px solid orange; */
        object-fit: cover;
        cursor: pointer;
        left: calc(100% * 9);
        animation: marquee var(--time) linear infinite;

        &:nth-of-type(1) {
            animation-delay: calc((var(--time) / 9) * (9 - 1) * -1);
        }

        &:nth-of-type(2) {
            animation-delay: calc((var(--time) / 9) * (9 - 2) * -1);
        }

        &:nth-of-type(3) {
            animation-delay: calc((var(--time) / 9) * (9 - 3) * -1);
        }

        &:nth-of-type(4) {
            animation-delay: calc((var(--time) / 9) * (9 - 4) * -1);
        }

        &:nth-of-type(5) {
            animation-delay: calc((var(--time) / 9) * (9 - 5) * -1);
        }

        &:nth-of-type(6) {
            animation-delay: calc((var(--time) / 9) * (9 - 6) * -1);
        }

        &:nth-of-type(7) {
            animation-delay: calc((var(--time) / 9) * (9 - 7) * -1);
        }

        &:nth-of-type(8) {
            animation-delay: calc((var(--time) / 9) * (9 - 8) * -1);
        }

        &:nth-of-type(9) {
            animation-delay: calc((var(--time) / 9) * (9 - 9) * -1);
        }
    }
}

@keyframes marquee {
    to {
        left: -100%;
    }
}

dialog {
    border: none;
    outline: none;
    margin: auto;
    border-radius: 0.25rem;
    background-color: transparent;

    &::backdrop {
        display: none;
    }

    & img {
        width: min(800px, 80vw);
        aspect-ratio: 16/9;
        object-fit: cover;
        display: block;
    }
}

@media (min-width: 1025px) and (max-width: 1366px) {
    .marquee {
        grid-template-columns: repeat(9, minmax(16vmin, 1fr));
    }

    .marquee img {
        width: 160px;
    }
}

@media screen and (max-width:990px) {
    .marquee {
        grid-template-columns: repeat(6, minmax(16vmin, 1fr));
    }

    .marquee img {
        width: 160px;
    }
}

@media screen and (max-width:479px) {
    .marquee {
        grid-template-columns: repeat(3, minmax(20vmin, 1fr));
    }

    .marquee img {
        width: 160px;
    }

    dialog img {
        width: 95vw;
        aspect-ratio: auto;
    }
}

/*Ten part close*/




/*Cursor part start*/
.cursor {
    position: fixed;
    width: 13px;
    height: 13px;
    background: linear-gradient(0deg, rgba(34, 193, 195, 1) 0%, rgba(253, 187, 45, 1) 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}

/*Cursor part close*/

/*----------------------Scroll Button------------------------*/
.scroll-button {
    position: fixed;
    bottom: 10px;
    right: 20px;
    padding: 15px 15px;
    font-size: 35px;
    background-color: #82c6c5;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.715);
}

.scroll-button:hover {
    background-color: #f7d40c;
}