/* ==========================================================================
   DENTALINS — HERO COMPONENT (hero.css)
   Premium split-layout: sol metin + sağ fütüristik showcase.
   Dalgalı çizgiler tüm arka planda, scan-line efekt, glassmorphism.
   BEM: .hero
   ========================================================================== */


/* ======================================================================
   1. HERO BASE — 90vh
   ====================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: var(--space-8);
  background:
    radial-gradient(ellipse 80% 60% at 10% 90%, rgba(var(--btn-primary-rgb), 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(var(--btn-primary-rgb), 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 100% 80% at 50% 50%, rgba(11, 29, 58, 0.95) 0%, var(--color-secondary-900) 100%);
  background-color: var(--color-secondary-900);
}

@media (min-width: 1024px) {
  .hero {
    max-height: 90vh;
    max-height: 90dvh;
    padding-bottom: 0;
  }
}


/* ======================================================================
   2. ANIMATED BACKGROUND ORBS
   ====================================================================== */

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--btn-primary-rgb), 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroOrbFloat 12s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(var(--btn-primary-rgb), 0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroOrbFloat 15s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes heroOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -20px) scale(1.05); }
  66%      { transform: translate(-20px, 15px) scale(0.95); }
}


/* ======================================================================
   3. OVERLAY
   ====================================================================== */

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(3, 9, 22, 0.5) 0%,
      rgba(11, 29, 58, 0.2) 40%,
      rgba(var(--btn-primary-rgb), 0.04) 70%,
      rgba(3, 9, 22, 0.6) 100%
    );
  pointer-events: none;
}

.hero__overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--btn-primary-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--btn-primary-rgb), 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
}


/* ======================================================================
   4. DALGALI ÇİZGİLER — Tüm hero arka planı
   ====================================================================== */

.hero__decor-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero__wave-line {
  fill: none;
  stroke-linecap: round;
}

.hero__wave-line--1 {
  stroke: rgba(var(--btn-primary-rgb), 0.18);
  stroke-width: 1.5;
  animation: heroWaveDrift1 14s ease-in-out infinite;
}

.hero__wave-line--2 {
  stroke: rgba(var(--btn-primary-rgb), 0.12);
  stroke-width: 1;
  animation: heroWaveDrift2 18s ease-in-out infinite 1s;
}

.hero__wave-line--3 {
  stroke: rgba(var(--btn-primary-rgb), 0.15);
  stroke-width: 0.8;
  animation: heroWaveDrift1 22s ease-in-out infinite 2s;
}

.hero__wave-line--4 {
  stroke: rgba(var(--btn-primary-rgb), 0.1);
  stroke-width: 1.2;
  animation: heroWaveDrift2 16s ease-in-out infinite 0.5s;
}

.hero__wave-line--5 {
  stroke: rgba(var(--btn-primary-rgb), 0.08);
  stroke-width: 1.8;
  animation: heroWaveDrift1 20s ease-in-out infinite 3s;
}

.hero__wave-line--6 {
  stroke: rgba(var(--btn-primary-rgb), 0.06);
  stroke-width: 0.6;
  animation: heroWaveDrift2 24s ease-in-out infinite 1.5s;
}

.hero__wave-line--7 {
  stroke: rgba(var(--btn-primary-rgb), 0.09);
  stroke-width: 1;
  animation: heroWaveDrift1 17s ease-in-out infinite 2.5s;
}

@keyframes heroWaveDrift1 {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes heroWaveDrift2 {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}


/* ======================================================================
   5. CONTAINER — Split Grid
   ====================================================================== */

.hero__container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    align-items: center;
  }
}

@media (min-width: 1280px) {
  .hero__container {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-8);
  }
}


/* ======================================================================
   6. HERO CONTENT — Sol
   ====================================================================== */

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--space-4);
}

@media (max-width: 360px) {
  .hero__content {
    padding: 0 var(--space-2);
  }
}

@media (min-width: 1024px) {
  .hero__content {
    text-align: left;
    padding: 0;
  }
}


/* ======================================================================
   7. BADGE
   ====================================================================== */

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: rgba(var(--btn-primary-rgb), 0.1);
  border: 1px solid rgba(var(--btn-primary-rgb), 0.25);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-primary-300);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  margin-bottom: var(--space-4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(var(--btn-primary-rgb), 0.08);
}

@media (max-width: 360px) {
  .hero__badge {
    padding: var(--space-1) var(--space-3);
    font-size: 10px;
    margin-bottom: var(--space-3);
  }
}


/* ======================================================================
   8. HEADLINE + SUBTITLE
   ====================================================================== */

.hero__title {
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-neutral-0);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

/* Çok küçük ekranlarda başlık boyutu kademeli olarak iner */
@media (max-width: 360px) {
  .hero__title { font-size: var(--text-3xl); }
}

@media (min-width: 361px) and (max-width: 479px) {
  .hero__title { font-size: var(--text-4xl); }
}

@media (min-width: 768px) {
  .hero__title { font-size: var(--text-6xl); }
}

@media (min-width: 1024px) {
  .hero__title { font-size: var(--text-7xl); }
}

.hero__title-highlight {
  background: linear-gradient(135deg, var(--color-primary-300) 0%, var(--color-primary-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.55);
  line-height: var(--leading-relaxed);
  max-width: 480px;
  margin-bottom: var(--space-6);
}

@media (max-width: 1023px) {
  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center !important;
  }

  .hero__stats {
    justify-content: center !important;
  }

}

@media (min-width: 768px) {
  .hero__subtitle { font-size: var(--text-lg); }
}


/* ======================================================================
   9. HERO ACTIONS
   ====================================================================== */

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

@media (min-width: 480px) {
  .hero__actions {
    flex-direction: row;
    gap: var(--space-4);
  }
}

