/*For all */
* {
    padding: 0;
    margin: 0;
}

html {
    height: 100%;
}

body {
    font-family: 'Times New Roman', Times, serif, cursive, Arial, sans-serif;
    min-height: 100%;
    overflow-x: hidden;
    background: #000000;
    color: white;
}

main {
    min-height: 75vh;
}

nav {
    height: 60px;
    background-color: rgb(58, 62, 83);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 20px rgba(20, 125, 85, 0.839);
    position: sticky;
    top: 0px;
    z-index: 1;
}

nav a {
    font-size: 18px;
    color: #fff;
    text-decoration: none;
}

nav a:hover {
    color: rgb(0, 243, 186);
    font-size: 20px;
}

.menu {
    float: right;
    line-height: 60px;
    display: none;
}

.menav a:active {
    color: black;
}

canvas {
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: -1;
}

#click {
    display: none;
}

#nav-logo {
    display: flex;
    align-items: center;
    font-size: 25px;
}

ul li {
    list-style: none;
    display: inline-block;
    margin: 15px;
}

nav ul li a.active {
    color: rgb(195, 255, 0);
}

/*Index Css*/
.i{
    align-items: center;
    width: 100vw;
}
.a1 {
    width: 50vw;
    display: inline-block;
    text-align: center;
    align-items: center;
}

.a2 {
    height: 180px;
    width: 178px;
    background-image: url(/image/mahendra.webp);
    background-size: cover;
}

.iaddjust {
    height: 10vh;
}

.homebtn {
    height: 50px;
    align-items: center;
    text-align: center;
    margin-left: 5%;
}

.Aboutbutton,
.button {
    height: 30px;
    width: 150px;
    background-color: #ffef0f;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.Aboutbutton:hover,
.button:hover {
    background-color: rgb(195, 255, 0);
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(255, 255, 255, 0.717);
}

/* Click Animation */
.Aboutbutton:active,
.button {
    transform: scale(0.95);
}

/*About CSS*/
.row1 {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.colume-side2 {
    margin: 5px;
    height: 200px;
    width: 200px;
    background-image: url(/image/mahen.webp);
    background-size: cover;
    border-radius: 10%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.594);
}

.colume-side3,
.colume-side4 {
    border: 1px solid rgba(110, 5, 5, 0.155);
    border-radius: 5%;
    margin: 5px;
    padding: 10px;
    margin: 20px;
    box-shadow: 0 0 20px rgba(3, 226, 255, 0.881);
}

.work,
.work a {
    color: #fff;
    display: flex;
    justify-content: space-evenly;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
    font-size: 30px;
}

/*Gallery CSS*/
.banner {
    top: 2px;
    width: 100%;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.banner .slider {
    position: absolute;
    width: 200px;
    height: 250px;
    top: 10%;
    left: calc(50% - 100px);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    animation: autoRun 50s linear infinite;
}

@keyframes autoRun {
    from {
        transform: perspective(1000px) rotateX(-14deg) rotateY(0deg);
    }

    to {
        transform: perspective(1000px) rotateX(-14deg) rotateY(360deg);
    }
}

.banner .slider .item {
    box-shadow: 0 0 20px rgba(7, 3, 255, 0.543);
    position: absolute;
    inset: 0 0 0 0;
    transform:
        rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(550px);
}

.banner .slider .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner .content {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1400px, 100vw);
    height: max-content;
    padding-bottom: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

@media screen and (max-width: 1023px) {
    .banner .slider {
        width: 160px;
        height: 200px;
        left: calc(50% - 80px);
    }

    .banner .slider .item {
        transform:
            rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(300px);
    }
}

@media screen and (max-width: 767px) {
    .banner .slider {
        width: 100px;
        height: 150px;
        left: calc(50% - 50px);
        display: block;
    }

    .banner .slider .item {
        transform:
            rotatey(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translatez(180px);
    }
}

.g1 {
    width: 100vw;
}

/* Footer Background Animation */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Footer Styling */
.footer {
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Social Icons Styling */
.social-icons {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: flex;
    justify-content: center;
}

.social-icons a {
    color: white;
    font-size: 24px;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
    display: inline-block;
}

/* Hover Animation */
.social-icons a:hover {
    color: #ffea00;
    transform: scale(1.5) rotate(10deg);
}

/* Footer Text Animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer p {
    animation: fadeIn 2s ease-in-out;
}

/*For Mobile phone */
@media (max-width:550px) {
    body {
        height: 100%;
        font-family: 'Times New Roman', Times, serif Arial, sans-serif;
        min-height: 100%;
        line-height: 1.5;
    }

    nav {
        z-index: 1;
        background-color: #3d4756;
        box-shadow: 0 0 20px rgb(10, 43, 47);
        width: 100vw;
    }

    .menu {
        display: block;
        padding: 15px;
    }

    nav ul {
        border-radius: 10px;
        position: fixed;
        top: 62px;
        right: -100%;
        height: 100vh;
        width: 50%;
        display: block;
        background: #171321;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.651);
    }

    #click:checked~ul {
        right: 0;

    }

    nav ul li {
        display: block;
        text-align: center;
    }

    nav a {
        padding: 15px;
    }

    nav ul li a:active {
        color: aqua;
    }

    .banner {
        top: 50px;
    }

    section {
        padding: 5px;
    }

    .work {
        display: block;
    }
}