/* Style file */
/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Mochiy+Pop+One&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Mochiy+Pop+One&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* General */
body {
  scroll-behavior: smooth;
  box-sizing: border-box;
  background: #f9f9f9;
}

@media (min-width: 640px) {
  body {
    margin-left: 15%;
    margin-right: 15%;
  }
}

em {
  font-style: italic;
  color: #9164be;
}

strong {
  font-weight: 700;
  color: #9164be;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

/* Texts */
h2 {
  font-family: "Mochiy Pop One", fantasy;
  color: #9164be;
}

p {
  font-family: "Poppins", sans-serif;
}

a {
  text-decoration: none;
}

/* Nav */
nav {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-auto-columns: auto;
  justify-content: start;
  align-content: center;
  column-gap: 10px;
  height: 134px;
}

nav a {
  text-decoration: none;
  font-family: "Mochiy Pop One", fantasy;
  font-size: 28px;
  color: #f9f9f9;
  background: #9164be;
  border: 3.5px solid #9164be;
  padding: 6px 13px 5px 13px;
  border-radius: 0.5em;
  user-select: none;
  transition: 0.25s;
  box-shadow: 0px 0px 15px 0px rgba(132, 0, 117, 0.15);
}

nav a.active {
  color: #9164be;
  background: white;
  border-color: #9164be;
}

/* Nav - Responsive */
.h-apolline-full,
.h-works-full,
.h-cv-full {
  display: none;
  white-space: nowrap;
}

.h-apolline-short {
  display: inline-block;
}

.h-works-short,
.h-cv-short {
  display: inline-block;
}

.h-apolline-full,
.h-apolline-short {
  grid-column: 1/2;
}

.h-works-full,
.h-works-short {
  grid-column: 2/3;
}

.h-cv-full,
.h-cv-short {
  grid-column: 3/4;
}

@media (max-width: 900px) {

  nav {
    margin-right: 10vw;
  }

  nav a {
    font-size: 22px;
    border: 1.5px solid #9164be;
    padding: 3px 6px 3px 6px;
  }
}

@media (min-width: 640px) {
  nav {
    column-gap: 20px;
    margin-right: 15%;
    margin-left: 15%;
  }

  nav a {
    padding: 5px 20px 5px 20px;
  }

  nav a:hover {
    padding: 5px 20px 5px 20px;
  }
}

@media (min-width: 1024px) {
  .h-apolline-short {
    display: none;
  }

  .h-apolline-full {
    display: inline-block;
  }
}

@media (min-width: 1225px) {

  .h-works-full,
  .h-cv-full {
    display: inline-block;
  }

  .h-works-short,
  .h-cv-short {
    display: none;
  }
}

/* Buttons */
/* Go back on top of the page button */
.main-top-button {
  display: flex;
  justify-content: flex-end;
}

#main-top {
  background-color: #9164be;
  color: white;
  width: 90px;
  height: 70px;
  border-radius: 10px;
  font-family: "Mochiy Pop One", fantasy;
  font-size: 26px;
  text-align: center;
  line-height: 70px;
}

#main-top:hover {
  background-color: #694989;
}

/* Page Apolline Vandaele buttons */
/* Call To Actions 1 (work) */
#button-container {
  display: flex;
  justify-content: center;
  margin-left: 20px;
}

#button-container div {
  margin-right: 20px;
}

#button-works {
  background-color: #32a8da;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 28px;
  padding: 15px 25px;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  box-shadow: -1px 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
}

#button-works:hover {
  background-color: #9164be;
  box-shadow: -1px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Call To Actions 1 (resume) */
#button-cv {
  background-color: #324dda;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 28px;
  padding: 15px 25px;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  box-shadow: -1px 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
}

#button-cv:hover {
  background-color: #9164be;
  box-shadow: -1px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Contact buttons */
.social-button {
  font-family: "Poppins", sans-serif;
  font-size: large;
  color: #9164be;
  background-color: #ffffff;
  border: 2px solid #9164be;
  border-radius: 15px;
  padding: 12px 60px;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  display: block;
  margin-bottom: 20px;
}

.social-button:hover {
  color: #ffffff;
  background-color: #9164be;
}

/* Page "Project XXX" buttons */
/* View project button */
.project-links {
  display: inline-flex;
  margin-top: 10%;
  align-content: center;
  width: 100%;
  justify-content: center;
}

