/* ===================================
   Timeline Section
   =================================== */
.timeline-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.timeline-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="%23dee2e6" opacity="0.3"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #4e54c8 0%, #8f94fb 100%);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  width: 100%;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
  margin-right: 0;
  padding-left: 60px;
  text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: auto;
  margin-left: 0;
  padding-right: 60px;
  text-align: right;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #4e54c8 0%, #8f94fb 100%);
  border: 4px solid #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(78, 84, 200, 0.2);
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: translateX(-50%) scale(1.3);
  box-shadow: 0 0 0 8px rgba(78, 84, 200, 0.3);
}

.timeline-content {
  width: calc(50% - 40px);
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.timeline-year {
  display: inline-block;
  background: linear-gradient(135deg, #4e54c8 0%, #8f94fb 100%);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.timeline-content h4 {
  font-size: 22px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 12px;
}

.timeline-content p {
  font-size: 15px;
  color: #718096;
  line-height: 1.7;
  margin: 0;
}

/* ===================================
   Achievements Section
   =================================== */
.achievements-section {
  padding: 80px 0;
  background: #fff;
  position: relative;
}

.stats-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.stat-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  transition: all 0.5s ease;
}

.stat-box:hover::before {
  top: -60%;
  right: -60%;
}

.stat-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.stat-icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1;
}

.stat-label {
  font-size: 16px;
  font-weight: 500;
  opacity: 0.95;
  letter-spacing: 0.5px;
}

/* Clients Section */
.clients-section {
  margin-top: 60px;
}

.clients-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 40px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  align-items: center;
}

.client-logo {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  min-height: 120px;
}

.client-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.client-logo img {
  max-width: 100%;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.client-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ===================================
   Why Choose Us Section
   =================================== */
.why-choose-section {
  padding: 80px 0;
  background: #fff;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-items: center;
}

.why-choose-grid:has(> .why-box:only-child) {
  grid-template-columns: 1fr;
  max-width: 400px;
  margin: 0 auto;
}

.why-box {
  background: #fff;
  padding: 30px 25px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.why-box:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.why-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  transition: all 0.3s ease;
}

.why-box:hover .why-icon {
  transform: scale(1.1);
}

.why-box h4 {
  font-size: 20px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 15px;
}

.why-box p {
  font-size: 15px;
  color: #718096;
  line-height: 1.7;
  margin: 0;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 991px) {
  .why-choose-section {
    padding: 60px 0;
  }

  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .timeline-wrapper::before {
    left: 20px;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
  }

  .timeline-content {
    padding: 25px 20px;
  }

  .timeline-content h4 {
    font-size: 18px;
  }

  .timeline-content p {
    font-size: 14px;
  }

  .stats-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-box {
    padding: 30px 20px;
  }

  .stat-number {
    font-size: 36px;
  }

  .stat-label {
    font-size: 14px;
  }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .client-logo {
    padding: 20px;
    min-height: 100px;
  }

  .why-choose-section {
    padding: 50px 0;
  }

  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .why-box {
    padding: 30px 20px;
  }

  .why-icon {
    width: 70px;
    height: 70px;
    font-size: 32px;
  }

  .why-box h4 {
    font-size: 18px;
  }

  .why-box p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .timeline-section,
  .achievements-section,
  .why-choose-section {
    padding: 40px 0;
  }

  .timeline-wrapper::before {
    left: 15px;
  }

  .timeline-dot {
    left: 15px;
    width: 20px;
    height: 20px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    width: calc(100% - 50px);
    margin-left: 50px;
  }

  .timeline-content {
    padding: 20px 15px;
  }

  .timeline-year {
    padding: 6px 15px;
    font-size: 13px;
  }

  .timeline-content h4 {
    font-size: 16px;
  }

  .timeline-content p {
    font-size: 13px;
  }

  .stats-wrapper {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .stat-box {
    padding: 25px 20px;
  }

  .stat-icon {
    font-size: 36px;
  }

  .stat-number {
    font-size: 32px;
  }

  .stat-label {
    font-size: 13px;
  }

  .clients-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .client-logo {
    padding: 20px;
    min-height: 90px;
  }

  .why-box {
    padding: 25px 15px;
  }

  .why-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
    margin-bottom: 20px;
  }

  .why-box h4 {
    font-size: 17px;
    margin-bottom: 12px;
  }

  .why-box p {
    font-size: 13px;
  }
}
