/* ────────────────────────────────────────────────────────────
   THEME TOKENS (LIGHT / DARK)
   - Tüm renkler ve buton stilleri bu değişkenlerden beslenir.
   - Dark modda html[data-bs-theme="dark"] ile override edilir.
   ──────────────────────────────────────────────────────────── */
:root {
  /* Navbar yüksekliği (JS dinamik ölçümle güncelleyebilir) */
  --nav-h: 80px;


  --font-base: 'Helvetica Neue', Helvetica, Arial, sans-serif;



  /* Anchor’lara (id hedeflerine) ek offset – üstte navbar var */
  --anchor-extra: 20px;

  /* Renkler — LIGHT tema */
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-text: #0b1220;
  --color-muted: #181a1d;
  --link: #0d6efd;
  --link-hover: #0a58ca;
  --btn-primary-bg: #030f22;
  --btn-primary-text: #ffffff;
  --btn-primary-border: #b4b2b2;
  --renk: #fff;
  /* İkincil */
  --btn-secondary-bg: #1d1d1dd2;
  --btn-secondary-text: #ffffff;
  --btn-secondary-border: #6c757d;
  --navbar-t-color: #6c757d;
  --navbar-ta-color: #000000;

  /* Başarılı */
  --btn-success-bg: #198754;
  --btn-success-text: #ffffff;
  --btn-success-border: #198754;

  /* Uyarı */
  --btn-warning-bg: #ffc107;
  --btn-warning-text: #212529;
  --btn-warning-border: #ffc107;

  /* Mor varyant */
  --btn-violet-bg: #6b5bff;
  --btn-violet-text: #ffffff;
  --btn-violet-border: #6b5bff;

  /* Outline */
  --btn-outline-primary-text: #0d6efd;
  --btn-outline-primary-border: #0d6efd;

  /* Chip zemin/çerçeve – buton birincil renginden türetilir */
  --chip-bg: color-mix(in oklab, var(--btn-primary-bg) 100%, transparent);
  --chip-border: color-mix(in oklab, var(--renk) 100%, transparent);
}

/* DARK tema: aynı token’ların koyu sürümleri */
html[data-bs-theme="dark"] {
  --color-bg: #0b0f14;
  --color-surface: #11161d;
  --color-text: #ffffff;
  --color-muted: #ffffffd7;
  /* okunurluğu biraz daha yükselttik */
  --link: #7aa2ff;
  --link-hover: #5b86ff;
  --btn-primary-bg: #04133d;
  --btn-primary-text: #ffffff;
  --btn-primary-border: rgba(8, 26, 128, 0.479);
  --navbar-ta-color: #ffffff;

  --btn-success-bg: #4dd9a7;
  --btn-success-text: #061016;
  --btn-success-border: #4dd9a7;

  --btn-warning-bg: #ffd166;
  --btn-warning-text: #0b0f14;
  --btn-warning-border: #ffd166;

  --btn-secondary-bg: #04133d;
  --btn-secondary-text: #e6e8eb;
  --btn-secondary-border: #3a4652;

  --btn-outline-primary-text: #7aa2ff;
  --btn-outline-primary-border: #7aa2ff;

  --btn-violet-bg: #7e6cff;
  --btn-violet-text: #0b0f14;
  --btn-violet-border: #7e6cff;

  --chip-bg: color-mix(in oklab, var(--btn-primary-bg) 100%, );
  --chip-border: color-mix(in oklab, var(--btn-primary-bg) 40%, transparent);

  .section-gray {
    background: rgba(0, 0, 0, 0.295);
    color: var(--color-text);
  }

}

/* ────────────────────────────────────────────────────────────
   GLOBAL UX
   ──────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

/* Navbar yüksekliği ve ekstra boşlukları dinamik olarak belirle */
[id] {
  scroll-margin-top: calc(var(--nav-h) + var(--anchor-extra));
}

html {
  scroll-padding-top: calc(var(--nav-h) + var(--anchor-extra));
}

/* Mobilde daha stabil çalışması için ek özellikler */
@media screen and (max-width: 768px) {
  html {
    scroll-behavior: auto;
    /* Mobilde daha stabil olması için smooth yerine auto kullanıyoruz */
  }

  [id] {
    scroll-margin-top: calc(var(--nav-h) + -320px);
    /* Mobilde biraz daha fazla boşluk bırakabilirsin */
  }
}

