/* ========================== Success Stories Page Styles =========================== */

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #181d1c 0%, #2a2a2a 100%);
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(7,165,226,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.page-header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-header h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--second-text-color);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.page-header p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 15px;
}

.section-header p {
  font-size: 16px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Success Stories Section */
.success-stories {
  padding: 80px 0;
  background-color: #f8f9fa;
  min-height: auto;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.story-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.story-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.story-image {
  height: 200px;
  background: var(--text-color);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
}

.story-category {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.story-content {
  padding: 30px;
}

.story-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 15px;
}

.story-description {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
}

.story-results {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.result-item {
  text-align: center;
  flex: 1;
}

.result-number {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.result-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.story-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 500;
}

/* Client Testimonials */
.client-testimonials {
  padding: 80px 0;
  background-color: #fff;
  min-height: auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background: #f8f9fa;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.quote-icon {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.testimonial-content p {
  font-size: 16px;
  color: var(--text-color);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 25px;
}

.testimonial-author {
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
}

.author-info h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 5px;
}

.author-info span {
  font-size: 14px;
  color: #666;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color), #0591c9);
  text-align: center;
  min-height: auto;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: white;
  color: var(--primary-color);
}

.btn-primary:hover {
  background: transparent;
  color: white;
  border-color: white;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Active Navigation Link */
.nav-link a.active,
.mobile-nav-link.active {
  color: var(--primary-color);
}

.nav-link a.active::before,
.mobile-nav-link.active {
  transform: scale3d(1, 1, 1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-header h1 {
    font-size: 40px;
  }
  
  .page-header p {
    font-size: 16px;
  }
  
  .section-header h2 {
    font-size: 32px;
  }
  
  .stories-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 100px 0 60px;
  }
  
  .page-header h1 {
    font-size: 32px;
  }
  
  .page-header p {
    font-size: 15px;
  }
  
  .success-stories,
  .client-testimonials,
  .cta-section {
    padding: 60px 0;
  }
  
  .section-header h2 {
    font-size: 28px;
  }
  
  .stories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 80px 0 40px;
  }
  
  .page-header h1 {
    font-size: 28px;
  }
  
  .story-content {
    padding: 20px;
  }
  
  .story-results {
    flex-direction: column;
    gap: 15px;
  }
  
  .testimonial-card {
    padding: 30px 20px;
  }
  
  .cta-content h2 {
    font-size: 28px;
  }
  
  .cta-content p {
    font-size: 16px;
  }
}
