@import url('https://fonts.googleapis.com/css2?family=Open+Sans&family=Source+Code+Pro:ital,wght@0,400;1,800&family=Trispace:wght@100;700&display=swap');

/* Base reset */
* {
    margin: 0;
    padding: 0;
}

/* box-sizing and font sizing */
*,
*::before,
*::after {
    box-sizing: inherit;
}

html {
    scroll-behavior: smooth;
}
body {
    background-image: linear-gradient(to left bottom, #00374a, #20394e, #333a4e, #403d4e, #49404c);
    background-repeat: no-repeat;
    height: 100vh;
}

/* Navbar CSS start */
#navbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    background-color: #23394E;
    min-height: 3.688em;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}

.navbar-menu {
    display: flex;
    flex-direction: row;
}

.navbar-item {
    margin: 1.25em;
}

ul {
    list-style: none;
}

.navbar-menu li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Trispace', sans-serif;
    font-weight: 700;
    display: inline;
    position: relative;
    transition: color 0.2s ease-out;
    text-transform: uppercase;
}

.navbar-menu li a:hover {
    color: rgba(255, 255, 255, 1);
}

.underline::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 0.188em;
    left: 0;
    bottom: -0.313em;
    background-color: #C694C1;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out 0.1s;
}

.underline:hover::after {
    background-color: #40B381;
    transform: scaleX(1);
    transform-origin: bottom left;
}

.barnav {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    color: white;
    margin: 1.25em;
}

.barnav:hover {
    color: #40B381;
}

@media (max-width:700px) {

    #navbar {
        justify-content: flex-start;
        height: 3.688em;
        transition: height 0.2s linear;
    }

    .navbar-menu {
        flex-direction: column;
        position: absolute;
        top: 3.5em;
        clip-path: inset(0 0 100% 0);
    }

    .navbar-item{
        margin-top: 0.313em;
    }

    .barnav {
        display: block;
    }
}

.show-nav{
    height: 12em !important;
}

.show-menu {
    clip-path: inset(0 0 0 0);
    transform-origin: left top;
    transition: clip-path 0.3s ease-out;
}
/* Navbar CSS end*/


/* Sections CSS*/
    section{
        display: flex;
        width: 100%;
        height: 100%;
        justify-content: center;
    }

    #welcome-section {
        align-items: center;
        gap: 5em;
        opacity: 0;
        transition: opacity 2s ease-in-out, filter 2s ease-in-out;
        filter: blur(10px);
    }

    .font-title {
        font-family: 'Source Code Pro', 'sans-serif';
    }

    .welcome-title {
        margin-inline: 2em;
    }

    .welcome-title h1 {
        font-family: 'Trispace', 'sans-serif';
        color:#f2f2f2;
        font-size: 3em;
        font-weight: 700;
        word-break: normal;
        opacity: 0.9;
        text-align: center;
    }

    .welcome-title span {
        color: #EC9929;
        text-align: end;
        width: 100%;
        display: block;
        font-size: 1.2em;
    }

    .img-div {
        display: flex;
        justify-content: end;
        margin-bottom: 0.9em;
    }
    .img-profile {
        border-radius: 50%;
        width: 8em;
        box-shadow: 0.5em 0.5em 1em 0.5em rgba(0, 0, 0, 0.3);
        border: 2px solid white;
    }

    .description{
        max-width: 35em;
        margin-inline: 1.5em;
        text-align: justify;
    }

    .description p {
        font-family: 'Open Sans', 'sans-serif';
        color: #f2f2f2;
        opacity: 0.9;
        text-align: justify;
        word-break: normal;
        font-size: 1.3em;
    }

    @media (max-width:1200px){
        #welcome-section {
            flex-direction: column;
        }

        .img-div {
            justify-content: center;
        }


    }

    @media (max-width:500px){
        .welcome-title span{
            text-align: center;
        }

        .description p {
            font-size: 1em;
            text-align: start;
        }

        .welcome-title h1 {
            font-size: 2.5em;
        }

        #welcome-section {
            gap: 3em;
        }
    }

    @media (max-width: 300px){
        .welcome-title span{
            text-align: start;
        }

        .description p {
            font-size: 0.8em;
            text-align: start;
        }

        .welcome-title h1 {
            font-size: 2em;
        }

        #welcome-section {
            gap: 2.5em;
        }
    }

    #projects {
        background-image: linear-gradient(to right top, #005f6d, #005f64, #005f5a, #085e4e, #1d5c41);
        flex-direction: column;
        justify-content: inherit;
        align-items: center;
        height: auto;
    }

    .head-project {
        font-family: 'Trispace', 'sans-serif';
        color: #f2f2f2;
        opacity: 0.9;
        margin-top: 2em;
        margin-bottom: 1em;
        font-size: 2.5em;
        font-weight: 700;
    }

    .grid-project {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(15em, 1fr));
        gap: 2em;
        margin: 2em;
        width: auto;
        max-width: 90vw;
    }

    .card {
        box-sizing: inherit;
        background-color: #00374a;
        border-radius: 1.563em 1.563em 1.563em 1.563em;
        transition: box-shadow 0.3s;
        text-decoration: none;
    }

    .card:hover {
        box-shadow: 0.9em 0.9em 0.9em rgba(0, 0, 0, 0.3);
    }

    .card__img{
        width: 20em;
        max-width: 100%;
        height: 15em;
        border-radius: 1.563em 1.563em 0 0;
        margin: 0;
    }
    .card__title {
        text-align: center;
        height: 2em;
        margin: auto;
        font-size: .9em;
        font-family: 'Source Code Pro', 'sans-serif';
        color: rgba(255, 255, 255, 0.753);
    }

    #contact {
        background-image: linear-gradient(to right top, #3b667b, #1c6466, #2d5f44, #4b5422, #664217);
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .head-contact {
        color: #f2f2f2;
        font-family: 'Trispace', 'sans-serif';
        font-size: 2.5em;
    }

    .content_contact {
        color: #f2f2f2;
        margin: 0.8em;
        font-family: 'Source Code Pro', 'sans-serif';
        word-break: normal;
    }

    .contact__links {
        display: flex;
        flex-direction: row;
        gap: 1em;
        margin: 2em;
    }

    .contact__link {
        text-decoration: none;
        color: #f2f2f2;
        font-family: 'Source Code Pro', 'sans-serif';
        font-size: 1em;
        transition: transform 0.3s ease-out;
       
    }

    .contact__link:hover {
       transform: translateY(0.4em);
    }

    .contact__link span{
        margin-inline: 0.2em;
    }
    @media (max-width: 700px) {
        .contact__links {
            flex-wrap: wrap;
        }
    }

    @media (max-width: 500px) {
        .contact__links {
            flex-direction: column;
            gap: 2em;
        }
    }

/* Sections end*/