/* Hakkımızda sayaçları: dolan halka + artan sayı */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 90px;
  width: 90%;
  margin: 64px auto 0;
}

.stats__defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat__ring {
  position: relative;
  width: 180px;
  height: 180px;
}

.stat__ring svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg); /* halka saat 12 yönünden başlasın */
}

.stat__ring circle {
  fill: none;
}

/* Dışta yavaşça dönen kesikli yörünge */
.stat__orbit {
  stroke: rgb(74, 138, 169);
  stroke-width: 1;
  stroke-dasharray: 2 7;
  opacity: 0.45;
  transform-origin: 70px 70px;
  animation: statOrbit 24s linear infinite;
}

.stat__track {
  stroke: #e6eff3;
  stroke-width: 8;
}

/* Dolan halka: çevre = 2π·56 ≈ 351.86 */
.stat__bar {
  stroke: url(#statGrad);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 351.86;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 4px 10px rgba(74, 138, 169, 0.45));
}

.stat__value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'FuturaPT-Book', sans-serif;
  color: #0e2c3b;
  line-height: 1;
}

.stat__value b {
  font-size: 52px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.stat__value em {
  margin: -18px 0 0 2px;
  color: rgb(74, 138, 169);
  font-size: 30px;
  font-style: normal;
  font-weight: 500;
}

.stat__label {
  margin-top: 18px;
  color: #1c5169;
  font-size: 15px;
  letter-spacing: 5px;
  text-transform: uppercase;
}

/* Sayım tamamlanınca halkada kısa bir parlama */
.stat.is-done .stat__ring {
  animation: statPulse 0.9s ease-out;
}

@keyframes statOrbit {
  to { transform: rotate(360deg); }
}

@keyframes statPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@media (max-width: 640px) {
  .stats {
    gap: 28px;
    margin-top: 44px;
  }

  .stat__ring {
    width: 136px;
    height: 136px;
  }

  .stat__value b {
    font-size: 40px;
  }

  .stat__value em {
    margin-top: -14px;
    font-size: 24px;
  }

  .stat__label {
    margin-top: 12px;
    font-size: 13px;
    letter-spacing: 4px;
  }
}

@media (max-width: 340px) {
  .stat__ring {
    width: 118px;
    height: 118px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stat__orbit,
  .stat.is-done .stat__ring {
    animation: none;
  }
}

/* Hakkımızda: masaüstünde sayaçlar solda (alt alta), metin sağda. Dar ekranda sayaçlar metnin üstünde. */
.about-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 64px;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.about-intro .stats {
  flex-direction: column;
  gap: 34px;
  width: auto;
  margin: 0;
  padding-right: 64px;
  border-right: 1px solid rgba(74, 138, 169, 0.3);
}

.about-intro .stat__ring {
  width: 160px;
  height: 160px;
}

.about-intro .abouttextcontainer {
  width: auto;
  max-width: none;
  margin: 0;
}

.about-intro .abouttextcontainer p {
  text-align: left;
}

@media (max-width: 900px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Dar ekranda metin önce, sayaçlar altında */
  .about-intro .stats {
    order: 2;
    flex-direction: row;
    justify-content: center;
    gap: 28px;
    padding-right: 0;
    border-right: 0;
  }

  .about-intro .abouttextcontainer {
    order: 1;
  }
}

@media (max-width: 640px) {
  .about-intro .stat__ring {
    width: 136px;
    height: 136px;
  }
}

@media (max-width: 340px) {
  .about-intro .stat__ring {
    width: 118px;
    height: 118px;
  }
}