* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: rgb(4, 4, 119) !important;
    animation: animateBg 5s linear infinite;
}

@keyframes animateBg {
    100% {
        filter: hue-rotate(360deg);
    }
}

/* nav and headerstart */

header {
    background-color: rgb(116, 228, 10) !important;
    opacity: 2;
}

.nav-link {
    color: rgb(103, 3, 3) !important;
    font-weight: 500;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;


}

nav::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgb(9, 5, 73);
    z-index: -1;
}

.nav-item a {

    position: relative;
    text-decoration: none;
    margin: 20px;
    color: rgb(6, 255, 205);

    display: inline-block;
    font-size: 1em;
    z-index: 1;
    margin-left: 50pxx;

    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay: calc(.2s * var(--i));


}




.nav-item span {
    position: absolute;
    top: 0;
    left: 0;
    width: 95px;
    height: 62px;
    background: linear-gradient(160deg, rgb(109, 107, 107), violet);
    border-radius: 20px;
    transition: 0.7s;
}

.nav-item a:nth-child(1):hover~span {
    left: 0;
}

.nav-item a:nth-child(2):hover~span {
    left: 87px;
}

.nav-item a:nth-child(3):hover~span {
    left: 175px;
}

.nav-item a:nth-child(4):hover~span {
    left: 265px;
}

.nav-item a:nth-child(5):hover~span {
    left: 350px;
}

.port h4 {
    color: rgb(245, 245, 233);
    font-weight: 700;
    margin-right: 60px;
    user-select: none;
    opacity: 0;
    animation: slideTop 1s ease forwards;
}

@keyframes slideTop{
    0%{
        opacity: 0;
        transform: translateY(100px);
    }

    100%{
        opacity: 1;
        transform: translateY(0);
    }

}

.menu-icons {
    display: none;
    font-size: 2.2rem;
    color: rgb(162, 9, 126);
    cursor: pointer;

}

#check {}

.title {
    display: none;
}

header {
    display: none !important;
}

@media screen and (min-width: 668px) {}

@media screen and (max-width: 668px) {
    .port {
        display: none;

    }

    nav {
        display: none;
    }



    .title {
        display: block;
    }

    header {
        display: block !important;
    }

}

/* Nav End */
/* Home Start */


.home-image {
    width: 500px;
    height: 500px;
    background-color: seagreen;

}



.home-content {
    max-width: 600px;
    color: whitesmoke;
}

.home-content h1 {
    font-size: 55px;
    line-height: 1.2;
}

.home-content h2 {
    opacity: 0;
    animation: slideRight .5s ease forwards;
    animation-delay: .7s;
}

@keyframes slideRight {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.home-content h3 {
   
}



.home-content h3 {
    font-size: 40px;
    color: transparent;
    -webkit-text-stroke: .5px #fff;
    background-image: linear-gradient(#00abf0, #00abf0);
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-position: -595px 0;
    animation: animateText 5s linear infinite;

}

@keyframes animateText {

    0%,
    100%,
    100% {
        background-position: -595px 0;
    }

    65%,
    85% {
        background-position: 0 0;
    }
}

@keyframes slideLeft {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}


.home-content p {
    font-size: 16px;
    margin-top: 20px;

    opacity: 0;
    animation: slideLeft .8s ease forwards;
    animation-delay: .8s;
}

.home-sci {
    margin: 25px 0 40px;
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 20px;
    color: #00abf0;
    text-decoration: none;
    margin-right: 12px;
    transition: .5s;

    opacity: 0;
    animation: slideRight .8s ease forwards;
    animation-delay: .1s;
}

.home-sci a:hover {
    background: #00abf0;
    color: #fff;
    border-color: #00abf0;
    box-shadow: 0 0 10px #00abf0;
}

.btn {
    padding: 12px 35px;
    background: transparent !important;
    border-radius: 40px;
    font-size: 17px;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 0 10px #00abf0;
    transition: .7s !important;

    opacity: 0;
    animation: slideLeft .8s ease forwards;
    animation-delay: .1s;
}

.btn:hover {
    background: black !important;
}

@media screen and (min-width: 992px) {
    .home {
        height: 95vh;
        display: flex;
        align-items: center;
        justify-content: space-between;

    }

}

.homeimgdiv {
    position: relative;
}

.homeimgdiv span {
    position: absolute;
    background: linear-gradient(128deg, rgb(59, 4, 169), gold) !important;
    width: 310px !important;
    height: 310px !important;
    border-radius: 50%;
    animation: circleRotate 8s linear infinite;
    z-index: -1;


}

.homeimg {

    width: 295px !important;
    height: 295px !important;
    border-radius: 50%;

    opacity: 0;
    animation: zoomIn .8s ease forwards;
    animation-delay: .1s;


}

@keyframes zoomIn{
    0%{
        opacity: 0;
        transform: scale(0);
    }

    100%{
        opacity: 1;
        transform: scale(1);
    }
}

@media screen and (max-width: 340px) {
    .homeimg {
        width: 200px !important;
        height: 200px !important;
    }

    .homeimgdiv span {
        width: 215px !important;
        height: 215px !important;
    }
}

@keyframes circleRotate {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }

}

/* Home End */
/* About Start */
.aboutimg {
    width: 250px;
    height: 250px;
    border-radius: 50%;
}

.abouttxt {
    color: violet;
    font-weight: 700;

}

#abouttxt {
    margin-top: 90px;
}

