/* ===== ABOUT PAGE STYLES ===== */

/* Page Title Section */
.page-title {
  padding: 120px 0 60px;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("/placeholder.svg?height=400&width=1920");
  background-size: cover;
  background-position: center;
  text-align: center;
  position: relative;
}

.page-title h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-glow);
  animation: fadeInDown 1s ease;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  animation: fadeIn 1s ease 0.3s both;
}

.breadcrumb a {
  color: var(--primary-color);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary-dark);
}

.breadcrumb .separator {
  margin: 0 10px;
  color: var(--text-light);
}

.breadcrumb .current {
  color: var(--white);
}

/* About Intro Section */
.about-intro-section {
  padding: 80px 0;
  background-color: var(--dark-bg);
  position: relative;
}

.about-intro-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-intro-text {
  animation: fadeInRight 0.5s ease forwards;
}

.intro-text {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background-color: var(--light-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.stat-item:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-text {
  color: var(--white);
  font-weight: 500;
}

.about-intro-image {
  position: relative;
  animation: fadeInLeft 0.5s ease forwards;
}

.about-intro-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 3px solid var(--primary-color);
}

.experience-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 3px solid var(--secondary-color);
  animation: pulse 2s infinite;
}

.experience-badge .years {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.experience-badge .text {
  font-size: 1rem;
  font-weight: 600;
}

/* Values and Mission Section */
.values-mission-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  position: relative;
}

.values-mission-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 50px;
}

.values-container {
  animation: fadeInRight 0.5s ease forwards;
}

.values-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--primary-color);
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.value-card {
  background-color: var(--light-bg);
  border-radius: var(--border-radius);
  padding: 25px;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.value-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.value-icon {
  width: 60px;
  height: 60px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 15px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.value-card:hover .value-icon {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: rotateY(360deg);
}

.value-card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.value-card p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

.mission-container {
  background-color: var(--light-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  animation: fadeInLeft 0.5s ease forwards;
}

.mission-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--primary-color);
  text-align: center;
}

.mission-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.mission-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--secondary-color);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
}

.mission-container:hover .mission-icon {
  transform: rotateY(360deg);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.mission-content p {
  color: var(--text-light);
  line-height: 1.8;
  text-align: justify;
}

/* Team Section */
.team-section {
  padding: 80px 0;
  background-color: var(--dark-bg);
  position: relative;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.team-card {
  background-color: var(--light-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  transform: translateY(30px);
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.team-card:nth-child(1) {
  animation-delay: 0.1s;
}

.team-card:nth-child(2) {
  animation-delay: 0.2s;
}

.team-card:nth-child(3) {
  animation-delay: 0.3s;
}

.team-card:nth-child(4) {
  animation-delay: 0.4s;
}

.team-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.team-image {
  position: relative;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.1);
}

.team-social {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 15px 0;
  background-color: rgba(0, 0, 0, 0.7);
  transition: all 0.3s ease;
}

.team-card:hover .team-social {
  bottom: 0;
}

.team-social .social-link {
  width: 35px;
  height: 35px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.team-social .social-link:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-5px);
}

.team-info {
  padding: 20px;
  text-align: center;
}

.team-name {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.team-position {
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 10px;
}

.team-description {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Achievements Section */
.achievements-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  position: relative;
}

/* اصلاح بخش دستاوردها و افتخارات */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 50px auto 0;
  padding: 0 20px;
  overflow: hidden; /* اضافه کردن overflow: hidden */
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--primary-color);
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: 100%;
  display: flex; /* تغییر به flex */
  justify-content: center; /* مرکز قرار دادن محتوا */
  align-items: flex-start; /* تراز از بالا */
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 1;
  box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-date {
  position: absolute;
  top: 0;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 5px 15px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  z-index: 1;
  min-width: 80px; /* حداقل عرض برای تاریخ */
}

.timeline-item:nth-child(odd) .timeline-date {
  right: calc(50% + 30px);
}

.timeline-item:nth-child(even) .timeline-date {
  left: calc(50% + 30px);
}

.timeline-content {
  position: relative;
  background-color: var(--light-bg);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  width: calc(50% - 50px); /* کاهش عرض محتوا */
  margin-top: 30px;
  transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
  margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
  margin-right: 0;
}

.timeline-content:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.timeline-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.timeline-content p {
  color: var(--text-light);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Certificates Section */
.certificates-section {
  padding: 80px 0;
  background-color: var(--dark-bg);
  position: relative;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.certificate-card {
  background-color: var(--light-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  transform: translateY(30px);
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.certificate-card:nth-child(1) {
  animation-delay: 0.1s;
}

.certificate-card:nth-child(2) {
  animation-delay: 0.2s;
}

.certificate-card:nth-child(3) {
  animation-delay: 0.3s;
}

.certificate-card:nth-child(4) {
  animation-delay: 0.4s;
}

.certificate-card:nth-child(5) {
  animation-delay: 0.5s;
}

.certificate-card:nth-child(6) {
  animation-delay: 0.6s;
}

.certificate-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.certificate-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  color: var(--secondary-color);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
}

.certificate-card:hover .certificate-icon {
  transform: rotateY(360deg);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.certificate-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.certificate-card p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  position: relative;
}

.testimonials-slider {
  margin-top: 50px;
  padding-bottom: 50px;
}

.testimonial-card {
  background-color: var(--light-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.testimonial-rating {
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.testimonial-text {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
  font-style: italic;
  position: relative;
  padding: 0 20px;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.3;
  position: absolute;
}

.testimonial-text::before {
  top: -10px;
  left: 0;
}

.testimonial-text::after {
  bottom: -20px;
  right: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary-color);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.author-info span {
  color: var(--text-light);
  font-size: 0.9rem;
}

.swiper-pagination-bullet {
  background-color: var(--primary-color);
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background-color: var(--primary-color);
  opacity: 1;
}


/* Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
  }
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .certificates-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .about-intro-content,
  .values-mission-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-intro-image {
    order: -1;
  }

  /* اصلاح استایل‌های ریسپانسیو برای تایم‌لاین */
  .timeline::before {
    left: 20px;
  }

  .timeline-dot {
    left: 20px;
    transform: translateX(0);
  }

  .timeline-date {
    left: 50px !important;
    right: auto !important;
    top: -30px;
  }

  .timeline-content {
    width: calc(100% - 70px);
    margin-left: 50px !important;
    margin-right: 0 !important;
  }

  .timeline-item {
    justify-content: flex-start;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .certificates-grid {
    grid-template-columns: 1fr;
  }

  .page-title h1 {
    font-size: 2.2rem;
  }

  .about-intro-section,
  .values-mission-section,
  .team-section,
  .achievements-section,
  .certificates-section,
  .testimonials-section,
  .cta-section {
    padding: 60px 0;
  }

  .experience-badge {
    width: 100px;
    height: 100px;
    bottom: -20px;
    right: -20px;
  }

  .experience-badge .years {
    font-size: 2rem;
  }

  .experience-badge .text {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .about-stats {
    grid-template-columns: 1fr;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-text {
    font-size: 1rem;
  }

  .timeline {
    padding: 0 10px;
  }

  .timeline-content {
    width: calc(100% - 50px);
    margin-left: 40px !important;
    padding: 15px;
  }

  .timeline-date {
    left: 40px !important;
    font-size: 0.9rem;
    padding: 3px 10px;
    min-width: 70px;
  }
}