@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
:root {
    --background: #1c1d23;
    --foreground: #212229;
    --font: #dedee0;
    --font-alt: #8c8e99;

    color: var(--font);
    font-size: 18px;
    background-color: var(--background);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}


body {
    display: flex;
    justify-content: center;
    width: 100vw;
    
    height: min-content;
}

body .wrapper {
    width: 60%;
    height: min-content;
   
    padding: 2rem;

    display: grid;
    grid-template-areas: 
    'status navigation'
    'content content';
    grid-template-rows: min-content 1fr;
    row-gap: 1rem;
}

body .wrapper .menu-overlay{
    display: none;

    padding-block: 5rem;
    align-items: center;
    justify-content: start;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;


    position:fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: var(--foreground);


    button {
        border: none;
        width: 250px;
        padding: 1rem 3rem;
        background-color: var(--background);
        color: var(--font-alt);
        border-radius: 25px;
    }

    button:hover {
        background-color: #2e2f36;
    }
}



body .wrapper p:nth-of-type(1) {
    grid-area: status;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    

    width: min-content;
    
    background-color: var(--foreground);
    color: var(--font-alt);
    border-radius: 50px;
    padding: .75rem 1.5rem;
    white-space: nowrap;

}

body .wrapper ul:nth-of-type(1) {
    grid-area: navigation;
    
    display: inline-flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    gap: 3rem;
   
    width: min-content;
    border-radius: 50px;
    padding-inline: 10px;
    justify-self: end;
    height: 100%;
    
   
    
    .menu {
        display: none;
    }


    li {
        font-size: medium;
       color: var(--font-alt);
        
       
    }

    li:nth-last-of-type(1) {
        background-color: var(--foreground);
        padding: .75rem 1rem;
        border-radius: 25px;

        
    }

    li:nth-last-of-type(1):hover {
        background-color: #2e2f36;
    }

    li:hover, li.active {
       
        cursor: pointer;

    }

   

  
}


body .wrapper .slide-container {
    grid-area: content;
    width: 100%;
    height: min-content;
}


.home {
    display: grid;
    grid-template-areas: 
    'image'
    'welcome'
    'services';
    grid-template-rows: min-content min-content min-content;
    row-gap: 1rem;
}

.home > .image {
    grid-area: image;


    .card {
        width: 100%;
        height: 500px;

        background-color: var(--foreground);
        
       
        
        border-radius: 25px;

        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        
        
        h1 {
            font-size: clamp(3rem, 3vw, 7rem);
            border-bottom: 15px solid var(--font);
            
            
        }

        h3 {
            color: var(--font-alt);
        }
    }
}

.home > .welcome {
    grid-area: welcome;
    
   
    .card {
        width: 100%;
        height: min-content;
        border-radius: 25px;
        

        display: flex;
        flex-flow: row wrap;
        gap: 1rem;

        .welcome {
           
            flex:2;
            min-height: 400px;
            min-width: 300px;
            max-width: 900px;
            background-color: var(--foreground);
            border-radius: 25px;
            

            display: flex;
            flex-direction: column;
            align-items: start;
            justify-content: space-between;


            p:nth-of-type(1){
                padding: 2rem;
                font-size: 18px;
                color: var(--font-alt);
            }

            p:nth-of-type(2){
                padding: 2rem;
                font-size: 18px;
            }

            img {
                width: 48px;
                height: 48px;
                margin-left: 2rem;
            }
        }

        .whoami {
            
            flex: 1;
            min-height: 300px;
            min-width: 300px;
            
            background-color: var(--foreground);
            border-radius: 25px;

            display: flex;
            flex-direction: column;
            align-items: start;
            justify-content: space-between;


            p:nth-of-type(1){
                padding: 2rem;
                font-size: 18px;
                color: var(--font-alt);
            }

            p:nth-of-type(2){
                padding: 2rem;
                font-size: 18px;

                a {
                    font-weight: bold;
                }

                a:hover {
                    cursor: pointer;
                    text-decoration: underline;
                }
            }

            img {
                aspect-ratio: 12/16;
                width: 150px;
                border-radius: 15px;
                margin-left: 2rem;
            }
        }
    }
}

.home > .services {
    grid-area: services;


    .card {
        width: 100%;
        height: min-content;
        border-radius: 25px;
    

        display: flex;
        flex-flow: row wrap;
        gap: 1rem;


      .info {
        flex: 1;
        background-color: var(--foreground);
        border-radius: 25px;
        min-width: 300px;
        min-height: 300px;
        

        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: start;

        p:nth-of-type(1) {
            padding: 2rem;
        }

        p:nth-of-type(2) {
            padding: 2rem;
        }

        a {
            font-weight: bold;
        }

        a:hover {
            cursor: pointer;
            text-decoration: underline;
        }

        img {
            width: 48px;
            height: 48px;
            margin-left: 2rem;
        }


      }
      .work {
        flex: 2;
        background-color: var(--foreground);
        border-radius: 25px;
        min-width: 300px;
        min-height: 400px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: start;

        p:nth-of-type(1) {
            padding: 2rem;
        }

        p:nth-of-type(2) {
            padding: 2rem;
            
        }

        a {
            font-weight: bold;
        }

        a:hover {
            cursor: pointer;
            text-decoration: underline;
        }
      }


    }
}

