@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&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;
    scrollbar-color: #8e8e8e #fff;
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 8px
}

::-webkit-scrollbar-track {
    background-color: #fff;
    border-radius: 20px
}

::-webkit-scrollbar-track:active,::-webkit-scrollbar-track:hover {
    background-color: #fff
}

::-webkit-scrollbar-thumb {
    background-color: #8e8e8e;
    border-radius: 20px
}

::-webkit-scrollbar-thumb:hover {
    background-color: #878787
}

::-webkit-scrollbar-thumb:active {
    background-color: #8e8e8e
}


:root{
    --bg-color:#f9f9f9;
    --second-bg-color:#ffffff;
    --text-color:#2d2e32;
    --text2-color:#767676;
    --main-color:#ff0084;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body{
    background: var(--bg-color);
    color: var(--text-color);
}

section{
    min-height: 85vh;
    padding: 10rem 9% 2rem;
}
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
        padding: 20px 50px 20px 50px;

    background: var(--second-bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 200;
    box-shadow: 0 0 10px rgba(0,0,0,.09);
}

.logo{
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 700;
    cursor: default;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 2rem;
    font-weight: 600;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active{
    color: var(--main-color);
}

#menu-icon{
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img{
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    justify-self: center;
    border: 3px solid var(--text-color);
    width: 20vw;
    order: 1;
    animation: profile__animate 8s ease-in-out infinite 1s;
    margin-left: 150px;
    border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
}

@keyframes profile__animate{
    0%{
        border-radius: 60% 40% 30% 70%/60% 30% 70% 40%
    }
    50%{
        border-radius: 30% 60% 70% 40%/50% 60% 30% 60%
    }
    100%{
        border-radius: 60% 40% 30% 70%/60% 30% 70% 40%
    }
}


.home-content h3{
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2){
    margin-bottom: 2rem;
}

span{
    color:var(--main-color);
}
.home-content h1{
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
    padding-right: 5rem;
}

.home-content h3 img{
    width: 3rem;
    justify-content: center;
    align-items: center;
}
.home-content p {
    font-size: 1.6rem;
    color:var(--text2-color)
}

.social-media a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background: transparent;
    border-radius: 2rem;
    font-size: 3.5rem;
    color: var(--text-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.social-media a:hover{
    color: var(--main-color);

}

.about{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--second-bg-color);
}

.about-img img{
    width: 25vw;
}

.heading{
    text-align: center;
    font-size: 4.5rem;
}


.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2.3rem;
}

.about-content p{
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
    color: var(--text2-color);
}

.projects{
    background: var(--bg-color);
}

.projects h2{
    margin-bottom: 1rem;
}

.projects h3{
    margin-bottom: 4rem;
    font-size: 2.3rem;
    text-align: center;
}

.projects-container{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    align-items: center;
    gap: 2.5rem;
}

.projects-container .projects-box{
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem var(--bg-color);
    overflow: hidden;
    display: flex;
}

.projects-box img{
    width: 100%;
    transition: .5s ease;
}

.projects-box:hover img{
    transform: scale(1.1);
}

.projects-box .projects-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,.1),var(--main-color));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: .5s ease;
}
.projects-box:hover .projects-layer{
    transform: translateY(0);
}

.projects-layer h4{
    font-size: 3rem;
    color: var(--bg-color);
}

.projects-layer p{
    font-size: 1.6rem;
    margin: .3rem 0 1rem;
    color: var(--bg-color);
}

.projects-layer a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--text-color);
    border-radius: 50%;
}

.projects-layer a i{
    font-size: 2rem;
    color: var(--second-bg-color);
}

.contact{
    background: var(--second-bg-color);
}

.contact h2{
    margin-bottom: 1rem;
}

.contact h3{
    margin-bottom: 4rem;
    font-size: 2.3rem;
    text-align: center;
}

.mail{

    justify-content: center;
    align-items: center;
    display: flex;
    gap: 1.5rem
}

.mail i{
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,.1);
    padding: 2.5rem;
    color: var(--main-color);
    font-size: 5rem
}
.contact_info{
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.contact_info h4 {
    color: var(--text-color);
    font-size: 2rem
}

.contact_info a,.contact_info p {
    color: var(--text2-color);
    cursor: pointer;
    font-size: 2rem;
    text-decoration: none;
}

.contact_info a:hover,.contact_info p:hover {
    color: var(--main-color);
    transition: all .3s;
}

.footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--text-color);
}

.footer-text{
    font-size: 1.6rem;
    color: var(--bg-color);
}

.footer-iconTop a{
    display: inline-flex;
    justify-content: center;
    align-items: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
}

.footer-iconTop a{
    box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--second-bg-color);
}



@media (max-width:1200px){
    html{
        font-size: 55%;
    }
}

@media (max-width:991px){
    .home-img img{
        margin: 0;
        width: 30vw;
    }
    .about-img img{
        width: 30vw;
    }

    .header{
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .projects{
        padding-bottom: 7rem;
    }

    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width:768px){
    #menu-icon {
        display: block;
    }
    .navbar{
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0,0,0,.2);
        box-shadow: 0 .5rem 1 rem rgba(0,0,0,.2);
        display: none;
    }

    .navbar.active{
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home{
        flex-direction: column;
    }

    .home-content h3{
        font-size: 2.6rem;
    }

    .home-content h1{
        font-size: 5rem;
        padding-right: 0;
    }

    .home-img img{
        width: 50vw;
        margin-top: 4rem;
        margin-left: 0px;
    }

    .about{
        flex-direction: column-reverse;
    }

    .about-img img{
        width: 50vw;
        margin-top: 4rem;
    }

    .projects h2 {
        margin-bottom: 3rem;
    }

    .projects-container{
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:617px){
    .projects-container{
        grid-template-columns: 1fr;
    }
}

@media (max-width:450px){
    html{
        font-size: 50%;
    }
}

@media (max-width:365px){
    .home-img img{
        width: 70vw;
    }

    .about-img img{
        width: 70vw;
    }

    .footer{
        flex-direction: column-reverse;
    }

    .footer p {
        text-align: center;
        margin-top: 2rem;
    }
}

.demo-video {
    width: 120%;
    height: 120%;
  }
