/* ==========================================================================
   IC Nükleer Teknoloji — Hero alanı
   Görsel geçişli arka plan, anlatı metni ve banner sayacı
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  background: #dceae5;
  overflow: hidden;
  touch-action: pan-y;
}

/* --------------------------------------------------------------------------
   Arka plan katmanları
   -------------------------------------------------------------------------- */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -5;
}

.hero-image {
  position: absolute;
  inset: -4%;
  background-position: 50%;
  background-size: cover;
  filter: brightness(1.02) saturate(0.92) contrast(0.98);
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 3.2s cubic-bezier(0.4, 0, 0.2, 1), filter 3.2s, transform 7s;
  animation: cinematic-drift 18s ease-in-out infinite alternate;
}

.is-loaded .hero-image.active {
  opacity: 1;
}

/* Görselin üzerine binen aydınlatma katmanı */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(90deg, #f8fbf9ed 0%, #f7faf8bd 29%, #f6faf83d 52%, #0000 72%),
    linear-gradient(#f8fbf924 0%, #0000 52%, #04181173 100%),
    radial-gradient(circle at 13% 29%, #ffffff80 0%, #0000 41%);
}

/* Teknik ızgara dokusu */
.technical-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.075;
  background-image:
    linear-gradient(#084e394d 1px, #0000 1px),
    linear-gradient(90deg, #084e394d 1px, #0000 1px);
  background-size: 80px 80px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #0000 68%);
  mask-image: linear-gradient(90deg, #000 0%, #0000 68%);
}

/* İnce film grenli doku */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

/* Yörünge halkaları */
.ambient-orbit {
  position: absolute;
  top: 50%;
  right: 13vw;
  z-index: -2;
  border: 1px solid #0c694d24;
  border-radius: 50%;
  pointer-events: none;
}

.ambient-orbit::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -4px;
  width: 7px;
  height: 7px;
  background: #167a5c;
  border-radius: 50%;
  box-shadow: 0 0 16px 4px #167a5c40;
}

.orbit-one {
  width: min(39vw, 680px);
  aspect-ratio: 1;
  transform: translateY(-50%) rotate(-17deg) scaleY(0.42);
  animation: orbit-pulse 7s ease-in-out infinite;
}

.orbit-two {
  width: min(31vw, 520px);
  aspect-ratio: 1;
  opacity: 0.65;
  transform: translateY(-50%) rotate(39deg) scaleY(0.42);
  animation: orbit-pulse-two 8s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Hero içeriği
   -------------------------------------------------------------------------- */
.hero-content {
  position: relative;
  z-index: 4;
  width: min(780px, 58vw);
  margin-left: clamp(24px, 8.5vw, 150px);
  padding-top: clamp(110px, 16vh, 175px);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: #0a3a2c;
  font-size: clamp(48px, 5.45vw, 92px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  color: #167b5c;
  font-weight: 300;
}

.hero-copy {
  max-width: 625px;
  margin: 30px 0 0;
  color: #083125b3;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.72;
  letter-spacing: 0.005em;
}

/* Anlatı öğeleri sırayla belirir */
.hero-story-title {
  animation: hero-copy-in 1.45s cubic-bezier(0.16, 0.72, 0.22, 1) 0.28s both;
}

.hero-story-copy {
  animation: hero-copy-in 1.35s cubic-bezier(0.16, 0.72, 0.22, 1) 0.62s both;
}

.hero-story-actions {
  animation: hero-copy-in 1.3s cubic-bezier(0.16, 0.72, 0.22, 1) 0.88s both;
}

/* --------------------------------------------------------------------------
   Aksiyon düğmeleri
   -------------------------------------------------------------------------- */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 31px;
  margin-top: 38px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 236px;
  height: 60px;
  padding: 0 22px 0 25px;
  background: #0a4b38;
  color: #f5faf7;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 34px #08463329;
  transition: background 0.25s, transform 0.25s;
}

.primary-button:hover {
  background: #14785a;
  transform: translateY(-2px);
}

.primary-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #07392ad1;
  font-size: 13px;
  font-weight: 600;
}

.text-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5px;
}

.text-button span {
  padding-bottom: 4px;
  border-bottom: 1px solid #07392a4d;
}

/* --------------------------------------------------------------------------
   Açılış animasyonu
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(25px);
}

.is-loaded .reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s, transform 0.9s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.is-loaded .reveal-one {
  transition-delay: 0.35s;
}

.is-loaded .reveal-two {
  transition-delay: 0.48s;
}

.is-loaded .reveal-three {
  transition-delay: 0.63s;
}

.is-loaded .reveal-four {
  transition-delay: 0.78s;
}

/* --------------------------------------------------------------------------
   Sol alt — banner sayacı
   -------------------------------------------------------------------------- */
.reactor-index {
  position: absolute;
  bottom: 42px;
  left: clamp(24px, 5vw, 84px);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
}

.index-number {
  color: #167b5c;
  font-size: 12px;
  font-family: var(--font-geist-mono);
}

.index-rule {
  width: 48px;
  height: 1px;
  background: #08392a40;
}

.banner-counter {
  gap: 17px;
}

.banner-counter .index-number {
  min-width: 48px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.banner-counter .index-rule {
  width: 68px;
  background: #08392a52;
}

/* --------------------------------------------------------------------------
   Animasyonlar
   -------------------------------------------------------------------------- */
@keyframes cinematic-drift {
  0% {
    transform: scale(1.08) translate(-0.4%);
  }
  100% {
    transform: scale(1.135) translate(0.7%, -0.5%);
  }
}

@keyframes hero-copy-in {
  0% {
    opacity: 0;
    filter: blur(9px);
    transform: translateY(30px);
  }
  55% {
    filter: blur(1.5px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes orbit-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: translateY(-50%) rotate(-17deg) scaleY(0.42);
  }
  50% {
    opacity: 0.75;
    transform: translateY(-50%) rotate(-13deg) scaleY(0.45);
  }
}

@keyframes orbit-pulse-two {
  0%,
  100% {
    opacity: 0.28;
    transform: translateY(-50%) rotate(39deg) scaleY(0.42);
  }
  50% {
    opacity: 0.58;
    transform: translateY(-50%) rotate(34deg) scaleY(0.44);
  }
}

/* --------------------------------------------------------------------------
   Duyarlı davranış
   -------------------------------------------------------------------------- */
@media (max-width: 1050px) {
  .hero-content {
    width: min(720px, 75vw);
  }

  .hero-shade {
    background:
      linear-gradient(90deg, #f8fbf9ed 0%, #f7faf8b3 48%, #f7faf81f 100%),
      linear-gradient(#f8fbf91f, #0000 48%, #04181170);
  }
}

@media (max-width: 700px) {
  .hero-image {
    inset: -2%;
    background-position: 63%;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, #f8fbf9f0 0%, #f7faf8b8 78%, #f7faf842 100%),
      linear-gradient(#f8fbf933, #0000 56%, #04181185);
  }

  .technical-grid {
    opacity: 0.1;
    background-size: 48px 48px;
  }

  .ambient-orbit {
    display: none;
  }

  .hero-content {
    width: auto;
    margin: 0 20px;
    padding-top: clamp(36px, 6vh, 58px);
  }

  .hero h1 {
    max-width: 520px;
    font-size: clamp(38px, 10.8vw, 48px);
    line-height: 1;
  }

  .hero-copy {
    max-width: 94%;
    margin-top: 15px;
    font-size: 12px;
    line-height: 1.48;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 17px;
  }

  .primary-button {
    width: 100%;
    max-width: 270px;
    height: 48px;
    padding-inline: 18px;
    font-size: 11px;
  }

  .text-button {
    font-size: 11px;
  }

  .reactor-index {
    display: none;
  }
}

@media (max-height: 760px) and (min-width: 701px) {
  .hero-content {
    padding-top: 52px;
  }

  .hero h1 {
    font-size: clamp(50px, 5vw, 76px);
  }

  .hero-copy {
    margin-top: 22px;
  }

  .hero-actions {
    margin-top: 26px;
  }
}
