@import url("https://fonts.googleapis.com/css2?family=Doto:wght@100..900&family=Google+Sans+Flex:opsz,wght@6..144,1..1000&family=Outfit:wght@100..900&display=swap");
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css');

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
}
::selection {
    color: #1e1c48;
    background-color: #4182ff;
}

body {
    font-family: "Outfit", sans-serif;
    background: #1a1a1a;
    color: #ffffff;
    padding: 40px 20px 0;
    padding-top: 0;
    text-align: center;
    font-size: 16px;
}

h1,
h2,
h3,
p {
    font-family: "Google Sans Flex", sans-serif;
}

header {
    position: relative;
    padding: 50px 20px;
    font-size: 1.2rem;
    background: url(/3_My_Portfolio/assets/projects-img/header.jpg) no-repeat center / cover;
    margin: 0 -20px;
    box-shadow: 0 8px 45px 10px rgba(65, 130, 255, 0.2);
    border-bottom: 8px solid #4182ff;
    text-align: center;
    border-radius: 0 0 0 80px;
}

header h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    letter-spacing: 1px;
    display: inline-block;
    vertical-align: middle;
}

.logo {
    width: 40px;
    vertical-align: middle;
    margin-right: 10px;
    display: inline-block;
}


.card {
    width: 250px;
    height: 350px;
    margin: 15px;
    display: inline-block;
    vertical-align: top;
    cursor: pointer;
    border-radius: 0 30px 0 30px;
    filter: brightness(0.9) saturate(1);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.9);
    clip-path: inset(0);
    overflow: hidden;
    align-content: center;
}

.card h2 {
    font-size: 1.3rem;
    text-align: start;
    margin-top: -170px;
    color: white;
    font-weight: 500;
    vertical-align: top;
    padding: 20px;
    padding-bottom: 10px;
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.76);
    border-bottom: 2px solid #4182ff;
}

.card p {
    padding: 15px;
    font-size: 0.8rem;
    background-color: #262626;
    border-radius: 0 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-top: 5px solid #4182ff;
}

.prosthetic {
    background-image: url(/assets/projects-img/project-prosthetic.jpg);
    background-repeat: no-repeat;
    background-size: 140%;
    background-position: top;
}

.chip {
    background-image: url(/assets/projects-img/project-chip.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.ai {
    background-image: url(/assets/projects-img/project-ai.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.card:hover{
    filter: brightness(1.2);
    clip-path: polygon(2% 0%, 100% 0%, 98% 100%, 0% 100%);
    box-shadow: inset 0 0 90px #4182ff;
}

.desc {
    padding: 20px;
    text-align: center;
    background-color: #262626;
    border-radius: 0 20px;
    overflow: hidden;
    margin: 10px 40px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.26);
}

.desc p {
    border-top: 2px solid #4182ff;
    padding: 10px;
}

footer {
    border-top: 8px solid #4182ff;
    color: #ffffff;
    background-color: #262626;
    padding: 1rem 0;
    position: sticky;
    margin-top: 3rem;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 0 8px rgba(48, 52, 56, 0.37);
}

footer nav ul {
    text-align: center;
    margin-bottom: 1.5rem;
    list-style: none;
    padding: 0;
}

footer nav li {
    display: inline-block;
    border-left: none;
    margin: 0 0.5rem;
    padding: 0;
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
}

footer a {
    color: #ffffff;
    display: inline-block;
    vertical-align: middle;
}

footer a i {
    margin-right: 0.5rem;
    vertical-align: middle;
}

footer a:hover, footer i:hover {
    color:#4182ff;
}

footer p {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}
.top {
    visibility: hidden;
}
@media screen and (min-width: 600px) {

    .desc {
         margin:20px 68px;
    }
    header h1 {
        font-size: 1.9rem
    }
    .projects {
        width: 100%;
        overflow: hidden;
        margin: 0 auto;
        max-width: 600px;
    }
    
    .card {
        width: 500px;
        height: 250px;
        float: left;
        margin: 0 25px 20px 0;
        display: block;
        position: relative;
    }
    
    .chip {
        display: inline;
        float: left;
        margin: 0 25px 20px 0;
    }
    
    .ai {
        float: right;
        margin: 0 0 20px 25px;
    }
    
    .prosthetic {
        float: left;
        margin: 0 25px 20px 0;
        background-position: right bottom;
        background-size: 70%;
    }
    
    .card h2 {
        font-size: 1.1rem;
        padding: 15px;
        text-align: left;
        padding-bottom: 8px;
        background-color: rgba(0, 0, 0, 0.9);
        border-bottom: 2px solid #4182ff;
        margin-top: 0;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
    }
    
    .card p {
        margin-left: 200px;
        background: rgba(38, 38, 38, 0.95);
        border-top: 3px solid #4182ff;
        border-radius: 0 0 0 15px;
        padding: 15px;
        font-size: 0.9rem;
        line-height: 1.5;
        text-align: left;
        min-height: 170px;
    }

    .card:nth-child(even) {
        clear: both;
    }
    
    .chip p{
        margin-right: 200px;
        margin-left: 0;
    }
    .prosthetic p {
        margin-right: 200px;
        margin-left: 0;
    }
    
    .card:hover{
    clip-path: none;
    box-shadow: inset 0 0 90px rgba(65, 130, 255, 0.36);
        
}
}
@media screen and (min-width: 900px) {
    .projects {
        width: 100%; 
        max-width: 900px;
        margin: 0 auto;
        overflow: hidden;
        text-align: center;
    }
    .card {
    width: 250px;
    height: 350px;
    margin: 15px;
    display: inline-block;
    vertical-align: top;
    border-radius: 0 30px 0 30px;
    filter: brightness(0.9) saturate(1);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.9);
    clip-path: inset(0);
    overflow: hidden;
    float: none;
}

.card h2 {
    font-size: 1.2rem;
    padding-bottom: 10px;
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.76);
    border-bottom: 2px solid #4182ff;
    position: absolute;
}

.card p {
    padding: 15px;
    background-color: #262626;
    border-radius: 0 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
}

.prosthetic {
    background-image: url(/assets/projects-img/project-prosthetic.jpg);
    background-repeat: no-repeat;
    background-size: 140%;
    background-position: top;
}
img {
    max-width: 120px;
    padding: 20px;
    }
    
.chip {
    background-image: url(/assets/projects-img/project-chip.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.ai {
    background-image: url(/assets/projects-img/project-ai.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.card:hover{
    filter: brightness(1.2);
    clip-path: polygon(2% 0%, 100% 0%, 98% 100%, 0% 100%);
    box-shadow: inset 0 0 90px #4182ff;
}
    .top {
        visibility: unset;
    position: fixed;
    text-align: center;
    right: 70px;
}

.top a {
    color: white;
    font-family: "Google Sans Flex", sans-serif;
    text-decoration: none;
    font-size: 15px;
    border-radius: 25px;
    height: 50px;
    width: 50px;
    padding: 10px;
    margin: 15px;
    background-color: #4182ff;
}
}