/* ========== Solutions Section Styles ========== */

/* Section Container */
.solutions-section {
  background: linear-gradient(to bottom, #ffffff, #EDF7FF);
  clip-path: polygon(0 0, 100% 0, 100% 87%, 51.3% 100%, 0 87%);
}

/* Header */
.solutions-header {
  text-align: center;
  margin-bottom: 48px;
}

.solutions-header h2 {
  font-size: 48px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

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

/* Tabs Container */
.solutions-tabs {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

/* Individual Tab */
.solutions-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding-bottom: 20px;
  transition: all 0.3s ease;
}

.solutions-tab:hover {
  opacity: 0.8;
}

/* Tab Number Circle - always dashed gray with black number */
.tab-number {
  width: 50px;
  height: 50px;
  border: 2px dashed #ccc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
}

/* Tab Label */
.tab-label {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.3;
  position: relative;
}

.solutions-tab.active .tab-label {
  font-weight: 600;
}

/* Progress Bar Container (light gray track) - visible on ALL tabs */
.progress-track {
  display: block;
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ddd;
  border-radius: 1px;
  overflow: hidden;
}

/* Progress Bar Fill (darker gray) - hidden by default */
.progress-bar {
  display: none;
  height: 100%;
  background: #999;
  border-radius: 1px;
  transition: width 0.3s ease;
}

/* Only show dark gray fill on ACTIVE tab */
.solutions-tab.active .progress-bar {
  display: block;
}

/* Content Wrapper */
.solutions-content-wrapper {
  position: relative;
  min-height: 400px;
}

/* Content Panel */
.solutions-content {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.solutions-content.active {
  display: grid;
}

/* Left Side - Text Content */
.solutions-left h3 {
  font-size: 36px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

.solutions-left > p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Subcategory List */
.subcategory-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #e0e0e0;
}

.subcategory-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.subcategory-list li:hover {
  background-color: #f9f9f9;
  padding-left: 8px;
}

.subcategory-list li .num {
  font-size: 14px;
  font-weight: 500;
  color: #999;
  min-width: 20px;
}

.subcategory-list li .subcategory-content {
  flex: 1;
}

.subcategory-list li .subcategory-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.subcategory-list li .subcategory-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  display: none;
}

.subcategory-list li.expanded .subcategory-desc {
  display: block;
}

/* Right Side - Vertically Centered */
.solutions-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Grid Wrapper - 3 columns x 4 rows */
.tech-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 120px);
  grid-template-rows: repeat(4, 120px);
}

/* Base Cell Style - no left border */
.tech-cell {
  border: 1px dashed #ccc;
  border-left: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Remove top border from first row */
.tech-cell:nth-child(1),
.tech-cell:nth-child(2),
.tech-cell:nth-child(3) {
  border-top: none;
}

/* Icon Cells */


.icon-cell img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  padding: 15px;
 
}

/* ===== FADE CELLS ===== */

