/* Ana slider (hero) */
.hero {
  --hero-duration: 7s;
  position: relative;
  height: calc(100vh - 80px);
  height: calc(100svh - 80px);
  min-height: 520px;
  max-height: 900px;
  margin-top: 80px;
  overflow: hidden;
  background: #0e2c3b;
  color: #fff;
  isolation: isolate;
}

/* Görseller */
.hero__slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.2s ease;
}

/* Uzak slaytlar çizilmez → tarayıcı onları açılışta indirmez (hero.js .is-near ekler) */
.hero__slide:not(.is-active):not(.is-near) {
  display: none;
}

.hero__slide.is-active {
  opacity: 1;
  animation: heroZoom calc(var(--hero-duration) + 1.5s) ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.1); }
}

/* Marka rengi kaplama: solda koyu, sağa doğru açılır */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(10, 34, 46, 0.92) 0%, rgba(14, 44, 59, 0.75) 38%, rgba(28, 81, 105, 0.35) 70%, rgba(28, 81, 105, 0.15) 100%),
    linear-gradient(0deg, rgba(10, 34, 46, 0.7) 0%, transparent 35%);
}

/* İçerik */
.hero__content {
  position: absolute;
  top: 50%;
  left: max(6vw, 24px);
  right: 24px;
  max-width: 720px;
  transform: translateY(-55%);
}

/* Metinler aynı hücrede üst üste durur, yalnızca aktif olan görünür */
.hero__texts {
  display: grid;
  margin-bottom: 34px;
}

.hero__text {
  grid-area: 1 / 1;
  visibility: hidden;
}

.hero__text h1,
.hero__text h2 {
  margin: 0 0 16px;
  font-family: 'FuturaPT-Book', sans-serif;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.5px;
  color: #fff;
}

.hero__text p {
  max-width: 560px;
  margin: 0;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

/* Başlığın altındaki marka çizgisi */
.hero__text h1::after,
.hero__text h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 18px;
  border-radius: 2px;
  background: linear-gradient(90deg, #bfe3f2, rgb(74, 138, 169));
}

.hero__text.is-active {
  visibility: visible;
}

.hero__text.is-active h1,
.hero__text.is-active h2 {
  animation: heroTextIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero__text.is-active p {
  animation: heroTextIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}

@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* Butonlar */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #1c5169;
  font-size: 17px;
  text-decoration: none;
  transition: transform 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}

.hero__btn i {
  transition: transform 0.25s;
}

.hero__btn:hover {
  transform: translateY(-2px);
  background: #bfe3f2;
  border-color: #bfe3f2;
  color: #0e2c3b;
}

.hero__btn:hover i {
  transform: translateX(4px);
}

.hero__btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.hero__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* Alt navigasyon */
.hero__nav {
  position: absolute;
  left: max(6vw, 24px);
  right: max(6vw, 24px);
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.hero__arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

.hero__dots {
  display: flex;
  gap: 8px;
}

.hero__dot {
  position: relative;
  width: 44px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.hero__dot::before,
.hero__dot::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
}

.hero__dot::before {
  right: 0;
  background: rgba(255, 255, 255, 0.3);
}

.hero__dot::after {
  width: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}

.hero__dot.is-done::after {
  transform: scaleX(1);
  background: rgba(255, 255, 255, 0.6);
}

.hero__dot.is-active::after {
  animation: heroProgress var(--hero-duration) linear forwards;
}

.hero.is-paused .hero__dot.is-active::after {
  animation-play-state: paused;
}

@keyframes heroProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero__counter {
  margin-left: auto;
  font-size: 15px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.7);
}

.hero__counter b {
  font-weight: 600;
  font-size: 20px;
  color: #fff;
}

/* Tablet */
@media (max-width: 860px) {
  .hero__content {
    transform: translateY(-58%);
  }

  .hero__dot {
    width: 28px;
  }
}

/* Telefon */
@media (max-width: 560px) {
  .hero {
    min-height: 560px;
  }

  .hero__overlay {
    background:
      linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 40px 40px,
      linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 40px 40px,
      linear-gradient(0deg, rgba(10, 34, 46, 0.92) 0%, rgba(14, 44, 59, 0.7) 35%, rgba(14, 44, 59, 0.2) 65%, rgba(14, 44, 59, 0.1) 100%);
  }

  .hero__content {
    top: auto;
    bottom: 96px;
    left: 20px;
    right: 20px;
    transform: none;
  }

  .hero__texts {
    margin-bottom: 24px;
  }

  .hero__text h1::after,
  .hero__text h2::after {
    margin-top: 14px;
  }

  .hero__btn {
    flex: 1 1 140px;
    justify-content: center;
    padding: 13px 18px;
    font-size: 16px;
  }

  .hero__nav {
    left: 20px;
    right: 20px;
    bottom: 28px;
    gap: 10px;
  }

  .hero__arrow {
    width: 38px;
    height: 38px;
  }

  .hero__dots {
    gap: 5px;
  }

  .hero__dot {
    width: 18px;
  }
}

@media (max-width: 400px) {
  .hero__counter {
    display: none;
  }
}

@media (max-width: 360px) {
  .hero__dots {
    gap: 4px;
  }

  .hero__dot {
    width: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide.is-active,
  .hero__text.is-active h1,
  .hero__text.is-active h2,
  .hero__text.is-active p {
    animation: none;
  }
}
