@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");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

:root {
    --bg-color: #081b29;
    --second-bg-color: #112e42;
    --text-color: #ededed;
    --main-color: #00abf0;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: 0.3s;
}

.header.sticky {
    background-color: var(--bg-color);
}

.logo {
    position: relative;
    font-size: 25px;
    color: #ededed;
    font-weight: 600;
    margin-left: 1rem;
}

.logo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #081b29;
    animation: showRight 1s ease forwards;
    animation-delay: 0.4s;
}

.navbar a {
    position: relative;
    font-size: 1.7rem;
    color: #ededed;
    font-weight: 500;
    margin-left: 3.5rem;
    transition: .3s ease;
}

/* .navbar a::before{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: var(--bg-color);
    animation: showRight 1s ease forwards ;
} */

/* .navbar a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0%;
  background: var(--main-color);
  transition: width 0.4s ease;
}
.navbar a:hover::before{
    width: 100%;
} */

.navbar a:hover,
.navbar a.active {
    color: #00abf0;
}

/* .navbar a.active::before{
    width: 100%;
} */

#menu-icon {
    font-size: 3.5rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

section {
    min-height: 110vh;
    padding: 10rem 9% 2rem;
}

.home {
    display: flex;
    align-items: center;
    padding: 0 10%;
    background: url("../image/home.png") no-repeat;
    background-size: cover;
    background-position: center;
}

.home-content {
    margin-top: 7rem;
    color: #ededed;
    max-width: 650px;
    z-index: 99;
}

.home-content h1 {
    position: relative;
    font-size: 53px;
    font-weight: 700;
}

.home-content h2 {
    position: relative;
    font-size: 28px;
    font-weight: 700;
}

.home-content h1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #081b29;
    animation: showRight 1s ease forwards;
    animation-delay: 0.1s;
}

.home-content h3 {
    position: relative;
    font-size: 30px;
    font-weight: 700;
    color: #00abf0;
}

.home-content h3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #081b29;
    animation: showRight 1s ease forwards;
    animation-delay: 0.1s;
}

.home-content p {
    font-size: 1.5rem;
    margin: 2rem 0 4rem;
    margin-right: 40px;
}

.home-content .btn-box {
    /* margin-top: 20px; */
    display: flex;
    justify-content: space-between;
    width: 330px;
    height: 50px;
}

#element {
    line-height: 1.3;
    color: #00abf0;
    font-family: "Poppins", serif;
    font-weight: 700;
    font-size: 30px;
}

.btn-box a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 100%;
    background: #00abf0;
    border: 2px solid #00abf0;
    border-radius: 8px;
    font-size: 16px;
    color: #081b29;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 1;
    overflow: hidden;
    transition: 0.5s;
}

.btn-box a:hover {
    color: #00abf0;
}

.btn-box a:nth-child(2) {
    background: transparent;
    color: #00abf0;
}

.btn-box a:nth-child(2):hover {
    color: #081b29;
}

.btn-box a:nth-child(2)::before {
    background: #00abf0;
}

.btn-box a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    background: #081b29;
    height: 100%;
    z-index: -1;
    transition: 0.5s;
}

.btn-box a:hover::before {
    width: 100%;
}

/* .home-sci {
    position: absolute;
    bottom: -5rem;
    width: 170px;
    display: flex;
    justify-content: space-between;
}

.home-sci a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #00abf0;
    border-radius: 50%;
    font-size: 20px;
    color: #00abf0;
    text-decoration: none;
    z-index: 1;
    overflow: hidden;
    transition: 0.5s;
} */
.home-sci {
    position: absolute;
    top: 59rem;
    width: 170px;
    display: flex;
    justify-content: space-between;
}

.home-sci a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #00abf0;
    border-radius: 50%;
    font-size: 20px;
    color: #00abf0;
    text-decoration: none;
    z-index: 1;
    overflow: hidden;
    transition: 0.5s;
}

.home-sci a:hover {
    color: #081b29;
}

.home-sci a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #00abf0;
    z-index: -1;
    transition: 0.5s;
}

.home-sci a:hover::before {
    width: 100%;
}

.home-imgHover {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 110%;
    background: transparent;
    transition: 3s;
}

.home-imgHover:hover {
    background-color: #081b29;
    opacity: 0.7;
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    background: var(--second-bg-color);
    padding-bottom: 8rem;
}

span {
    color: #00abf0;
}

.heading {
    text-align: center;
    font-size: 5rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.about-img {
    position: relative;
    width: 25rem;
    height: 25rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img img {
    width: 80%;
    border-radius: 60%;
    border: 0.2rem solid #00abf0;
}

.about-img .circle-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0);
    width: 88%;
    height: 88%;
    border-radius: 50%;
    border-top: 0.2rem solid var(--second-bg-color);
    border-bottom: 0.2rem solid var(--second-bg-color);
    border-left: 0.2rem solid var(--main-color);
    border-right: 0.2rem solid var(--main-color);
    animation: aboutspinner 8s linear infinite;
}

