:root {
  --off-white: rgb(248, 243, 237);
  --highlight-red: red;
  --black: black;
  --small-spacing: 2rem;
  --medium-spacing: 6rem;
  --large-spacing: 12rem;
  --max-width: 1140px;
}

@media screen and (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

html,
body {
  overscroll-behavior: none;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overscroll-behavior-y: none;
  background-color: var(--off-white);
  color: var(--black);
}

main {
  margin: 0;
  padding: 0;
  width: 100%;
}

footer {
  max-width: var(--max-width);
  text-align: right;
  margin: 30px 20px 100px auto;
}

div {
  padding: 0;
  margin: 0;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  padding: 0;
  margin: 0;
}

.link {
  transition: all 0.3s;
}

.link:hover {
  color: red;
}

.h1 {
  line-height: 0.8;
  font-size: 36px;
  margin: 10px 0px;
  font-weight: bold;
}

.tall {
  display: block;
  margin-top: 10px;
  margin-bottom: 10px;
}

.scrolled .header__title .h1 {
  font-size: 24px;
  margin: 7px 0px;
}

.h2 {
  text-transform: uppercase;
  line-height: 1.3;
  font-size: 24px;
  margin-bottom: var(--small-spacing);
  font-weight: bold;
}

.h3 {
  line-height: 1.3;
  font-size: 20px;
  text-transform: uppercase;
  margin-bottom: 30px;
  font-weight: bold;
}

.p1 {
  font-size: 24px;
  line-height: 1.3;
}

.p2 {
  font-size: 24px;
  line-height: 1.3;
}

.p3 {
  font-size: 16px;
  line-height: 1.5;
}

.highlight {
  color: var(--highlight-red);
}

.bold {
  font-weight: bold;
}

.caption {
  color: rgb(104, 104, 104);
  font-size: 14px;
}

.link--nav {
  color: black;
  text-decoration: none;
  font-weight: 600;
}

.link--inline {
  color: black;
  text-decoration: underline;
}

.link--email {
  display: inline;
}

.image--reg {
  width: 100%;
}

.image--reg img {
  object-fit: contain;
  width: 100%;
}
.image--full {
  height: 100%;
  min-height: 500px;
  width: 100%;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.overlay {
  position: fixed;
  height: 100vh;
  width: 100vw;
  background-image: url("./assets/website_window_overlay_02.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  top: 0;
  opacity: 11%;
  pointer-events: none;
}

.inner {
  max-width: var(--max-width);
  margin: 0px 15px;
}

.section {
  width: 100%;
  padding: var(--small-spacing) 0 var(--medium-spacing) 0;
}

.section:last-child {
  padding-bottom: 100px;
}

.section:not(.section--hero) {
}

.header {
  margin-bottom: 20px;
}

.header__title {
  position: fixed;
  left: 50%;
  bottom: 50%;
  transform: translate(-50%, 0%);
  transition: all 0.5s ease-in-out;
}

.scrolled .header__title {
  padding: 7px;
  position: fixed;
  bottom: 100%;
  left: 0;
  transform: translate(0, 100%);
  background-color: var(--off-white);
}

.header .inner {
  padding-top: 0px;
  margin: 0;
}

.header__navigation {
  display: none;
}

.button--menu {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--highlight-red);
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
  z-index: 10;
}

.button__stroke {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 3px;
  background-color: var(--off-white);
  transition: all 0.2s ease-out;
}

.stroke--1 {
  top: 35%;
}

.stroke--3 {
  top: 65%;
}

.open .stroke--1 {
  top: 45%;
  left: 25%;
  transform: rotate(45deg);
}
.open .stroke--2 {
  width: 0;
}

.open .stroke--3 {
  top: 45%;
  left: 25%;
  transform: rotate(-45deg);
}

.open .header__navigation {
  display: block;
  position: fixed;
  top: 0;
  background-color: var(--off-white);
  width: 100vw;
  height: 100vh;
}

.open .navigation__menu__navigation {
  position: relative;
  bottom: -50%;
}

.open .navigation__menu__navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: grid;
  gap: 5px;
}

.open .navigation__menu__navigation ul li {
  /* margin: 5px 0px; */
  /* padding: 2px 2px 2px 50px; */
  /* background-color: black; */
  margin-top: 10px;
  width: fit-content;
  justify-self: center;
}

.open .navigation__title {
  position: absolute;
  left: 50%;
  top: 80px;
  transform: translateX(-50%);
}

.hero__image {
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  z-index: -5;
  position: absolute;
  transition: all 0.5s ease-out;
}

.scrolled .hero__image {
  /* height: 0; */
}

.hero__image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero__text {
  margin-top: 100vh;
  transition: all 0.5s ease-in-out;
}

.scrolled .hero__text {
  /* margin-top: var(--large-spacing); */
}

.claim__text {
  margin-top: var(--small-spacing);
  margin-bottom: var(--medium-spacing);
}
.claim__image {
  background-image: url("./assets/osram-dam-5589845_marinaforum_6.jpg");
}

.portfolio__subsection:not(:last-child) {
  margin-bottom: var(--medium-spacing);
}

.subsection__image {
  margin-bottom: var(--small-spacing);
}

.intro__image,
.intro__text {
  margin-bottom: var(--small-spacing);
}

.intro__image {
  width: 100%;
  object-fit: contain;
  overflow: hidden;
  height: 400px;
}
.image--profile {
  width: 100%;
  object-fit: cover;
  object-position: center;
}

footer a {
  margin-left: 10px;
}

@media only screen and (min-width: 1140px) {
  footer {
    margin: 30px auto 50px auto;
  }

  .h2 {
    font-size: 32px;
  }
  .p1 {
    font-size: 32px;
  }
  .p2 {
    font-size: 28px;
  }

  .p3 {
    font-size: 20px;
  }

  .inner {
    margin: auto;
  }

  .text {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  .scrolled .header__title {
    left: calc(((100vw - var(--max-width)) / 2));
    padding: 15px;
  }

  .scrolled .h1 {
    font-size: 26px;
  }

  .button--menu {
    display: none;
  }

  .claim__text {
    margin-top: var(--medium-spacing);
    margin-bottom: var(--large-spacing);
  }

  .portfolio__subsection,
  .intro__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--small-spacing);
    align-items: center;
  }
  .subsection__image {
    height: 100%;
    margin-bottom: 0;
  }
  .subsection__image img {
    height: 100%;
    object-fit: cover;
  }

  .subsection--2__image {
    order: 2;
  }

  .subsection__text {
    height: fit-content;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .intro__contact {
    margin-top: var(--small-spacing);
  }
}
