@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    list-style: none;
    text-decoration: none;
}

body {
    background: #081b29;
    color: #ededed;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: #081b29;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    position: relative;
    font-size: 25px;
    color: #1cbcf6;
    text-decoration: none;
    font-weight: 600;
    background-color: #081b29;
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #081b29;
    animation: showRight 1s ease forwards;
    animation-delay: .4s;
}

.navbar a {
    font-size: 18px;
    color: #dc143c;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    transition: .3s;
    background-color: #081b29;
}

.navbar a:hover,
.navbar a.active {
    color: #1cbcf6;
}

#menu-bar {
    display: none;
}

#menu-icon {
    display: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
        font-size: 28px;
        color: #dc143c;
    }

    .navbar {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100% - 70px);
        background: #081b29;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: .3s;
    }

    .navbar a {
        margin: 10px 0;
        font-size: 20px;
    }

    #menu-bar:checked ~ .navbar {
        left: 0;
    }
}

@keyframes showRight {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}


.home {
    height:100vh;
    background:url('me-faded.png') no-repeat;
    background-size:contain;
    background-position:right;
    display:flex;
    align-items:center;
    padding: 0 10%;
}

.home-content {
    background: transparent;
    max-width:600px;
}

.home-content h1 {
    position:relative;
    font-size:56px;
    font-weight:700;
    line-height:1.2;
    color:#1cbcf6;
}

.home-content h1::before {
    content:'';
    position:absolute;
    top:0;
    right:0;
    width:100%;
    height:100%;
    background:#081b29;
    animation:showRight 1s ease forwards;
    animation-delay:1s;
}


.home-content h3 {
    position:relative;
    font-size:32px;
    font-weight:700;
    color:#dc143c;
}

.home-content h3::before {
    content:'';
    position:absolute;
    top:0;
    right:0;
    width:100%;
    height:100%;
    background:#081b29;
    animation:showRight 1s ease forwards;
    animation-delay:1.3s;
}

.home-content p {
    position:relative;
    font-size:16px;
    margin: 20px 0 40px;
}

.home-content p::before {
    content:'';
    position:absolute;
    top:0;
    right:0;
    width:100%;
    height:100%;
    background:#081b29;
    animation:showRight 1s ease forwards;
    animation-delay:1.6s;
}

/* .home-sci {
    position:absolute;
    bottom:40px;
    width:90px;
    display:flex;
    justify-content:space-between;
}

.home-sci a {
    position:relative;
    display: inline-flex;
    width:40px;
    height:40px;
    background:transparent;
    border:2px solid #dc143c;
    border-radius:50%;
    font-size:20px;
    color:#1cbcf6;
    text-decoration:none;
    justify-content:center;
    align-items:center;
    z-index:1;
    overflow:hidden;
    transition: .5s;
}

.home-sci a:hover {
    color:#dc143c;
    background:#1cbcf6;
}

.home-sci a::before {
    content:'';
    position:absolute;
    top:0;
    left:0;
    width:0;
    height:100%;
    background:#1cbcf6;
    z-index:-1;
    transition: .5s;
}

.home-sci a:hover:before {
    width:100%
} */

.home-imgHover {
    position:absolute;
    top:0;
    right:0px;
    width:570px;
    height:100%;
    background:transparent;
    transition:3s;
    z-index: 1;
}

.home-imgHover:hover {
    background:#081b29;
    opacity:.8;
}

/*KEYFRAMES ANIMATION*/
@keyframes showRight {
    100%{
        width:0;
    }
}




/* @import url('https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900'); */

/* *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
} */

section.projects {
    display:flex;
    justify-content: center;
    align-items:center;
    min-height:100vh;
    background:#081b29;
    flex-direction:column;
}

.container{
    position:relative;
    display:flex;
    padding:80px 40px;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:80px;
}

.card{
    position:relative;
    width:350px;
    height:180px;
    background:grey;
    transition:0.5s;
}

.card:hover{
    height:450px;
}

.card .lines{
    position:absolute;
    inset:0;
    background:#000;
    overflow:hidden;
}

