/* hero */

.hero {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  will-change: opacity;
}

.hero.is-gone {
  visibility: hidden;
}

.hero__brand {
  margin: 0;
}

/* --- ReactBits Light Rays ------------------------------------------------ */
.hero__light-rays {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: calc(1 - var(--h, 0) * 1.5);
}

/* --- Sun glints ---------------------------------------------------------- */
.hero__sun {
  position: absolute;
  inset: 0;
  z-index: 2;
  mix-blend-mode: screen;
  opacity: calc(1 - var(--h, 0) * 1.5);
}

.sun-core {
  position: absolute;
  top: -22vmax;
  left: calc(50% - 31vmax);
  width: 62vmax;
  height: 62vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 252, 245, 0.90) 0%, rgba(247, 240, 226, 0.45) 20%, rgba(244, 237, 216, 0.15) 45%, rgba(244, 237, 216, 0) 70%);
  animation: sunBreath 9s var(--ease-io) infinite alternate;
}

@keyframes sunBreath {
  from {
    transform: scale(0.96);
    opacity: 0.85;
  }

  to {
    transform: scale(1.07);
    opacity: 1;
  }
}

/* --- Clouds -------------------------------------------------------------- */
.hero__clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__clouds--back {
  z-index: 2;
}

.hero__clouds--front {
  z-index: 5;
}

.cloud {
  position: absolute;
  top: 0;
  left: 0;
  height: auto;
  user-select: none;
  pointer-events: none;
  will-change: transform, opacity;
  filter: sepia(0.22) saturate(0.85) brightness(0.99);
}

/* --- Birds --------------------------------------------------------------- */
.hero__birds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

/* --- Logo (Vector SVG with Looping Gold Varak Contour Beam) --------------- */
.hero__logo {
  position: absolute;
  z-index: 4;
  left: calc(var(--fx) + var(--fw) * 0.293021);
  top: calc(var(--fy) + var(--fh) * 0.373611);
  width: calc(var(--fw) * 0.413438);
  height: auto;
  max-width: none;
  opacity: calc(1 - var(--h, 0) * 2.2);
  filter: none;
  overflow: visible;
  pointer-events: none;
  user-select: none;
  will-change: opacity, transform;
}

.hero__logo-base {
  fill: #141311;
  transition: fill 0.3s ease;
}

/* Sabit ince varak yaldız kontör (zarif altın hat) */
.hero__logo-contour {
  fill: none;
  stroke: url(#heroGoldVarak);
  stroke-width: 1.25px;
  opacity: 0.22;
}

/* Yavaş ve net görünen, zarif varak kontör çizim animasyonu */
.hero__logo-beam {
  fill: none;
  stroke: url(#heroGoldVarak);
  stroke-width: 1.65px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 120 880;
  animation: heroLogoBeamLoop 20s cubic-bezier(0.28, 0, 0.22, 1) infinite;
  filter: drop-shadow(0 0 4.5px rgba(212, 172, 98, 0.85));
}

/* Çizginin tepe altın ışıltısı */
.hero__logo-beam-glow {
  fill: none;
  stroke: #FFF9EB;
  stroke-width: 1.25px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 45 955;
  animation: heroLogoBeamLoop 20s cubic-bezier(0.28, 0, 0.22, 1) infinite;
  filter: drop-shadow(0 0 6px rgba(255, 240, 200, 0.95));
}

@keyframes heroLogoBeamLoop {
  0% {
    stroke-dashoffset: 1000;
    opacity: 0;
  }
  2% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  76% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
  /* 76% - 100% arası dinlendirici bekleme */
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo-beam,
  .hero__logo-beam-glow {
    animation: none;
    stroke-dasharray: none;
    opacity: 0.5;
  }
}

/* --- Slogan -------------------------------------------------------------- */
.hero__slogan {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: calc(var(--fy) + var(--fh) * 0.615);
  width: min(92vw, 40rem);
  transform: translateX(-50%);
  text-align: center;
  font-size: clamp(1.05rem, 1.45vw, 1.6rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  --gold-text: var(--gold-ink);
  opacity: calc(1 - var(--h, 0) * 2.5);
  filter: blur(calc(var(--h, 0) * 14px));
}

/* --- Scroll hint --------------------------------------------------------- */
.hero__scroll {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: clamp(1.5rem, 6vh, 4rem);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  pointer-events: auto;
  color: var(--gray-1);
  opacity: calc(1 - var(--h, 0) * 3);
  animation: scrollIn 1s var(--ease-out) 1.2s both;
}

.hero.is-gone .hero__scroll {
  pointer-events: none;
}

@keyframes scrollIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}

.hero__scroll-mouse {
  position: relative;
  width: 26px;
  height: 40px;
}

.hero__scroll-mouse svg {
  position: absolute;
  inset: 0;
  overflow: visible;
}

.hero__scroll-mouse .m-body {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  opacity: 0.55;
}

.hero__scroll-mouse .m-load {
  fill: none;
  stroke: var(--gold-500);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--load, 0));
  transition: stroke-dashoffset 0.3s linear;
}