/* Navbar'ın üst kısmı için */
:root {
  --nav-h: 60px;
  /* Navbar yüksekliği */
  --anchor-extra: 10px;
  /* Ekstra margin */
}


body {
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

}

@media (max-width: 991.98px) {
  :root {
    --nav-h: 124px;
  }
}

.navbar .nav-link {
  font-weight: 600;
}

.navbar .nav-link.active {
  color: var(--navbar-ta -color) !important;
}

.navbar .nav-link:hover {
  opacity: .85;
}

.navbar-toggler {
  border: none;
  padding: .35rem;
  box-shadow: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler:hover {
  background-color: transparent;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar .collapsing {
  transition-duration: .45s;
  transition-timing-function: cubic-bezier(.22, .61, .36, 1);
}

/* Light/Dark arkaplanlar */
html[data-bs-theme="light"] body {
  background-color: var(--color-bg);
}

/* Navbar yazı rengi tema bazlı kontrol */
[data-bs-theme="dark"] .navbar-brand-text {
  color: #ffffff;
}

[data-bs-theme="light"] .navbar-brand-text {
  color: #d91c1c;
  /* logonun kırmızısıyla uyumlu */
}


html[data-bs-theme="light"] .card {
  background: var(--color-surface);
}

/* Şeffaf navbar blur */
html[data-bs-theme="light"] .navbar {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(8px);
}

html[data-bs-theme="dark"] .navbar {
  background: rgba(0, 0, 0, .35);
  backdrop-filter: saturate(180%) blur(8px);
}

/* Toggler ikonu */
html[data-bs-theme="dark"] .navbar-toggler-icon {
  filter: none;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

.text-secondary-emphasis {
  color: var(--color-muted) !important;
}

/* ────────────────────────────────────────────────────────────
   BUTTONS (token’lara map’li)
   ──────────────────────────────────────────────────────────── */
.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-border);
}

.btn-primary:hover {
  background-color: color-mix(in oklab, var(--btn-primary-bg) 88%, black);
  border-color: color-mix(in oklab, var(--btn-primary-border) 88%, black);
}

.btn-success {
  background-color: var(--btn-success-bg);
  color: var(--btn-success-text);
  border-color: var(--btn-success-border);
}

.btn-success:hover {
  background-color: color-mix(in oklab, var(--btn-success-bg) 88%, black);
  border-color: color-mix(in oklab, var(--btn-success-border) 88%, black);
}

.btn-warning {
  background-color: var(--btn-warning-bg);
  color: var(--btn-warning-text);
  border-color: var(--btn-warning-border);
}

.btn-warning:hover {
  background-color: color-mix(in oklab, var(--btn-warning-bg) 88%, black);
  border-color: color-mix(in oklab, var(--btn-warning-border) 88%, black);
}

.btn-secondary {
  background-color: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border-color: var(--btn-secondary-border);
}

.btn-secondary:hover {
  background-color: color-mix(in oklab, var(--btn-secondary-bg) 88%, black);
  border-color: color-mix(in oklab, var(--btn-secondary-border) 88%, black);
}

.btn-outline-primary {
  color: var(--btn-outline-primary-text);
  border-color: var(--btn-outline-primary-border);
}

.btn-outline-primary:hover {
  background-color: var(--btn-outline-primary-text);
  color: #fff;
}

/* Özel mor buton */
.btn-violet {
  background-color: var(--btn-violet-bg);
  border-color: var(--btn-violet-border);
  color: var(--btn-violet-text);
}

.btn-violet:hover {
  background-color: color-mix(in oklab, var(--btn-violet-bg) 88%, black);
  border-color: color-mix(in oklab, var(--btn-violet-border) 88%, black);
}

/* ────────────────────────────────────────────────────────────
   HERO KART + ARKAPLAN KATLARI
   ──────────────────────────────────────────────────────────── */
.hero-card {
  position: relative;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, .12);
  transition: transform .25s ease;
}

.hero-card:hover {
  transform: translateY(-2px);
}

/* Eski arka plan: aşağıdan yukarıya dalga/lekeli degrade */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(110deg, var(--btn-primary-bg), #0dcaf0);
}

