/* ================================================================
   HOME.CSS — Full-viewport hero section
================================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

/* Background decorations */
.hero-glow {
  position: absolute;
  top: -15%;
  right: -8%;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--accent-r), 0.08) 0%,
    transparent 65%
  );
  pointer-events: none;
}
.hero-glow2 {
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--accent-r), 0.05) 0%,
    transparent 65%
  );
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 58px 58px;
  pointer-events: none;
}

/* Content grid */
.hero-wrap {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: 5rem;
  align-items: center;
  padding: 5rem 0;
}

/* Text column */
.hero-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-b);
  margin-bottom: 1.1rem;
  display: block;
  animation: fadeUp 0.6s var(--ease) 0.1s both;
}
.hero-name {
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.6rem;
  animation: fadeUp 0.65s var(--ease) 0.2s both;
}
.hero-role {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 1.4rem;
  min-height: 2rem;
  animation: fadeUp 0.7s var(--ease) 0.3s both;
}
#typed-cur {
  color: var(--accent-b);
  animation: blink 1s step-end infinite;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 2.25rem;
  animation: fadeUp 0.75s var(--ease) 0.4s both;
}
.hero-desc strong {
  color: var(--text);
  font-weight: 600;
}
.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
  animation: fadeUp 0.8s var(--ease) 0.5s both;
}
.hero-socials {
  display: flex;
  gap: 0.6rem;
  animation: fadeUp 0.85s var(--ease) 0.6s both;
}

/* --- Spline Background --- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.hero-wrap,
.wrap {
  position: relative;
  z-index: 2;
}

.hero .container,
.hero .scroll-down {
  position: relative;
  z-index: 2;
}

spline-viewer::part(logo),
spline-viewer::shadow #logo {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none;
}

/* Photo column */
.hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 0.9s var(--ease) 0.3s both;
}
.photo-ring {
  position: relative;
  width: 340px;
  height: 430px;
  border-radius: 22px;
}
.photo-ring::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  background: linear-gradient(
    140deg,
    var(--accent) 0%,
    var(--accent-b) 40%,
    rgba(var(--accent-r), 0.4) 100%
  );
  background-size: 250% 250%;
  animation: gradShift 5s ease infinite;
  z-index: 0;
}
.photo-ring::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 21px;
  background: var(--bg);
  z-index: 1;
}
.photo-ring img {
  position: absolute;
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
  z-index: 2;
}

/* Floating chips */
.hero-chip {
  position: absolute;
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.hero-chip i {
  font-size: 0.88rem;
  color: var(--accent-b);
}
.chip-1 {
  top: 14%;
  left: -22%;
  animation: float 3.5s ease-in-out 0s infinite;
}
.chip-2 {
  bottom: 16%;
  right: -20%;
  animation: float 3.5s ease-in-out 1.8s infinite;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted2);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2.2s ease infinite;
  cursor: pointer;
}
.scroll-hint i {
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    padding: 4rem 0;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions,
  .hero-socials {
    justify-content: center;
  }
  .hero-photo {
    order: -1;
  }
  .photo-ring {
    width: 220px;
    height: 280px;
  }
  .hero-chip {
    display: none;
  }
}
