/*
  Artevelde hogeschool CSS Reset v0.2
  Adapted version from Josh's Custom CSS Reset https://www.joshwcomeau.com/css/custom-css-reset/
*/

/*
  1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

/*
  2. Remove default margin
*/
* {
  margin: 0;
}

/*
  3. Allow percentage-based heights in the application
*/
html {
  height: 100%;
}

/*
  Typographic tweaks!
  4. Add accessible line-height
  5. Improve text rendering
*/
body {
  min-height: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/*
  6. Improve media defaults
*/
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/*
  7. Remove built-in form typography styles
*/
input,
button,
textarea,
select {
  font: inherit;
}

/*
  8. Avoid text overflows
*/
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

:root {
  --background: #ffffff;
  --background-fade: #f4f4f5;
  --foreground: #000000;

  --border-color: #272729;
  --accent-color: #23a094;
  --accent-color-fade: #1b867e;

  --border-size: 2px;
}

[data-theme="dark"] {
  --background: #000000;
  --background-fade: #18171a;
  --foreground: #ffffff;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--background);
  border-bottom: 1px solid var(--border-color);
  z-index: 30;
  -webkit-backdrop-filter: blur(20px) saturate(180%);
          backdrop-filter: blur(20px) saturate(180%);
}
.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    gap: 1.5rem;
    max-width: 80rem;
    margin: 0 auto;
  }
.header__menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }
.header__menu-icon {
    width: 28px;
    height: 28px;
  }
.header__menu-icon--hidden {
      display: none;
    }
.header__logo {
    font-size: 1.75rem;
    text-decoration: none;
    color: var(--foreground);
    white-space: nowrap;
    padding-right: 1.5rem;
    border-right: 1px solid var(--border-color);
  }
.header__leftside {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
.header__nav {
    display: flex;
  }
.header__nav-list {
      display: flex;
      list-style: none;
      margin: 0;
      padding: 0;
      gap: 1.5rem;
    }
.header__nav-item {
      margin: 0;
      padding: 0;
    }
.header__nav-link {
      text-decoration: none;
      color: var(--foreground);
      text-transform: uppercase;
      font-size: 0.875rem;
    }
.header__nav-link--active {
        font-weight: bold;
        text-decoration: underline;
      }
.header__nav-link:hover {
        text-decoration: underline;
      }
.header__theme-switcher {
    background: none;
    border: none;
  }
.header__theme-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
  }
.header__theme-icon {
    width: 2rem;
    height: 2rem;
  }
.header__theme-icon--hidden {
      display: none;
    }

.mobile-nav {
  width: 80%;
  height: 100vh;
  background-color: var(--background);
  border-right: 2px solid var(--border-color);
  transform: translateX(-100%);
  transition: transform 0.2s ease-out;
}

.mobile-nav__close-btn {
    margin: 0.85rem 0 0 1.6rem;
    background: none;
    border: none;
    cursor: pointer;
  }

.mobile-nav__close-icon {
    width: 28px;
    height: 28px;
  }

.mobile-nav__list {
    flex-direction: column;
    margin: 0.4rem 0;
    gap: 0;
    border-top: 1px solid var(--border-color);
    padding: 0;
  }

.mobile-nav__item {
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 2rem;
  }

.mobile-nav__link {
    color: var(--foreground);
    text-decoration: none;
    font-size: 2rem;
    line-height: 1.5;
  }

.mobile-nav[popover]:not(:popover-open) {
    display: none;
  }

.mobile-nav[popover]:popover-open {
    transform: translateX(0);
    display: block;
  }

@starting-style {

.mobile-nav[popover]:popover-open {
      transform: translateX(-100%)
  }
    }

@media (max-width: 768px) {
    .header__menu-toggle {
      display: block;
    }

    .header__nav {
      display: none;
    }

    .header__logo {
      border: none;
    }
}

/* Buttons */
.btn {
  padding: 0.8rem 3.5rem;
  border: 2px solid var(--border-color);
  box-shadow: 4px 4px 0px 0px var(--border-color);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  transition: background-color 0.3s, color 0.3s;
  cursor: pointer;
}
.btn--primary {
    background-color: var(--accent-color);
    color: #ffffff;
  }