.hero-bg--green {
  background: linear-gradient(135deg, #198754, #00e676);
}

/* Amber varyant + hafif üst kırpma */
.hero-bg--amber {
  background: linear-gradient(to bottom, #ff8f00, #ffca28);
  clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 100%);
}

/* Yeni üst katman: yukarıdan aşağı dalga */
.hero-bg-top {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(110deg, var(--btn-primary-bg), #0dcaf0);
  height: var(--bg-depth, 150%);
  top: var(--bg-top, 0%);
  /* -15% ile -40% arası */
}

/* Üst katman renk presetleri */
.hero-bg--green-top {
  background: linear-gradient(-45deg, #198754, #00e676);
}

.hero-bg--amber-top {
  background: linear-gradient(to bottom, #ff8f00, #ffca28);
}

/* Mask destekleniyorsa: ÜST dalga (SVG mask) */
@supports ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
  .hero-bg-top {
    -webkit-mask-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400'>\
<path d='M0,140 C200,190 360,60 560,110 C760,160 980,320 1200,260 L1200,0 L0,0 Z' fill=\"white\"/></svg>");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: cover;
    -webkit-mask-position: center;

    mask-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400'>\
<path d='M0,140 C200,290 360,320 1160,140 C460,110 980,300 1200,260 L1200,0 L0,0 Z' fill=\"white\"/></svg>");
    /* BURADAKİ PATH HERO 1'e ait ***/
    mask-repeat: no-repeat;
    mask-size: cover;
    mask-position: center;
  }
}

/* Mask yoksa: ÜSTTE aşağı bakan eğimli fallback kesimler (clip-path)
   - Y yüzdelerini büyütürsen dalga/kesim daha aşağı iner. */
@supports not ((-webkit-mask-image: url("")) or (mask-image: url(""))) {

  /* a) Sağdan aşağı kesim (sol üst daha yüksek) */
  .hero-bg-top--slope-right,
  .hero-bg--slope-right {
    clip-path: polygon(0% 12%, 100% 0%, 100% 100%, 0% 100%);
  }

  /* b) Soldan aşağı kesim (sağ üst daha yüksek) */
  .hero-bg-top--slope-left,
  .hero-bg--slope-left {
    clip-path: polygon(0% 0%, 100% 12%, 100% 100%, 0% 100%);
  }

  /* c) Ortada V şeklinde aşağı kesim (chevron down) – V’nin derinliği 16% */
  .hero-bg-top--chevron,
  .hero-bg--chevron {
    clip-path: polygon(0% 0%, 50% 16%, 100% 0%, 100% 100%, 0% 100%);
  }
}

/* Alt dalga mask (sayfadaki diğer hero’lar için) */
@supports ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
  .hero-bg {
    -webkit-mask-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400'>\
<path d='M0,260 C200,210 360,340 560,290 C760,240 980,80 1200,140 L1200,400 L0,400 Z' fill=\"white\"/></svg>");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: cover;
    -webkit-mask-position: center;

    mask-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400'>\
<path d='M0,260 C200,210 360,340 560,290 C760,240 980,80 1200,140 L1200,400 L0,400 Z' fill=\"white\"/></svg>");
    mask-repeat: no-repeat;
    mask-size: cover;
    mask-position: center;
  }
}

/* Alt dalga fallback */
@supports not ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
  .hero-bg {
    clip-path: polygon(0% 70%, 25% 60%, 45% 75%, 65% 65%, 85% 35%, 100% 45%, 100% 100%, 0% 100%);
  }
}

/* Görseller */
.hero-img {
  display: block;
  width: 100%;
  max-width: 740px;
  height: 520px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .12));
  transition: transform .25s ease;
}

.hero-imgb {
  display: block;
  width: 100%;
  max-width: 940px;
  height: 420px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .12));
  transition: transform .25s ease;
}

.hero-card:hover .hero-img {
  transform: scale(1.01);
}

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

@media (max-width:992px) {
  .hero-img {
    height: 460px;
    margin-bottom: 16px;
  }
}

/* ────────────────────────────────────────────────────────────
   SECTION BAŞLIKLARI, KARTLAR, CHIP’LER
   ──────────────────────────────────────────────────────────── */
.section-title {
  font-weight: 800;
  letter-spacing: .2px;
}

.card.h-100,
.card:not(.hero-card) {
  transition: box-shadow .25s ease, transform .25s ease;
}