.view-project {
  font-family: "Poppins", sans-serif;
  font-size: large;
  color: #9164be;
  background-color: #ffffff;
  border: 2px solid #9164be;
  border-radius: 40px;
  padding: 12px 50px;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  display: block;
  margin-bottom: 20px;
}

.view-project2 {
  font-family: "Poppins", sans-serif;
  font-size: large;
  color: #9164be;
  background-color: #ffffff;
  border: 2px solid #9164be;
  border-radius: 40px;
  padding: 12px 50px;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  display: block;
  margin-bottom: 20px;
  margin-left: 15px;
}

.view-project:hover,
.view-project2:hover {
  color: #ffffff;
  background-color: #9164be;
}

.view-project-spacing {
  margin-top: 12%;
}

@media (max-width: 900px) {
  #mobile-button {
    margin-top: 40px;
    margin-bottom: 50px;
    margin-left: 65px;
  }
}

/* Navigation buttons (to see the other projects or go back on top of the page) */
.project-buttons {
  margin-top: 5%;
  display: inline-flex;
}

.project-top-button {
  display: flex;
  justify-content: flex-start;
  margin-right: 10px;
}

#project-top {
  background-color: #9164be;
  color: white;
  width: 70px;
  height: 50px;
  border-radius: 10px;
  font-family: "Mochiy Pop One", fantasy;
  font-size: 20px;
  text-align: center;
  line-height: 50px;
}

#project-previous,
#project-next {
  background-color: #9164be;
  color: white;
  width: 70px;
  height: 50px;
  border-radius: 10px;
  font-family: "Mochiy Pop One", fantasy;
  font-size: 10px;
  text-align: center;
  line-height: normal;
}

#project-top:hover,
#project-previous:hover,
#project-next:hover {
  background-color: #694989;
}

/* Slider */
/* Slider 1 - Portrait (for projects like mobile prototypes) */
#slider {
  margin: 0 auto;
  width: 300px;
  max-width: 100%;
  text-align: center;
}

#slider input[type="radio"] {
  display: none;
}

#slides {
  border: 3px solid #9164be;
  border-radius: 15px;
  position: relative;
  z-index: 1;
}

#overflow {
  width: 100%;
  overflow: hidden;
}

#slide1:checked~#slides .inner {
  margin-left: 0;
}

#slide2:checked~#slides .inner {
  margin-left: -100%;
}

#slide3:checked~#slides .inner {
  margin-left: -200%;
}

#slides .inner {
  transition: margin-left 800ms cubic-bezier(0.77, 0, 0.175, 1);
  width: 400%;
  line-height: 0;
}

#slides .slide {
  width: 25%;
  float: left;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.slide-content {
  padding: 10px;
}

/* Slider - Arrows (inactive / display:none) */
#controls {
  margin: -180px 0 0 0;
  width: 100%;
  height: 50px;
  z-index: 3;
  position: relative;
}

#controls label {
  transition: opacity 0.2s ease-out;
  display: none;
  width: 50px;
  height: 50px;
  opacity: 0.4;
}

#controls label:hover {
  opacity: 1;
}

#slide1:checked~#controls label:nth-child(2),
#slide2:checked~#controls label:nth-child(3),
#slide3:checked~#controls label:nth-child(1) {
  background: url(src/projets/icones/flechedroite.svg) no-repeat;
  float: right;
  margin: 0 -50px 0 0;
  display: flex;
}

#slide1:checked~#controls label:nth-last-child(3),
#slide2:checked~#controls label:nth-last-child(2),
#slide3:checked~#controls label:nth-last-child(1) {
  background: url(src/projets/icones/flechegauche.svg) no-repeat;
  float: left;
  margin: 0 0 0 50px;
  display: block;
}

/* Slider - Bullets with numbers */

#bullets {
  margin: 150px 0 0;
  text-align: center;
  margin-left: -20px;
}

#bullets label {
  border: 2px solid #9164be;
  border-radius: 50%;
  display: inline-block;
  width: 35px;
  height: 35px;
  background: #ffffff;
  margin: 5px;
  color: #9164be;
  font-family: 'Poppins', sans-serif;
  font-size: 23px;
  justify-content: center;
  align-items: center;
}

#bullets label:hover {
  background: #9164be;
  color: white;
  cursor: pointer;
}

/* Slider 2 - Landscape (for projects like desktop prototypes) */
#slider2 {
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  text-align: center;
}

#slider2 input[type="radio"] {
  display: none;
}

/* Slider 2 - Video project */

.video {
  width: 820px;
  height: 620px;
}

