.section-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: grid;
  place-items: center;
  padding: 80px 0 0 0;
  overflow: hidden;

  background: radial-gradient(
      140% 120% at 0% 100%,
      rgba(126, 34, 206, 0.38) 0%,
      rgba(126, 34, 206, 0.16) 22%,
      transparent 40%
    ),
    radial-gradient(
      140% 120% at 100% 0%,
      rgba(192, 38, 211, 0.38) 0%,
      rgba(192, 38, 211, 0.16) 25%,
      transparent 40%
    ),
    #0b0f17;
}

.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.35);
}

.container--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  padding: 2rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-hero .container--grid {
  position: relative;
  z-index: 1;
}

.grid-container-1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-subtitle {
  padding-left: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #bbbbbb;
  letter-spacing: -0.02em;
}

.hero-title {
  padding-left: 12px;
  font-size: 3.6rem;
  font-weight: 700;
  background: linear-gradient(90deg, #d946ef 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0.6rem 0;
}

.dev-showcase {
  font-size: 1.6rem;
  color: #dddddd;
  line-height: 1.8;
  font-weight: 600;

  display: inline-flex;
  align-items: baseline;
  justify-content: start;
  gap: 0.25ch;
}

.rotator {
  margin-left: 7px;
  position: relative;
  display: inline-block;
  --rotator-ch: 10;
  width: 280px;
  height: 1.9em;
  overflow: hidden;
}

.rotator .showcase {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  animation: showcaseRotate 9s ease-in-out infinite;

  display: grid;
  place-items: center;
  white-space: nowrap;
}

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

.showcase.--hidden {
  display: initial;
}

@keyframes showcaseRotate {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  6% {
    opacity: 1;
    transform: translateY(0);
  }
  28% {
    opacity: 1;
    transform: translateY(0);
  }
  33% {
    opacity: 0;
    transform: translateY(-12px);
  }
  100% {
    opacity: 0;
    transform: translateY(-12px);
  }
}

.showcase.--hidden {
  display: none;
}

.hero-description {
  padding-left: 12px;
  margin: 1.5rem 0;
  font-size: 1.1rem;
  color: #cccccc;
  line-height: 1.6;
}

.hero-btns {
  padding-left: 12px;
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 19px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn--primary {
  background-color: #a855f7;
  color: #ffffff;
}

.btn--primary:hover {
  background-color: #d946ef;
  color: #ffffff;
}

.btn--secondary {
  background-color: #555555;
  color: #ffffff;
}

.btn--secondary:hover {
  background-color: #777777;
  color: #ffffff;
}

.grid-container-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.grid-container-2.hidden {
  display: show;
}

.codeblock {
  background: #111111;
  color: #fcfcfa;
  border: 1px solid #403e41;
  border-radius: 12px;
  padding: 20px 24px;
  width: 500px;
  height: 250px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  font-family: 'Courier New', monospace;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.code-animation {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
  line-height: 2.1;
  width: 100%;
}

.code-line {
  opacity: 0;
  transform: translateY(6px);
  white-space: nowrap;
  animation: fadeInUp 480ms ease forwards;
}

.code-line:nth-child(1) {
  animation-delay: 0.12s;
}
.code-line:nth-child(2) {
  animation-delay: 0.32s;
}
.code-line:nth-child(3) {
  animation-delay: 0.52s;
}
.code-line:nth-child(4) {
  animation-delay: 0.72s;
}
.code-line:nth-child(5) {
  animation-delay: 0.92s;
}

.code-line:last-child {
  position: relative;
}
.code-line:last-child::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #fcfcfa;
  margin-left: 6px;
  animation: caretBlink 1s steps(1, end) infinite;
  opacity: 0;
  animation-delay: 1.02s;
  animation-fill-mode: both;
}

.indent {
  padding-left: 2ch;
}

.keyword {
  color: #5ad4e6;
}
.variable {
  color: #fcfcfa;
} /* white */
.operator {
  color: #fcfcfa;
}
.string {
  color: #fce566;
}
.array,
.return {
  color: #bf0000;
}
.function {
  color: #008000;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-links {
  padding-left: 12px;
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.link-icons {
  margin-top: 1rem;
  display: inline-block;
  font-size: 2.4rem;
  color: #cccccc;
  margin-right: 1rem;
  transition: color 0.3s ease;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}

.link-icon {
  width: 28px;
  height: 28px;
  transition: 0.3s ease;
}

.link-icons:hover {
  color: #d946ef;
  background-color: rgba(255, 255, 255, 0.2);
}
