* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

*:focus {
  outline: 0;
}

html {
  -webkit-tap-highlight-color: #030712;
  scroll-snap-type: y; /* Apply vertical scroll snapping */
  background: #030712;
  scroll-behavior: smooth;
}

body {
  font-family: "Work Sans", sans-serif;
}

section {
  background-color: #fafafa;
  min-height: 100vh;
  padding: 100px;
  position: relative;
  width: 100%;
  z-index: 10;
}

.last-section {
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
}

.margin-400 {
  margin-bottom: 600px;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background-color: #030712;
  color: #fafafa;
  height: 600px;
  width: 100%;
  position: fixed;
  bottom: 0;
  padding-bottom: 0px;
  box-sizing: border-box;
  text-align: center;
  z-index: 1;
  font-family: "neue-haas-grotesk-display", sans-serif;
}

.footer-top-left {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 2rem;
  color: #fafafa;
}

.footer-top-right {
  position: absolute;
  top: 25px;
  right: 20px;
  color: #fafafa;
  font-size: 1em;
  border: 1px solid #fafafa;
  border-radius: 50px;
  padding: 5px 10px;
}

.footer-upper {
  padding-left: 30px;
  padding-right: 30px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0px;
}

.footer-left {
  font-size: 1.2rem;
  color: #fafafa;
  text-align: left;
}

.footer-right {
  font-size: 1.2rem;
  color: #fafafa;
  text-align: right;
}

footer h1 {
  padding-left: 0px;
  padding-right: 0px;
  margin-top: auto;
  margin: 0;
  font-family: "neue-haas-grotesk-display", sans-serif;
  width: 100%;
  font-size: 21vw; /* Dynamically scale the text based on viewport width */
}

footer a {
  font-weight: 200;
}

.quote {
  position: relative;
}

.quote .point {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 4rem;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  font-family: "neue-haas-grotesk-display", sans-serif;
}

.quote .wrapper {
  height: 100vh;
  width: 100%;
}

.point article {
  flex-basis: 100%;
  margin-right: auto;
}

.site-logo {
  position: fixed;
  top: 50%; /* Initially centered vertically */
  left: 50%; /* Centered horizontally */
  transform: translate(-50%, -50%); /* Center the logo */
  width: 200px;
  height: auto;
  z-index: 50;
  margin-top: 30px; /* Add 20px top margin */
  transition: top 0.3s ease, width 0.3s ease, height 0.3s ease; /* Smooth transitions */
}

.about {
  display: flex;
  justify-content: center; /* Center children vertically */
  align-items: center; /* Center children horizontally */
  text-align: center;
  /*scroll-snap-align: start;*/
  z-index: 100;
}

.about-content {
  padding: 20px; /* Internal padding for content */
  color: #fafafa;
  background: #030712;
  width: 100%; /* Ensures the box fills the width */
  border-radius: 50px;
  height: 80vh;
  width: 86vw;
  display: flex;
  margin-top: 20px;
  flex-direction: column; /* Stack children vertically */
  justify-content: center; /* Center content vertically */
  align-items: center;
}

.about h1 {
  margin-bottom: 1.5rem;
  font-size: 8rem;
  font-family: "neue-haas-grotesk-display", sans-serif;
}

.about p {
  margin-bottom: 1rem;
  max-width: 40rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 200;
  font-family: "Work Sans", sans-serif;
  text-align: left;
}

.buffer-section {
  height: 50vh; /* Adjust the height as needed */
  width: 100%;
  margin-bottom: 600px;
}

/* links */
a {
  color: #fafafa;
  text-decoration: none;
  transition: color 0.3s;
  outline: none;
  font-weight: 700;
}

a:hover,
a:focus {
  color: #fafafa;
}