@media (max-width: 900px) {
  .video {
    width: 80vw;
    height: 100%;
  }
}

/* Slider - Responsive */

@media screen and (max-width: 900px) {

  #slide1:checked~#controls label:nth-child(2),
  #slide2:checked~#controls label:nth-child(3),
  #slide3:checked~#controls label:nth-child(1),
  #slide1:checked~#controls label:nth-last-child(3),
  #slide2:checked~#controls label:nth-last-child(2),
  #slide3:checked~#controls label:nth-last-child(1) {
    margin: 0;
  }

  #mobile {
    display: block;
    margin-top: 70px;
  }

}

/* Page 1 "Apolline Vandaele" */
#branding-grid-container {
  display: grid;
  gap: 20px;
  margin-top: 115px;
  margin-bottom: 40px;
  margin-left: 10%;
}

.branding-img {
  margin-top: 60px;
  max-width: 100%;
  height: auto;
}

#logo {
  grid-row: 1;
  align-self: center;
  margin-top: 10%;
}

#selfportrait {
  grid-row: 1;
  grid-column: 2;
  margin-bottom: 40px;
  width: 80%;
}

#introduction {
  grid-row: 2;
  font-size: large;
  margin-left: 10%;
  margin-right: 7%;
}

#contact {
  margin-top: 10%;
  margin-bottom: 7%;
  padding-left: 10%;
}

.social {
  margin-top: 4%;
}

@media (max-width: 900px) {
  #branding-grid-container {
    grid-template-rows: auto auto;
    margin: auto;
    padding-bottom: 6%;
  }

  #logo {
    grid-row: 1;
    align-self: center;
    margin: 10% auto;
    width: 80%;
  }

  #selfportrait {
    grid-row: 1;
    grid-column: 1;
    margin-bottom: 40px;
    width: 40%;
    margin: 0 auto;
    align-self: center;
    padding-top: 100px;
  }

  #introduction {
    grid-row: 2;
    font-size: large;
    margin-left: 10%;
    margin-right: 7%;
  }
}

@media (max-width: 460px) {
  #branding-grid-container {
    grid-template-rows: auto auto;
    margin: auto;
    padding-bottom: 6%;
  }

  #logo {
    grid-row: 1;
    align-self: center;
    margin: 10% auto;
    width: 80%;
  }

  #selfportrait {
    grid-row: 1;
    grid-column: 1;
    margin-bottom: 40px;
    width: 70%;
    margin: 0 auto;
    align-self: center;
    padding-top: 100px;
  }

  #introduction {
    grid-row: 2;
    font-size: large;
    margin-left: 10%;
    margin-right: 7%;
  }
}

/* Page 2 "My works" */
.body-works {
  margin-top: 11%;
}

#intro-works {
  grid-row: 2;
  font-size: larger;
}

#aside-grid {
  margin-bottom: -60px;
}

/* Grid gallery of projects */

.grid {
  display: grid;
  grid-auto-rows: auto;
  justify-content: center;
  user-select: none;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 5%;
}

.a-img-txt {
  display: grid;
}

.a-img-txt>* {
  grid-area: 1/1/-1/-1;
}

.a-img-txt:hover>.a-txt {
  font-family: "Mochiy Pop One", fantasy;
  color: white;
}

.a-txt {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  color: rgba(0, 0, 0, 0);
  opacity: 1;
  font-family: "Mochiy Pop One", fantasy;
  font-size: 18px;
  font-weight: 400;
  padding-top: 12px;
  padding-left: 12px;
  padding-right: 12px;
  padding-bottom: 12px;
  border-radius: 0.3em;
  border: 0.18em solid #9164be;
}

.a-txt>div {
  margin-top: auto;
}

.a-img {
  border-radius: 0.3em;
}

.poppins {
  font-family: 'Poppins', sans-serif;
}

/* Yellow squares - UX Design projects */
#project-1:hover .a-txt,
#project-2:hover .a-txt,
#project-2:hover .a-txt,
#project-6:hover .a-txt,
#project-8:hover .a-txt {
  background: rgba(235, 218, 69, 0.9);
}

/* Pink squares - UI Design projects */
#project-3:hover .a-txt,
#project-4:hover .a-txt, 
#project-5:hover .a-txt {
  background: rgba(235, 69, 198, 0.85);
}

/* Blue squares - Web projects */
#project-9:hover .a-txt,
#project-7:hover .a-txt {
  background: rgba(69, 185, 235, 0.85);
}

