/* Testimonials Section - Carousel */
#testimonials {
  padding-top: 3rem;
}

.testimonials-carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
  position: relative;
  width: 100%;
}

#testimonials .content-section-heading {
  margin-bottom: 1.2rem;
}

#testimonials .text-secondary {
  margin-bottom: 0.3rem !important;
}

#testimonials .section-title {
  margin-bottom: 0 !important;
}

.testimonials-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  flex: 1;
  padding: 0.5rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

/* Hide scrollbar */
.testimonials-carousel::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.8rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 380px;
  min-height: 250px;
}

.testimonial-card:hover {
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
  transform: translateY(-5px);
}

.testimonials-nav {
  background: #1D809F;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 2.8rem;
  height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  font-size: 1rem;
}

.testimonials-nav:hover {
  background: #0ea5e9;
  transform: scale(1.1);
}

.testimonials-nav:active {
  transform: scale(0.95);
}

.testimonial-stars {
  margin-bottom: 1rem;
  color: #fbbf24;
  font-size: 0.9rem;
  display: flex;
  gap: 0.3rem;
}

.testimonial-text {
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex: 1;
  font-style: italic;
}

.testimonial-author {
  color: #1D809F;
  font-weight: 600;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.testimonial-author small {
  color: #94a3b8;
  display: block;
  margin-top: 0.3rem;
  font-weight: 400;
}

/* Dark Mode - Testimonials */
.theme-dark .testimonials-nav {
  background: #0ea5e9;
  color: #082f49;
}

.theme-dark .testimonials-nav:hover {
  background: #67e8f9;
}

.theme-dark .testimonial-card {
  background: #0b1220;
  border-color: #334155;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.45);
}

.theme-dark .testimonial-card:hover {
  box-shadow: 0 15px 35px rgba(13, 36, 53, 0.3);
  transform: translateY(-5px);
}

.theme-dark .testimonial-text {
  color: #cbd5e1;
}

.theme-dark .testimonial-author {
  color: #67e8f9;
  border-color: #334155;
}

.theme-dark .testimonial-author small {
  color: #94a3b8;
}

/* Project Modal */
.project-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2050;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.project-modal.active {
  display: flex;
}

.project-modal-content {
  background: #fff;
  border-radius: 1.25rem;
  max-width: 950px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.2);
  position: relative;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.project-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: #94a3b8;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.project-modal-close:hover {
  background: #f1f5f9;
  color: #1D809F;
}

.project-modal-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  padding: 2rem;
}

.project-modal-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

.project-modal-info {
  display: flex;
  flex-direction: column;
}

.project-modal-tag {
  color: #1D809F;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.8rem 0;
}

.project-modal-title {
  color: #0f172a;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.project-modal-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
  font-size: 0.95rem;
}

.stat-item i {
  color: #1D809F;
  font-size: 1.1rem;
}

.project-modal-description {
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.project-modal-details {
  margin-bottom: 1.5rem;
}

.project-modal-details h4 {
  color: #1D809F;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.project-modal-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-modal-details li {
  color: #475569;
  padding-left: 1.8rem;
  position: relative;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.project-modal-details li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.project-modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.project-modal-actions .btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.6rem;
  transition: all 0.3s ease;
}

.project-modal-actions .btn-primary {
  background: #1D809F;
  color: #fff;
  border: 1px solid #1D809F;
}

.project-modal-actions .btn-primary:hover {
  background: #0ea5e9;
  border-color: #0ea5e9;
  transform: translateY(-2px);
}

.project-modal-actions .btn-outline-primary {
  color: #1D809F;
  border: 1px solid #1D809F;
  background: transparent;
}

.project-modal-actions .btn-outline-primary:hover {
  background: #f0f9ff;
  color: #0ea5e9;
  border-color: #0ea5e9;
}

/* Dark Mode - Modal */
.theme-dark .project-modal {
  background: rgba(2, 6, 23, 0.8);
}

.theme-dark .project-modal-content {
  background: #0b1220;
  color: #e2e8f0;
}

.theme-dark .project-modal-close {
  color: #94a3b8;
}

.theme-dark .project-modal-close:hover {
  background: #111827;
  color: #67e8f9;
}

.theme-dark .project-modal-title {
  color: #f8fafc;
}

.theme-dark .project-modal-stats {
  border-color: #334155;
}

.theme-dark .stat-item {
  color: #cbd5e1;
}

.theme-dark .stat-item i {
  color: #67e8f9;
}

.theme-dark .project-modal-description {
  color: #cbd5e1;
}

.theme-dark .project-modal-details h4 {
  color: #67e8f9;
}

.theme-dark .project-modal-details li {
  color: #cbd5e1;
}

/* Project Card Button */
.project-card-btn {
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  height: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.project-card-btn:hover {
  opacity: 1;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .testimonials-carousel-wrapper {
    gap: 1rem;
  }
  
  .testimonial-card {
    width: 350px;
  }
}

@media (max-width: 768px) {
  #testimonials {
    padding-top: 2rem;
  }
  
  .testimonials-carousel-wrapper {
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  
  #testimonials .content-section-heading {
    margin-bottom: 1rem;
  }
  
  #testimonials .section-title {
    margin-bottom: 0.5rem !important;
  }
  
  .testimonials-carousel {
    gap: 0.8rem;
    padding: 0.3rem 1rem;
  }
  
  .testimonial-card {
    width: calc(100vw - 2rem);
    max-width: 100%;
    padding: 1.2rem;
    min-height: 200px;
  }
  
  .testimonial-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }
  
  .testimonials-nav {
    width: 2.3rem;
    height: 2.3rem;
    font-size: 0.8rem;
  }

  .project-modal-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .project-modal-image {
    height: 280px;
  }

  .project-modal-title {
    font-size: 1.5rem;
  }

  .project-modal-actions {
    flex-direction: column;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-modal-close {
    top: 1rem;
    right: 1rem;
  }

  .project-modal-content {
    width: 95%;
    max-width: 90vw;
  }
}

@media (max-width: 480px) {
  #testimonials {
    padding-top: 1.5rem;
  }
  
  .testimonials-carousel-wrapper {
    gap: 0.3rem;
    margin-top: 0.3rem;
  }
  
  #testimonials .content-section-heading {
    margin-bottom: 0.8rem;
  }
  
  #testimonials .section-title {
    margin-bottom: 0.3rem !important;
  }
  
  .testimonials-carousel {
    gap: 0.6rem;
    padding: 0.2rem 0.5rem;
  }
  
  .testimonial-card {
    width: calc(100vw - 1rem);
    padding: 1rem;
    min-height: 180px;
  }
  
  .testimonial-text {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
  }
  
  .testimonial-author {
    font-size: 0.9rem;
    padding-top: 0.8rem;
  }
  
  .testimonial-author small {
    font-size: 0.75rem;
  }
  
  .testimonials-nav {
    width: 2rem;
    height: 2rem;
    font-size: 0.7rem;
  }

  .project-modal-body {
    padding: 1rem;
  }
  
  .project-modal-title {
    font-size: 1.3rem;
  }
  
  .project-modal-image {
    height: 220px;
  }
  
  .project-modal-close {
    width: 2rem;
    height: 2rem;
    font-size: 1.5rem;
  }
  
  .project-modal-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }
}
