/* Testimonials & Trust Signals Styles */
.testimonials {
  background-color: var(--light-gray);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '"';
  position: absolute;
  top: 50px;
  left: 50px;
  font-size: 200px;
  color: rgba(212, 175, 55, 0.1);
  font-family: serif;
  line-height: 1;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-item {
  background-color: var(--white-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin: 20px;
  text-align: center;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-color);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

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

.client-image {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 15px;
  border: 3px solid var(--primary-color);
}

.client-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-name {
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.client-position {
  color: var(--dark-gray);
  font-size: 0.9rem;
}

.slider-controls {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.slider-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--secondary-color);
  cursor: pointer;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.slider-btn:hover {
  color: var(--primary-color);
}

.slider-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--medium-gray);
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--primary-color);
}

.clients-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 60px;
}

.client-logo {
  width: 150px;
  height: 80px;
  margin: 20px;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
}

.awards {
  margin-top: 60px;
  text-align: center;
}

.awards-title {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 30px;
}

.awards-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.award-item {
  background-color: var(--white-color);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  width: 250px;
  transition: transform 0.3s ease;
}

.award-item:hover {
  transform: translateY(-5px);
}

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

.award-name {
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.award-description {
  color: var(--dark-gray);
  font-size: 0.9rem;
}

/* Blog Section Styles */
.blog {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.blog::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
  animation: pulse 20s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.3; }
}

.blog .section-header {
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.blog .section-title {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  text-align: center;
}

.blog .section-subtitle {
  font-size: 1.2rem;
  color: #64748b;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

/* Blog Grid Enhancement */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

/* Blog Card Base Styling */
.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

/* Featured GPT-OSS Article Special Styling */
.blog-card:first-child {
  grid-column: span 2;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.blog-card:first-child::before {
  content: 'NEW';
  position: absolute;
  top: 20px;
  right: -35px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #333;
  padding: 8px 50px;
  transform: rotate(45deg);
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 10;
  letter-spacing: 2px;
}

.blog-card:first-child::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff10" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,138.7C672,149,768,203,864,213.3C960,224,1056,192,1152,165.3C1248,139,1344,117,1392,106.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: bottom;
  opacity: 0.1;
}

/* Blog Image Container */
.blog-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.blog-card:first-child .blog-image {
  height: 300px;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

/* Blog Content Styling */
.blog-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card:first-child .blog-content {
  position: relative;
  z-index: 5;
}

/* Blog Date Badge */
.blog-date {
  display: inline-block;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.blog-card:first-child .blog-date {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
}

.blog-card:hover .blog-date {
  background: #667eea;
  color: white;
}

.blog-card:first-child:hover .blog-date {
  background: rgba(255, 255, 255, 0.3);
}

/* Blog Title */
.blog-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 15px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.blog-card:first-child .blog-title {
  font-size: 1.8rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-card:hover .blog-title {
  color: #667eea;
}

.blog-card:first-child:hover .blog-title {
  color: #FFD700;
}

/* Blog Excerpt */
.blog-excerpt {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.blog-card:first-child .blog-excerpt {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Blog Link */
.blog-link {
  display: inline-flex;
  align-items: center;
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-right: 25px;
}

.blog-link::after {
  content: '→';
  position: absolute;
  right: 0;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-link::after {
  transform: translateX(5px);
}

.blog-card:first-child .blog-link {
  background: white;
  color: #667eea;
  padding: 12px 30px;
  border-radius: 30px;
  display: inline-block;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.blog-card:first-child .blog-link:hover {
  background: #FFD700;
  color: #333;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* View All Button */
.view-all-btn {
  display: inline-block;
  margin: 50px auto 0;
  padding: 15px 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.view-all-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transition: left 0.3s ease;
}

.view-all-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.view-all-btn:hover::before {
  left: 0;
}

.view-all-btn span {
  position: relative;
  z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-card:first-child {
    grid-column: span 1;
  }
  
  .blog-card:first-child .blog-title {
    font-size: 1.5rem;
  }
  
  .blog-card:first-child .blog-excerpt {
    font-size: 1rem;
  }
  
  .blog .section-title {
    font-size: 2rem;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

/* Animation on Scroll */
.blog-card.animate {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.blog-card:nth-child(1).animate {
  animation-delay: 0.1s;
}

.blog-card:nth-child(2).animate {
  animation-delay: 0.2s;
}

.blog-card:nth-child(3).animate {
  animation-delay: 0.3s;
}

.blog-card:nth-child(4).animate {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Special GPT-OSS Glow Effect */
.blog-card:first-child {
  position: relative;
}

.blog-card:first-child::before {
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

/* AI-themed decoration for GPT-OSS card */
.blog-card:first-child .blog-content::before {
  content: '🤖';
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 2rem;
  opacity: 0.2;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive Styles for Testimonials and Blog */
@media (max-width: 992px) {
  .testimonial-item {
    padding: 25px;
  }
  
  .client-logo {
    width: 120px;
    height: 60px;
    margin: 15px;
  }
  
  .award-item {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .testimonials::before {
    font-size: 150px;
    top: 30px;
    left: 30px;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .awards-list {
    flex-direction: column;
    align-items: center;
  }
  
  .award-item {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  .testimonial-item {
    padding: 20px;
    margin: 10px;
  }
  
  .client-logo {
    width: 100px;
    height: 50px;
    margin: 10px;
  }
}
