/*
*
* ===  MAIN CSS  ===
*
*/

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

html, body { margin: 0; padding: 0; min-height: 100%; max-width: 100%; overflow-x: hidden; background: url('images/Repeat_Grid.png'), url('images/background.png') #111; background-repeat: no-repeat; background-size: cover; background-attachment: fixed; background-position: center; }

main { display: flex; justify-content: center; align-items: center; }
article { width: 1504px; display: flex; justify-content: space-evenly; margin-top: 150px; z-index: 1; }
header { margin-bottom: 40px; }
.main-container { position: relative; }

img { vertical-align: middle; }

.compensate-for-scrollbar { padding-right: 0px !important; }

/* ================================ */
/* =           HEADER             = */
/* ================================ */

#header {
  position: absolute;
  width: 100vw;
  display: flex;
  justify-content: center;
  z-index: 99;
}

#header .container {
  position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 122px;
  width: 1404px;
}

#logo-a {
  width: 280px;
  display: flex;
  justify-content: center;
}

#logo {
  width: 24px;
  height: auto;
}

nav ul {
  list-style-type: none;
  display: flex;
}

nav ul #hamburger {
  display: none;
}

nav ul #hamburger i {
  font-size: 40px;
  padding: 5px;
}

nav ul #exit {
  display: none;
}

nav ul #exit i {
  font-size: 40px;
  padding: 5px;
}

nav ul .links {
  display: flex;
}

nav ul a {
  display: flex;
  align-items: center;
}

nav ul li {
  display: inline-block;
  margin-right: 42px;
  margin-top: 5px;
}

nav ul a:last-child li {
  margin-right: 0;
}


/* ================================ */
/* =             HOME             = */
/* ================================ */

#home-page {
  display: initial;
}

#home-page section {
  display: flex;
  justify-content: center;
}

#home-page #cover-image {
  animation: coverImage 0.7s ease-in-out;
}

#home-page .cover-image-container {
  width: 566px;
  height: 650px;
  text-align: center;
}

#home-page .cover-image-container .text-container {
  position: absolute;
  width: 566px;
  margin-top: -150px;
}

#home-page .cover-image-container .text-container h1 {
  display: inline-block;
  margin-bottom: 0px;
  animation: coverImageText1 1.7s ease-in-out;
 }

#home-page .cover-image-container .text-container h3 {
  animation: coverImageText2 1.7s ease-in-out;
 }

.figure-homepage {
  background-image: url('images/figure-homepage.png');
  background-position: center top;
  position: absolute;
  width: 100vw;
  min-height: 250px;
  height: calc(100vh - 653px);
  max-height: 950px;
  top: 653px;
  animation: animateFigure 1.7s ease-in-out;
}

/* ================================ */
/* =           PROJECTS           = */
/* ================================ */

#projects-page {
  margin-top: 300px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

#projects-page #displayProject1 {
  margin: 20px;
  margin-top: 0;
}

#projects-page #displayProject2 {
  margin: 20px;
  margin-top: 0;
}

#projects-page .main-container {
  width: 100%;
  margin-top: 200px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

#projects-page .main-container section .projectItemContainer {
  margin: 20px;
}

#projects-page a:hover {
  opacity: 1;
}

#projects-page section {
  border: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
}

#projects-page section h1 {
  text-align: center;
}

#projects-page div .projectItem {
  background-color: black;
  overflow: hidden;
  width: 500px;
  height: 250px;
  box-shadow: 0px 3px 10px black;
}

#projects-page div .projectItem .projectOverlay {
  background-color: rgba(0,0,0,0.1);
  width: 100%;
  height: 100%;
  display: none;
  opacity: 0;
}

#projects-page div a:hover .projectItem .projectOverlay {
  background-color: rgba(0,0,0,0.8);
  opacity: 1;
}

#projects-page div a:hover .projectItem .projectOverlay {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.tag {
  background-color: #222;
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  word-break: keep-all;
  border-radius: 5px;
  border: 1px solid #111;
  padding: 10px 20px 7px;
  margin-right: 5px;
  margin-left: 5px;
  margin-top: 10px;
  box-shadow: 0px 2px 2px black;
}

