/* ================================
   Hero Section Component
   ================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-20) var(--space-6);
  background: linear-gradient(135deg,
    var(--color-bg-secondary) 0%,
    var(--color-bg-primary) 50%,
    var(--color-bg-secondary) 100%
  );
}

/* Hero Background with Enhanced Gradient Overlay */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.08) 0%, transparent 50%),
    var(--gradient-overlay-light);
  pointer-events: none;
  z-index: 0;
  animation: gradientFloat 20s ease infinite;
}

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

/* Parallax effect (applied via JS) */
.hero-bg.parallax {
  transform: translateY(var(--parallax-offset, 0));
  transition: transform 0.1s linear;
}

/* Hero Container - Flex layout for image and content */
.hero-container {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  max-width: 1200px;
  position: relative;
  z-index: 1;
}

/* Hero Content */
.hero-content {
  max-width: 650px;
  text-align: left;
  position: relative;
  z-index: 1;
  flex: 1;
  order: 1;
}

/* Hero Image */
.hero-image-wrapper {
  flex-shrink: 0;
  order: 2;
}

.hero-image {
  width: 400px;
  height: 500px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 4px solid transparent;
  background:
    linear-gradient(var(--color-bg-primary), var(--color-bg-primary)) padding-box,
    linear-gradient(135deg, #667eea, #764ba2, #f093fb, #667eea) border-box;
  background-size: 100% 100%, 300% 300%;
  background-position: 0% 0%, 0% 50%;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(102, 126, 234, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 0.3s ease;
  animation: borderShift 8s ease infinite;
}

.hero-image:hover {
  transform: scale(1.05);
  box-shadow:
    0 25px 70px rgba(91, 159, 215, 0.3),
    0 0 40px rgba(102, 126, 234, 0.4);
  background-position: 0% 0%, 100% 50%;
}

@keyframes borderShift {
  0%, 100% {
    background-position: 0% 0%, 0% 50%;
  }
  50% {
    background-position: 0% 0%, 100% 50%;
  }
}

/* Small tag above name */
.hero-tag {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-4);
  font-family: var(--font-family-mono);
}

/* Main name heading */
.hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: var(--font-weight-black);
  letter-spacing: 0.02em;
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-8);
  background: var(--gradient-cool-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Bio text under name */
.hero-bio {
  max-width: 650px;
  margin-top: var(--space-8);
}

.hero-bio p {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-6);
}

.hero-bio p:last-child {
  margin-bottom: 0;
}

/* Hero CTA */
.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta .button {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-tertiary);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  animation: bounce 2s infinite;
  z-index: 1;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Large Screen Optimization (4K and above) */
@media (min-width: 2560px) {
  .hero {
    max-height: 100vh;
    padding: var(--space-12) var(--space-6);
  }

  .hero-content {
    max-width: 900px;
  }

  .hero-bio {
    max-width: 750px;
  }

  .scroll-indicator {
    bottom: var(--space-12);
  }
}

/* Desktop Optimization (1920px - 2560px) */
@media (min-width: 1920px) and (max-width: 2559px) {
  .hero {
    max-height: 100vh;
    padding: var(--space-16) var(--space-6);
  }

  .scroll-indicator {
    bottom: var(--space-10);
  }
}

/* Standard Desktop */
@media (min-width: 1024px) {
  .hero {
    max-height: 100vh;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .hero-container {
    gap: var(--space-8);
  }

  .hero-image {
    width: 320px;
    height: 400px;
  }
}

/* Small Tablet / Large Mobile */
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    gap: var(--space-8);
    align-items: center;
  }

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

  .hero-tag {
    text-align: center;
  }

  .hero-title {
    text-align: center;
  }

  .hero-bio {
    text-align: left;
  }

  .hero-image-wrapper {
    order: 2;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .hero-image {
    width: 100%;
    max-width: 400px;
    height: 450px;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    padding: var(--space-16) var(--space-4);
  }

  .hero-container {
    flex-direction: column;
    gap: var(--space-8);
    align-items: center;
  }

  .hero-image-wrapper {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-image {
    width: 100%;
    max-width: 350px;
    height: 400px;
    border-width: 3px;
    /* Disable complex animation on mobile for performance */
    animation: none;
    background:
      linear-gradient(var(--color-bg-primary), var(--color-bg-primary)) padding-box,
      linear-gradient(135deg, #667eea, #764ba2) border-box;
    background-size: 100% 100%, 100% 100%;
  }

  /* Simpler background animation on mobile */
  .hero-bg {
    animation: none;
    opacity: 0.9;
  }

  .hero-content {
    max-width: 100%;
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-tag {
    text-align: center;
  }

  .hero-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
    text-align: center;
  }

  .hero-bio {
    max-width: 100%;
    text-align: left;
  }

  .hero-bio p {
    font-size: var(--font-size-base);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .button {
    width: 100%;
    max-width: 300px;
  }

  .scroll-indicator {
    position: absolute;
    bottom: auto;
    top: 85vh;
    left: auto;
    right: var(--space-6);
    transform: none;
  }

  .scroll-indicator span {
    display: none;
  }

  .scroll-indicator svg {
    width: 24px;
    height: 24px;
  }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
  .hero-image {
    max-width: 300px;
    height: 350px;
  }

  .scroll-indicator {
    top: 80vh;
    right: var(--space-4);
  }
}