@media screen and (min-width: 992px) {
    .aboutdiv {
        height: 90vh;


        text-align: center;
    }
}

/* About End */
/* Project Start */

.mainimage {
    position: relative;
    width: 850px !important;
    height: 400px !important;


}

.overlay {
    position: absolute;
    bottom: 0;
    background: rgb(0, 0, 0);
    background: rgba(0, 0, 0, 0.5);
    /* Black see-through */
    color: #f1f1f1;
    width: 97.2%;
    transition: .5s ease;
    opacity: 0;
    color: white;
    font-size: 20px;
    padding: 20px;
    text-align: center;
}

.mainimage:hover .overlay {
    opacity: 1;
}

@media screen and (max-width: 992px) {
    .overlay {
        width: 96.8%;
    }
}

@media screen and (max-width: 768px) {
    .overlay {
        width: 95.5%;
    }

    .mainimage {
       
        height: 350px !important;


    }


}

.mainimage img {
    display: block !important;
    width: 100%;
    height: 100%;
}

.prev i {
    transition: 0.7s;
}

.next i {
    transition: 0.7s;
}



.prev i:hover {
    transform: translateX(-10px) !important;
}

.next i:hover {
    transform: translateX(10px) !important;
}

.smallimage {
    transition: 0.7s;
}

.smallimage:hover {
    transform: scale(1.1);

}




@media screen and (max-width: 992px) {
    .smallimage {
        display: none;
    }

}

@media screen and (min-width: 992px) {
    .project {
        height: 100vh;

    }

}

/* Project End */
/* Skills Start */

/* Make sure that padding behaves as expected */


/* Container for skill bars */
.skill-container {
    width: 100%;
    /* Full width */
    background-color: #ddd;
    /* Grey background */
}

.skills {
    text-align: right;
    /* Right-align text */
    padding-top: px;
    /* Add top padding */
    padding-bottom: px;
    /* Add bottom padding */
    color: white;
    /* White text color */
}

.html {
    width: 90%;
    background-color: #04AA6D;
}

/* Green */
.css {
    width: 80%;
    background-color: #2196F3;
}

/* Blue */
.js {
    width: 65%;
    background-color: #f44336;
}

/* Red */
.php {
    width: 60%;
    background-color: #808080;
}

/* Dark Grey */

.progress-bar {
    padding: 25px;
    border: 5px solid blueviolet;
    border-radius: 10px;
}



@media screen and (min-width: 992px) {
    .skill-div {


        height: 90vh;
        align-items: center !important;

    }
}

/* Skills End */
/* Contact Start */


.send-button {
    position: relative;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.508);
    padding: 10px;
    border-radius: 10px;
    letter-spacing: 0.4em;
    text-align: center;
    background-color: transparent;
    z-index: 1;
    font-weight: 700;
}

.send-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(25, 112, 142);

    z-index: -1;
    transform-origin: left;
    transition: transform 0.5s ease;
    transform: scale(1);
    border-radius: 8px;
}

.send-button:hover::before {
    transform-origin: right;
    transition: transform 0.5s ease;
    transform: scaleX(0);

}

.send-button:hover {
    color: white !important;
}



.reset-button {
    position: relative;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.508);
    padding: 10px;
    border-radius: 10px;
    letter-spacing: 0.4em;
    text-align: center;
    background-color: transparent;
    z-index: 1;
    font-weight: 700;
    float: right;
}

.reset-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(25, 112, 142);

    z-index: -1;
    transform-origin: left;
    transition: transform 0.5s ease;
    transform: scale(1);
    border-radius: 8px;
}

.reset-button:hover::before {
    transform-origin: right;
    transition: transform 0.5s ease;
    transform: scaleX(0);

}

.reset-button:hover {
    color: white !important;
}



input,textarea  {
    color: white;
}

@media screen and (min-width: 992px) {

    .contact {

        height: 80vh;

    }

}

/* Contact End */