#figure-projects {
  background-image: url('images/figure-projects.png');
  background-position: 50.8% 0%;
  background-repeat: no-repeat;
  position: absolute;
  width: 100vw;
  height: 1715px;
  top: 0px;
}

#figure-projects2 {
  width: 189px;
  height: 189px;
  margin-top: 88px;
  animation: projectsFigure2 0.7s ease-in-out;
}

/* ================================ */
/* =        PROJECTS IMAGES       = */
/* ================================ */

#projects-page .projectItem {
  background-size: cover;
  transition: 0.3s;
}

/* ================================ */
/* =         PROJECT PAGE         = */
/* ================================ */

#project-page {
  margin-top: 200px;
  flex-wrap: wrap;
}

#project-page header { 
  margin-bottom: 80px; 
}

#project-page .tags {
  justify-content: inherit;
  max-width: 700px;
}

#project-page .date i {
  margin-right: 3px;
}

#project-page aside {
  position: relative;
  width: 566px;
  height: 500px;
}

#project-page .projectMainImage {
  position: absolute;
  height: 500px;
  box-shadow: 0px 3px 10px black;
}

#project-page section {
  border-left: 3px solid white;
  padding-left: 20px;
  margin-bottom: 40px;
}

#project-page header p:first-of-type {
  max-width: 736px;
}

#project-page .main-footer {
  align-self: flex-end;
  position: relative;
  width: 100%;
  text-align: center;
  margin-top: 40px;
}

#project-page .main-footer h1 {
  width: 100%;
}
#project-page .main-footer .gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin-top: 40px;
}

#project-page .main-footer .gallery-item {
  width: 300px;
  margin: 0px 20px 40px 20px;
}

#project-page .main-footer .gallery-item h4 {
 font-size: 16px;
 color: white;
 text-transform: capitalize;
 margin-bottom: 10px;
}

#project-page .main-footer .gallery-item img {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  object-position: top;
  outline: 4px solid #fff;
  box-shadow: 0 0 15px 4px rgb(0 0 0 / 70%);
  padding: 4px;
}

/* ================================ */
/* =           ABOUT ME           = */
/* ================================ */

#about-page {
  margin-top: 200px;
}

#about-page section {
  border-left: 3px solid white;
  padding-left: 20px;
  margin-bottom: 40px;
}

#about-page header p:first-of-type {
  max-width: 736px;
}

#about-page aside {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#about-page aside i {
  margin-left: 8px;
  margin-top: 20px;
}

.figure-about {
  background-image: url('images/figure-about.png');
  background-position: left top;
  background-repeat: no-repeat;
  position: absolute;
  width: 45vw;
  height: 1211px;
  top: 900px;
  right: 0;
}

/* ================================ */
/* =           FOOTER             = */
/* ================================ */

footer {
  position: relative;
  text-align: center; 
  padding: 30px;
}

/* ================================ */
/* =          ANIMATIONS          = */
/* ================================ */

@keyframes coverImage {
  0% {
    opacity: 0;
    transform: scale(0.1);
  }
  80% {
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes coverImageText1 {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
    transform: translateX(-200px);
  }
  100% {
    opacity: 1;
    transform: translateX(0px);
  }
}

@keyframes coverImageText2 {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
    transform: translateX(200px);
  }
  100% {
    opacity: 1;
    transform: translateX(0px);
  }
}

@keyframes animateFigure {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes projectsFigure2 {
  0% {
    opacity: 0;
    transform: scale(0.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ================================ */
/* =        MEDIA QUERIES         = */
/* ================================ */

@media screen and (min-width: 1930px) {

  #figure-projects {
    background-position: 51% 0%;
  }

}

@media screen and (min-width: 2250px) {

  #figure-projects {
    background-position: 52% 0%;
  }

}

@media screen and (min-width: 2500px) {

  #figure-projects {
    background-position: 53% 0%;
  }

}

@media screen and (max-width: 1440px) {

  #header .container {
    padding: 50px 122px;
    width: 100%;
  }

  #figure-projects, #figure-projects2, #projects-spacing {
    display: none;
  }

  main #project-page {
    flex-wrap: wrap;
    width: 100%;
    margin-top: 150px;
  }

  main #project-page .main-container {
    margin-top: 0px;
    order: 2;

  }

  main #project-page aside {
    order: 1;
    width: auto;
  }

  main #project-page .main-footer {
    order: 3;
  }

  main #project-page aside .projectMainImage {
    position: relative;
    height: 414px;
  }

}

