/* Mobile or narrow layout */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body{
    font-family: Rajdhani;
    /* background-image: url("hong-kong.jpg"); */
    height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}
main {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    overflow: scroll;
    scroll-behavior: smooth;
}


#appName[mini] .full-name, 
#appName:not([mini]) .short-name {
    display: none;
}

#appName[mini] .short-name {
    display: block;
}


header {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.logo {
}

nav {
    width: 100%;
    height: 60px;
    background: rgba(0,0,0,0.9);
    background-color: #08060b;
    padding: 0 24px;
    display: flex;
    color: white;
    flex-direction: row;
    align-items: center;

    /* mobile only */
    justify-content: space-between;
}

nav button {
    display: block;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

#navBar > * {
    z-index: 2;
}

#navBar > ul {
    width: 100%;
    height: inherit;
    position: absolute;
    top: 60px;
    display: flex;
    background: inherit;
    justify-content: center;
    left: 0;
    margin: 0;
    padding: 0;
    z-index: 1;

    -webkit-transition: all 300ms ease-in-out;
    -moz-transition: all 300ms ease-in-out;
    transition: all 300ms ease-in-out;
}

#navBar:not([opened]) > ul {
    opacity: 0;
    top: 0;
    user-select: none;
    pointer-events: none;

}

nav ul li {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

nav a {
    color: lightgray;
    text-decoration: none;
    padding: 8px 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

nav a:hover {
    color: #528dce;
}

nav a:hover .icon  {
    --icon-color: #528dce;
}

.indicator {
    width: 100%;
    height: 2px;
    background-color: white;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transform: translateX(-100%);

    -webkit-transition: transform 400ms ease;
    -moz-transition: transform 400ms ease;
    transition: transform 400ms ease;
}

nav a:hover ~ .indicator {
    opacity: 1;
    transform: translateX(0%);
}

section {
    background: white;
}

.parallax {}

.content {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 12px 24px;
}

.parallax {
    width: 100%;
    height: 600px;
    z-index: 1;
    background-image: url('portfolio.png');
    background-attachment: fixed;
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}

#projet .parallax {
    background-image: url('');
}

#home .parallax {
    background-color: #9e9e9e54;
    background-position: 0px -200px;
}


span.github-logo {
    display: block;
    width: 32px;
    height: 32px;
}


ul.projects {
    position: relative;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 24px;
    grid-auto-rows: minmax(200px, auto);
    padding: 0;
}

li.project {
    display: relative;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

li.project:hover .details {
    display: flex;
    background-color: rgba(0, 0, 0, 1);
}

li.project .github-url {
    width: 24px;
    height: 24px;
    display: block;
    margin: 6px;
}

.project.fansite {
    background-image: url('projets/fansite.png');
}

.project.module-connexion {
    background-image: url('projets/module-connexion.png');
}


.project.livre-or {
    background-image: url('projets/livreor.png');
}


.project.salles-reservation {
    background-image: url('projets/sallesreservation.png');
}

.project .details {
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    background-color:black;
    color: white;
    text-decoration: none;
}




section#home {
    height: 100vh;
    background: url(future-grid.webp) no-repeat center;
    background-color: #08060b; /* #691aff; */
    color: white;
    background-size: cover;
    background-position: right;


    /* margin-bottom: 100px;
    opacity: 0.95;
    min-height: 600px; */
}

/*
section#home .wallpaper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;

    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
}


section#home .wallpaper {
    background-image: url('assets/wallpaper.webp');
}

*/

section#home .content {
    flex-direction: column;
    justify-content: center;
    align-items: start;
    height: 100%;
    width: 100%;
}

section#home span {
    color: white;
}

section#home h2 {
    font-size: 68px;
    margin-bottom: 0;
    margin-top: 0;
}


section#home p {
    font-size: 40px;
    opacity: 0.7;
    margin: 0;
    margin-bottom: 24px;
}


section#home button {
    width: fit-content;
    padding: 16px 48px;
    border-radius: 30px;
    border: 0;
    color: #528dce;  /* lightblue; */
    background: transparent; /* darkblue; */
    font-size: 20px;
    cursor: pointer;
    outline: 3px solid white;
}

section#home button a  {
    color: inherit;
    text-decoration: none;
}

section#home button:hover {
    outline-color: white;
    color: #14202a;
    background-color: white;
}


#about .parallax {
    background-image: url('');
}

section#about {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 1000px;
}

section#about .wallpaper {
    flex: 1;
    background: url(sf.jpg) no-repeat center;
    background-size: cover;
}

section#about .content {
    flex: 1;
    background: #0f1922;
    color: white;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

section#about .content h2 {
    font-size: 3rem;
    margin: 12px 0;
    letter-spacing: 1.5px;
    height: 60px;
}

section#about .content h3 {
    text-transform: uppercase;
    font-weight: 500;
    color: #d45a4c;
    font-size: 18px;
    margin: 8px 0;
}

section#about .content p {
    letter-spacing: 0.7px;
    word-spacing: 1px;
    opacity: 0.7;
    line-height: 24px;
}

span.icon {
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;


    background-color: var(--icon-color, white);
    -webkit-mask: var(--icon-url) no-repeat 50% 50%;
    mask: var(--icon-url) no-repeat 50% 50%;

    -webkit-mask-size: cover;
    mask-size: cover;
}

.github-logo {
    --icon-url: url('assets/github-logo.svg');
}

.linkedin-logo {
    --icon-url: url('assets/linkedin-logo.svg');
}


[hidden] {
    display: none !important;
    user-select: none;
    pointer-events: none;
}