/* about */

.about {
    display: grid;
    grid-template-areas: 
    'title'
    'about';
    grid-template-rows: min-content min-content;
}

.about > .title {
    grid-area: title;
    padding-block: 10rem 2rem;
    h1 {
        font-size: clamp(5rem, 10vw, 10rem);
        font-weight: bold;
    }
}

.about > .grid {
    grid-area: about;
    height: min-content;
    width: 100%;

    display: grid;
    grid-template-areas: 
    'intro'
    'expert'
    'feedback';
    row-gap: 1rem;
    


    .intro {
        grid-area: intro;
        display: flex;
        
        justify-content: space-between;
        flex-flow: row wrap;
        gap: 1rem;
        height: min-content;

        .me {
            background-color: var(--foreground);
            border-radius: 25px;
            flex: 2;
            min-width: 300px;
            min-height: 350px;
            display: flex;
            justify-content: space-between;
            flex-direction: column;
            
            p:nth-of-type(1){
                padding: 2rem;

            }

            p:nth-of-type(2){
                padding: 2rem;
                color: var(--font);

            }
            img {
                width: 48px;
                height: 48px;
                margin-left: 2rem;
            }
        }

        .location {
            background-color: var(--foreground);
            border-radius: 25px;
            flex: 1;
            min-width: 300px;
            min-height: 350px;
            display: flex;
            flex-direction: column;
            justify-content: start;
            
           

            p:nth-of-type(1) {
                padding: 2rem 0 0 2rem;
                
            }
            p:nth-of-type(2){
                padding: 0 2rem;
                color: var(--font);
                

            }

            img {
                padding: 2rem;
                margin-top: auto;
                align-self: flex-end;
                
            }
        }
    }

    .expert {
        grid-area: expert;
        height: min-content;
        width: 100%;
        display: flex;
        flex-flow: row wrap;
        gap: 1rem;


        .expertise {
            flex: 1;
            background-color: var(--foreground);
            border-radius: 25px;
            min-width: 300px;
            min-height: 350px;
            display: flex;
            justify-content: space-between;
            flex-direction: column;

            p:nth-of-type(1) {
                padding: 2rem;
                
            }
            p:nth-of-type(2){
                padding: 2rem;
                color: var(--font);
                

            }
        }

        .experience {
            flex: 2;
            background-color: var(--foreground);
            border-radius: 25px;
            min-width: 300px;
            min-height: 350px;
            display: flex;
            justify-content: space-between;
            flex-direction: column;

            p:nth-of-type(1) {
                padding: 2rem;
                
            }
            p:nth-of-type(2){
                padding: 2rem;
                color: var(--font);
                

            }

            a, a:visited {
                text-decoration: none;
                color: var(--font);
            }

            a:hover {
                cursor: pointer;
                text-decoration: underline;
            }
        }
        
    }

    .feedback {
        grid-area: feedback;
        height: min-content;
        width: 100%;
        display: flex;
        flex-flow: row wrap;
        gap: 1rem;

        .review {
            flex: 1;
            background-color: var(--foreground);
            border-radius: 25px;
            min-height: 250px;
            min-width: 300px;
            padding: 2rem;
            
            display: flex;
            flex-direction: column;

            p:nth-of-type(1) {
                all: unset;
                
            }

            p:nth-of-type(2) {
                all: unset;
                color: var(--font-alt);
            }

            p:nth-of-type(3) {
                all: unset;
                margin-top: 1rem;
            }

            img {
                width: 24px;
                height: 24px;
                align-self: flex-end;
                z-index: 30;
                position: absolute;
            }

        }

        
        

    }
    
}



/* skills */

.skills { 
    display: grid;
    grid-template-areas: 
    'title'
    'security'
    'programming'
    'certificates';
    row-gap: 3rem;
}

.skills > .title {
    grid-area: title;
    padding-block: 10rem 2rem;
    h1 {
        font-size: clamp(5rem, 10vw, 10rem);
        font-weight: bold;
    }
}

.skills > .security {
    grid-area: security;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 1rem;


    .tile {
        width: 300px;
        height: 300px;
        border-radius: 25px;
        background-color: var(--foreground);

        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;

        p:nth-of-type(2) {
            padding-inline: 2rem;
            text-align: center;
            font-size: 16px;
        }
        
    }

    .tile:nth-of-type(1) {
        background-color: #2e2f36;
    }
}

.skills > .programming {
    grid-area: programming;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 1rem;

    .tile {
        width: 300px;
        height: 300px;
        border-radius: 25px;
        background-color: var(--foreground);

        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        

        p:nth-of-type(2) {
            padding-inline: 2rem;
            text-align: center;
            font-size: 16px;
        }
        
    }

    .tile:nth-of-type(1) {
        background-color: #2e2f36;
    }
}