.card.h-100:hover,
.card:not(.hero-card):hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  transform: translateY(-2px);
}

.card {
  border: none;
}

.feature-chips {
  gap: .5rem;
  display: flex;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  box-shadow: 0px 4px 4px rgba(255, 255, 255, 0.2), 0 0 15px rgba(255, 255, 255, 0.5);
  gap: .35rem;
  border-radius: 999px;
  color: #fff;
  padding: .35rem .75rem;
  font-weight: 600;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
}


/* “Başa dön” butonu */
#backToTop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 999;
  display: none;
}

#backToTop.show {
  display: inline-flex;
}

/* React’te sınıfla kontrol için eklendi */

/* Reduce-motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Neon mor-mavi varyant (opsiyonel) */
.hero-bg--violet {
  background: linear-gradient(135deg, #7b1fa2, #512da8, #3949ab);
  background-size: 200% 200%;
  animation: bgShift 6s ease-in-out infinite;
}

@keyframes bgShift {
  0% {
    background-position: 0% 50%
  }

  50% {
    background-position: 100% 50%
  }

  100% {
    background-position: 0% 50%
  }
}

/* Hero iç katman click-through */
.apply-card .hero-bg,
.hero-card .hero-bg {
  pointer-events: none;
  z-index: 0;
}

.apply-card-body {
  position: relative;
  z-index: 1;
}

/* Bayi CTA */
.cta-wrap {
  min-height: 390px;
  border-radius: .75rem;
  overflow: hidden;
  position: relative;
}

.cta-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
}

.cta-actions {
  position: relative;
  left: 16px;
  top: 270px;
  align-items: baseline;
  z-index: 2;
  padding: 16px;
}

@media (max-width:576px) {
  .cta-actions .btn {
    position: relative;
    width: 50%;
    margin-top: 5px;
    bottom: 44px;
  }
}

.section-gray {
  background: rgba(235, 235, 235, 0.603);
  color: var(--color-text);
}

/* Footer */
.site-footer {
  background: color-mix(in oklab, var(--color-bg) 80%, var(--bs-secondary-bg));
  color: var(--color-text);
}

.site-footer h5,
.site-footer h6 {
  letter-spacing: .3px;
}

.footer-link {
  text-decoration: none;
  color: var(--color-text);
  opacity: .85;
  transition: opacity .2s ease, color .2s ease;
}

.footer-link:hover {
  opacity: 1;
  color: var(--btn-primary-bg);
}

.site-footer .btn-outline-secondary {
  border-color: color-mix(in oklab, var(--color-muted) 40%, transparent);
}

.site-footer .btn-outline-secondary:hover {
  background: var(--btn-primary-bg);
  color: #fff;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: opacity .6s ease, transform .6s ease, filter .6s ease;
  will-change: opacity, transform;
  filter: blur(2px);
}

