/* =========================
   Global Reset & Base Styles
   ========================= */

::selection {
  background: black;
  color: white;
}

::-moz-selection {
  background: black;
  color: white;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: Black;
  overflow-y: scroll;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide scrollbars */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  background: transparent;
}


/* =========================
   Stacking — all sections above sticky footer
   ========================= */
.hero,
.middle,
.contact {
  position: relative;
  z-index: 1;
}

.outro {
  position: relative;
  z-index: 2;
}

.about {
  position: relative;
  z-index: 1;
  content-visibility: auto;
  contain-intrinsic-size: 0 800px;
}


/* =========================
   Hero & Outro Sections
   ========================= */
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background-color: white;
}

.outro {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100vh;
  flex-direction: column;
  justify-content: flex-end;
  background-color: black;
}

.outro::after {
  content: "";
  position: absolute;
  bottom: -19px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 20px;
  background: black;
  clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 15% 100%);
  z-index: 5;
}

.outro h1 {
  color: white;
}

.outro ::selection {
  background: white;
  color: black;
}

.outro ::-moz-selection {
  background: white;
  color: black;
}

/* =========================
   Hero Name Text
   ========================= */
.hero .main-text {
  font-family: "sohne-bold";
  letter-spacing: -0.1px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-spacing: 0.2em;
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: black;
  font-size: clamp(4rem, 9vw, 9rem);
}

@media (max-width: 730px) {
  .hero .main-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }

  .outro {
    height: 100%;
  }
}

@media (max-width: 480px) {
  .outro {
    height: 100%;
  }
}

/* =========================
   Middle Section
   ========================= */
.middle {
  padding-top: 0;
  background-color: white;
  overflow: hidden;
}

/* =========================
   Animated Circle
   ========================= */
.animated-circle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(40px, 6vw, 100px);
  height: clamp(40px, 6vw, 100px);
  border-radius: 50%;
  background: black;
  transform-origin: top center;
  mix-blend-mode: difference;
  z-index: 10;
}

.circle-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
}

/* =========================
   Custom Fonts
   ========================= */
@font-face {
  font-family: "sohne";
  src: url("font/sohne--normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "sohne-medium";
  src: url("font/sohne--medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "sohne-bold";
  src: url("font/sohne--extrabold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* =========================
   Hover Link
   ========================= */
.hover-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  overflow: hidden;
}

.hover-link span {
  display: inline-block;
  will-change: transform;
}

.hover-animated {
  position: absolute;
  top: 0;
  left: 0;
}

/* =========================
   Button
   ========================= */
.button-me {
  position: relative;
  display: inline-block;
  overflow: hidden;
  text-align: center;
}

.button-me-code-visible,
.button-me-code-animated {
  display: inline-block;
  will-change: transform;
}

.button-me-code-animated {
  position: absolute;
  top: 0;
  right: 0;
}

a {
  cursor: pointer;
}

/* =========================
   Hello SVG Link
   ========================= */
.hello {
  position: relative;
  color: white;
  text-decoration: none;
  white-space: nowrap;

  svg {
    position: absolute;
    left: 0;
    top: 100%;
    height: auto;
    width: 182%;
    pointer-events: none;
    overflow: hidden;

    .handPosition {
      visibility: hidden;
    }
  }

  &:hover {
    color: white;
  }
}

.hello .arm-line,
.hello .thumb,
.hello .finger-1,
.hello .finger-2,
.hello .finger-3,
.hello .line {
  stroke: white;
  fill: none;
}

.hellome {
  margin-bottom: 8vh;
  text-align: center;
  font-family: sohne-bold;
  text-transform: uppercase;
  color: white;
}