.skills > .certificates {
    grid-area: certificates;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 1rem;

    .tile {
        width: 300px;
        height: 300px;
        border-radius: 25px;
        background-color: var(--foreground);

        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        

        p:nth-of-type(1) {
            all: unset;
            margin-bottom: 1rem;
            text-align: center;
            color: var(--font-alt);
        }

        p:nth-of-type(2) {
            padding-inline: 2rem;
            text-align: center;
            font-size: 16px;
        }

        a:nth-of-type(1){
            margin-top: 15px;
            color: var(--font);
            text-decoration: underline;
            font-weight: bold;
        }
        
    }

    .tile:nth-of-type(1) {
        background-color: #2e2f36;
    }
}


/* Work */

.work {
    display: grid;
    grid-template-areas: 
    'title'
    'projects';
}

.work > .title {
    grid-area: title;
    padding-block: 10rem 2rem;
    h1 {
        font-size: clamp(3rem, 10vw, 10rem);
        font-weight: bold;
    }
}

.work > .projects {
    grid-area: projects;

    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit,  minmax(300px,1fr));


    .grid-item {
        display: flex;
        flex-direction: column;
        background-color: var(--foreground);
        min-height: 500px;
        max-height: 600px;
        border-radius: 25px;
        

        img {
            border-top-left-radius: 25px;
            border-top-right-radius: 25px;
            height: 100px;
            width: 100%;
            object-fit: cover;
        }

        h3 {
            all: unset;
            margin-inline-end: 5rem;
            margin-block-start: 2rem;
            padding: 0.5rem;
            text-indent: 15px;
            border-top-right-radius: 50px;
            border-bottom-right-radius: 50px;
            background-color: var(--background);
            white-space: nowrap;
            width: min-content;
        }

        p{
            all: unset;
            margin-inline: 2rem;
            margin-block: 2rem;
        }

        a {
            color: var(--font);
            text-decoration: underline;
            font-weight: bold;
            padding: 2rem;
        }

    }
}


/* Contact */

.contact {
    display: grid;
    grid-template-areas: 
    'title'
    'contacts';
    

}

.contact > .title {
    grid-area: title;
    padding-block: 10rem 2rem;
    h1 {
        font-size: clamp(4rem, 8vw, 8rem);
        font-weight: bold;
    }
}

.contact > .content {
    grid-area: contacts;
    height: min-content;
    display: flex;
    flex-flow: row wrap;
    gap: 2rem;

    .form {
        flex: 2;
        min-width: 300px;
        width: 100%;
        height: min-content;
        min-height: 500px;
        background-color: var(--foreground);
        border-radius: 25px;
        padding: 2rem;
        

        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-flow: row wrap;
        gap: 1rem;
        
        

        input[type=text] {
            
            background-color: var(--background);
            border: 2px solid var(--background);
            border-radius: 25px;
            padding-block: .75rem;
            text-indent:15px;
            color: var(--font);
        }

        input[type=email] {
            
            background-color: var(--background);
            border: 2px solid var(--background);
            border-radius: 25px;
            flex-grow: 1;
            padding-block: .75rem;
            text-indent:15px;
            color: var(--font);
            
        }

        textarea {
           resize: none;
           width: 100%;
           background-color: var(--background);
           border: 2px solid var(--background);
           border-radius: 25px;
           padding: 1rem;
           color: var(--font);
        }

        button[type=submit] {
            justify-self: center;
            padding: 1rem 2rem;
            border: none;
            background-color: var(--background);
            border-radius: 25px;
            color: var(--font-alt);
        }
    }

    .social {
        flex: 1;
        min-width: 300px;
        height: 500px;
        background-color: var(--foreground);
        border-radius: 25px;


        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 1rem;

        .tiles {
            display: flex;
            align-items: center;
        
           
            width: 80%;
            height: 100px;

            img {
                order: 1;
            }

            p {
                order: 2;
            }

            a {
                margin-inline: auto 1rem;
                order: 3;
            }
        }
    }


}




.fade {
    animation: fade ease-in-out 1s;
}

.menu-overlay {
    animation: menu ease-in-out 0.25s;
}


@keyframes fade {
    from {
        padding-top: 15rem;
        opacity: 0;
    }
    to {
        padding-top: 0;
        opacity: 1;
    }
}

@keyframes menu {
    from {
        left: 100%;
        
    }
    to {
       left:0;
       
    }
}





@media only screen and (width <= 1400px) {

    body .wrapper {
        width: 100%;
        padding: 1rem;
    }

    body .wrapper ul:nth-of-type(1) {
        grid-area: navigation;
        
        li {
            display: none;
        }
        .menu {
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: var(--foreground);
            padding: 0.75rem;
            border-radius: 50%;
        }

        


       
    
      
    }
   

   
    
}