@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Saira+Condensed:wght@100;200;300;400;500;600;700;800;900&display=swap');

@keyframes rotate {
  0% {
    transform: rotate(0deg) scale(1.2);
  }

  100% {
    transform: rotate(360deg) scale(1.2);
  }
}

@keyframes scaleDown {
  from {
    opacity: 0;
    transform: scale(1.2);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideBackground {
  from {
    background-position: right;
  }

  to {
    background-position: left;
  }
}


@keyframes slideInY {
  from {
    transform: translateY(20%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInX {
  from {
    transform: translateX(-2%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes faceBrightenUp {
  from {
    box-shadow: inset 0 0 8rem 0.5rem rgba(0, 0, 0, 1),
      0 0 1rem 1rem rgba(0, 0, 0, 0.1);
  }

  to {
    box-shadow: inset 0 0 2rem 0.5rem rgba(0, 0, 0, 0.7),
      0 0 1rem 1rem rgba(0, 0, 0, 0.1);
  }
}

:root {
  --color-sand: #d89239;
  --color-sea: #008989;
  --color-stone: #544841;
  --color-text: #000;
  --color-background: #f0f0f0;
  --color-text-shadow: white;
  --color-text-shadow-dark: black;
  --color-header: var(--color-text);
  --color-link: #00a9cb;
  --color-link-hover: #e8a239;
  --color-text-dark: #fff;
  --def-padding: 0.5em;

  font-family: "Noto Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 22px;
  line-height: 1.618;
  color: white;
  background-color: var(--color-background);
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

@media screen and (prefers-color-scheme: dark) {
  :root {
    --color-text: white;
    --color-background: #2a2420;
    --color-text-shadow: black;
    --color-text-shadow-dark: black;
    --color-sand: #724a16;
    --color-sea: #005353;
    --color-stone: #372d23;
  }

  /* .content.content-white {
    background-image: url('img/photo/2.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
  } */

}

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  /* For WebKit browsers (Chrome, Safari) */
  -moz-osx-font-smoothing: grayscale;
  /* For Firefox on macOS */
  text-rendering: optimizeLegibility;
  /* Improves readability for larger text */
  overflow-x: hidden;
}

h1 {
  line-height: 1.618;
  font-weight: normal;
  font-family: "Saira Condensed", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
  margin: 1rem 0;
}

a,
a:visited {
  text-decoration: none;
  color: var(--color-link);
  fill: var(--color-link);
  font-weight: 400;
}

a:hover,
a:active {
  color: var(--color-link-hover);
  fill: var(--color-link-hover);
}

a.nostyle,
a.nostyle:hover,
a.nostyle:active {
  text-decoration: none;
  color: inherit;
  background-color: transparent;
  border: none;
}

.withIcon {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.content {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 10%;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background-blend-mode: overlay;
}

.logo {
  display: block;
  width: 14rem;
  background: var(--logo-image);
}

.big-logo {
  width: 14rem;
  align-self: center;
  margin: auto auto;
}

.content-dark {
  color: var(--color-text-light);
  background-color: var(--color-stone);
}

.content-dark *,
.content-sea * {
  text-shadow: 0px 0px 2px var(--color-text-shadow-dark);
}

.content-white * {
  text-shadow: 0px 0px 2px var(--color-text-shadow);
}


.content-white {
  color: var(--color-text);
  background-color: var(--color-background);
}

.content-sea {
  background-color: var(--color-sea);
  color: var(--text-color-dark);
}

.content-sand {
  background-color: var(--color-sand);
  color: var(--text-color-dark);
}

.content-sea::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background-image: url("./img/white2.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.05;
  overflow: visible;
  animation: rotate 60s linear infinite;
}

.content-dark {
  background-image: url('img/photo/1.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  animation: slideBackground 60s ease infinite alternate;
}



.personal-image {
  width: 12rem;
  height: 12rem;
  display: block;
  background-size: 110%;
  background-image: url("./img/personal.jpg");
  box-shadow: inset 0 0 2rem 0.5rem rgba(0, 0, 0, 0.7),
    0 0 1rem 1rem rgba(0, 0, 0, 0.1);

  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  background-repeat: no-repeat;
  background-position: 0 0;
  transition: background-size 0.5s ease-in-out;
}

.personal-image-wrapper {
  display: block;
  position: relative;
}

.personal-image-shadow {
  position: absolute;
  top: -50%;
  bottom: 0;
  left: -50%;
  right: 0;
  width: 200%;
  height: 200%;
  display: block;
  background-size: cover;
  background-image: url("./img/handscolor.svg");
  border-radius: 50%;
  overflow: visible;
  filter: blur(min(20vw, 20vh));
}

.welcome {
  display: flex;
  align-items: center;
  justify-items: center;
  justify-content: start;
  gap: 5rem;
  width: 100vw;
  position: relative;
}

.message {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  z-index: 1;
}

ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
  padding: 0;
}

li,
li {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-items: center;
  color: var(--color-link);
  fill: var(--color-link);
}

.map {
  z-index: 2;
  align-self: center;
  width: max(30vw, 30vh);
  border: none;
  border-radius: 0.5rem;
}

.footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  width: 100%;
  gap: 1rem;
  justify-content: space-between;
  color: var(--color-text-dark);
}

.smallprint {
  font-size: 0.5rem;
  align-self: center;
}
.content:not(.animate){
  visibility: hidden;
  opacity:0;
}
.content.animate .personal-image {
  animation: faceBrightenUp 2s linear;
}

.content.animate .logo,
.content.animate h1
 {
  animation: slideInX 2s ease-out;
}

.content.animate p{
  animation: slideInY 2s ease-out;
}

.content.animate .big-logo {
  animation: scaleDown 2s ease-out;
}

.content.animate img,
.content.animate ul  {
  animation: fadeIn 2s ease-out;
}

.marker { /* intersection fix */
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  bottom: 5px;
}


@media screen and (min-width: 1600px) {
  :root {
    font-size: 26px;
  }

  .content {
    padding: 1rem 20%;
  }
}

@media screen and (min-width: 2000px) {
  :root {
    font-size: 32px;
  }

}

@media screen and (max-width: 800px) and (orientation: portrait) {
  :root {
    font-size: 18px;
  }

  .content {
    padding: 0 1rem;
    align-items: start;
    padding-top: max(1rem,10%);
  }

  .logo {
    width: 12rem;
    align-self: center;
  }

  .big-logo {
    width: 12rem;
  }

  .welcome {
    gap: 2rem;
    flex-direction: column-reverse;
  }
}

@media screen and (max-width: 800px) and (orientation: landscape) {
   .content {
    padding: 0 4rem;
  }
  :root {
    font-size: 14px;
  }
}