:root {
    --primary-color: rgba(13, 110, 130, 0.75);
    --overlay-color: rgb(16, 10, 10);
    --menu-speed: 0.15s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.4;
    position: relative;
    top: 0;
    left: 0;
    position: relative;
}

#home {
    position: relative;
    top: -200px;
    left: 0;
}

/* *********************** Menu *********************** */
.menu-wrap {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1;
}

.menu-wrap .toggler {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    cursor: pointer;
    width: 50px;
    height: 50px;
    opacity: 0;
}

.hamburger {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: 60px;
    height: 60px;
    padding: 1em;
    background-color: #16aae0;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
}


.menu-line {
    position: relative;
    width: 100%;
    height: 2px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 400ms ease;
}

.menu-line:before {
    content: '';
    position: absolute;
    top: -10px;
    width: 100%;
    height: 2px;
    background-color: inherit;
}

.menu-line:after {
    content: '';
    position: absolute;
    top: 10px;
    width: 100%;
    height: 2px;
    background-color: inherit;
}

/* Toggler Animate */
.toggler:checked + .hamburger .menu-line {
    transform: rotate(135deg);
}

.toggler:checked + .hamburger .menu-line::before, 
.toggler:checked + .hamburger .menu-line::after {
    top: 0;
    transform: rotate(90deg);
}

.toggler:checked:hover + .hamburger .menu-line {
    transform: rotate(225deg);
}

/* Show menu */
.menu-wrap .toggler:checked ~ .menu {
    visibility: visible;
}

.menu-wrap .toggler:checked ~ .menu > div {
    transform: scale(1);
    transition-duration: var(--menu-speed);
}

.menu-wrap .toggler:checked ~ .menu > div div {
   opacity: 1;
   transition: opacity 400ms ease;
}

.menu-wrap .menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-overlay {
    background-color: var(--overlay-color);
    border-radius: 50%;
    width: 200vw;
    height: 200vw;
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: all 400ms ease;
    z-index: 1;
}

.menu-container {
    text-align: center;
    max-width: 100vh;
    max-height: 100vh;
    opacity: 0;
    transition: opacity 400ms ease-in-out;
}

.menu-nav li {
    list-style: none;
    font-size: 3.5rem;
    padding: 1em;
}

.menu-nav li a {
    text-decoration: none;
    color: #fff;
    transition: all 400ms ease-in-out;
    font-weight: bolder;
}

.menu-nav li a:hover {
    color: #16aae0;
}

/* *********************** Banner *********************** */
.banner {
    max-width: 800px;
    width: 100%;
    margin: 8em auto;
    position: relative;
    display: flex;
}

.banner-photo {
    margin-left: 2.5em;
    width: 270px;
    height: 350px;
    object-fit: cover;
    object-position: 35%;
    z-index: 0;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
}

.banner h1 {
    width: 90%;
    font-size: 4.3rem;
    font-weight: 300;
    margin-left: 0.5em;
}

.banner span {
    display: block;
    font-weight: 700;
    margin-top: -0.3em;
}

.banner-title {
    width: 100%;
    padding: 0.5em 0.8em;
    position: absolute;
    top: 230px;
    left: 0;
    background-color: #16aae0;
    color: #fff;
    display: flex;
    justify-content: flex-end;
    font-size: 1.5rem;
    z-index: -1;
}

.title {
    letter-spacing: 0.1em;
}

/* *********************** What I DO *********************** */
.service {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8em 2em;
    background-color: rgba(46, 46, 46, 0.776);
    background-image: url(/img/services.jpg);
    background-size: cover;
    background-blend-mode: multiply;
    color: #fff;
    text-align: center;
}

.service-title {
    font-size: 2.5rem;
    color: #16aae0;
    padding-bottom: 0.5em;
    margin-bottom: 2em;
    border-bottom: 1px solid #fff;
}

.service-info {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.service-info div {
    width: 33.3%;
}
.service-info div:nth-of-type(2) {
    margin-inline: 2em;
}

.service-info-title {
    font-size: 1.5rem;
    margin-bottom: 0.5em;
}

.service-info-summary {
    margin-bottom: 1em;
    line-height: 1.6em;
}

.service-btn {
    background-color: #16aae0;
    padding: 1em 3em;
    margin-top: 2em;
    color: #fff;
    font-weight: bolder;
    font-family: 'Roboto', sans-serif;
    border-radius: 0.5em;
    text-decoration: none;
    transition: all 400ms ease-in-out;
}
.service-btn:hover {
    color: #16aae0;
    background-color: #fbfbfb;
}

/* *********************** About Me *********************** */
.about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    padding: 10em 2em;
}

.about-container {
    max-width: 1200px;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;

}

.about-me {
    width: 55%;
    margin-right: 1em;
}

.about-title {
    font-size: 3.75rem;
    font-weight: 700;
    margin-bottom: 1.5em;
}

.about-me-photo {
    width: 40%;
    object-fit: cover;
    z-index: 0;
}

