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

html {
  scroll-behavior: smooth;
}

body {
  font-size: 1.2rem;
  font-family: 'Minotaur Web';
  color: var(--FONT-COLOR);
}

:root {
  --HEADER-RED: white;
  --FONT-COLOR: #141414;
  --BODY-GRAY: white;
  /* --HEADER-HOVER-BLUE: #45567d;
     --PROJECT-PBGCOLOR: #303841;
     --POPPING-RED: brown; */
}

@font-face {
  font-family: 'Minotaur Web';
  src: url('./src/fonts/Minotaur-Regular.woff2') format('woff2'),
       url('./src/fonts/Minotaur-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

h1, h2, h3 {
  font-weight: normal;
}

/* UTILITY CLASSES */
.wrap {
  white-space: wrap;
}

.inline {
  display: inline;
}

/* NAVIGATION BAR */
.nav__bar {
  position: fixed;
  top: 0;
  z-index: 1;
  background-color: white;
  width: 100%;
  height: 60px;
  padding: 0.5em;
}

.nav__bar ul {
  height: 60px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.nav__bar li {
  display: flex;
  align-items: center;
  padding: 1em 1em;
  height: 60px;
}

.nav__links {
  text-decoration: none;
  color: var(--FONT-COLOR);
}

.nav__bar li:hover,
.nav__bar li:focus {
  background-color: var(--HEADER-HOVER-BLUE);
}

.email {
  font-size: 14px;
}

.logo {
  font-size: 30px;
}

/* WELCOME SECTION */
.mx-1200 {
  max-width: 1200px;
  margin: 0 auto;
}

.flex-5 {
  flex-grow: 5;
  flex-wrap: wrap;
  display: flex;
  flex-basis: 0;
}

.grow-text {
  flex-grow: 2;
  order: 1;
}

.grow-image {
  flex-grow: 1;
  order: 2;
  display: none;
}

.section__first {
  font-family: 'Times New Roman', Times, serif;
  margin-top: 180px;
  width: 90%;
  display: flex;
  gap: 40px;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: start;
  background-color: var(--BODY-GRAY);
}

.section__h1 {
  font-size: 3rem;
  color: var(--FONT-COLOR);
  text-align: center;
}

.section__p {
  font-size: 1.2rem;
  line-height: 27px;
  color: var(--FONT-COLOR);
  /* padding: 0 20px; */
}

/* PROJECTS SECTION */
.section__projects h2 {
  color: var(--FONT-COLOR);
  text-align: center;
  text-decoration: underline;
  font-size: 2.5rem;
  padding-top: 3rem;
}

.projects__div {
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.project-tile {
  width: 90%;
  min-width: 300px;
  height: 100%;
  text-decoration: none;
}

.projects__images {
  height: calc(100% - 6.8rem);
  width: 100%;
  object-fit: cover;
  display: block;
}

.projects__p {
  color: var(--FONT-COLOR);
  text-align: left;
  padding: 1rem 0;
}

/* CONTACT SECTION */
.section__contact {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--PROJECT-PBGCOLOR);
  gap: 2rem;
}

.contact__header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--FONT-COLOR);
}

.contact__h2 {
  font-size: 2.5rem;
  text-align: center;
}

.contact__p {
  font-style: italic;
  font-weight: 100;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.contact__links a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--FONT-COLOR);
  padding: 2rem;
  text-decoration: none;
}

ion-icon {
  height: 24px;
  width: 24px;
}

.contact__links a:hover {
  transform: translateY(8px);
  transition: transform 0.5s ease;
}

/* FOOTER */
.footer {
  height: 10vh;
  background-color: var(--PROJECT-PBGCOLOR);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7em;
}

.footer p {
  color: var(--FONT-COLOR);
  padding: 1rem;
}

.footer__link {
  color: var(--FONT-COLOR);
  text-decoration: none;
}

/* DARK MODE (optionnel) */
/* 
@media (prefers-color-scheme: dark) {
  :root {
    --HEADER-RED: rgb(233, 116, 116);
    --FONT-COLOR: whitesmoke;
    --BODY-GRAY: rgb(70, 70, 71);
    --HEADER-HOVER-BLUE: rgb(30, 30, 44);
    --PROJECT-PBGCOLOR: rgb(52, 53, 58);
  }
}
*/

/* DESKTOP / LARGE DEVICES */
@media screen and (min-width: 576px) {
  .nav__bar {
    height: 80px;
    padding: 1em 2em;
  }

  .nav__bar ul {
    height: 80px;
  }

  .nav__bar li {
    display: inline;
    height: 80px;
  }

  .section__first {
    flex-direction: row;
    width: 100%;
  }

  .grow-image {
    display: block !important;
    order: 0;
  }

  .grow-text {
    order: 0;
  }

  .section__h1 {
    font-size: 3em;
  }

  .section__p {
    font-size: 1em;
    padding: 0;
  }

  .project-tile {
    width: 25%;
  }

  .section__projects h2 {
    font-size: 2em;
  }

  .contact__h2 {
    font-size: 3.5rem;
  }

  .footer {
    font-size: 1em;
  }
}
