@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;1,600;1,700&display=swap');

/*Variables*/
:root {
    --base-color: dodgerblue;
    --light-color: #48cae4;
    --eye-color: #0dcdfd;
    --heading-font-color: black;
    --heading-size: 2rem;
    --subheading-font-color: rgba(0,0,0,.7);
    --subheading-size: 1.6rem
}
/*nav*/

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    
}

body {
    width: 100%;
    height: 100vh;
    
}

a {
    text-decoration: none;
    color: black;
}

.experience-grid-item a {
    text-decoration: underline;
}

ul {
    list-style: none;
}

header {
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.container {
    width: 100%;
    max-width: 117rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

nav {
    display: flex;
    align-items: center;
    width: 100%;
    height: 8rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.logo {
    display: flex;
    margin-right: 5rem;
    color: var(--base-color);
    font-size: 1.3rem;
}

.nav-list {
    display: flex;
    width: 100%;
    align-items: center;
}

.nav-list li{
    line-height: 8rem;
    position: relative;
}

.sub-menu li {
    line-height: 4rem;
}

.nav-list a {
    display: block;
    color: var(--base-color);
    padding: 0 1.5rem;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.nav-list a:hover {
    color: var(--eye-color);
}

.btn {
    padding: 1.3rem;
    display: inline-block;
    border: 2px solid var(--base-color);
    border-radius: 5rem;
    transition: background-color 650ms;
    font-size: 1.2rem;
    margin-left: 5rem;
}

.sub-menu .w{
    color: #fff;
}

.sub-menu {
    width: 20rem;
    display: block;
    position: absolute;
    border-top: 3px solid var(--eye-color);
    background-color: var(--base-color);
    z-index: 100;
    top: 16rem;
    opacity: 0;
    visibility: hidden;
    transition: all 650ms ease;
}

.sub-menu::before {
    content: "";
    position: absolute;
    top: -2.5rem;
    left: 3rem;
    border: 1.2rem solid transparent;
    border-bottom-color: var(--eye-color);
}

.nav-list li:hover > .sub-menu {
    top: 8rem;
    opacity: 1;
    visibility: visible;
}

li.move-right {
     margin: auto 0 auto auto;
     line-height: initial;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 2.4rem;
    height: .3rem;
    background-color: var(--base-color);
    margin: 5px;
    
}

@media screen and (max-width: 850px) {
    html {
        overflow-x: hidden;
    }
    body {
        overflow-x: hidden;
        position: relative;
    }
    .nav-list {
        position: absolute;
        right: 0;
        top: 10vh;
        background-color: dodgerblue;
        display: flex;
        flex-direction: column;
        align-items: initial;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-list a {
        color: #fff;
    }

    .btn {
        display: none;
    }
    
    .nav-list li {
        opacity: 1;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .sub-menu {
        position: initial;
        max-height: 0;
    }

    .nav-list li:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        max-height: initial;
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0px);
        }
        
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px,6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px,-6px);
    }
    
}

@media screen and (max-width: 768px) {
    html {
        overflow-x: hidden;
    }
    body {
        overflow-x: hidden;
        position: relative;
        
    }
    .nav-list {
        position: absolute;
        right: 0;
        top: 10vh;
        background-color: dodgerblue;
        display: flex;
        flex-direction: column;
        align-items: initial;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-list a {
        color: #fff;
    }

    .btn {
        display: none;
    }
    
    .nav-list li {
        opacity: 1;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .sub-menu {
        position: initial;
        max-height: 0;
    }

    .nav-list li:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        max-height: initial;
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0px);
        }
        
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px,6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px,-6px);
    }
    
}

/*Hero*/

.hero {
    width: 100%;
    height: 80vh;
    display: flex;
    margin: auto;
    align-items: center;
}

.intro-text h1 {
    font-size: 3.8rem;
    margin-left: 5rem;
}

.intro-text h2 {
    font-size: 2rem;
    font-weight: 100;
    margin-left: 5rem;
}

.photo {
    border-radius: 99%;
    height: 25rem;
    margin-right: 30rem;
}

.cta img {
    height: 1.6rem;
    margin-left: 5rem;
    margin-top: 1rem;
}

@media screen and (max-width: 850px) {
    .cover img {
        display: none;
    }
}




/*Column Section*/

.column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    grid-gap: 1rem;
}

.column-grid-item {
    height: 40rem;
    padding: 5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 1;
    align-items: center;
    margin-bottom: 5rem;
}

.column-grid-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.column-grid-item i {
    font-size: 4rem;
    color: var(--base-color);
}

.column-grid-item h5 {
    font-size: 1.7rem;
    text-transform: uppercase;
    margin: 2rem 0;
}

.column-grid-item li {
    font-size: 1.5rem;
}

/*photo*/
.ref {
    align-items: center;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    
}
.photos img {
    height: 550px;
    width: 380px;
    padding: 2rem;
    margin-bottom: 5rem;
}

/*contact*/
.card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    
}

.info-heading {
    font-size: 3rem;
    font-weight: 100;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    color: black;
    align-items: center;
}

.info-description {
    font-size: 1.6rem;
    margin-bottom: 4rem;
    line-height: 1.5;
}

.info-left {
    margin-left: 5rem;
    width: 50%;
}

.info-right {
    margin-bottom: 5rem;
    display: grid;
    border-radius: 2rem;
    box-shadow: -6px -6px 20px rgba(255,255,255,.1),
                6px 6px 20px rgba(0,0,0,.1);
}

.info-right:hover {
    box-shadow: inset -6px -6px 10px rgba(255,255,255,.5),
                inset 6px 6px 20px rgba(0,0,0,.05);
}

.email i,
.tel i {
    font-size: 4rem;
    color: #fff;
}

/*a propos*/
.title-heading {
    text-align: center;
    margin-bottom: 2rem;
    color: rgba(0,0,0,.7);
}

.title-heading h1 {
    font-size: 3rem;
    font-weight: 100;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    color: black;
}

.title-heading h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    font-weight: 500;
    margin-left: 5rem;
    margin-right: 5rem;
    color: black;
}

.title-heading p {
    font-size: 1.5rem;
    font-weight: 100;
    color: black;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    grid-gap: 1.8rem;
    margin-bottom: 2rem;
    padding: 3.2rem;
}

/*lang fr*/
.lang {
    text-align: center;
    color: rgba(0,0,0,.7);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    grid-gap: 1.8rem;
    margin-bottom: 2rem;
    padding: 3.2rem;
    margin-left: 5rem;
    margin-right: 5rem;
}

.lang h1 {
    font-size: 3rem;
    font-weight: 100;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    color: black;
}

.lang p {
    font-size: 1.5rem;
    font-weight: 100;
    justify-content: center;
    align-items: center;
}

.title-heading i {
    color: var(--base-color);
}

/*up*/
.up {
    justify-content: right;
    color: dodgerblue;
    font-size: 5rem;
}