@media (min-width: 1024px) {
  .hero__actions { justify-content: flex-start; }
}

.hero__actions .btn--white {
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.15),
    0 4px 15px rgba(var(--btn-primary-rgb), 0.15);
}

.hero__actions .btn--white:hover {
  box-shadow:
    0 0 30px rgba(255, 255, 255, 0.25),
    0 6px 20px rgba(var(--btn-primary-rgb), 0.2);
}


/* ======================================================================
   10. HERO VISUAL — Sağ: Offset katmanlı görsel
   ====================================================================== */

.hero__visual {
  display: none;
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .hero__visual {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    align-self: center;
  }
}


/* ======================================================================
   11. VISUAL GLOW — Subtil arka plan parlaması
   ====================================================================== */

.hero__visual-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%,
      rgba(var(--btn-primary-rgb), 0.14) 0%,
      rgba(var(--btn-primary-rgb), 0.05) 45%,
      transparent 70%
    );
  pointer-events: none;
  z-index: 0;
  animation: heroGlowPulse 8s ease-in-out infinite;
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.6; transform: translate(-50%, -50%) scale(1.05); }
}


/* ======================================================================
   12. SHOWCASE — Offset accent panel + rounded görsel
   ====================================================================== */

.hero__showcase {
  position: relative;
  z-index: 2;
  max-width: 620px;
  width: 100%;
}

/* Offset arka plan katmanı — soldan ve yukarıdan taşan */
.hero__showcase::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background:
    linear-gradient(145deg,
      rgba(var(--btn-primary-rgb), 0.12) 0%,
      rgba(var(--btn-primary-rgb), 0.04) 60%,
      transparent 100%
    );
  border: 1.5px solid rgba(var(--btn-primary-rgb), 0.2);
  z-index: -1;
  pointer-events: none;
}

/* İkinci dekoratif çerçeve — daha uzak offset */
.hero__showcase::after {
  content: '';
  position: absolute;
  top: -32px;
  left: -32px;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  border: 1px solid rgba(var(--btn-primary-rgb), 0.08);
  z-index: -2;
  pointer-events: none;
}



@media (min-width: 1280px) {
  .hero__showcase {
    max-width: 620px;
  }
}

.hero__showcase-img {
  display: block;
  width: 100%;
  height: 450px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 18px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(var(--btn-primary-rgb), 0.1),
    0 0 40px rgba(var(--btn-primary-rgb), 0.08);
}

@media (min-width: 1280px) {
  .hero__showcase-img {
    height: 460px;
  }
}


/* ======================================================================
   13. PLACEHOLDER
   ====================================================================== */

.hero__image-placeholder {
  width: 100%;
  height: 420px;
  border-radius: 18px;
  background: linear-gradient(
    160deg,
    rgba(var(--btn-primary-rgb), 0.08) 0%,
    rgba(11, 29, 58, 0.5) 40%,
    rgba(var(--btn-primary-rgb), 0.05) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1280px) {
  .hero__image-placeholder { height: 460px; }
}

.hero__placeholder-icon {
  width: 56px;
  height: 56px;
  color: rgba(var(--btn-primary-rgb), 0.15);
}

.hero__showcase .hero__showcase-img:not([style*="display: none"]) ~ .hero__image-placeholder {
  display: none;
}


/* ======================================================================
   14. HERO STATS BAR — Kurumsal istatistikler
   ====================================================================== */

.hero__stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 var(--space-6);
}

.hero__stat:first-child {
  padding-left: 0;
}

.hero__stat-value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-neutral-0);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero__stat-label {
  font-size: 11px;
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
}

.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* Mobil — daha kompakt */
@media (max-width: 767px) {
  .hero__stats {
    justify-content: center;
    margin-top: var(--space-6);
    padding-top: var(--space-5);
  }

  .hero__stat {
    padding: 0 var(--space-4);
    align-items: center;
    text-align: center;
  }

  .hero__stat-value {
    font-size: var(--text-xl);
  }

  .hero__stat-divider {
    height: 28px;
  }
}

/* Çok küçük ekranlar — stat daha sıkışık */
@media (max-width: 360px) {
  .hero__stat {
    padding: 0 var(--space-3);
  }

  .hero__stat-value {
    font-size: var(--text-lg);
  }

  .hero__stat-label {
    font-size: 10px;
  }

  .hero__stat-divider {
    height: 24px;
  }
}


/* ======================================================================
   15. ENTRANCE ANIMATIONS
   ====================================================================== */

.hero__content {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 1s var(--ease-out-expo) 0.3s forwards;
  margin-bottom: 25px;
}

.hero__badge {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s var(--ease-out-expo) 0.1s forwards;
}

.hero__visual {
  opacity: 0;
  transform: translateY(50px);
  animation: heroVisualRise 1.4s var(--ease-out-expo) 0.4s forwards;
}

.hero__stats {
  opacity: 0;
  transform: translateY(15px);
  animation: heroFadeIn 0.8s var(--ease-out-expo) 1.0s forwards;
}

@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroVisualRise {
  to { opacity: 1; transform: translateY(0); }
}


/* ======================================================================
   16. REDUCED MOTION
   ====================================================================== */

@media (prefers-reduced-motion: reduce) {
  .hero__content,
  .hero__badge,
  .hero__visual,
  .hero__stats {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero::before,
  .hero::after,
  .hero__visual-glow {
    animation: none;
  }

  .hero__wave-line--1,
  .hero__wave-line--2,
  .hero__wave-line--3,
  .hero__wave-line--4,
  .hero__wave-line--5,
  .hero__wave-line--6,
  .hero__wave-line--7 {
    animation: none;
  }
}
