.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 130px 26px 90px;
}

.hero-grid-canvas {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 48%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.92;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 25% 30%, rgba(0, 255, 102, 0.24), transparent 36%),
    linear-gradient(to bottom, rgba(05, 05, 05, 0.1), rgba(05, 05, 05, 1));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
  margin: 0 auto;
}

.hero h1 {
  min-height: 70px;
  margin-bottom: 20px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 600px;
  margin-bottom: 20px;
  color: #c7c7c7;
  line-height: 1.8;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.45);
}

.typing-text::after {
  content: "|";
  display: inline-block;
  margin-left: 6px;
  color: var(--green);
  font-weight: bold;
  animation: blink 1s infinite;
}

.project-marquee-link {
  display: block;
  margin-top: 12px;
  color: inherit;
}

.project-marquee {
  width: 100%;
  overflow: hidden;
  padding: 14px 0;
  border: 1px solid var(--line-soft);
}

.project-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 18px;
  animation: projectsMoveRight 26s linear infinite;
  transform: translateX(-50%);
}

.project-marquee-link:hover .project-track {
  animation-play-state: paused;
}

.project-track span {
  white-space: nowrap;
  padding: 7px 13px;
  color: #d8d8d8;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.06);
}

.project-marquee-link:active {
  transform: scale(0.99);
}

@keyframes projectsMoveRight {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.timeline-section {
  position: relative;
}

.timeline-wrapper {
  position: relative;
  margin-top: 60px;
  padding: 40px 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--green-line);
  transform: translateX(-50%);
}

.timeline-scroll-dot {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 999;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 22px var(--green-soft);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0s;
}

.timeline-scroll-dot.visible {
  opacity: 1;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, color 0.3s ease;
}

.timeline-item.show {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.left {
  left: 0;
  text-align: right;
  padding-right: 70px;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
  padding-left: 70px;
}

.timeline-text {
  color: #bdbdbd;
  font-size: 0.95rem;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.timeline-item.active .timeline-text {
  color: var(--green);
}

@media (max-width: 768px) {
  .hero {
    width: calc(100% - 32px);
    padding-left: 0;
    padding-right: 0;
    margin: 0 auto;
  }

  .hero h1 {
    min-height: 96px;
    font-size: 2rem;
  }

  .timeline-line {
    left: 18px;
    transform: none;
  }

  .timeline-scroll-dot {
    left: 19px;
    transform: translate(-50%, -50%);
  }

  .timeline-item,
  .timeline-item.left,
  .timeline-item.right {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 25px 0 25px 45px;
  }
}

@media (max-width: 600px) {
  .btn + .btn {
    margin-left: 0;
  }

  .project-track {
    gap: 12px;
    animation-duration: 20s;
  }

  .project-track span {
    font-size: 0.82rem;
    padding: 6px 10px;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 190px;
    padding-bottom: 95px;
  }

  .hero-content {
    width: min(100%, 900px);
  }

  .hero-grid-canvas {
    height: 44%;
  }
}

@media (max-width: 768px) {
  .hero {
    width: min(100% - 32px, 900px);
    padding-top: 178px;
    padding-bottom: 82px;
  }

  .hero h1 {
    min-height: 82px;
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    line-height: 1.15;
  }

  .hero p {
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .timeline-wrapper {
    margin-top: 36px;
    padding: 24px 0;
  }

  .timeline-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .hero {
    width: min(100% - 30px, 900px);
    padding-top: 166px;
    padding-bottom: 70px;
  }

  .hero h1 {
    min-height: 72px;
  }

  .hero-grid-canvas {
    height: 38%;
    opacity: 0.72;
  }

  .project-marquee {
    padding: 12px 0;
  }

  .timeline-line {
    left: 15px;
  }

  .timeline-scroll-dot {
    left: 16px;
  }

  .timeline-item,
  .timeline-item.left,
  .timeline-item.right {
    padding: 22px 0 22px 40px;
  }
}
