#hero,
#home {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg);
  color: var(--fg);
  isolation: isolate;
}

.bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-item {
  position: absolute;
  background: var(--item-bg);
  border: var(--ink-border-width) solid var(--ink);
  box-shadow: 6px 6px 0 0 var(--gutter-color), 0 10px 25px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.item-1 {
  width: 420px;
  height: 280px;
  top: 6%;
  left: -2%;
  transform: rotate(-5deg);
  opacity: 0.85;
}

.item-2 {
  width: 460px;
  height: 320px;
  top: 8%;
  right: -3%;
  transform: rotate(4deg);
  opacity: 0.9;
}

.item-3 {
  width: 380px;
  height: 260px;
  bottom: 6%;
  left: 2%;
  transform: rotate(-3deg);
  opacity: 0.8;
}

.item-4 {
  width: 440px;
  height: 300px;
  bottom: 4%;
  right: 1%;
  transform: rotate(6deg);
  opacity: 0.85;
}

.bg-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content-center {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 850px;
  width: 90%;
  padding: 2rem 1rem;
}

.hero-avatar-container {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: none;
  background-color: var(--item-bg);
  box-shadow: none;
  transition: transform 0.3s ease;
}

.hero-avatar-container:hover .hero-avatar-img {
  transform: scale(1.05) rotate(-2deg);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
}

.hero-name-accent {
  color: var(--accent);
  text-shadow: 4px 4px 0 var(--gutter-color);
  display: inline-block;
  position: relative;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--fg);
  min-height: 2.2rem;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.typewriter-text {
  color: var(--fg);
  font-weight: 700;
}

.typewriter-cursor {
  font-weight: 400;
  color: var(--accent);
  margin-left: 2px;
  animation: typewriterBlink 0.8s infinite;
}

@keyframes typewriterBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.hero-social-links {
  position: absolute;
  bottom: 2.2rem;
  left: 2.5rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background-color: var(--item-bg);
  color: var(--fg);
  font-size: 1.25rem;
  text-decoration: none;
  box-shadow: 3px 3px 0 0 var(--gutter-color);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hero-social-icon:hover {
  transform: translateY(-4px) scale(1.05);
  background-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 4px 6px 0 0 var(--gutter-color);
}

.hero-scroll-down {
  position: absolute;
  bottom: 2.2rem;
  right: 2.5rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--fg);
  cursor: pointer;
  animation: heroScrollFloat 2.2s ease-in-out infinite;
  transition: color 0.2s ease, opacity 0.2s ease;
}


.hero-scroll-text {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.hero-scroll-icon {
  font-size: 1.4rem;
  color: var(--fg);
}

@keyframes heroScrollFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@media (max-width: 1024px) {
  .item-1 { width: 320px; height: 220px; left: -5%; }
  .item-2 { width: 340px; height: 240px; right: -5%; }
  .item-3 { width: 300px; height: 200px; }
  .item-4 { width: 320px; height: 220px; }
}

@media (max-width: 768px) {
  #hero,
  #home {
    min-height: 560px;
  }

  .hero-scroll-down {
    bottom: 1.25rem;
    right: 1.25rem;
    gap: 0.4rem;
  }

  .hero-scroll-text {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
  }

  .hero-scroll-icon {
    font-size: 1.2rem;
  }

  .hero-social-links {
    bottom: 1.25rem;
    left: 1.25rem;
    gap: 0.5rem;
  }

  .hero-social-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .hero-avatar-container {
    width: 130px;
    height: 130px;
    margin-bottom: 1rem;
  }

  .hero-name {
    font-size: clamp(2.2rem, 9vw, 3.5rem);
  }

  .bg-item {
    opacity: 0.5;
  }
  
  .item-1 { top: 2%; left: -15%; transform: rotate(-8deg) scale(0.85); }
  .item-2 { top: 4%; right: -15%; transform: rotate(8deg) scale(0.85); }
  .item-3 { bottom: 2%; left: -10%; transform: rotate(-6deg) scale(0.8); }
  .item-4 { bottom: 4%; right: -10%; transform: rotate(6deg) scale(0.8); }
}