/* =========================================
   Home Slider — assets/css/slider.css
   Fullscreen + mobile cover
========================================= */

:root{
  --ot-slider-h: calc(100vh - 74px); /* header sticky yüksekliği */
}

/* iOS/Android: 100vh bugları için svh kullanıyoruz */
.ot-slider{
  position: relative;
  width: 100%;
  height: var(--ot-slider-h);
  min-height: 520px;
  overflow: hidden;
  background: #0b1020;
}

/* track */
.ot-slider__track{
  position: relative;
  width: 100%;
  height: 100%;
}

/* slide */
.ot-slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .45s ease, transform .65s ease;
  will-change: opacity, transform;
}

.ot-slide.is-active{
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* image */
.ot-slide__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* ✅ mobilde “yarım kalma” yok */
  object-position: center;
  transform: scale(1.05);
  transition: transform 6.5s ease;
}

.ot-slide.is-active .ot-slide__img{
  transform: scale(1.14); /* hafif cinematic zoom */
}

/* overlay (brand tonları) */
.ot-slide__overlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 15% 40%, rgba(106,61,240,.35), transparent 60%),
    radial-gradient(900px 500px at 80% 35%, rgba(43,123,255,.28), transparent 62%),
    linear-gradient(180deg, rgba(2,6,23,.25), rgba(2,6,23,.72));
}

/* content */
.ot-slide__content{
  position: relative;
  height: 100%;
  display: grid;
  align-items: center;
  z-index: 3;
  padding-top: 16px;
  padding-bottom: 22px;
}

.ot-slide__copy{
  max-width: 720px;
  color: #fff;
}

.ot-slide__title{
  margin: 0 0 12px;
  font-weight: 900;
  letter-spacing: .2px;
  line-height: 1.05;
  font-size: clamp(30px, 4vw, 56px);
}

.ot-slide__desc{
  margin: 0 0 18px;
  opacity: .92;
  font-size: clamp(14px, 1.4vw, 18px);
  max-width: 58ch;
}

/* buttons */
.ot-slide__cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ot-slideBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
}

.ot-slideBtn--primary{
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  color:#fff;
  border: 0;
}

.ot-slideBtn--ghost{
  background: rgba(255,255,255,.10);
  color:#fff;
}

.ot-slideBtn:hover{ filter: brightness(.98); text-decoration:none; }

/* nav arrows */
.ot-slider__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(2,6,23,.35);
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.ot-slider__nav span{ font-size: 30px; line-height: 1; margin-top:-2px; }

.ot-slider__nav--prev{ left: 14px; }
.ot-slider__nav--next{ right: 14px; }

.ot-slider__nav:hover{ background: rgba(2,6,23,.5); }

/* dots */
.ot-slider__dots{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 4;
  display:flex;
  justify-content:center;
  gap: 8px;
  padding: 0 14px;
}

.ot-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.18);
  cursor: pointer;
}

.ot-dot.is-active{
  background: #fff;
  border-color: rgba(255,255,255,.85);
}

/* responsive */
@media (max-width: 980px){
  :root{ --ot-slider-h: 100svh; } /* mobilde tam ekran */
  .ot-slider{ min-height: 560px; }
  .ot-slider__nav{ display:none; } /* mobilde swipe yeterli */
}

@media (prefers-reduced-motion: reduce){
  .ot-slide,
  .ot-slide__img{
    transition: none !important;
  }
}
