@import url(https://github.com/intel/intel-one-mono/blob/main/fonts/ttf/IntelOneMono-Regular.ttf);

* {
  margin: 0;
  padding: 0;
  font-family: "Intel One Mono";
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html:focus-within {
  scroll-behavior: smooth;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  min-height: 100vh;
  background-color: rgb(165, 165, 165);
  text-rendering: optimizeSpeed;
}

.hide {
  display: none !important;
}

/* .sm * {
  height: 100%;
  filter: invert(1);
} */

/* MARK: About
*/

.about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: row !important;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  position: relative;
}

.about img {
  width: min(80%, 20rem);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  display: block;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.about .text {
  max-width: 800px;
  margin-left: 4rem;
}

.about .text h2 {
  font-size: 1.5rem;
  color: #ffffff;
  width: fit-content;
  margin-bottom: 10px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.about .text h2::after {
  content: "";
  display: block;
  width: calc(100% + 2rem);
  height: 3px;
  background-color: #0029c0;
  /* background: linear-gradient(to right, #566fcb, #0029c0); */
  margin-top: 5px;
  animation: lineGrow 1s ease-in-out forwards;
}

@keyframes lineGrow {
  0% {
    width: 0;
  }
  100% {
    width: calc(100% + 2rem);
  }
}

.about .text p {
  font-size: 1rem;
  line-height: 1.5;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.about .text a {
  color: white;
  font-style: italic;
}
.about .text a:hover {
  color: #0029c0;
  text-decoration: underline;
}
.about .text a:active {
  color: #566fcb;
}

@media (max-width: 768px) {
  .about {
    flex-direction: column !important;
    align-items: center;
  }

  .about img {
    margin-bottom: 20px;
  }

  .about .text {
    margin-left: 0;
  }
}

/* MARK: Timeline 
*/
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 100px auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 100%;
  /* background-color: #0029c0; */
  background: linear-gradient(to bottom, #566fcb, #0029c0);
  top: 0;
  left: calc(50% - 3px);
  z-index: -1;
  border-radius: 3px;
  border: none;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  /* animation: moveLine 6s linear forwards; */
  animation: moveLine ease-in;
  animation-timeline: view();
  animation-range: entry 0% cover 90%;
}

@keyframes moveLine {
  0% {
    opacity: 0;
    height: 0;
    /* background-color: white; */
  }
  40% {
    opacity: 1;
  }
  100% {
    /* opacity: 1; */
    height: 100%;
    /* background-color: #df0000; */
  }
}

.container {
  padding: 10px 50px;
  position: relative;
  /* outline: 1px solid lime; */
  width: 50%;
  left: 0;
  /* opacity: 0; */
  /* animation: moveDown 1s ease-in-out forwards; */
}

.container:nth-child(1) {
  animation-delay: 0s;
}
.container:nth-child(2) {
  animation-delay: 1s;
}
.container:nth-child(3) {
  animation-delay: 2s;
}

.container:nth-child(4) {
  animation-delay: 3s;
}
.container:nth-child(5) {
  animation-delay: 4s;
}

.container:nth-child(even) {
  left: 50%;
}

.container .icon {
  position: absolute;
  width: 40px;
  aspect-ratio: 1;
  top: 32px;
  right: -20px;
  border-radius: 50%;
  /* outline: 2px solid red; */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9;
  animation: scaleBlend linear;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
}

@keyframes scaleBlend {
  0% {
    opacity: 0;
    scale: 0.5;
    /* transform: translateY(-30px); */
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    scale: 1;
    /* transform: translateY(0); */
  }
}

.container:nth-child(even) .icon {
  left: -20px;
  right: auto;
}

.container .icon * {
  z-index: 10;
  color: white;
  font-size: 20px;
  font-weight: 600;
  line-height: 0.8;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.textBox {
  position: relative;
  /* padding: 20px 30px; */
  background-color: white;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
  border-radius: 5px;
  /* border: 1px solid #eee; */
  font-size: 16px;
  animation: scaleTransBlend linear;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
  display: flex;
  flex-direction: row;
}

@keyframes scaleTransBlend {
  0% {
    opacity: 0;
    scale: 0.5;
  }
  100% {
    opacity: 1;
    scale: 1;
  }
}

.container:nth-child(even) .textBox {
  flex-direction: row-reverse;
}
.container:nth-child(even) .img {
  border-radius: 0 5px 5px 0;
}

.textBox::before {
  width: 15px;
  aspect-ratio: 1;
  top: 30px;
  right: -8px;
  content: "";
  position: absolute;
  rotate: 45deg;
  z-index: -1;
  background: white;
}

.container:nth-child(even) .textBox::before {
  left: -8px;
  right: auto;
  /* rotate: -45deg; */
}

.textBox .img {
  min-height: 100%;
  max-width: 30%;
  /* aspect-ratio: 1; */
  object-fit: cover;
  object-position: center;
  overflow: hidden;
  display: flex;
  border-radius: 5px 0px 0 5px;
}

.textBox .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.textBox .text {
  height: fit-content;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.textBox h2 {
  color: #001341;
  font-size: 20px;
  font-weight: 600;
}
.textBox small {
  font-size: 12px;
  color: #838383;
}
.textBox p {
  margin: 10px 0;
}

@media (max-width: 1000px) {
  .textBox {
    flex-direction: column !important;
  }

  .textBox .img {
    border-radius: 5px 5px 0 0 !important;;
    min-width: 100%;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 768px) {
  .timeline {
    margin: 50px auto;
  }
  .timeline::after {
    left: 30px;
  }

  .container {
    width: 100%;
    padding: 10px 25px 10px 80px;
    animation: moveDown 1s ease-in-out forwards;
  }

  .container:nth-child(even) {
    left: 0;
    right: auto;
  }

  .container .icon {
    right: auto;
    left: -20px;
  }

  .container .icon {
    left: 15px !important;
    right: auto;
  }

  .textBox {
    flex-direction: row-reverse !important;
  }

  .textBox::before {
    left: -8px;
    right: auto;
    /* rotate: -45deg; */
  }

  .textBox .img {
    border-radius: 0 5px 5px 0 !important;
    min-height: 100%;
    min-width: 30%;
    max-width: 30%;
    aspect-ratio: auto;
  }
}

@media (max-width: 500px) {
  .textBox {
    flex-direction: column !important;
  }

  .textBox .img {
    border-radius: 5px 5px 0 0 !important;
    min-width: 100%;
    aspect-ratio: 4 / 3;
  }
}

/* MARK: Termin
*/

.termin {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 0;
}

.highlight {
  width: 65%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: lightgray;
  flex-direction: column;
  gap: 2rem;
  padding: 4rem 5rem;
  border-radius: 10px;
}

.highlight h2 {
  color: #001341;
  text-align: center;
}

.highlight h3 {
  color: #001341;
  text-align: center;
}

.highlight> p {
  color: #333;
  text-align: center;
}

.highlight > div:has(>a) {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  width: 100%;
}

.highlight a {
  background-color: var(--blue);
  color: white;
  padding: 5px 20px;
  min-width: 40%;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bolder;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 4px solid var(--blue);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
}

.highlight a.whatsapp:hover {
  background-color: #001341;
  border: 4px solid #001341;
}

.highlight a.whatsapp:active {
  background-color: #566fcb;
  border: 4px solid #566fcb;
}

.highlight a .mask {
  width: 20px;
  aspect-ratio: 1;
  margin-right: 1em;
  transition: all 0.3s ease;
}

.highlight a.email {
  background-color: transparent;
  border: 4px solid var(--blue);
  color: var(--blue);
}
.highlight a.email .mask {
  background-color: var(--blue);
  scale: 1.3;
}

.highlight a.email:hover {
  background-color: #001341;
  border: 4px solid #001341;
  color: white;
}
.highlight a.email:hover .mask {
  background-color: white;
}

.highlight a.email:active {
  background-color: #566fcb;
  border: 4px solid #566fcb;
}

@media (max-width: 768px) {
  .highlight {
    width: 90%;
    padding: 3rem;
  }
}

@media (max-width: 500px) {
  .highlight {
    padding: 2rem;
  }
  .highlight > div:has(>a) {
    flex-direction: column;
    gap: 1rem;
  }
  .highlight a {
    min-width: 100%;
  }
}

/* MARK: Mask 
*/

.mask {
  width: 100%;
  aspect-ratio: 1;
  background-color: white;
  -webkit-mask-size: cover;
  mask-size: cover;
}

.mask.primary {
  background-color: var(--blue) !important;
}
.mask.tertiary {
  background-color: black !important;
}

.scrollTop .mask,
.nav .mask {
  width: 70%;
}