.about-content {
    text-align: center;
}

.about-content h3 {
    font-size: 3rem;
}

.about-content p {
    font-size: 1.5rem;
    padding: 2rem 3rem;
}
.about-tool{
    font-size: 14px;
     max-width: 200px;
  margin: 0 auto;         
  padding: 0 20px;        
  text-align: left;
}

.btn-box.btns {
    display: inline-flex;
    width: 20rem;
    height: 5rem;
    margin-right: 20px;
}

.btn-box.btns a::before {
    background: var(--second-bg-color);
}

.skills {
    margin-top: -3rem;
    padding: 2rem 9%;
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 8rem;
    background-color: var(--bg-color);
}

.skills .skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.skills-row .skills-column {
    flex: 1 1 40rem;
}

.skills-column .title {
    font-size: 2.5rem;
    margin: 0 0 1.5rem;
}

.skills-box .skills-content {
    position: relative;
    border: 0.2rem solid var(--main-color);
    border-radius: 0.6rem;
    padding: 0.5rem 1.5rem;
    z-index: 1;
    overflow: hidden;
}

.skills-box .skills-content::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--second-bg-color);
    z-index: -1;
    transition: 0.5s;
}

.skills-box .skills-content:hover:before {
    width: 100%;
}

.skills-content .progress {
    padding: 1rem 0;
}

.skills-content .progress h3 {
    font-size: 1.7rem;
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skills-content .progress h3 span {
    color: var(--text-color);
}

.skills-content .progress .bar {
    height: 2rem;
    border-radius: 0.6rem;
    border: 0.2rem solid #00abf0;
    padding: 2px;
    margin: 1rem 0;
}

.bar span {
    display: inline-block;
    height: 100%;
    width: 100%;
    border-radius: 0.3rem;
    background-color: #00abf0;
}

.skills-column:nth-child(1) .skills-content .progress:nth-child(1) .bar span {
    width: 90%;
}

.skills-column:nth-child(1) .skills-content .progress:nth-child(2) .bar span {
    width: 80%;
}

.skills-column:nth-child(1) .skills-content .progress:nth-child(3) .bar span {
    width: 75%;
}

.skills-column:nth-child(1) .skills-content .progress:nth-child(4) .bar span {
    width: 75%;
}

.skills-column:nth-child(2) .skills-content .progress:nth-child(1) .bar span {
    width: 95%;
}

.skills-column:nth-child(2) .skills-content .progress:nth-child(2) .bar span {
    width: 80%;
}

.skills-column:nth-child(2) .skills-content .progress:nth-child(3) .bar span {
    width: 75%;
}

.skills-column:nth-child(2) .skills-content .progress:nth-child(4) .bar span {
    width: 60%;
}

.project{
    min-height: auto;
    padding-bottom: 7rem;
    background-color: var(--second-bg-color);
}
.project .container{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap:20px;
}

.project .pro-container{
    background-color: var(--bg-color);
    height: 420px;
    width: 330px;
}

.project .pro-container img{
    width: 320px;
    margin: 5px 5px 0px 5px;
    transition:.3s ;
}
.pro-container img:hover{
    width: 330px;
    margin: 0%;
    margin-bottom: 0px;
}
.pro-content{
    padding: 15px;
}
.pro-content h1{
    color: #fff;
    transition: .3s;
}
.pro-content h1:hover{
    color: #00abf0;
}

.pro-content p{
    padding-top: 19px;
    font-size: 15px;
}

.contact {
    min-height: auto;
    padding-bottom: 7rem;
    background: var(--bg-color);
}

.contact form {
    position: relative;
    max-width: 70rem;
    margin: 0 auto;
    text-align: center;
}

.contact form .input-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box .input-field {
    position: relative;
    width: 49%;
    margin: 0.8rem 0;
}

.contact form .input-box .input-field input::placeholder,
.contact form .textarea-field textarea::placeholder {
    color: var(--text-color);
}

.contact form .input-box .input-field input,
.contact form .textarea-field textarea {
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: white;
    background: transparent;
    border-radius: 0.6rem;
    border: 0.2rem solid var(--main-color);
}

/* #contact form  .focus{
    position:absolute;
    top: 0;
    left: 0%;
    width:100%;
    height: 100%;
    background-color:red;
    border-radius: .6rem;
    z-index: -1;
}

.contact form .input-box .input-field input:focus~ .focus, 
.contact form .input-box .input-field input:valid~ .focus{
    width:100% ;
}  */

.contact form .textarea-field {
    position: relative;
    display: flex;
    width: 100%;
}

/* .contact textarea{
    width: 120vh;
    height: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: white;
    background: transparent;
    border-radius:.6rem;
    border: .2rem solid var(--main-color);
} */

.textarea-field textarea {
    resize: none;
}

.cl-btn{
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn-new {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 50%;
    background: #00abf0;
    border: 2px solid #00abf0;
    border-radius: 8px;
    font-size: 16px;
    margin: 30px auto;
    color: #081b29;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    z-index: 1;
    overflow: hidden;
    transition: 0.5s;
}
.btn-new::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    background: #081b29;
    height: 100%;
    z-index: -1;
    transition: 0.5s;
}
.btn-new:hover::before {
    width: 100%;
}
.btn-new:hover{
    color: var(--main-color);
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    border-top:1px solid #6a7276 ;
    margin: 0 auto;
    margin-top: 50px;
    width: 80%;
    flex-wrap: wrap;
    padding: 2rem 9%;
}

.footer .footer-text {
    font-size: 1.6rem;
}

@keyframes showRight {
    100% {
        width: 0;
    }
}

@keyframes aboutspinner {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* response */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
    .project .pro-container{
        width: 30%;
    }
    .project .pro-container img {
    width: 100%; /* fit within parent container */
    height: auto;
    margin: 5px 0 0 0;
    transition: .3s;
    display: block;
    object-fit: cover;
}
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 4%;
    }

    section {
        padding: 10rem 4% 1rem;
    }

    .home {
        padding: 0% 4%;
    }
    .project .pro-container {
    width: 48%;
    }

    .footer {
        padding: 2rem 4%;
    }
}

