*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: #07090E; }
body { overflow: hidden; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.hero {
  --pad: clamp(20px, 4vw, 56px);
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 420px;
  overflow: hidden;
  background: #07090E;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  touch-action: pan-y;
}
.hero :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.is-active { opacity: 1; }
.slide picture { display: block; width: 100%; height: 100%; }
.slide img, .slide video {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--fx, 50%) var(--fy, 50%);
}
.slide img {
  transform: scale(1.08);
  transform-origin: var(--fx, 50%) var(--fy, 50%);
  transition: transform 8s cubic-bezier(.2, .6, .3, 1);
}
.slide.is-active img { transform: scale(1); }

/* Dikey versiyon: telefon ve dik tablette (ekran enden uzunsa) orijinalin yerine gösterilir. */
.slide .media-mobile { display: none; }
@media (max-aspect-ratio: 1/1) {
  .slide.has-mobile img, .slide.has-mobile video { object-position: 50% 50%; transform-origin: 50% 50%; }
  .slide.has-mobile .media-main { display: none; }
  .slide.has-mobile .media-mobile { display: block; }
}

.shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 6, 10, .4) 0%, rgba(5, 6, 10, 0) 20%),
    linear-gradient(0deg, rgba(5, 6, 10, .45) 0%, rgba(5, 6, 10, 0) 22%);
}

.top {
  position: absolute; z-index: 3;
  top: max(clamp(20px, 4vh, 36px), env(safe-area-inset-top, 0px));
  left: var(--pad); right: var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.logo { display: inline-flex; align-items: center; }
.logo img { display: block; width: auto; max-width: min(50vw, 320px); object-fit: contain; }

.contact {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  height: 48px; padding: 0 20px 0 22px;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px;
  background: rgba(10, 12, 18, .2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  transition: background-color .4s ease, border-color .4s ease, color .4s ease;
}
.contact:hover { background: #fff; border-color: #fff; color: #07090E; }
.contact svg {
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.contact:hover svg { transform: translateX(3px); }

.nav-arw {
  --s: clamp(52px, 4.6vw, 72px);
  position: absolute; z-index: 3; top: 50%;
  display: grid; place-items: center;
  width: var(--s); height: var(--s); margin-top: calc(var(--s) / -2); padding: 0;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%;
  background: rgba(10, 12, 18, .2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; cursor: pointer;
  transition: background-color .4s ease, border-color .4s ease, color .4s ease;
}
.nav-arw.to-prev { left: var(--pad); }
.nav-arw.to-next { right: var(--pad); }
.nav-arw:hover { background: #fff; border-color: #fff; color: #07090E; }
.nav-arw svg {
  fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.nav-arw.to-prev:hover svg { transform: translateX(-5px); }
.nav-arw.to-next:hover svg { transform: translateX(5px); }

@media (max-width: 640px) {
  .nav-arw {
    --s: 46px;
    top: auto; margin-top: 0;
    bottom: max(clamp(12px, 3.5vh, 32px), env(safe-area-inset-bottom, 0px));
  }
  .contact { height: 44px; padding: 0 16px 0 18px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide, .slide img { transition: none; }
  .slide img, .slide.is-active img { transform: none; }
}