/* Green squares - Graphic design projects */
#project-10:hover .a-txt,
#project-11:hover .a-txt,
#project-12:hover .a-txt,
#project-13:hover .a-txt,
#project-15:hover .a-txt,
#project-16:hover .a-txt {
  background: rgba(69, 235, 85, 0.85);
}

/* Red squares - Motion design projects */
#project-14:hover .a-txt {
  background: rgba(235, 79, 69, 0.85);
}

/* Grid gallery of projects - Responsive */
@media (max-width: 900px) {
  .body-works {
    margin-top: 120px;
  }
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }

  #aside-grid {
    padding-bottom: 10%;
  }

  .intro-works {
    font-size: 14px;
  }

  .a-txt {
    display: flex;
    font-size: 20px;
    font-weight: 400;
    padding-left: 12px;
    padding-bottom: 10px;
    border-radius: 0.3em;
    text-shadow: none;
    border: 0.18em solid #9164be;
    color: rgba(0, 0, 0, 0);
    transition: 0.25s;
    transition-timing-function: ease;
  }
}

@media (min-width: 1025px) {
  .grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .intro-works {
    font-size: 18px;
  }

  .start {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .grid {
    margin-top: 100px;
  }
}

/* Page 4-18 "Project XXX" */
.main-article {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  column-gap: 25px;
  row-gap: 18px;
  margin-top: 18%;
  font-size: 18px;
}

.main-article .img-block {
  grid-row-start: 4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 20px;
}

.main-article {
  grid-row-start: 2;
}

.main-article img,
.main-article iframe {
  grid-column: 1/3;
  border-radius: 0.3em;
}

#info>p {
  font-size: 18px;
  margin-bottom: 5%;
}

#link {
  text-decoration: underline;
  color: #9164be;
}

/* Project title */
.main-article .title {
  color: #9164be;
  font-family: "Mochiy Pop One", fantasy;
  font-size: 30px;
  grid-row: 1/2;
  margin: 0;
}

.title-project-2 {
  width: 80%;
  margin-left: 5%;
}

/* Project type (UX, UI, web, graphic design...) */
.main-article .type {
  grid-row: 2/3;
  color: #9164be;
  font-family: "Poppins", sans-serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
}

h3 {
  color: #9164be;
  font-size: 24px;
  font-style: italic;
  margin-bottom: 10px;
}

.main-article {
  display: grid;
}

.main-article>article {
  height: 100%;
  grid-column: 1;
  padding-left: 5%;
  padding-right: 20%;
}

.title-article {
  display: flex;
  flex-direction: row;
  flex-flow: row wrap;
  gap: 5px;
  margin-bottom: 5%;
}

.title-article>img {
  width: auto;
}

.title-article>img {
  width: auto;
}

.title-article>div {
  margin-right: 20px;
}

.info {
  margin-top: 3%;
  margin-bottom: 6%;
}

.main-article>aside {
  grid-column: 2;
}

.main-article>aside>img {
  width: auto;
  height: 60%;
}

@media (max-width: 460px) {
  .title-article div {
    margin-top: 50px;
  }
}

/* Footer */
footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 75px;
  margin-top: 30px;
  margin-right: -10px;
}

.copyright {
  display: grid;
}

.copyright>p {
  color: #000;
  font-family: "Poppins", sans-serif;
  font-style: italic;
  margin-right: 10px;
  grid-column: 1;
  grid-row: 1;
}

.copyright>img {
  height: 40px;
  grid-column: 2;
  grid-row: 1;
}

/* Footer - Responsive */

@media (min-width: 1024px) {
  .copyright {
    text-align: right;
    justify-self: end;
    align-self: end;
    grid-column: -2/-1;
    grid-row: 1/-1;
  }

  footer {
    grid-template-columns: 1fr 1fr 1fr 6fr;
    row-gap: 0;
  }
}

/* Loader */

.loader-container {
  position: absolute;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  background-color: #f9f9f9;
  z-index: 4;
  left: 0;
  top: 0;
}

.loader {
  display: flex;
  box-sizing: border-box;
  z-index: 4;
}

.loader:before {
  content: "";
  margin: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #9164be;
  background: currentColor;
  box-shadow: -30px 0, 30px 0, 0 30px, 0 -30px;
  animation: l6 1s infinite alternate;
}

@keyframes l6 {

  90%,
  100% {
    box-shadow: -10px 0, 10px 0, 0 10px, 0 -10px;
    transform: rotate(180deg)
  }
}