@media (max-width: 768px) {
    .header {
        background: var(--bg-color);
    }

    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 4%;
        background-color: var(--main-color);
        z-index: 1;
        box-shadow: 0 0.5rem 1rem rgb(0, 0, 0, 0.2);
        transition: .25s ease;
        transition-delay: .25s;
    }

    .navbar.active {
        left: 0;
        transition-delay: 0s;
    }
    .navbar .active-nav {
        position: absolute;
        top: 0%;
        left: -100%;
        width: 100%;
        height: 100%;
        background-color: var(--bg-color);
        border: .2rem solid rgb(0, 0, 0, 0.2) ;
        z-index: -1;
        transition: .25s ease;
        transition-delay: 0s;
    }
    .navbar.active .active-nav{
        left: 0;
        transition-delay: .25s;
    }


    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        transform: translateX(-20rem);
        transition: .25s;
        transition-delay: 0s;
    }

    .navbar.active a{
        transform: translateX(0);
        transition-delay:.25s ;
    }

    .home{
        background-image: none;
    }

    .home .btn-box{
        margin-bottom: 70px;
    }

     .home .home-sci{
        top: 64rem;
     }

    .home .home-content{
        padding-top:140px ;
        margin-top:40px ;
    }
    .home p{
        font-size: 12px;
        margin: 2rem 0rem 4rem;
        margin-right: 110px;
    }
    
}


@media (max-width:600px) {
    .project .pro-container {
    width: 100%;
    height: 100%;
  }
}
@media (max-width:520px) {
    html{
        font-size: 50%;
    }   

    .home-content h1{
        display: flex;
        flex-direction: column;
    }
    .home-sci{
        width: 160px;
    }
    .home-sci a{
        width: 38px;
        height: 38px;
        top: 13rem;
    }
}

@media (max-width:498px){
    .home-sci a{
        width: 33px;
        height: 33px;
        top: 16rem;
    }
}
@media (max-width:480px){
    .home-sci a{
        width: 33px;
        height: 33px;
        top: 28rem;
    }
}

@media (max-width:460px) {

    .home-content h1{
        font-size: 5.2rem;
    }

    .contact form .input-box .input-field{
        width: 100%;
    }
    .contact form{
        text-align: center;
    }
    .contact #btn-s{
        margin-left: 0px;
        display: inline-block;
    }
    .footer{
        flex-direction: column-reverse;
    }
    .footer p{
        margin-top: 2rem;
        text-align: center;
    }
    .home-sci a{
        top: 167em;
    }
}

@media (max-width:412px) {
    .home-sci a{
        top: 22rem;
    }
}
@media (max-width:360px) {
    
    .home{
        justify-content: center;
    }
    .home-content{
        display: flex;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }
    .home-imgHover h1{
        font-size: 5rem;
    }
    .home p{
        margin-left: 10px;
        margin-right:10px;
    }
    .home .home-sci{
        position: absolute;
        top: 67rem;
    }

.contact #btn-s{
        margin-left: 88px;
    }
}