a.flip-animate {
  perspective: 1000px;

  span {
    position: relative;
    display: inline-block;
    padding: 0;
    transition: transform 0.3s;
    transform-origin: 50% 0;
    transform-style: preserve-3d;
  }

  span:before {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    content: attr(data-hover);
    transition: color 0.3s;
    transform: rotateX(-90deg);
    transform-origin: 50% 0;
    text-align: center;
  }

  &:hover span,
  &:focus span {
    transform: rotateX(90deg) translateY(-22px);
  }

  &:hover span:before,
  &:focus span:before {
    color: #f472b6;
  }
}

.ball {
  --delay: 0s;
  --size: 0.4;
  --speed: 20s;

  aspect-ratio: 1;
  width: calc(150% * var(--size));

  background: linear-gradient(259.53deg, #0a3fff 6.53%, #f55f0a 95.34%);
  filter: blur(10vw);

  border-radius: 50%;

  position: absolute;
  top: 0;
  left: 0;

  animation: loop var(--speed) infinite linear;
  animation-delay: var(--delay);
  transform-origin: 50% 50%;

  opacity: 0.6;
}

@keyframes loop {
  0% {
    transform: translate3D(0%, 51%, 0) rotate(0deg);
  }
  5% {
    transform: translate3D(8%, 31%, 0) rotate(18deg);
  }
  10% {
    transform: translate3D(22%, 13%, 0) rotate(36deg);
  }
  15% {
    transform: translate3D(40%, 2%, 0) rotate(54deg);
  }
  20% {
    transform: translate3D(46%, 21%, 0) rotate(72deg);
  }
  25% {
    transform: translate3D(50%, 47%, 0) rotate(90deg);
  }
  30% {
    transform: translate3D(53%, 80%, 0) rotate(108deg);
  }
  35% {
    transform: translate3D(59%, 98%, 0) rotate(125deg);
  }
  40% {
    transform: translate3D(84%, 89%, 0) rotate(144deg);
  }
  45% {
    transform: translate3D(92%, 68%, 0) rotate(162deg);
  }
  50% {
    transform: translate3D(99%, 47%, 0) rotate(180deg);
  }
  55% {
    transform: translate3D(97%, 21%, 0) rotate(198deg);
  }
  60% {
    transform: translate3D(80%, 7%, 0) rotate(216deg);
  }
  65% {
    transform: translate3D(68%, 25%, 0) rotate(234deg);
  }
  70% {
    transform: translate3D(59%, 41%, 0) rotate(251deg);
  }
  75% {
    transform: translate3D(50%, 63%, 0) rotate(270deg);
  }
  80% {
    transform: translate3D(38%, 78%, 0) rotate(288deg);
  }
  85% {
    transform: translate3D(21%, 92%, 0) rotate(306deg);
  }
  90% {
    transform: translate3D(3%, 79%, 0) rotate(324deg);
  }
  100% {
    transform: translate3D(0%, 51%, 0) rotate(360deg);
  }
}

.glow-container {
  overflow-x: hidden;
  overflow-y: hidden;
  position: fixed;
}

@media screen and (max-width: 600px) {
  section {
    padding: 50px; /* Reduce padding for smaller screens */
  }

  .quote .point {
    padding: 0rem;
    font-size: 2rem;
    font-weight: 700;
    font-family: "neue-haas-grotesk-display", sans-serif;
  }

  .about h1 {
    font-size: 4rem; /* Smaller font size for the heading */
  }

  .about p {
    font-size: 1rem; /* Smaller font size for paragraphs */
    margin-bottom: 1rem;
    max-width: 100%;
  }

  .about-content {
    margin-top: 50px;
    width: 95vw; /* Adjust the width for smaller screens */
    height: 80vh; /* Let the height be automatic */
    padding: 10%;
  }

  .site-logo {
    width: 150px; /* Smaller logo for smaller screens */
    padding-top: 20px;
  }

  .footer-upper {
    padding-left: 15px;
    padding-right: 15px;
  }

  .footer-left {
    font-size: 1.2rem;
  }

  .footer-right {
    font-size: 1.2rem;
  }

  footer h1 {
    font-size: 21vw; /* Dynamically scale the text based on viewport width */
  }
}