.hero__scroll-wheel {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 2px;
  height: 7px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--gold-500);
  animation: wheel 2.2s var(--ease-io) infinite;
}

.hero__scroll-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding-left: 0.28em;
  white-space: nowrap;
}

@keyframes wheel {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  70% {
    transform: translateY(12px);
    opacity: 0;
  }

  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

/* --- Hot air balloon (25 Yılda Devr-i Tasarım) ---------------------------- */
.hero__balloon {
  position: absolute;
  top: clamp(4.2rem, 10vh, 15vh);
  right: clamp(1.5rem, 5vw, 3rem);
  z-index: 35;
  pointer-events: auto;
  opacity: calc(1 - var(--h, 0) * 2.2);
  filter: blur(calc(var(--h, 0) * 8px));
  transition: opacity 0.4s var(--ease-out), filter 0.4s var(--ease-out), z-index 0.1s;
}

/* Masaüstü: Balon, sağda açılan zaman çizelgesi (hero-right) panelinin solunda yer alır;
   açıldığında yazıların balonun üstüne gelmesini kesin olarak engeller. */
@media (min-width: 961px) {
  .hero__balloon {
    right: calc(min(390px, 30vw) + clamp(1.2rem, 3.5vw, 4.5rem) + clamp(2rem, 3vw, 4.2rem));
  }
}

.hero__balloon.is-departed {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.hero__balloon:hover,
.hero__balloon:focus-within,
.hero__balloon.is-open {
  z-index: 45;
}

.hero.is-gone .hero__balloon {
  visibility: hidden;
  pointer-events: none;
}

.hero__balloon-voyage {
  position: relative;
  animation: balloonVoyage 80s linear forwards;
  will-change: transform, opacity, filter;
  pointer-events: auto;
}

.hero__balloon-craft {
  position: relative;
  width: clamp(94px, 7.5vw, 120px);
  transform-origin: 50% 65%;
  animation: balloonRecede 80s linear forwards;
  will-change: transform, filter;
  pointer-events: auto;
}

.hero__balloon-trigger {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-radius: 20px;
  position: relative;
  outline: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  animation: balloonSway 5.8s ease-in-out infinite alternate;
  will-change: transform;
}

/* Genişletilmiş tıklama alanı (Hit-box enhancer) — Tıklama ıskalamasını önler */
.hero__balloon-trigger::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 28px;
  background: transparent;
  z-index: 1;
}

/* --- Balonun Tam Ortasında Sade, Zarif Dalgalanan (+) İkonu ------------- */
.hero__balloon-badge {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}

/* Çevreye yayılan zarif altın dalgalanma (Ripple) */
.hero__balloon-badge-wave {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid rgba(196, 154, 86, 0.75);
  animation: balloonBadgeWave 2.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  pointer-events: none;
}

.hero__balloon-badge-wave--delay {
  animation-delay: 1.4s;
}

@keyframes balloonBadgeWave {
  0% {
    transform: scale(0.9);
    opacity: 0.85;
  }
  75% {
    transform: scale(2.4);
    opacity: 0;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Sade, şeffaf buzlu cam dokulu (+) çekirdeği (vida/cıvata görünümü tamamen yok) */
.hero__balloon-badge-core {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 252, 245, 0.70);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(196, 154, 86, 0.65);
  box-shadow: 0 2px 8px rgba(120, 85, 25, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7D5716;
  transition: transform 0.3s var(--ease-spring),
              background 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease,
              color 0.25s ease;
}

.hero__balloon:hover .hero__balloon-badge-core,
.hero__balloon:focus-within .hero__balloon-badge-core {
  transform: scale(1.15);
  background: rgba(255, 252, 245, 0.94);
  border-color: rgba(196, 154, 86, 1);
  box-shadow: 0 0 14px rgba(196, 154, 86, 0.55);
  color: #5C3E08;
}

.hero__balloon-badge-svg {
  width: 11px;
  height: 11px;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Zaman çizelgesi açıkken (+) ikonu zarifçe 45 derece dönerek (×) kapatma moduna geçer */
.hero__balloon.is-open .hero__balloon-badge-core {
  background: rgba(255, 248, 235, 0.92);
  border-color: rgba(196, 154, 86, 0.85);
  color: #5C3E08;
}

.hero__balloon.is-open .hero__balloon-badge-wave {
  animation: none;
  opacity: 0;
}

.hero__balloon.is-open .hero__balloon-badge-svg {
  transform: rotate(45deg);
}

.hero__balloon:hover .hero__balloon-voyage,
.hero__balloon:hover .hero__balloon-craft,
.hero__balloon:hover .hero__balloon-trigger,
.hero__balloon:focus-within .hero__balloon-voyage,
.hero__balloon:focus-within .hero__balloon-craft,
.hero__balloon:focus-within .hero__balloon-trigger,
.hero__balloon.is-open .hero__balloon-voyage,
.hero__balloon.is-open .hero__balloon-craft,
.hero__balloon.is-open .hero__balloon-trigger {
  animation-play-state: paused;
}

/* Sıcak hava balonunun sağdan sakin, yavaşça süzülerek girişi ve gökyüzü koordinatlarında ilerleyişi */
@keyframes balloonVoyage {
  /* 0% - 25% (0s - 20s): Sağdaki sislerin ardından son derece yavaş, dingin süzülerek giriş (~5px/s) */
  0% {
    transform: translate3d(clamp(90px, 9vw, 150px), 32px, 0);
    opacity: 0;
    filter: blur(3px);
  }
  5% {
    opacity: 0.35;
    filter: blur(2.2px);
  }
  12% {
    opacity: 0.70;
    filter: blur(1.2px);
  }
  20% {
    opacity: 0.95;
    filter: blur(0.3px);
  }
  25% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    filter: blur(0px);
  }
  /* 25% - 50% (20s - 40s): Ana vitrin koordinatlarında süzülüş, kullanıcı rahatça görebilir ve tıklayabilir */
  35% {
    transform: translate3d(-5px, -10px, 0);
    opacity: 1;
  }
  48% {
    transform: translate3d(-14px, -30px, 0);
    opacity: 1;
  }
  /* 50% - 100% (40s - 80s): Yavaşça yükselip gökyüzünde uzaklaşarak süzülüş */
  62% {
    transform: translate3d(-25px, -68px, 0);
    opacity: 0.98;
  }
  75% {
    transform: translate3d(-38px, -118px, 0);
    opacity: 0.90;
  }
  88% {
    transform: translate3d(-50px, -170px, 0);
    opacity: 0.55;
  }
  95% {
    transform: translate3d(-58px, -205px, 0);
    opacity: 0.20;
  }
  100% {
    transform: translate3d(-65px, -235px, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* Perspektif derinlik ve ufka doğru uzaklaşma */
@keyframes balloonRecede {
  0% {
    transform: scale(0.88);
    filter: blur(1.5px);
  }
  15% {
    transform: scale(0.95);
    filter: blur(0.4px);
  }
  25% {
    transform: scale(1);
    filter: blur(0px);
  }
  48% {
    transform: scale(0.96);
    filter: blur(0px);
  }
  65% {
    transform: scale(0.82);
    filter: blur(0.5px);
  }
  78% {
    transform: scale(0.65);
    filter: blur(1.2px);
  }
  90% {
    transform: scale(0.42);
    filter: blur(2.2px);
  }
  100% {
    transform: scale(0.18);
    filter: blur(3.8px);
  }
}

@keyframes balloonSway {
  0% {
    transform: translate3d(-18px, 5px, 0) rotate(-1.8deg);
  }
  100% {
    transform: translate3d(18px, -5px, 0) rotate(1.8deg);
  }
}

.hero__balloon-trigger:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 4px;
}

.hero__balloon-img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 14px 28px rgba(60, 42, 22, 0.13)) drop-shadow(0 2px 6px rgba(60, 42, 22, 0.06));
  transition: transform 0.4s var(--ease-out), filter 0.4s var(--ease-out);
}

.hero__balloon:hover .hero__balloon-img,
.hero__balloon.is-open .hero__balloon-img {
  transform: scale(1.05);
  filter: drop-shadow(0 20px 40px rgba(60, 42, 22, 0.22)) drop-shadow(0 2px 12px rgba(198, 156, 90, 0.45));
}

.hero__balloon-card {
  display: none !important;
}

@media (max-width: 768px) {
  .hero__balloon {
    top: clamp(4.2rem, 11vh, 14vh);
    right: clamp(1rem, 4vw, 2rem);
  }

  .hero__balloon-craft {
    width: clamp(68px, 17vw, 84px);
  }

  .hero__balloon-badge {
    width: 20px;
    height: 20px;
  }

  .hero__balloon-badge-svg {
    width: 9px;
    height: 9px;
  }

  @keyframes balloonVoyage {
    0% {
      transform: translate3d(clamp(50px, 8vw, 85px), 20px, 0);
      opacity: 0;
      filter: blur(2.5px);
    }
    6% {
      opacity: 0.40;
      filter: blur(1.8px);
    }
    15% {
      opacity: 0.80;
      filter: blur(0.8px);
    }
    25% {
      transform: translate3d(0, 0, 0);
      opacity: 1;
      filter: blur(0px);
    }
    48% {
      transform: translate3d(-8px, -24px, 0);
      opacity: 1;
    }
    72% {
      transform: translate3d(-18px, -75px, 0);
      opacity: 0.90;
    }
    88% {
      transform: translate3d(-26px, -120px, 0);
      opacity: 0.45;
    }
    100% {
      transform: translate3d(-34px, -160px, 0);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }
  }

  @keyframes balloonSway {
    0% {
      transform: translate3d(-10px, 3px, 0) rotate(-1.2deg);
    }
    100% {
      transform: translate3d(10px, -3px, 0) rotate(1.2deg);
    }
  }

  .hero__balloon-card {
    right: 0;
    top: calc(100% + 10px);
    transform: translateY(-6px);
    width: min(270px, calc(100vw - 2.5rem));
  }

  .hero__balloon-card::after {
    top: -16px;
    bottom: auto;
    right: 0;
    left: 0;
    height: 20px;
    width: 100%;
  }

  .hero__balloon:hover .hero__balloon-card,
  .hero__balloon:focus-within .hero__balloon-card,
  .hero__balloon.is-open .hero__balloon-card {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sun-rays,
  .sun-core,
  .sun-streak,
  .hero__balloon-voyage,
  .hero__balloon-craft,
  .hero__balloon-trigger {
    animation: none !important;
  }
}