/* Top row cells 1,2 - fade upward */
.fade-cell:nth-child(1),
.fade-cell:nth-child(2) {
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

/* Top-right corner cell 3 - fade to top-right, no border at end */
.fade-cell:nth-child(3) {
  border-right: none;
  border-top: none;
  -webkit-mask-image: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
  mask-image: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
}

/* Right column cells 6,9 - fade right */
.fade-cell:nth-child(6),
.fade-cell:nth-child(9) {
  border-right: none;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

/* Bottom row cells 10,11 - fade downward */
.fade-cell:nth-child(10),
.fade-cell:nth-child(11) {
  border-bottom: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

/* Bottom-right corner cell 12 - fade to bottom-right, no border at end */
.fade-cell:nth-child(12) {
  border-right: none;
  border-bottom: none;
  -webkit-mask-image: linear-gradient(-135deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
  mask-image: linear-gradient(-135deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
}

/* ===== ICON CELLS ===== */

/* Icon cells base style */
.icon-cell {
  position: relative;
}

/* Left column icon cells (4, 7) - fade the left side of horizontal lines */
.icon-cell:nth-child(4),
.icon-cell:nth-child(7) {
  border-top: none;
  border-bottom: none;
}

.icon-cell:nth-child(4)::before,
.icon-cell:nth-child(7)::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-top: 1px dashed #ccc;
  border-bottom: 1px dashed #ccc;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.3) 0%, rgba(0,0,0,1) 30%);
  mask-image: linear-gradient(to right, rgba(0,0,0,0.3) 0%, rgba(0,0,0,1) 30%);
  pointer-events: none;
}

/* Left column fade cells (1, 10) - fade the left side of horizontal lines */
.fade-cell:nth-child(1)::after,
.fade-cell:nth-child(10)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 30%;
  background: linear-gradient(to right, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* ========== Staff Augmentation Section Styles ========== */

.stuff-all-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-top: 148px;
  padding-bottom: 148px;
  position: relative;
}

.staff-arrow-up {
  position: absolute;
  right: 89px;
  top: 56px;
}

.staff-arrow-down {
  position: absolute;
  bottom: 56px;
  left: 66px;
}

.staff-arrow-sm {
  display: none;
}

.scale-up {
  background-color: rgba(236, 255, 235, 1);
}

.top-tier-talents {
  background: #edf0ff;
}

.easy-integration {
  background: #fff2e3;
}

.staff-card {
  display: flex;
  gap: 24px;
  padding: 24px;
  border-radius: 12px;
}

.staff-card-details {
  align-self: center;
}

.staff-title {
  color: #333;
  font-size: 28px;
  font-weight: 500;
  padding-bottom: 18px;
}

.staff-subtitle {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 1199px){
	    .staff-arrow-up {
        display: none;
    }
	.stuff-all-card {
   
    grid-template-columns: repeat(1, 1fr);
    gap: 0px;
   
}
	    .staff-arrow-sm {
        display: inline-block;
        margin: auto;
    }
}



/* ========== Responsive Styles ========== */

/* Tablet */
@media (max-width: 992px) {
  .solutions-section {
    clip-path: polygon(0 0, 100% 0, 100% 93%, 51.3% 100%, 0 93%);
  }

  .stuff-all-card {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0;
  }

  .staff-arrow-up {
    display: none;
  }

  .staff-arrow-down {
    display: none;
  }

  .staff-arrow-sm {
    display: inline-block;
    margin: auto;
  }

  .solutions-header h2 {
    font-size: 36px;
  }

  .solutions-tabs {
    gap: 5px;
  }

  .tab-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

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

  .solutions-content {
    grid-template-columns: 1fr;
    gap: 0px;
  }

  .solutions-left h3 {
    font-size: 28px;
  }

}

/* Mobile */
@media (max-width: 768px) {
  .solutions-section {
    clip-path: polygon(0 0, 100% 0, 100% 94%, 51.3% 100%, 0 94%);
  }

  .stuff-all-card {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }

  .solutions-header h2 {
    font-size: 28px;
  }

  .solutions-tabs {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .solutions-tabs::-webkit-scrollbar {
    display: none;
  }

  .solutions-tab {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 4px 20px;
    gap: 8px;
    min-width: 0;
    flex-shrink: 0;
  }

  .solutions-tab.active {
    background-color: transparent;
  }

  .tab-number {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .tab-label {
    font-size: 11px;
    text-align: center;
    line-height: 1.3;
  }

  .solutions-right {
    order: 1;
  }

  .solutions-left h3 {
    font-size: 24px;
  }

  .tech-grid-wrapper {
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(4, 100px);
  }

  .icon-cell img {
    padding: 12px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .solutions-section {
    clip-path: polygon(0 0, 100% 0, 100% 94%, 51.3% 100%, 0 94%);
  }

  .stuff-all-card {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }

  .solutions-tabs {
    gap: 10px;
  }

  .tab-number {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .tab-label {
    font-size: 10px;
  }

  .solutions-header h2 {
    font-size: 24px;
  }

  .solutions-header p {
    font-size: 14px;
  }

  .subcategory-list li .subcategory-title {
    font-size: 16px;
  }

  .tech-grid-wrapper {
    grid-template-columns: repeat(3, 80px);
    grid-template-rows: repeat(4, 80px);
  }

  .icon-cell img {
    width: 40px;
    height: 40px;
    padding: 0px;
  }
}

/* ========== Practices Section Styles ========== */

/* Section Container - Light blue gradient background */
.practices-section {
  background: linear-gradient(284.21deg, rgba(163, 215, 255, 0.51) 0%, rgba(255, 255, 255, 0.21) 100%);
}

/* Header */
.practices-header {
  text-align: center;
  margin-bottom: 48px;
}

.practices-header h2 {
  font-size: 48px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

.practices-header p {
  font-size: 16px;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Tabs Container */
.practices-tabs {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

/* Individual Tab */
.practices-tab {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  padding-bottom: 20px;
  transition: all 0.3s ease;
}

.practices-tab:hover {
  opacity: 0.8;
}

/* Tab Number Circle */
.practices-tab .tab-number {
  width: 50px;
  height: 50px;
  border: 2px dashed #ccc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
}

.practices-tab.active .tab-number {
  border-style: solid;
  border-color: #333;
}

/* Tab Label */
.practices-tab .tab-label {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.3;
  position: relative;
}

.practices-tab.active .tab-label {
  font-weight: 600;
}

/* Progress Bar for Practices Tab - visible on ALL tabs */
.practices-tab .progress-track {
  display: block;
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ddd;
  border-radius: 1px;
  overflow: hidden;
}

/* Progress Bar Fill - hidden by default */
.practices-tab .progress-bar {
  display: none;
  height: 100%;
  background: #999;
  border-radius: 1px;
  transition: width 0.3s ease;
}

/* Only show dark gray fill on ACTIVE tab */
.practices-tab.active .progress-bar {
  display: block;
}

/* Content Wrapper */
.practices-content-wrapper {
  position: relative;
  min-height: 350px;
}

/* Content Panel */
.practices-content {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.practices-content.active {
  display: grid;
}

/* Left Side - Text Content */
.practices-left h3 {
  font-size: 32px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.practices-left > p {
  font-size: 16px;
  color: #666;
  line-height: 1.7;
}

/* Right Side - Process List */
.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.process-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.process-list li:first-child {
  padding-top: 0;
}

.process-list li:hover {
  padding-left: 8px;
}

.process-list li .num {
  font-size: 16px;
  font-weight: 500;
  color: #999;
  min-width: 20px;
}

.process-list li .process-content {
  flex: 1;
}

.process-list li .process-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.process-list li .process-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  display: none;
}

.process-list li.expanded .process-desc {
  display: block;
}

/* ========== Practices Responsive Styles ========== */

/* Tablet */
@media (max-width: 992px) {
  .practices-header h2 {
    font-size: 36px;
  }

  .practices-tabs {
    gap: 30px;
  }

  .practices-tab .tab-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .practices-tab .tab-label {
    font-size: 14px;
  }

  .practices-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .practices-left h3 {
    font-size: 26px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .practices-header h2 {
    font-size: 28px;
  }

  .practices-tabs {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .practices-tabs::-webkit-scrollbar {
    display: none;
  }

  .practices-tab {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 4px 20px;
    gap: 8px;
    flex: 1;
    min-width: 0;
  }

  .practices-tab.active {
    background-color: transparent;
  }

  .practices-tab .tab-number {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .practices-tab .tab-label {
    font-size: 11px;
    text-align: center;
    line-height: 1.3;
  }

  .practices-tab .progress-track {
    display: none;
  }

  .practices-left h3 {
    font-size: 22px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .practices-header h2 {
    font-size: 24px;
  }

  .practices-header p {
    font-size: 14px;
  }

  .practices-tabs {
    gap: 10px;
  }

  .practices-tab .tab-number {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .practices-tab .tab-label {
    font-size: 10px;
  }

  .process-list li .process-title {
    font-size: 16px;
  }
}

/* ========== Preferred Stacks Section ========== */
.stacks-section {
  background: linear-gradient(95.36deg, rgba(255, 255, 255, 0.51) 0%, rgba(163, 215, 255, 0.21) 100%);
}

.stacks-header {
  text-align: center;
  margin-bottom: 48px;
}

.stacks-header h2 {
  font-size: 42px;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px 0;
}

.stacks-header p {
  font-size: 16px;
  color: #666;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.stacks-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.stack-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stack-logo img {
  width: auto;
  height: 100px;
  object-fit: contain;
}

/* Tablet */
@media (max-width: 992px) {
  .stacks-header h2 {
    font-size: 32px;
  }

  .stacks-logos {
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
  }

  .stack-logo img {
    height: 52px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .stacks-header h2 {
    font-size: 26px;
  }

  .stacks-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 16px;
    justify-items: center;
  }

  .stack-logo img {
    height: 44px;
  }
}
