
/* General Styling */

*{ 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Exo', sans-serif;
    

}


.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}


.up {
    top: 0 !important;
}

.wrapper {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.shown {
    display: flex !important;
    opacity: 1 !important;
}

/* Header */

.page-header {
    height: 100px;
    width: 100%;
    top: 0;
    right: 20px;
    z-index: 5;
    position: fixed;
    display: flex;
    justify-content: flex-end;
    align-items: center;

    
}


.menu {

    
    opacity: 0;
    display: none;
    flex-direction: column;
    top: 120%;
    right: 10px;
    list-style: none;
    background-color: rgb(61, 190, 176);
    color: white;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    padding-right: 50px;
    position: relative;
    transition: all 0.5s;
    width: 50%;
  


}

.menu li {
    padding: 1em 2em;

}

.menu li a {

    color: inherit;
    text-decoration: none;
}

.menu li:hover{

    color:rgb(27, 95, 94);

}

.active {
    color: rgb(27, 95, 94);
}


.menu-bar {
    font-size: 2rem;
    background-color: rgba(0, 0, 0, 5%);
    padding: 1rem;
    text-align: center;
    position: absolute;
    border-radius: 50px;
    color: rgb(27, 95, 94);
    cursor: pointer;

}















/* Intro */


.intro {
    padding-top: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.intro .photo {

    width: 250px;
    margin: 0 auto;
    transform: translateX(0); /* for computer be -50px */
    border: solid 15px;
    border-top-color:  rgb(114, 116, 120) ;
    border-right-color:  rgb(114, 116, 120);
    border-bottom-color: rgb(61, 190, 176);
    border-left-color: rgb(61, 190, 176);
}

.intro .intro-header {
    width: 95%; /* for computer be 50% */
    text-align: center;
    color: rgb(63, 63, 63);
}


.intro-header h1, h2, p, button {
    margin: 0.5em 0;
}

.intro-header h2 {
    font-size: 1.8rem;
    font-weight: 100;
}

.intro-header p {
    width: 100%; /* for computer be 80% */

    font-size: 1.2rem;
    line-height: 2rem;
}

.intro-header h1 {
    font-size: 3rem;
    text-align: unset;
    line-height: 100%;
}

.intro-header h1 span {

    color: rgb(61, 190, 176);
    
}


button {
    font-size: 1.1rem;
    outline: none;
    border: none;
    background-color: rgb(61, 190, 176);
    color: white;
    padding: 0.8em 2em;
    border-radius: 5px;
    text-transform: uppercase;
    cursor: pointer;
   
}

 button:hover{
    background-color:rgb(77, 211, 195) ;
}


/* About */


.about {
    text-align: center;
    padding: 200px 0;
    color: #343536;
}

section h1 {
    font-size: 3rem;
    line-height: 3em;
    text-transform: uppercase;
    text-align: center;
}

section h1 span {
    
    color: rgb(61, 190, 176);
}

.about .box {

    background-color: rgb(241, 241, 241);
    width: 90%;
    padding: 1em 2em;
    margin: 0 auto;
    font-size: 1.1rem;
    
}

.about p {
    line-height: 2em;
}

.about .box .secondry {
    color: rgb(161, 161, 161);
}


/*  Portfolio  */

.portfolio {
    padding-bottom: 200px ;
}


.grid {

    width: 80%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto ;
    gap: 20px;
    justify-content: center;
}

.grid > div {

    border-radius: 10px;
    height: 300px;
    overflow: hidden;
    position: relative;
    border: solid 1px rgb(161, 161, 161);
    cursor: pointer;
}

.item-overlay {
    position: absolute;
    background-color: rgb(61, 190, 176);
    width: 100%;
    height: 100%;
    top: 100%;
    left: 0;
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

.item-overlay p {
    font-size: 1.5rem;
    pointer-events: none;
}

.grid div img {
 
    width: 100%;
   
 
}





/* Contact Me */


.contact {
    padding-bottom: 200px;
}



.contact-form {

    margin-top: 200px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    
}

.textbox, .text-area {
    outline: none;
    border: none;
    background-color: rgb(241, 241, 241);
    padding: 1em 1.2em;
    font-size: 1.5rem;
    color: rgb(90, 92, 95);
    border-bottom: solid 1px rgb(194, 194, 194);
}



.text-area {
    resize: none;
    padding-bottom: 5em;
    font-size: 2rem;
    
}


.contact button {
    margin: 0;
}



/* Sample */

.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    display: none;
    justify-content: center;
    align-items: center;
    
}

.overlay .sample {
    background-color: rgb(223, 223, 223);
    width: 100%;
    max-width: 1000px;
    padding: 10px;

}

#close-button {

    width: inherit;
    transform: translateX(97%);
    font-size: 1.5rem;
    cursor: pointer;
    

}

.overlay .sample .sample-body {

    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    flex-direction: column;

}

#sample-title {
    text-align: center;
    padding: 0.5em;
    border-bottom: solid 2px rgb(114, 116, 120);
}

.sample-data {
   
    padding: 10px;
}

.overlay .sample .sample-body .sample-img {
    
    width: 400px;
    height: 200px;
    overflow: hidden;
    margin: 0 auto;
}
.overlay .sample .sample-body .sample-img img {
    width: 100%;
    
}

#tools {
    color: rgb(26, 90, 83);
}

/* Media  query */

@media (min-width:800px){

.menu {
    flex-direction: row;
    top: 0;
    right: 0;
}


.intro {
    flex-direction: row;
}


.intro .photo {
    transform: translateX(-50px); /* for computer be -50px */
}



.intro .intro-header {
    width: 50%; /* for computer be 50% */
    text-align: start;
}


.intro-header p {
    width: 80%; /* for computer be 80% */
}


.grid {
    grid-template-columns: 1fr 1fr 1fr;
}

.overlay .sample .sample-body {


    flex-direction: row;


}

.overlay .sample .sample-body .sample-data {

    flex: 1;

}

.overlay .sample .sample-body .sample-img {
    
    flex: 1;
    width: 50%;
    height: 400px;
    margin: unset;

}


}