/* =============================================
    HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--nav-height) 0 0;
}

/* Grid background */
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--clr-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--clr-border) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Scanline effect */
.hero__scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 229, 255, 0.012) 3px,
    rgba(0, 229, 255, 0.012) 4px
  );
  pointer-events: none;
}

/* Content */
.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-20) var(--space-16);
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "foto texto";
  gap: var(--space-16);
  align-items: center;
}

/* Terminal line */
.hero__terminal {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  margin-bottom: var(--space-6);
}

.hero__terminal-prompt {
  color: var(--clr-green);
}

.hero__terminal-cmd {
  color: var(--clr-primary);
}

.hero__terminal-cursor {
  color: var(--clr-primary);
  animation: blink 1s step-end infinite;
}

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

/* Name */
.hero__name {
  font-family: var(--font-hero);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.hero__name-first {
  color: var(--clr-text);
}

.hero__name-last {
  color: var(--clr-primary);
  -webkit-text-stroke: 1px var(--clr-primary);
}

/* Role */
.hero__role {
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  color: var(--clr-text-muted);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: nowrap;
  align-items: baseline;
}

.hero__role-label {
  color: var(--clr-text-muted);
}

.hero__role-rotating {
  color: var(--clr-accent);
  font-weight: 700;
  min-width: 220px;
  display: inline-block;
}

/* Tagline */
.hero__tagline {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--clr-text-faint);
  letter-spacing: 0.12em;
  white-space: normal;
  text-transform: uppercase;
  margin-bottom: var(--space-8);
}

/* Location */
.hero__location {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  margin-bottom: var(--space-8);
}

/* Actions */
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.btn--resume {
  width: 100%;
  justify-content: center;
}

.hero__actions-row {
  display: flex;
  gap: var(--space-3);
}

.hero__actions-row .btn {
  flex: 1;
  justify-content: center;
}

/* Status */
.hero__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--clr-green);
  background: var(--clr-green-dim);
  border: 1px solid rgba(0, 255, 163, 0.2);
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  grid-column: 1;
}

.hero__status-dot {
  width: 7px;
  height: 7px;
  background: var(--clr-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 163, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(0, 255, 163, 0); }
}

/* Photo */
.hero__photo-wrap {
  grid-area: foto;
  position: relative;
  align-self: center;
}

.hero__photo-frame {
  position: relative;
  width: 420px;
  height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border-2);
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(20%) contrast(1.05);
  transition: filter var(--transition-slow);
}

.hero__photo-frame:hover .hero__photo {
  filter: grayscale(0%) contrast(1.08);
}

.hero__photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    transparent 60%,
    rgba(0, 229, 255, 0.08) 100%
  );
  pointer-events: none;
}

/* Corner decorations */
.hero__photo-corner {
  position: absolute;
  width: 255px;
  height: 255px;
  border-color: var(--clr-primary);
  border-style: solid;
  z-index: 2;
  pointer-events: none; 
}

.hero__photo-corner--tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.hero__photo-corner--tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.hero__photo-corner--bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.hero__photo-corner--br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.hero__photo-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 50% 50%, var(--clr-primary-glow), transparent 70%);
  z-index: -1;
  opacity: 0.4;
  filter: blur(20px);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--clr-text-faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: float-up 2.5s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--clr-primary), transparent);
}

@keyframes float-up {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(-6px); opacity: 1; }
}

/* Responsive */
@media (max-width: 1100px) {
  .hero__name {
    font-size: clamp(4rem, 9vw, 7rem);
  }

  .hero__role-rotating {
    min-width: unset;
  }

  .hero__actions-row {
    width: 100%;
  }

  .hero__actions-row .btn {
    flex: 1;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-10) var(--space-4);
    gap: var(--space-8);
  }
}
  .hero__text {
  grid-area: texto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

  .hero__photo-wrap {
    order: 2;
    width: fit-content;
  }

  .hero__status {
    grid-area: texto;
    align-self: end;
    justify-self: start;
    margin-top: var(--space-4);
}

.hero__actions {
    width: 100%;
  }

  .btn--resume {
    width: 100%;
  }

  .hero__actions-row {
    width: 100%;
  }

  .hero__actions-row .btn {
    flex: 1;
  }

@media (max-width: 480px) {
  .hero__photo-frame {
    width: 200px;
    height: 240px;
  }
}