/* Final visual layer for private LifeNest landing preview.
   Keeps the working MVP source untouched and only affects landing-preview. */

.hero-media {
  background-image: url('assets/hero-main.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.human-image picture {
  display: block;
  width: 100%;
}

.human-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.05 / 1;
  object-fit: cover;
  object-position: 35% center;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.turkiye-bg {
  background-image: url('assets/turkiye-network.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.founder-card {
  grid-template-columns: 164px 1fr;
  align-items: center;
  gap: 28px;
  overflow: hidden;
}

.founder-photo {
  width: 164px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(145deg, #d9d1c6, #f3eee6);
  border: 1px solid rgba(11,54,38,.10);
  box-shadow: 0 16px 38px rgba(7,40,28,.12);
}

.founder-photo picture,
.founder-photo img {
  display: block;
  width: 100%;
  height: 100%;
}

.founder-photo img {
  object-fit: cover;
  object-position: center 16%;
}

.founder-photo-sanaz img {
  object-position: center 14%;
}

@media (max-width: 980px) {
  .hero-media {
    background-position: 72% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(3,18,12,.96) 0%, rgba(3,18,12,.79) 52%, rgba(3,18,12,.32) 100%),
      linear-gradient(0deg, rgba(2,15,10,.74), transparent 56%);
  }

  .human-image img {
    aspect-ratio: 4 / 3;
    object-position: 32% center;
  }

  .turkiye-bg {
    background-position: 58% center;
  }

  .founder-card {
    grid-template-columns: 138px 1fr;
    gap: 24px;
  }

  .founder-photo {
    width: 138px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 760px;
  }

  .hero-media {
    background-position: 74% center;
    transform: scale(1.01);
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(3,18,12,.97) 0%, rgba(3,18,12,.86) 55%, rgba(3,18,12,.44) 100%),
      linear-gradient(0deg, rgba(2,15,10,.82) 0%, rgba(2,15,10,.18) 58%, rgba(2,15,10,.34) 100%);
  }

  .human-image img {
    aspect-ratio: 4 / 3;
    object-position: 30% center;
    border-radius: 24px;
  }

  .turkiye {
    min-height: 900px;
  }

  .turkiye-bg {
    background-position: 61% center;
  }

  .turkiye-shade {
    background:
      linear-gradient(90deg, rgba(4,17,12,.96) 0%, rgba(4,17,12,.78) 65%, rgba(4,17,12,.46) 100%),
      linear-gradient(0deg, rgba(4,17,12,.90), rgba(4,17,12,.14) 58%, rgba(4,17,12,.44));
  }

  .founder-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }

  .founder-photo {
    width: min(148px, 44vw);
    border-radius: 24px;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 785px;
  }

  .hero-media {
    background-position: 76% center;
  }

  .human-image img {
    aspect-ratio: 1 / 1;
    object-position: 31% center;
  }

  .turkiye-bg {
    background-position: 63% center;
  }

  .founder-photo {
    width: min(136px, 46vw);
  }
}

.back-to-top {
  --scroll-progress: 0;
  position: fixed;
  right: clamp(18px, 3vw, 38px);
  bottom: clamp(18px, 3vw, 38px);
  width: 66px;
  height: 66px;
  padding: 3px;
  border: 0;
  border-radius: 50%;
  background: conic-gradient(var(--mint) calc(var(--scroll-progress) * 1%), rgba(255,255,255,.2) 0);
  box-shadow: 0 16px 38px rgba(2,20,13,.28);
  cursor: pointer;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.94);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover { transform: translateY(-3px) scale(1.02); }
.back-to-top:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.back-to-top-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #08271c;
  color: #fff;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1;
}
.back-to-top-arrow { font-size: 18px; font-weight: 800; }
.back-to-top-value { margin-top: 4px; font: 700 10px 'Manrope', sans-serif; color: var(--mint); }

@media (max-width: 640px) {
  .back-to-top { width: 58px; height: 58px; right: 16px; bottom: 16px; }
  .back-to-top-arrow { font-size: 16px; }
  .back-to-top-value { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .back-to-top { transition: none; }
}