.card .lines::before{
    content: '';
    position:absolute;
    top:50%;
    left:50%;
    width:600px;
    height:120px;
    background:linear-gradient(transparent,#45f4ff,#45f4ff,#45f4ff,transparent);
    animation:animate 4s linear infinite;
    animation-play-state:paused
}

.card:hover .lines::before{
    animation-play-state: running;
}

@keyframes animate
{
    0%{
        transform:translate(-50%,-50%) rotate(0deg);
    }
    100%{
        transform:translate(-50%,-50%) rotate(360deg);
    }
}

.card .lines::after{
    content:'';
    position:absolute;
    inset:3px;
    background:#292929;
}

.card .imgBx{
    position:absolute;
    top:-40%;
    left:50%;
    width:150px;
    height:150px;
    transform:translate(-50%);
    background:#000;
    transition:0.5s;
    z-index:10;
    overflow:hidden;
    display:flex;
    justify-content:center;
    align-items:center;
}

.card:hover .imgBx{
    top:25px;
    width:200px ;
    height:200px ;
}

.card .imgBx:before{
    content:'';
    position:absolute;
    top:50%;
    left:50%;
    width:500px;
    height:150px;
    transform:translate(-50%,-50%);
    background:linear-gradient(transparent,#ff3c7b,#ff3c7b,#ff3c7b,transparent);
    animation:animate2 6s linear infinite;
    animation-play-state: paused;
}

.card:hover .imgBx:before{
    animation-play-state: running;
}

@keyframes animate2{
    0%{
        transform:translate(-50%,-50%) rotate(360deg);
    }
    100%{
        transform:translate(-50%,-50%) rotate(0deg);
    }
}

.card .imgBx::after{
    content:'';
    position:absolute;
    inset:3px;
    background:#292929;
}

.card .imgBx img{
    position:absolute;
    width:97%;
    height:97%;
    z-index:1;
    /* filter:invert(1); */
    opacity:0.5s;
    transition:0.5s;
    object-fit:cover;
    border:black solid 1px;
}

.card:hover .imgBx img{
    opacity:1;
}

.card .content{
    position:absolute;
    width:100%;
    height:100%;
    display:flex;
    justify-content: center;
    align-items: flex-end;
    overflow:hidden;
}

.card .content .details{
    padding: 30px 20px;
    text-align: center;
    width:100%;
    transition:0.5s;
    transform:translateY(75px);
    color: #fff;
    z-index: 5;
    max-height: 160px;
    overflow-y: auto;
    scrollbar-width:thin;
    scrollbar-color:transparent transparent;
}

.card:hover .content .details{
    transform: translateY(0px);
}

.card .content .details h2{
    font-size:1.5em;
    font-weight:500;
    color:#45f4ff;
    line-height:1.2em;
}

.card .content .details p{
    color:crimson;
    opacity:0;
    transition:0.5s;
}


.card .content .details a{
    display:inline-block;
    padding:8px 15px;
    background:#45f4ff;
    color:#292929;
    margin-top:10px;
    font-weight:500;
    text-decoration:none;
    opacity:0;
    transition:0.5s;

}

.card:hover .content .details p,
.card:hover .content .details a{
    opacity:1;
}

.projects-title{
    align-items:center;
    text-align:center;
    width:100%;
    margin-bottom:20px;
    display:flex;
    flex-direction:column;
}

.projects-title p{
    width:1000px;
    margin-top:20px;
    color:#1cbcf6;
    display:flex;
}

.projects-title h1{
    color:#d93025;
    text-decoration:underline;
    display:flex;
}

@media screen and (max-width:650px){
    .projects-title p{
        width:300px;
    }
    html,body{
        overflow-x:hidden;
        width:100%;
    }
}





.contact {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #081b29;
}

.contact-container {
    width: 600px;
    text-align: center;
}

.contact h2 {
    font-size: 40px;
    color: #ededed;
    text-align: center;
    margin-bottom: 10px;
}

.contact form {
    width: 100%;
    text-align: center;
}

form .input-box {
    display: flex;
    justify-content: space-between;
}

.input-box .input-field {
    width: 48.5%;
}

.field .item {
    width: 100%;
    padding: 18px;
    background: transparent;
    border: 2px solid #0ef;
    outline: none;
    border-radius: 6px;
    font-size: 16px;
    color: #ededed;
    margin: 12px 0;
}

.field .item::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

form .textarea-field .item {
    resize: none;
}

form button {
    padding: 12px 32px;
    background: #0ef;
    border: none;
    outline: none;
    border-radius: 6px;
    box-shadow: 0 0 10px #0ef;
    font-size: 16px;
    color: #333;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.5s;
}

form button:hover {
    box-shadow: none;
}

.field .error-txt {
    font-size: 14.5px;
    color: #d93025;
    text-align: left;
    margin: -5px 0 10px;
    display: none;
}

form .textarea-field .error-txt {
    margin-top: -10px;
}

.field.error .item {
    border-color: #d93025;
}

.field.error .error-txt {
    display: block;
}





/*skills section*/
.skills{
    padding:0;
    margin:0;
    box-sizing:border-box;
    font-family:'Roboto',sans-serif;
    background-color:#081b29;
}



.inner{
    padding-top:20px;
}
.skill-header{
    text-align:center;
    color:#fff;
    padding:1rem;
    position:relative;
}

.skill-header:after{
    position:absolute;
    content:'';
    bottom:0;
    left:50%;
    transform:translateX(-50%);
    height:4px;
    width:100px;
    background-color:#2ecc;
    border-radius:2px;
}

.skill-container{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    justify-content:center;
    align-items:center;
    text-align:center;
    grid-gap:1rem;
    padding:1rem 80px;
    font-size:1.2rem;
}

.skill-box{
    padding:1rem;
    color:#ddd;
    cursor:pointer;
    
}

.skill-box:hover > .skill-title:after, .skill-box:hover > .skill-title:before{
    width:35px;
}

.skill-box:hover .img{
    transform:translateY(-10px)
}

.skill-title{
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:0.5rem;
    margin-bottom:0.5rem;
    position:relative;
}

.skill-title:after{
    content:'';
    position:absolute;
    bottom:0;
    right:50%;
    width:0;
    height:4px;
    border-radius:2px 0 0 2px;
    background-color:#2ecc71;
    transition:.5s;
}

.skill-title:before{
    content:'';
    position:absolute;
    bottom:0;
    left:50%;
    width:0;
    height:4px;
    border-radius: 0 2px 2px 0;
    background-color:#2ecc71;
    transition:.5s;
}

.skill-icon{
    width:50px;
    z-index:2;
}

.skill-img{
    width:90px;
    height:90px;
    position:relative;
    border-radius:45px;
    background-color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    border:red 3px solid;
    transition:.5s;
}

.skill-img:after{
    content:'';
    position:absolute;
    top:0;
    left:0;
    width:50%;
    height:90px;
    background:rgba(100,100,100,0.5);
    border-radius:45px 0 0 45px;
}

.skill-title h3{
    color:#fff;
    margin-top:0.5rem;
}


@media screen and (max-width:990px){
    .skill-container{
        grid-template-columns: repeat(2,1fr);
        padding:2rem 50px;
    }
}


@media screen and (max-width:650px){
    .skill-container{
        grid-template-columns: 1fr;
        
    }
}