.reveal.show {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.reveal-up {
  transform: translate3d(0, 16px, 0);
}

.reveal-down {
  transform: translate3d(0, -16px, 0);
}

.reveal-left {
  transform: translate3d(16px, 0, 0);
}

.reveal-right {
  transform: translate3d(-16px, 0, 0);
}

.reveal-zoom {
  transform: scale(.96);
}

.reveal-soft {
  transition-duration: .9s;
}

.reveal-stagger>.reveal {
  transition-timing-function: cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-reduced-motion: reduce) {

  .reveal,
  .reveal.show {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ────────────────────────────────────────────────────────────
   Midband (hero arası bölüm) + Kartlar
   ──────────────────────────────────────────────────────────── */
.midband {
  background: linear-gradient(to bottom, #ff8f00, #ffca28);
  position: relative;
  opacity: 1;
}

/* gradient üstünde okunurluk: dark temada metinleri beyaza çek */
html[data-bs-theme="dark"] .midband,
html[data-bs-theme="dark"] .stats-band,
html[data-bs-theme="dark"] .card-body,
html[data-bs-theme="dark"] .midband .text-secondary-emphasis,
html[data-bs-theme="dark"] .midband .lead {
  color: #fff !important;
}

.midcard {
  border: 0;
  border-radius: 14px;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}

.midcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .12);
}

.midcard-icon {
  flex: 0 0 auto;
  width: 70px;
  height: 70px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  color: #fff;
  background: linear-gradient(to bottom, #ff8f00, #ffca28);
  box-shadow: 0 4px 10px rgba(255, 140, 0, .35);
}

@media (max-width: 576px) {
  .midcard .card-body {
    padding: 16px;
  }
}

/* Gradient yazı efekti (okunurluk için hafif gölge) */
.gradient-text {
  background: linear-gradient(to bottom, #ff8f00, #ffca28);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .06));
}

/* spacing ve tipografi (istatistikler) */
.tracking-wide {
  letter-spacing: .08em;
}

.metric-number {
  font-weight: 800;
  font-size: clamp(2rem, 4vw + 1rem, 3.25rem);
  line-height: 1;
}

.metric-label {
  margin-top: .5rem;
  font-weight: 600;
  color: var(--color-muted, #555);
}

/* Genel: gradient zemin üstüne beyaz metin istersek kullanacağımız yardımcı sınıf */
.on-gradient,
.on-gradient *:not(.btn):not(.badge):not(.chip) {
  color: #fff;
}


/* YENİ THEME TOGGLE */


/* ============================
   Theme Toggle FX (overlay)
   ============================ */
.rk-theme-fx {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  /* Işık/koyu geçişte ekranı beyaz/koyu ile silip açıyoruz */
  background: var(--color-bg, #fff);
  /* Maskenin başlangıç pozisyonu */
  --fx-x: 50%;
  --fx-y: 50%;
}

/* Circle (keskin) */
.rk-theme-fx--circle {
  -webkit-mask-image: radial-gradient(circle at var(--fx-x) var(--fx-y), #000 0%, #000 0%, transparent 0%);
  mask-image: radial-gradient(circle at var(--fx-x) var(--fx-y), #000 0%, #000 0%, transparent 0%);
  animation: rkFxCircle 600ms cubic-bezier(.22, .61, .36, 1) forwards;
}

/* Circle + blur (yumuşak kenar) */
.rk-theme-fx--circle-blur {
  filter: blur(0.6px);
  -webkit-mask-image: radial-gradient(circle at var(--fx-x) var(--fx-y), #000 0%, #000 0%, transparent 0%);
  mask-image: radial-gradient(circle at var(--fx-x) var(--fx-y), #000 0%, #000 0%, transparent 0%);
  animation: rkFxCircle 620ms cubic-bezier(.22, .61, .36, 1) forwards;
}

/* Polygon (köşeli silme) */
.rk-theme-fx--polygon {
  -webkit-clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
  animation: rkFxPolygon 560ms cubic-bezier(.22, .61, .36, 1) forwards;
}

/* GIF mask (oynatılan gif ile reveal) */
.rk-theme-fx--gif {
  background: var(--fx-gif) center/cover no-repeat, var(--color-bg, #fff);
  -webkit-mask-image: radial-gradient(circle at var(--fx-x) var(--fx-y), #000 0%, #000 0%, transparent 0%);
  mask-image: radial-gradient(circle at var(--fx-x) var(--fx-y), #000 0%, #000 0%, transparent 0%);
  animation: rkFxCircle 650ms cubic-bezier(.22, .61, .36, 1) forwards;
}

/* Dairesel maske büyümesi */
@keyframes rkFxCircle {
  0% {
    -webkit-mask-size: 0% 0%;
    mask-size: 0% 0%;
  }

  100% {
    -webkit-mask-size: 220vmax 220vmax;
    mask-size: 220vmax 220vmax;
  }
}

/* Çokgen wipe */
@keyframes rkFxPolygon {
  0% {
    -webkit-clip-path: polygon(50% 50%, 52% 48%, 48% 52%, 50% 50%);
    clip-path: polygon(50% 50%, 52% 48%, 48% 52%, 50% 50%);
  }

  100% {
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

/* Butonda ufak dokunuş */
.rk-theme-toggle {
  border-radius: 999px;
  backdrop-filter: saturate(140%) blur(3px);
}

/* === HeroOverlay – gradient + parallax/fade === */
.hero-ov-shell {
  position: relative;
  isolation: isolate;
  padding: 60px 0 140px;
  /* alt kısım genişletildi */
  background: transparent;
  overflow: hidden;
}

/* Gradient arka plan */
.hero-ov-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to bottom, #ff8f00, #ffca28);
}

/* Path alt eğim – AÇILAR AYNI, sadece aşağı KAYDIRILDI (+40px) */
@supports ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
  .hero-ov-shell {
    /* SAFARI */
    -webkit-mask-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 820'>\
<g transform='translate(0,100)'>\
<path d='M0,0 H1200 V520 \
C1000,560 800,640 600,600 \
C400,560 200,520 0,520 Z' fill=\"white\"/>\
</g></svg>");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: cover;
    -webkit-mask-position: bottom center;

    /* STANDART */
    mask-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 712'>\
<g transform='translate(0,100)'>\
<path d='M0,0 H1200 V520 \
C1000,560 800,640 600,600 \
C400,560 200,520 0,520 Z' fill=\"white\"/>\
</g></svg>");
    mask-repeat: no-repeat;
    mask-size: cover;
    mask-position: bottom center;
  }
}



/* Fallback: clip-path (mask yoksa) – alt sınırı biraz daha aşağıda */
@supports not ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
  .hero-ov-shell {
    /* önce: polygon(0% 0%, 100% 0%, 100% 92%, 0% 100%) */
    clip-path: polygon(0% 0%, 100% 0%, 100% 96%, 0% 100%);
  }
}


/* Container */
.container-1200 {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
  position: relative;
  z-index: 1;
}

/* Görsel alanı */
.hero-ov-media {
  position: relative;
  overflow: hidden;
  perspective: 800px;
}

/* === Parallax/fade görsel === */
.hero-ov-img {
  display: block;
  width: 100%;
  height: 450px;
  /* sabit yükseklik */
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  transform: translateY(-px);
  /* görsel biraz yukarıda dursun */
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
  will-change: transform, opacity;
}

/* Sayfa kaydıkça fade & parallax efekti */
@media (hover: none),
(pointer: coarse) {
  .hero-ov-img {
    transition: none;
  }
}

/* Scroll efekti */
.hero-ov-shell.scrolled .hero-ov-img {
  transform: translateY(0px) scale(1.03);
  opacity: 0.85;
}

/* Overlay */
.hero-ov-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 32px 20px;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 65%);
  color: #fff;
}

/* Masaüstü: solda panel */
@media (min-width: 992px) {
  .hero-ov-overlay {
    inset: 0;
    display: flex;
    align-items: center;
    padding: 60px;
    border-radius: 24px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 58%);
  }
}

/* Metin düzeni */
.hero-ov-copy {
  max-width: 620px;
}

.hero-ov-title {
  margin: 0 0 12px 0;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  font-size: clamp(28px, 4vw, 56px);
}

.hero-ov-subtitle {
  margin: 0 0 24px 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(16px, 2.4vw, 22px);
}

.hero-ov-copy .btn {
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 12px;
  backdrop-filter: saturate(140%) blur(6px);
}

/* === DALGALI HERO ARKAPLAN === */
/* === DALGALI HERO ARKAPLAN — DERİN + PARLAK === */
/* Base */
.hero-bg-wave {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #ffb14e 0%, #ff8f00 100%);
  /* sıcak-parlak turuncu */
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  mask-position: bottom;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  -webkit-mask-position: bottom;
}

/* Daha derin, belirgin dalga */
.hero-bg-wave--deep {
  /* Daha büyük genlik: taban 520’ye yakın, dalga çukurları 380–420 bandında */
  mask-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='none'>\
<path d='M0,420 \
C180,380 360,520 540,500 \
C720,480 960,560 1200,520 \
L1200,0 L0,0 Z' fill=\"white\"/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='none'>\
<path d='M0,420 \
C180,380 360,520 540,500 \
C720,480 960,560 1200,520 \
L1200,0 L0,0 Z' fill=\"white\"/></svg>");
}

/* Parlaklık/ışık efekti (görseli boğmasın diye yumuşak) */
.hero-bg-wave--gloss {
  position: absolute;
  inset: 0;
}

.hero-bg-wave--gloss::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* üstte hafif ışık + aşağıya doğru parlayan degrade */
  background:
    radial-gradient(1200px 380px at 50% 0%,
      rgba(255, 255, 255, 0.28) 0%,
      rgba(255, 255, 255, 0.10) 22%,
      rgba(255, 255, 255, 0.00) 60%),
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.10) 0%,
      rgba(255, 255, 255, 0.00) 30%);
  mix-blend-mode: screen;
}