[disabled] {
    pointer-events: none !important;
}

/* ======= PROJECTS - SECTION ======== */

section#projects {
    display: flex;
    flex-direction: column;
    background: white;
    color: black;
    min-height: 100vh;
    height: auto;
    position: relative;
}

section > .topic {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    padding: 24px;
    height: 200px;
}

section > .topic h3 {
    text-transform: uppercase;
    font-weight: 500;
    color: #d45a4c;
    font-size: 18px;
    margin: 8px 0;
    font-weight: 600;
}

section > .topic h1 {
    font-size: 48px;
    margin-top: 0;
}

#slider {
    background: #e7e7e7;
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: center;
    height: 100vh;
    width: 100%;
}

#slider > .controller {
    position: absolute;
    display: flex;
    height: 100%;
    /* flex: 1; */
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

#slider > .controller > .icon-button.control {
    width: 40px;
    height: 40px;
    border-radius: 40px;
    border: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 12px;
    padding: 8px;
    box-sizing: border-box;
    cursor: pointer;
    pointer-events: auto;
}

#slider > .controller > .icon-button.control:hover {
    background: black;
    color: white;
}


#slides {
    display: flex;
    width: 100%;
    height: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

#slides > .slide {
    position: relative;
    width: 100%;
    min-width: 100%;
    height: inherit;
    overflow: hidden;

    margin-left: 0%;

    -webkit-transition: all 400ms ease;
    -moz-transition: all 400ms ease;
    transition: all 400ms ease;
    
}


.slide > .object {
    transform: scale(1);
    width: 100%;
    height: auto;
    object-fit: cover;
    height: 100%;

    -webkit-transition: transform 400ms ease;
    -moz-transition: transform 400ms ease;
    transition: transform 400ms ease;
}

.slide:hover > .object {
    transform: scale(1.2);
}

.slide:hover .details > .description-wrapper {
    height: 72px;
}

.slide:hover .details {
    padding-bottom: 48px;
}


.slide .details {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent);
    user-select: none;
    
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: end;
    color: white;

    padding-bottom: 32px;

    -webkit-transition: all 400ms ease-in-out;
    -moz-transition: all 400ms ease-in-out;
    transition: all 400ms ease-in-out;

}



.slide .details > h3.name {
    font-size: 100px;
    margin: 1rem 0;
}

.slide .details > .description-wrapper {
    width: 100%;
    height: 0;
    overflow: hidden;

    -webkit-transition: height 400ms ease-in-out;
    -moz-transition: height 400ms ease-in-out;
    transition: height 400ms ease-in-out;
}

.description-wrapper > p.description {
    line-height: 24px;
    font-size: 18px;
}

.slide .details > ul.tools {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.7);
    padding: 12px 0;
    list-style: none;
    justify-content: start;
    width: 100%;
    height: 32px;
    align-items: center;
}

.slide .details > ul.tools > li {
    padding: 8px;
    opacity: 0.8;
}


/* ======== END of PROJECTS - SECTION ========= */







/* ======= CONTACT - SECTION ======== */

section#contact {}

section#contact > .content {
    background: black;
    color: white;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

section#contact h2 {
    font-size: 32px;
    margin: 0;
}

section#contact h3 {
    text-transform: uppercase;
    font-weight: 500;
    color: #d45a4c;
    font-size: 18px;
    margin: 8px 0;
    font-weight: 600;
    font-size: 20px;
}

section#contact p {
    text-align: center;
    opacity: 0.6;
}

section#contact button {
    width: 80%;
    background: transparent;
    border: 3px solid white;
    border-radius: 12px;
    color: white;
    font-size: 18px;
    margin: 24px 0;
    max-width: 300px;
    box-sizing: border-box;
    cursor: pointer;
    pointer-events: auto;
}



section#contact button > a {
    display: flex;
    color: inherit;
    text-decoration: none;
    padding: 12px 24px;
    justify-content: center;
    align-items: center;
    background-color: inherit;
}

section#contact button:hover {
    background: white;
    color: black;
}

section#contact button span {
    margin: 0 8px;
}

section#contact .socials {
    display: flex;
}

section#contact .socials .icon {
    margin: 4px;
    opacity: 0.6;
}

section#contact .socials .icon:hover {
    opacity: 1;
}

/* ======= END of CONTACT - SECTION ======= */




/* Laptop or wide layout */
@media (min-width: 460px) {
    ul.projects {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: minmax(400px, auto);
    }

    section#home {
        background-position: center top;
    }

    section#about {
        flex-direction: row;
        height: 800px;
    }

    section#about .content h3 {
        font-size: 24px;
    }


    section#about .wrapper {
        padding: 48px;
    }

    section#home .content {
        align-items: center;
    }

    section#home h2 {
        font-size: 92px;
    }


    section#home span {
        font-size: 24px;
    }


    section#home button {
        margin-top: 50px;
       
    }

    button a{
        text-decoration: none;

    }

    nav {

    }

    nav button {
        display: none;
    }

    #navBar > ul {
        position: relative;
        top: 0;
        justify-content: flex-end;
    }

    #navBar:not([opened]) > ul {
        opacity: 1;
        pointer-events: auto;
    }

    .slide .details {
        padding: 48px 72px;
        padding-bottom: 100px;
    }

    section#contact h2 {
        font-size: 48px;
    }

    section#contact h3 {
        font-size: 24px;
        font-weight: 500;
    }

    section#contact p {
        font-size: 24px;
        margin: 8px 16px;
    }

}