.btn--primary:hover {
      background-color: var(--accent-color-fade);
    }
.btn--secondary {
    background-color: #ffffff;
    color: #000000;
    border-color: #000000;
  }
.btn--secondary:hover {
      background-color: #f4f4f5;
    }

.home-main {
  padding-top: 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100vh;
}

  .home-main__content {
    padding: 0.5rem;
  }

  .home-main__title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin: 0.5rem 0;
  }

  .home-main__title-line {
      display: inline-block;
      transform: translateX(0);
      opacity: 1;
      transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    }

  @starting-style {

  .home-main__title-line-1 {
          transform: translateX(-100vw);
          opacity: 0
      }
        }

  @starting-style {

  .home-main__title-line-2 {
          transform: translateX(100vw);
          opacity: 0
      }
        }

  .home-main__subtitle {
    font-size: 1.2rem;
    max-width: 25rem;
    line-height: 1.4;
    margin: 2rem auto 1rem auto;
  }

  .home-main__actions {
    margin-top: 3rem;
    flex-direction: column;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
  }

  @media (min-width: 600px) {
    .home-main__actions {
      flex-direction: row;
    }

    .home-main__title {
      font-size: 4rem;
    }
  }

  @media (min-width: 800px) {
    .home-main__title {
      font-size: 6rem;
    }
  }

  @media (min-width: 1100px) {.home-main {
    padding-top: 4rem;
    flex-direction: row;
    height: calc(100vh - 4rem)
}

    .home-main__content {
      padding: 1rem;
    }

    .home-main__title {
      font-size: 8rem;
      line-height: 1;
      margin: 0;
    }

      .home-main__title-highlight {
        font-size: 1rem;
        padding: 0.25rem 0.5rem;
      }

    .home-main__subtitle {
      max-width: 30rem;
      line-height: 1.5;
      margin: 3rem auto 1rem auto;
    }

    .home-main__actions {
      margin-top: 2rem;
      flex-direction: row;
      gap: 1rem;
    }
  }

.footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--background-fade);
  margin-top: 7rem;
}

  .footer__container {
    display: block;
    padding: 2rem 0 2rem;
    display: flex;
    gap: 2rem;
  }

  .footer__link {
    text-decoration: underline;
  }

.page-main {
  margin: 4rem auto;
}

  .page-main__small-title {
    font-size: 1.2rem;
    margin-top: 7rem;
    font-weight: 400;
  }

  .page-main__title {
    font-size: 3rem;
    padding: 2rem 0;
    line-height: 1;
  }

  .page-main__subtitle {
    font-size: 1.5rem;
    margin: 3rem 0 1rem;
  }

  .page-main__list {
  }

.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

  .tools__item {
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
    border: var(--border-size) solid var(--border-color);
    text-transform: uppercase;
  }

.form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 0 auto;
  gap: 0.5rem;
  margin-top: 8rem;
}

  .form__label {
    font-size: 1rem;
    color: var(--foreground);
    padding-top: 1rem;
  }

  .form__label:has(+ input:required)::after, .form__label:has(+ textarea:required)::after {
        content: "*";
        color: salmon;
        margin-left: 0.25rem;
      }

  .form__input,
  .form__textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    color: var(--foreground);
    background-color: var(--background);
    border: var(--border-size) solid var(--border-color);
    box-shadow: 2px 2px 0px 0px var(--border-color);
  }

  .form__input::-moz-placeholder, .form__textarea::-moz-placeholder {
      color: #888;
    }

  .form__input::placeholder, .form__textarea::placeholder {
      color: #888;
    }

  .form__input:focus, .form__textarea:focus {
      outline: none;
      border-color: var(--accent-color);
    }

  .form__input:has(input:invalid), .form__textarea:has(input:invalid) {
      border: 2px solid salmon;
    }

  .form .btn--form {
    align-self: flex-end;
    margin-top: 1rem;
  }

.marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  margin-bottom: 2rem;
  padding: 0.3rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-top: 12rem;
}

  .marquee__content {
    display: flex;
    animation: marquee 15s linear infinite;
    padding-right: 0;
    font-size: 1rem;
  }

  .marquee__content::before {
      content: attr(data-content);
      margin-right: 0;
    }

  .marquee__content::after {
      content: attr(data-content);
      margin-left: 50px;
    }

  @keyframes marquee {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

.grid--projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

  .grid--projects .project {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 0.5rem;
    padding: 1rem;
    border: var(--border-size) solid var(--border-color);
    border-radius: 8px;
    text-align: left;
    transition: transform 0.3s ease;
  }

  @starting-style {

  .grid--projects .project {
      transform: scale(0);
      opacity: 0
  }
    }

  .grid--projects .project {
    transition: transform 1s ease, opacity 1s ease;
    opacity: 1;
}

  .grid--projects .project:hover {
      transform: scale(1.03);
    }

  .grid--projects .project:hover .project__image {
        filter: grayscale(0%);
      }

  .grid--projects .project__title {
      grid-column: 1 / -1;
      margin: 0;
      font-size: 1.25rem;
    }

  .grid--projects .project__description {
      grid-column: 1 / -1;
      margin: 0;
      font-size: 1rem;
    }

  .grid--projects .project__image {
      border-radius: 8px;
      margin-top: 2rem;
      filter: grayscale(100%);
      transition: filter 0.3s ease;
    }

  .grid--projects .grid__item {
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: start;
    gap: 1rem;
  }

.slider {
  position: relative;
  width: 100%;
  margin: 10rem 0 2rem;
  border: var(--border-size) solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.slider__container {
  display: flex;
  width: 100%;
  transition: transform 0.3s ease;
}

.slider__image {
  width: 100%;

  height: 500px;
  -o-object-fit: contain;
     object-fit: contain;

  flex: 0 0 100%;
  background-color: var(--background-fade);
}

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: var(--border-size) solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  z-index: 2;
}

.slider__btn:hover {
  opacity: 0.9;
}

.slider__btn--prev {
  left: 1rem;
}

.slider__btn--next {
  right: 1rem;
}

.page-main__contact-details {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--background);
  border: var(--border-size) solid var(--border-color);
  box-shadow: 2px 2px 0px 0px var(--border-color);
}

.contact-details__title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--foreground);
  }

.contact-details__subtitle {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--foreground);
  }

.contact-details__item {
    margin-bottom: 0.75rem;
    color: var(--foreground);
  }

.contact-details__link {
    color: var(--accent-color);
    text-decoration: none;
    position: relative;
  }

.contact-details__link:hover {
      text-decoration: underline;
    }

.contact-details__social {
    margin: 1rem 0;
  }

.contact-details__social-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

.contact-details__social-item {
    display: flex;
  }

.contact-details__social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--foreground);
    transition: color 0.2s ease;
  }

.contact-details__social-link:hover {
      color: var(--accent-color);
    }

.contact-details__social-link:hover .contact-details__social-icon {
        stroke: var(--accent-color);
      }

.contact-details__social-icon {
    width: 20px;
    height: 20px;
    stroke: var(--foreground);
    transition: stroke 0.2s ease;
  }

.contact-details__text {
    margin-top: 1.5rem;
    font-style: italic;
    color: var(--foreground);
  }

/* Update form margin to have less space between the two sections */
.form {
  margin-top: 4rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none;
}

/* General styles */
body {
  margin: 0;
  font-family: "transducer", sans-serif;

  background-color: var(--background);
  color: var(--foreground);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "transducer-extended", sans-serif;
}

a {
  text-decoration: none;
  color: var(--foreground);
}

/* Selection styles */
::-moz-selection {
  background-color: var(--accent-color);
  color: #ffffff;
}
::selection {
  background-color: var(--accent-color);
  color: #ffffff;
}

main,
.header__container,
.footer__container {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0.5rem;
  background: var(--background);
  color: #fff;
  padding: 1rem;
  text-decoration: none;
  z-index: 69;
  transition: top 0.3s;
}

.skip-to-content:focus {
  top: 0.5rem;
  border: 3px solid var(--accent-color);
}