.about-summary {
    margin-bottom: 1em;
    line-height: 1.7em;
}

.about-title-occupation {
    width: 100%;
    padding: 0.5em;
    position: absolute;
    top: 90px;
    left: 0;
    background-color: #16aae0;
    color: #fff;
    font-size: 1.5rem;
    z-index: -1;
}
/* *********************** Projects *********************** */
.project {
    background-color: #333333;
    color: white;
    text-align: center;
}

.project-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10em 2em;
}

.project-title {
    font-size: 3.75rem;
    font-weight: 700;
}

.project-subtitle {
    font-size: 1.5rem;
    font-weight: bolder;
    color: #16aae0;
    margin-bottom: 1.5em;
}

.project-grid {
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.grid-item {
    transition: all .5s;
    overflow: hidden;
}

.grid-item-photo {
    width: 100%;
    height: 100%;
    transform-origin: 50% 50%;
    overflow: hidden;
    transition: transform 1s linear;
    cursor: pointer;
}

.grid-item-photo:hover{    
    transform: scale(1.5) rotate(0.1deg);
  }


/* *********************** footer *********************** */
footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5em;
    background-color: black;
    color: #fff;
    text-align: center;
}

.footer-title {
    transition: all 400ms ease-in-out;
}

.footer-title:hover {
    transform: scale(1.1);
}

.footer-title a {
   margin: 1em;
   cursor: pointer;
   text-decoration: none;
   color: #fff;
   transition: all 400ms ease-in-out;
}

.footer-title a:hover {
    transform: scale(1.1);
    color: #16aae0;
}

.fa-brands {
    color: #fff;
    font-size: 2rem;
    margin: 1em 0.3em 1em;
    transition: all 400ms ease-in-out;
}

.fa-brands:hover {
    transform: scale(1.5);
    color: #16aae0;
}

@media (max-width: 1060px) {

    .about-title {
        font-size: 3.75rem;
        font-weight: 700;
        margin-bottom: 1.5em;
    }

    .about-me-photo {
        margin: 0;
        z-index: 0;
    }
}

@media(max-width: 804px) {
    /* *********************** Banner *********************** */
    .banner h1 {
        font-size: 4.1rem;
    }

    /* *********************** What I Do *********************** */

    .service-info {
        flex-direction: column;
    }

    .service-info div {
        width: 100%;
        margin-bottom: 2em;
    }

    .service-info div:nth-of-type(2) {
        margin-inline: 0;
    }

    /* *********************** About Me *********************** */
.about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    padding: 5em 2em;
}

.about-container {
    width: 100%;
    position: relative;
    flex-direction: column;
}

.about-me {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.about-title {
    order: 1;
    font-size: 3.75rem;
    font-weight: 700;
    margin: 0;
}

.about-me-photo {
    align-self: flex-end;
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: 10% 30%;
    margin-right: 0;
    z-index: 0;
}

.about-title-occupation {
    order: 2;
    width: 100%;
    position: static;
    z-index: 0;
    font-size: 1.5rem;
    margin-bottom: 1em;
}

.about-summary {
    order: 3;
}

 /* *********************** Project *********************** */
.project-grid {
    grid-template-columns: repeat(2, 1fr);
}


@media(max-width: 780px) {
    /* *********************** Banner *********************** */
    .banner h1 {
        font-size: 3.8rem;
    }
}

@media(max-width: 746px) {
    /* *********************** Banner *********************** */
    .banner h1 {
        font-size: 3.4rem;
    }
}

@media (max-width: 700px) {
    .menu-overlay {
        background-color: var(--overlay-color);
        border-radius: 0;
        width: 100%;
        height: 100vh;
    }

    /* *********************** Banner *********************** */
    .banner {
        flex-direction: column;
        padding: 1em;
        margin: 5em 0;
    }

    .banner-photo {
        order: 3;
        margin: 0;
        width: 100%;
        height: auto;
    }
    
    .banner h1 {
        order: 1;
        font-size: 3.5rem;
        font-weight: 300;
        text-align: center;
        margin-left: 0.1em;
    }
    
    .banner span {
        display: block;
        font-weight: 700;
        margin-top: -0.3em;
    }
    
    .banner-title {
        order: 2;
        width: 100%;
        margin: 0.5em 0 1em 0;
        padding: 0.5em 0.8em;
        position: relative;
        top: 0;
        left: 0;
        display: flex;
        justify-content: center;
        font-size: 1.5rem;
    }
    
    .title {
        letter-spacing: 0.1em;
        text-align: center;
    }

}

@media (max-width: 485px) {
    /* *********************** Banner *********************** */
    .banner h1 {
        font-size: 2rem;
    }

    .banner-title {
        font-size: 1rem;
    }

    .menu-nav li {
        padding: 0.5em;
    }

    .menu-nav li a {
        font-size: 2.2rem;
    }

    .about-title-occupation {
        font-size: 1.2rem;
    }

    .service-title h2 {
        font-size: 3rem;
    }

    .about-title {
        font-size: 3rem;
    }

    .project-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}