/* =========================================================
   صفحه درباره ما - استایل‌های اختصاصی
   ========================================================= */

/* ===== کارت آمار ===== */
.stat-card {
  position: relative;
  padding: 2.5rem 1.5rem;
  background: #fff;
  text-align: center;
  transition: background-color 0.3s ease;
}

.stat-card:hover {
  background: #f8f6f0;
}

.stat-number {
  display: inline-block;
  color: #b96835;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.stat-plus {
  display: inline-block;
  color: #b96835;
  font-size: 2rem;
  font-weight: 900;
  margin-right: 0.15rem;
  vertical-align: top;
}

.stat-label {
  display: block;
  margin-top: 0.85rem;
  color: #607177;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (min-width: 1024px) {
  .stat-card {
    padding: 3rem 2rem;
  }
  .stat-number {
    font-size: 3.5rem;
  }
}

/* ===== کارت ارزش ===== */
.value-card {
  position: relative;
  padding: 2rem;
  background: #fff;
  border: 1px solid rgb(23 52 60 / 10%);
  transition:
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.value-card:hover {
  border-color: rgb(185 104 53 / 30%);
  box-shadow: 0 12px 30px rgb(12 31 38 / 6%);
  transform: translateY(-4px);
}

.value-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.5rem;
  background: rgb(185 104 53 / 10%);
  color: #b96835;
  font-size: 1.35rem;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.value-card:hover .value-icon {
  background: #b96835;
  color: #fff;
}

.value-title {
  margin-bottom: 0.75rem;
  color: #10272e;
  font-size: 1.15rem;
  font-weight: 800;
}

.value-desc {
  color: #607177;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 2;
}

/* ===== تایم‌لاین ===== */
.timeline {
  position: relative;
  padding-right: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  right: 8px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgb(255 255 255 / 20%) 0%,
    rgb(226 165 111 / 40%) 50%,
    rgb(255 255 255 / 10%) 100%
  );
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  right: -1.5rem;
  top: 0.5rem;
  width: 16px;
  height: 16px;
  border: 3px solid #10272e;
  background: rgb(226 165 111 / 40%);
  border-radius: 50%;
  outline: 2px solid rgb(226 165 111 / 30%);
  outline-offset: 2px;
  transition:
    background-color 0.3s ease,
    outline-color 0.3s ease;
}

.timeline-dot.active {
  background: #e2a56f;
  outline-color: #e2a56f;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(226 165 111 / 45%);
  }
  50% {
    box-shadow: 0 0 0 10px rgb(226 165 111 / 0%);
  }
}

.timeline-content {
  padding: 1.5rem;
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(255 255 255 / 8%);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.timeline-item:hover .timeline-content {
  background: rgb(255 255 255 / 6%);
  border-color: rgb(226 165 111 / 30%);
  transform: translateX(-6px);
}

.timeline-year {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: #e2a56f;
  color: #10272e;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.timeline-title {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
}

.timeline-desc {
  color: rgb(255 255 255 / 60%);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.9;
}

@media (min-width: 1024px) {
  .timeline {
    padding-right: 0;
    max-width: 720px;
    margin: 0 auto;
  }

  .timeline::before {
    right: 50%;
    transform: translateX(50%);
  }

  .timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }

  .timeline-item:nth-child(even) .timeline-content {
    grid-column: 1;
    text-align: left;
  }

  .timeline-item:nth-child(odd) .timeline-content {
    grid-column: 2;
    text-align: right;
  }

  .timeline-item:nth-child(even) {
    direction: ltr;
  }

  .timeline-item:nth-child(even) .timeline-content {
    direction: rtl;
  }

  .timeline-dot {
    right: 50%;
    transform: translateX(50%);
  }

  .timeline-item:hover .timeline-content {
    transform: translateX(0) translateY(-3px);
  }
}

/* ===== کارت تیم ===== */
.team-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgb(23 52 60 / 10%);
  transition:
    box-shadow 0.35s ease,
    transform 0.35s ease,
    border-color 0.35s ease;
}

.team-card:hover {
  border-color: rgb(185 104 53 / 25%);
  box-shadow: 0 15px 40px rgb(12 31 38 / 8%);
  transform: translateY(-5px);
}

.team-avatar {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #ece6d9;
}

.team-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.team-card:hover .team-avatar img {
  transform: scale(1.06);
}

.team-social {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgb(16 39 46 / 90%), transparent);
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.team-card:hover .team-social {
  opacity: 1;
  transform: translateY(0);
}

.team-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #fff;
  color: #17343c;
  font-size: 0.85rem;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.team-social a:hover {
  background: #b96835;
  color: #fff;
}

.team-info {
  padding: 1.5rem;
}

.team-name {
  color: #10272e;
  font-size: 1.15rem;
  font-weight: 900;
}

.team-role {
  display: block;
  margin-top: 0.35rem;
  color: #b96835;
  font-size: 0.75rem;
  font-weight: 700;
}

.team-bio {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(23 52 60 / 8%);
  color: #607177;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.9;
}

/* ===== کارت گواهینامه ===== */
.cert-card {
  position: relative;
  padding: 2rem;
  background: #fff;
  border: 1px solid rgb(23 52 60 / 10%);
  text-align: center;
  transition:
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.cert-card:hover {
  border-color: rgb(185 104 53 / 30%);
  box-shadow: 0 10px 30px rgb(12 31 38 / 6%);
  transform: translateY(-3px);
}

.cert-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: rgb(185 104 53 / 10%);
  color: #b96835;
  font-size: 1.75rem;
  border-radius: 50%;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.cert-card:hover .cert-icon {
  background: #b96835;
  color: #fff;
}

.cert-title {
  margin-bottom: 0.75rem;
  color: #17343c;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.7;
}

.cert-year {
  display: block;
  color: #9da8ab;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ===== دکمه بازگشت به بالا ===== */
#scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 640px) {
  .stat-number {
    font-size: 2.25rem;
  }
  .stat-plus {
    font-size: 1.5rem;
  }
  .stat-label {
    font-size: 0.7rem;
  }
}

/* کاهش حرکت */
@media (prefers-reduced-motion: reduce) {
  .stat-card,
  .value-card,
  .timeline-content,
  .team-card,
  .cert-card,
  .team-avatar img,
  .value-icon,
  .cert-icon {
    transition: none;
    animation: none;
    transform: none;
  }
}