@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");
@font-face {
  font-family: "PPNeue";
  src: url(./fonts/ppneuemontreal-medium.otf);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
section {
  margin: 0;
}
html {
  width: 100%;
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
  background-color: #fff;
  z-index: 0;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.hero-section {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  z-index: 0;
  background-color: #fafaf0;
  will-change: transform;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 95%);
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);

  background-size: 60px 60px;

  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
  -webkit-mask-image: radial-gradient(
    circle at center,
    black 35%,
    transparent 90%
  );
  z-index: 0;
}

.header {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: left;
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
  z-index: 1;
  padding: 3vw;
  border-radius: 2%;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
}
.header .cta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.header .cta a {
  text-decoration: none;
  font-family: "bebas Neue";
  font-size: 2rem;
  line-height: 1;
  padding: 0.3rem 2.8rem;
  border: 0.1px solid #0a0a0a;
  border-radius: 40px;
}
.cnt-me {
  background-color: #1b1f28;
  color: #fff;
}
.header h1 {
  font-size: clamp(4rem, 16vw, 18rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: 4px;
  font-family: "bebas neue";
  text-transform: uppercase;
  line-height: 0.9;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  user-select: none;
  color: #0a0a0a;
  will-change: transform;
}
.line {
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}
.headline {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0a0a0a;
  border-radius: 5px;
  padding: 0 0.5rem;
}
.headline h2 {
  font-family: "bebas neue";
  font-size: clamp(0.85rem, 5.2vw, 2rem);
  text-align: center;
  line-height: 1.2;
  font-weight: 500;
  color: #fff;
}

.headline .mobile-break {
  display: none;
}

.pipe-separator {
  display: inline;
  margin: 0 0.3em;
}

.rectangle {
  position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;

  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background-color: #ffffff;
  padding: 0.8rem 0.8rem;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.rectangle a {
  text-decoration: none;
  color: #1b1f28;
  font-size: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.rectangle a:hover {
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .rectangle {
    left: 10px;
    padding: 1rem 0.6rem;
    gap: 1rem;
  }

  .rectangle a {
    font-size: 1.4rem;
  }
  .headline {
    padding: 0.6rem 0.8rem;
  }

  .headline h2 {
    font-size: clamp(1.5rem, 3.8vw, 1.2rem);
    line-height: 1.5;
  }
  .pipe-separator {
    display: none;
  }
  .headline .mobile-break {
    display: block;
  }
}

.mouse-icon {
  font-size: 2rem;
  margin-bottom: -5px;
}

.arrow-icon {
  font-size: 1.5rem;
  animation: fade-pulse 2s infinite;
}

@keyframes fade-pulse {
  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.3;
  }
}

@media (max-height: 500px) {
  .scroll-indicator {
    display: none;
  }
}

.gyro-hint {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.85;
  font-family: "Bebas Neue";
  background-color: #0a0a0a;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  z-index: 1;
  transition: opacity 0.6s ease;
}

@media (min-width: 769px) {
  .gyro-hint {
    display: none;
  }
}

@media (max-width: 768px) {
  nav {
    position: relative;
    padding: 1.2em;
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    text-align: center;
  }

  nav .location,
  nav .headline,
  nav .email {
    justify-self: center;
  }

  nav .headline {
    flex-wrap: wrap;
    gap: 0.4em;
  }

  nav .social-btn {
    font-size: 1rem;
  }
  .headline .social-btn {
    margin: 0 0.25em;
  }

  .headline .social-btn:not(:has(.underline)) {
    display: none;
  }

  .header {
    top: 45%;
    padding: 1rem;
    text-align: center;
    white-space: normal;
  }

  .line {
    justify-content: center;
  }

  .header h1 {
    font-size: clamp(3.5rem, 18vw, 6rem);
    line-height: 0.95;
    white-space: nowrap;
  }

  .header .cta {
    flex-direction: column;
    gap: 0.8rem;
  }

  .header .cta a {
    width: 100%;
    max-width: 260px;
    font-size: 1.4rem;
    padding: 0.5rem 1.5rem;
  }
  .rectangle {
    flex-direction: row;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    padding: 0.4rem 0.8rem;
    top: auto;
    bottom: 100px;
    background-color: #fff;
  }

  .rectangle a {
    font-size: 1.6rem;
  }
}
.header .cta a {
  position: relative;
  overflow: hidden;
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.header .cta a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  border-radius: 50px;
}

.header .cta a:hover::before {
  left: 0;
}

/* View My Work button - light background slides in */
.cnt-me::before {
  background-color: #fafaf0;
}

.cnt-me:hover {
  color: #0a0a0a;
}

/* Download Resume button - dark background slides in */
.resume {
  background-color: transparent;
  color: #0a0a0a;
}

.resume::before {
  background-color: #1b1f28;
}

.resume:hover {
  color: #fff;
}
