/* ===== Custom Software Page Styles ===== */
/* This file can be reused for other service pages */

/* Global Red Gradient Titles */
.tp-section-title {
  background-image: linear-gradient(
    90deg,
    #ce403d 0%,
    #ce403d 25%,
    #2a2f36 50%,
    #ce403d 75%,
    #ce403d 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.cs-projects-section .tp-section-title {
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Section → moved to service-common.css */

.cs-hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 25px;
  border-top: 1px solid rgba(206, 64, 61, 0.15);
  margin-top: 25px;
}
.cs-stat-item {
  text-align: left;
}
.cs-stat-number {
  font-size: 42px;
  font-weight: 700;
  color: #ce403d;
  font-family: p_m;
  line-height: 1;
}
.cs-stat-number span {
  font-size: 28px;
}
.cs-stat-label {
  font-size: 14px;
  color: #636368;
  margin-top: 8px;
  font-family: p_r;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cs-hero-visual {
  position: relative;
  z-index: 2;
}
.cs-hero-svg-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

/* Challenges Section */
.cs-challenges-section {
  background: #f8f9fb;
  position: relative;
}
.cs-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(206, 64, 61, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 15px;
}
.cs-section-badge-text {
  font-size: 13px;
  color: #ce403d;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: p_m;
}
.cs-challenges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 991px) {
  .cs-challenges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575px) {
  .cs-challenges-grid {
    grid-template-columns: 1fr;
  }
}
/* Challenge Card → moved to service-common.css */

/* Projects Section */
.cs-projects-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
}
.cs-projects-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(ellipse at center, rgba(236, 72, 153, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cs-projects-section .tp-section-title {
  color: #ffffff;
}
.cs-projects-section .dgm-hero-subtitle {
  color: rgba(255, 255, 255, 0.7);
}
.cs-projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 50px;
}
.cs-projects-header-left {
  text-align: left;
}
.cs-projects-header-nav {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cs-projects-header-nav .cs-projects-nav-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #ce403d;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cs-projects-header-nav .cs-projects-nav-btn:hover {
  background: #a33331;
  transform: scale(1.05);
}
.cs-projects-header-nav .cs-projects-nav-btn svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
}
.cs-project-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 30px;
  border: 1px solid #f5f5f5;
}
.cs-project-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(206, 64, 61, 0.15);
}
.cs-project-image {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
}
.cs-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.cs-project-card:hover .cs-project-image img {
  transform: scale(1.08);
}
.cs-project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 30%, rgba(206, 64, 61, 0.9) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 25px;
}
.cs-project-card:hover .cs-project-overlay {
  opacity: 1;
}
.cs-project-overlay-btn {
  background: #fff;
  color: #ce403d;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  font-family: p_m;
  transition: all 0.3s ease;
  transform: translateY(20px);
}
.cs-project-card:hover .cs-project-overlay-btn {
  transform: translateY(0);
}
.cs-project-overlay-btn:hover {
  background: #141414;
  color: #fff;
}
.cs-project-content {
  padding: 28px;
}
.cs-project-category {
  display: inline-block;
  font-size: 11px;
  color: #ce403d;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  font-family: p_m;
  background: rgba(206, 64, 61, 0.08);
  padding: 5px 12px;
  border-radius: 15px;
}
.cs-project-title {
  font-size: 20px;
  font-weight: 600;
  color: #141414;
  margin-bottom: 12px;
  font-family: p_m;
  line-height: 1.3;
}
.cs-project-description {
  font-size: 14px;
  color: #636368;
  line-height: 1.6;
  font-family: p_r;
  margin-bottom: 18px;
}
.cs-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cs-project-tag {
  font-size: 12px;
  padding: 6px 14px;
  background: #f8f8f8;
  color: #555;
  border-radius: 20px;
  font-family: p_r;
  border: 1px solid #eee;
}

