/* ===================== */
/* HERO */
/* ===================== */

.hero-section {
  position: relative;

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  min-height: 100vh;

  padding: calc(var(--nav-height) + 2rem) 2rem 5rem 2rem;

  overflow: hidden;

  text-align: center;
}

/* STOR BAKGRUNDSTEXT */

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);

  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: clamp(5rem, 16vw, 14.4rem);
  line-height: 1;

  color: rgba(253, 16, 94, 0.3);

  white-space: nowrap;
  text-align: center;

  pointer-events: none;
  user-select: none;

  z-index: 0;

  /* z-index väntar 0.5s (tills färgen fader ut) innan den hoppar tillbaka bakom */
  transition: all 0.2s ease;
}

.hero-section.is-hovered .hero-bg-text {
  color: rgba(253, 16, 94, 0.6);
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.8);

  z-index: 10;
}

.hero-section.is-hovered .portrait-img {
  filter: blur(2px);
}

/* CENTER WRAPPER */

.hero-center {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 1.5rem;
}

/* PORTRÄTT MED CIRKEL */

.portrait-container {
  position: relative;

  width: clamp(280px, 26.4vw, 380px);
  height: clamp(380px, 34.7vw, 500px);

  flex-shrink: 0;
}

.hero-circle-bg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);

  width: clamp(250px, 26.4vw, 380px);
  height: clamp(250px, 26.4vw, 380px);

  border-radius: 50%;

  background: rgba(249, 166, 32, 0.45);

  z-index: 1;
}

.portrait-img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);

  width: clamp(220px, 23.6vw, 340px);
  height: clamp(330px, 33.3vw, 480px);

  object-fit: cover;
  object-position: center top;

  display: block;

  z-index: 2;

  transition: filter 0.2s ease;
}

/* HERO LABEL */

.hero-label {
  display: block;
  font-family: "forma-djr-micro", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-pink);
  margin-bottom: 0;
}

/* HERO CONTENT */

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

/* ===================== */
/* HERO BUTTONS */
/* ===================== */

.hero-buttons {
  margin-top: 1.5rem;
}

/* ROSA PRIMARY */

.btn-project {
  background-color: var(--color-pink);

  color: white;

  border-radius: 999px;

  padding: 0.9rem 2rem;

  font-size: 1rem;
  font-weight: 500;

  border: none;

  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.btn-project:hover {
  background-color: #e00052;

  color: white;

  transform: translateY(-2px);
}

/* OUTLINE SECONDARY */

.btn-contact {
  background: transparent;

  color: var(--color-pink);

  border: 2px solid var(--color-pink);

  border-radius: 999px;

  padding: 0.9rem 2rem;

  font-size: 1rem;
  font-weight: 500;

  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.btn-contact:hover {
  background-color: var(--color-pink);

  color: white;

  transform: translateY(-2px);
}

/* ===================== */
/* HERO — RESPONSIV */
/* ===================== */

@media (max-width: 768px) {
  /* På mobil syns texten alltid framför (hover finns ej på touch) */
  .custom-hero-bg {
    width: auto;
    height: 70vh;
  }

  .hero-bg-text {
    z-index: 0;
    font-size: clamp(5rem, 26vw, 8rem);
  }

  .portrait-container {
    width: 280px;
    height: 380px;
  }

  .hero-circle-bg {
    width: 250px;
    height: 250px;
  }

  .portrait-img {
    width: 220px;
    height: 330px;
  }
}

/* ===================== */
/* Background-animation */
/* ===================== */
/* Klassen som läggs på sektionen som ska ha den rörliga bakgrunden */
.custom-hero-bg {
  background-color: #fffbf5;

  /* Radiella bubblor. Den gula är nu utbytt mot en varmare guld-ton (255, 175, 50) */
  background-image:
    radial-gradient(
      circle at 10% 20%,
      rgba(253, 16, 94, 0.45) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(249, 166, 32, 0.35) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 40% 70%,
      rgba(255, 113, 29, 0.35) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 175, 50, 0.35) 0%,
      transparent 55%
    );

  background-size: 200% 200%;

  /* Linear ger ett konstant, hack-fritt tempo! */
  animation: blobBackground 15s linear infinite;
}

/* Kvadratisk animation för helt jämnt flyt hela vägen runt */
@keyframes blobBackground {
  0% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}
