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

.hero-section {
  position: relative;
  padding: var(--space-xl) 0 var(--space-xxxl);
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  position: relative;
}

/* Mobile Hero Layout: Cat on top, prominent and bigger, centered naturally */
.hero-cat-wrapper {
  order: -1; /* Cat on top on mobile */
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto var(--space-md);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

body.mobile-preview-active .hero-cat-wrapper {
  max-width: 290px;
  margin: 0 auto var(--space-md);
  overflow: hidden;
}

.hero-cat-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
  pointer-events: none;
  transform: translateZ(0);
  will-change: transform;
}

/* Hero Content (Intro text & CTA) */
.hero-content {
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
  width: 100%;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--brand-dark-blue);
  margin-bottom: var(--space-xl);
  letter-spacing: -0.02em;
}

.hero-title .untangle-word {
  color: var(--brand-primary);
  display: inline-block;
  font-weight: 700;
}

/* Download CV Button Micro-interaction */
.btn-download-cv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background-color: var(--brand-dark-blue);
  color: var(--color-white);
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background-color var(--transition-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  width: 100%;
  max-width: 100%;
  box-shadow: none; /* Minimalistic - no heavy shadows */
}

.btn-download-cv svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-white);
  transition: transform var(--transition-fast);
}

.btn-download-cv:hover:not(.loading):not(.success) {
  background-color: var(--brand-mid-blue);
}

.btn-download-cv:active:not(.loading):not(.success) {
  background-color: var(--brand-dark-blue);
}

/* Loading State */
.btn-download-cv.loading {
  background-color: var(--brand-dark-blue);
  pointer-events: none;
}

.btn-download-cv.loading svg {
  animation: spinLoader 0.9s linear infinite;
}

@keyframes spinLoader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success State */
.btn-download-cv.success {
  background-color: var(--brand-primary);
  pointer-events: none;
}

/* Desktop Hero Layout: Intro text on the LEFT, Cat on the RIGHT */
@media (min-width: 900px) {
  body:not(.mobile-preview-active) .hero-section {
    padding: var(--space-xxxl) 0 var(--space-5xl);
  }

  body:not(.mobile-preview-active) .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xxl);
  }

  body:not(.mobile-preview-active) .hero-content {
    order: 1; /* Left */
    flex: 1.2;
    max-width: 650px;
  }

  body:not(.mobile-preview-active) .hero-title {
    font-size: 48px;
    line-height: 1.12;
    margin-bottom: var(--space-xxl);
  }

  body:not(.mobile-preview-active) .btn-download-cv {
    width: auto;
  }

  body:not(.mobile-preview-active) .hero-cat-wrapper {
    order: 2; /* Right */
    flex: 1;
    max-width: none;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
  }

  body:not(.mobile-preview-active) .hero-cat-img {
    width: 100%;
    max-width: 416px;
    height: auto;
    margin: 0 auto;
  }
}