/* Why Choose Section */
.cs-why-section {
  background: #f8f9fb;
  position: relative;
  overflow: hidden;
}
.cs-why-title {
  font-family: var(--tp-ff-platform);
  position: relative;
  z-index: 2;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
.cs-why-subtitle {
  color: #636368;
  font-family: p_r;
  font-size: 18px;
  max-width: 750px;
  margin: 0 auto 60px;
  line-height: 1.7;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
.cs-why-item {
  background: #fff;
  border-radius: 20px;
  padding: 35px 28px;
  height: 100%;
  border: 1px solid #eef0f4;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.cs-why-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(206, 64, 61, 0.08) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.cs-why-item:hover {
  border-color: rgba(206, 64, 61, 0.3);
  transform: translateY(-8px) !important;
  box-shadow: 0 15px 40px rgba(206, 64, 61, 0.12);
}
.cs-why-item:hover::before {
  opacity: 1;
}
.cs-why-icon {
  width: 56px;
  height: 56px;
  background: rgba(206, 64, 61, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}
.cs-why-item:hover .cs-why-icon {
  background: #ce403d;
}
.cs-why-icon svg {
  width: 28px;
  height: 28px;
  stroke: #ce403d;
  transition: stroke 0.3s ease;
}
.cs-why-item:hover .cs-why-icon svg {
  stroke: #fff;
}
.cs-why-item-title {
  font-size: 19px;
  font-weight: 600;
  color: #141414;
  margin-bottom: 12px;
  font-family: p_m;
  position: relative;
  z-index: 2;
}
.cs-why-item-text {
  font-size: 15px;
  color: #636368;
  line-height: 1.7;
  font-family: p_r;
  position: relative;
  z-index: 2;
}

/* Industry Section */
.cs-industry-section {
  background: #fff;
}
.cs-industry-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
@media (max-width: 1199px) {
  .cs-industry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 767px) {
  .cs-industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .cs-industry-grid {
    grid-template-columns: 1fr;
  }
}
.cs-industry-item {
  text-align: center;
  padding: 25px 15px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eef0f4;
  transition: all 0.4s ease;
  cursor: pointer;
}
.cs-industry-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(206, 64, 61, 0.12);
  border-color: rgba(206, 64, 61, 0.3);
}
.cs-industry-img {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-industry-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.cs-industry-item:hover .cs-industry-img img {
  transform: scale(1.1);
}
.cs-industry-title {
  font-size: 15px;
  font-weight: 600;
  color: #141414;
  font-family: p_m;
  margin: 0;
  line-height: 1.4;
}

/* Projects Slider Section */
.cs-projects-slider-wrapper {
  position: relative;
  overflow: hidden;
  padding: 0 10px;
}
.cs-projects-slider {
  overflow: visible;
}
.cs-projects-slider .swiper-slide {
  height: auto;
  min-width: 350px;
}
.cs-project-slide-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}
.cs-project-slide-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.cs-project-slide-image {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cs-project-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cs-project-slide-image svg {
  width: 100%;
  height: 100%;
  max-width: 280px;
  transition: transform 0.5s ease;
}
.cs-project-slide-card:hover .cs-project-slide-image img,
.cs-project-slide-card:hover .cs-project-slide-image svg {
  transform: scale(1.05);
}
.cs-project-slide-content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cs-project-slide-title {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  font-family: p_m;
  line-height: 1.2;
}
.cs-project-slide-category {
  display: block;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  font-family: p_r;
}
.cs-project-slide-category span {
  margin: 0 6px;
  color: #cbd5e1;
}
.cs-project-slide-description {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
  font-family: p_r;
  flex: 1;
  margin-bottom: 20px;
}
.cs-project-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #ce403d;
  text-decoration: none;
  font-family: p_m;
  padding: 12px 24px;
  border: 2px solid #ce403d;
  border-radius: 30px;
  transition: all 0.3s ease;
  width: fit-content;
  margin-top: auto;
}
.cs-project-slide-cta:hover {
  background: #ce403d;
  color: #fff;
}
.cs-project-slide-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}
.cs-project-slide-cta:hover svg {
  transform: translateX(4px);
}
.cs-projects-nav {
  display: none;
}
.cs-projects-pagination {
  display: none;
}

/* CTA Section → moved to service-common.css */

.mt-25 {
  margin-top: 25px;
}

/* ===== Mobile Fix: Testing Component Overlapping Header ===== */
@media (max-width: 1199px) {
  /* Fix for software testing section overlapping header on mobile */
  .crp-project-area .pin-spacer {
    position: relative !important;
    z-index: 1 !important;
  }

  .crp-project-area .tp-panel-pin,
  .crp-project-area .crp-project-item {
    position: relative !important;
    z-index: 1 !important;
    transform: none !important;
    will-change: auto !important;
  }

  /* Ensure the testing section doesn't have fixed positioning on mobile */
  .crp-project-area [style*="position: fixed"] {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    z-index: 1 !important;
  }
}

/* Responsive (page-specific only; hero+CTA responsive → service-common.css) */
@media (max-width: 991px) {
  .cs-hero-cta {
    justify-content: center;
  }
}

/* Projects Slider Mobile Styles */
@media (max-width: 767px) {
  .cs-projects-slider-wrapper {
    padding: 0 15px;
  }
  
  .cs-projects-slider .swiper-slide {
    min-width: auto;
    width: 100%;
  }
  
  .cs-project-slide-card {
    min-height: auto;
  }
  
  .cs-project-slide-image {
    height: 180px;
    padding: 15px;
  }
  
  .cs-project-slide-content {
    padding: 20px;
  }
  
  .cs-project-slide-title {
    font-size: 20px;
  }
  
  .cs-project-slide-description {
    font-size: 13px;
    margin-bottom: 15px;
  }
  
  .cs-project-slide-cta {
    padding: 10px 20px;
    font-size: 13px;
  }
}

@media (max-width: 575px) {
  .cs-projects-section {
    padding: 40px 0;
  }
  
  .cs-projects-header {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
  }
  
  .cs-projects-header-left {
    width: 100%;
    text-align: center;
  }
  
  .cs-projects-header-left .tp-section-title {
    text-align: center;
  }
  
  .cs-projects-header-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
  }
  
  .cs-project-slide-image {
    height: 160px;
  }
  
  .cs-project-slide-title {
    font-size: 18px;
  }
  
  /* Hide slider pagination dots on mobile */
  .swiper-pagination {
    display: none !important;
  }
}