@media screen and (max-width: 1304px) {
  
  main {
    padding: 0 50px;
  }
  
  article {
    width: 100%;
  }

  p {
    max-width: initial;
  }
  
  #header .container { 
    width: 100vw;
  }

  #logo-a {
    width: initial;
  }

  .figure-homepage, .figure-projects, .figure-about {
    display: none;
  }

  #about-page {
    flex-direction: column;
    align-items: center;
    margin-top: 150px;
  }

  #about-page .main-container {
    order: 2;
  }

  #about-page aside {
    order: 1;
    margin-bottom: 40px;
  }

  #projects-page {
    margin-top: 150px;
  }

  #projects-page .main-container {
    margin-top: 100px;
  }

}
@media screen and (max-width: 1179px) {

  #projects-page .main-container section:last-of-type {
    margin-top: 50px;
  }

}

@media screen and (max-width: 700px) {

  main {
    padding: 0 25px;
  }

  main #projects-page {
    margin-left: 25px;
    margin-right: 25px;
  }

  #header .container {
    padding: 50px 82px;
  }

  nav ul #hamburger {
    display: block;
  }

  nav ul .links {
    display: none;
    position: fixed;
    height: 100vh;
    min-width: 40vw;
    right: 0;
    top: 0;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    padding: 30px 60px;
    flex-direction: column;
    align-items: center;
  }

  nav ul .links a {
    margin-top: 25px;
  }

  nav ul li {
    margin-right: 0;
  }

  #home-page .cover-image-container {
    width: 360px;
    height: auto;
  }

  #home-page .cover-image-container #cover-image {
    width: 360px;
    height: auto;
  }

  #home-page .cover-image-container .text-container {
    width: 360px;
    margin-top: -93px;
  }

  #home-page .cover-image-container .text-container h1 {
    font-size: 33px;
    line-height: 34px;
  }

  #home-page .cover-image-container .text-container h3 {
    font-size: 12px;
    line-height: 17px;
    letter-spacing: 1.2px;
    padding: 4px 5px 2px 5px;
  }

  #about-page aside img {
    width: 100%;
    height: auto;
  }

  #about-page section {
    border-left: none;
    padding-left: 0px;
  }

  #project-page section {
    border-left: none;
    padding-left: 0px;
  }

  #projects-page h2 {
    font-size: 5.9vw;
    line-height: 10vw;
  }

  #projects-page #displayProject1, 
  #projects-page #displayProject2, 
  #projects-page div a, 
  #projects-page section,
  #projects-page .projectItemContainer,
  #projects-page .projectItemContainer a  {
    width: 100%;
  }

  #projects-page #displayProject1, 
  #projects-page #displayProject2 {
    margin: 20px 0px 20px 0px;
  }

  #projects-page .main-container {
    margin: 20px 0px 20px 0px;
  }

  #projects-page .main-container section {
    margin-top: 50px;
  }

  #projects-page .main-container section .projectItemContainer {
    margin: 20px 0px 20px 0px;
  }

  #projects-page div .projectItem, #projects-page .main-container section .projectItemContainer .projectItem {
    width: 100%;
    height: 40vh;
    max-height: 250px;
  }

}

@media screen and (max-width: 500px) {

  #projects-page .main-container section, #projects-page .main-container section:last-of-type {
    margin-top: 50px;
  }

  #projects-page div .projectItem, #projects-page .main-container section .projectItemContainer .projectItem {
    width: 100%;
    height: 40vh;
    max-height: 140px;
  }

}
