/* ==========================================================================
   TIMY GONZÁLEZ | HERO SECTION STYLES
   Prominent Portrait Stage with Layered Typography & Enterprise Badges
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  padding: 120px 0 48px 0;
  overflow: hidden;
}

/* Ambient Colorful Background Glows */
.hero-glow-1 {
  position: absolute;
  top: 10%;
  left: 5%;
  width: 500px;
  max-width: 80vw;
  height: 500px;
  max-height: 80vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-2 {
  position: absolute;
  top: 25%;
  right: 5%;
  width: 600px;
  max-width: 80vw;
  height: 600px;
  max-height: 80vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(236, 72, 153, 0.1) 50%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

/* Hero Canvas Grid */
.hero-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  margin-bottom: 64px;
}

/* Left Content: Title & Text Layer */
.hero-text-content {
  position: relative;
  z-index: 3;
}

/* Availability Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  color: #34d399;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--accent-emerald);
  animation: pulseGlow 2s infinite ease-out;
}

/* Big Hero Title */
.hero-title {
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Large Portrait Stage */
.hero-portrait-stage {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7),
              0 0 40px rgba(0, 212, 255, 0.15),
              0 0 80px rgba(139, 92, 246, 0.15);
  background: var(--bg-surface-2);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portrait-img.portrait-light {
  display: none !important;
}

.portrait-img.portrait-dark {
  display: block !important;
}

[data-theme="light"] .portrait-img.portrait-light {
  display: block !important;
}

[data-theme="light"] .portrait-img.portrait-dark {
  display: none !important;
}

[data-theme="dark"] .portrait-img.portrait-light {
  display: none !important;
}

[data-theme="dark"] .portrait-img.portrait-dark {
  display: block !important;
}

.portrait-wrapper:hover .portrait-img {
  transform: scale(1.03);
}

/* Layered text overlay on top of the portrait */
.portrait-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 9, 14, 0) 35%,
    rgba(7, 9, 14, 0.4) 65%,
    rgba(7, 9, 14, 0.95) 100%
  );
  pointer-events: none;
}



.portrait-title-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 4;
  color: #ffffff;
}

.portrait-title-overlay .overlay-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.portrait-title-overlay .overlay-role {
  font-size: 0.9rem;
  color: var(--accent-cyan);
  font-weight: 600;
  display: block;
}

/* Floating Badges Around Portrait */
.floating-chip {
  position: absolute;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: rgba(13, 18, 31, 0.88);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chip-ai {
  top: -16px;
  right: -20px;
  border-color: rgba(139, 92, 246, 0.4);
}

.chip-ai .chip-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

.chip-ai-text strong {
  display: block;
  font-size: 0.875rem;
  color: #fff;
}

.chip-ai-text span {
  font-size: 0.75rem;
  color: #c084fc;
}

.chip-exp {
  top: -16px;
  left: -20px;
  border-color: rgba(0, 212, 255, 0.4);
}

.chip-exp .chip-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00d4ff, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

.chip-exp-text strong {
  display: block;
  font-size: 0.875rem;
  color: #fff;
}

.chip-exp-text span {
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

/* Metric Counters Bar */
.hero-metrics-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(13, 18, 31, 0.65);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
}

.metric-item {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  border-right: 1px solid var(--border-subtle);
}

.metric-item:last-child {
  border-right: none;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-number.metric-purple {
  background: var(--gradient-ai);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.metric-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-stage {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .hero-text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .metric-item {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 16px;
  }

  .metric-item:nth-child(3),
  .metric-item:nth-child(4) {
    border-bottom: none;
    padding-bottom: 0;
  }

  .chip-ai {
    right: 0;
  }

  .chip-exp {
    left: 0;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding-top: 100px;
  }

  .hero-metrics-bar {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .metric-item {
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
  }

  .metric-item:last-child {
    border-bottom: none;
  }

  .floating-chip {
    display: none; /* Keep clean on small mobile */
  }
}
