* {
  min-width: 0;
}
.service-cards{
    position:relative;
    padding:100px 0;
    background:#ffffff;
    
}

.service-cards::before{
    content:"";
    position:absolute;
    width:500px;
    height:500px;
    background:radial-gradient(circle, rgba(30,58,138,0.08), transparent 70%);
    top:10%;
    left:10%;
}

.service-cards::after{
    content:"";
    position:absolute;
    width:500px;
    height:500px;
    background:radial-gradient(circle, rgba(59,130,246,0.06), transparent 70%);
    bottom:10%;
    right:10%;
}

.service-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;

  max-width: 1100px;
  margin: 50px auto 0;
  padding: 0 20px;
}

.service-card {
  background: linear-gradient(180deg,#f8f9fb,#f1f3f6);
  padding: 28px 24px;
  border-radius: 14px;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.4s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);

  opacity: 0;
  transform: translateY(25px);
  border: 1px solid rgba(0,0,0,0.04);

  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1px;

  background: linear-gradient(120deg, transparent, rgba(77,163,255,0.4), transparent);

  opacity: 0;
  transition: opacity 0.2s ease;
  will-change: opacity;
}

.service-card.show{
    opacity:1;
    transform:translateY(0);
}

.service-icon {
  width: 60px;
  height: 60px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  background: linear-gradient(135deg, #e0ecff, #f5f9ff);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);

  margin-bottom: 16px;
}

.service-icon svg{
  width:100%;
  height:100%;
}

.service-card h2 {
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  max-width: 40ch;
  margin-top: 6px;
}
.service-card:hover {
  box-shadow: 
    0 10px 20px rgba(0,0,0,0.06),
    0 0 0 1px rgba(0,0,0,0.05);
}

.service-card.featured {
  background: linear-gradient(180deg,#eef4ff,#f8fbff);
  border: 1px solid rgba(77,163,255,0.3);
}

.service-card.featured::after {
  content: "Popular";
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 600;
}

.process {
  padding: 80px 0;
  background: #f8f9fb;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.process-step {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
}

.step-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0d3b66;
  margin-bottom: 10px;
}

.process {
  padding: 90px 0;
  background: #f7f9fc;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  align-items: stretch;
}

/* timeline line */
.process-timeline::before {
  content: "";
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  height: 2px;
  width:100%;
  background:linear-gradient(
    to right,
    #d6dbe3,
    #e9edf3,
    #d6dbe3
  );
  z-index: 0;
}

.process-step {
  position: relative;
  text-align: center;
  padding-top: 55px;
  max-width:240px;
  margin:auto;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  height: 100%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  border-radius: 8px;
  padding: 30px;
  min-height: 220px;
  z-index: 2;


}

.step-bg{
  position:absolute;
  top:-15px;
  left:50%;
  transform:translateX(-50%);
  
  font-size:100px;
  font-weight:700;

  color:#041a34;
  opacity:0.05;

  pointer-events:none;
  z-index: 2;
}

/* step circle */
.step-number {
  position: relative;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: #0d3b66;
  color: var(--primary);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 3;
  box-shadow:0 0 0 6px #f5f7fb;
}

.step-number svg{
    width: 30px;
    height: 30px;
}

@keyframes pulse {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.15); }
  100% { transform: translateX(-50%) scale(1); }
}

.process-step.active {
  opacity: 1;
  transform: translateY(-6px);
}

.process-step.active .step-bg{
  opacity:0.12;
  transition:opacity .4s ease;
  transform:translateX(-50%) translateY(-12px);
}

.process-step.active .process-icon{
  background:#f4a261;
  transform:scale(1.1);
  transition:all .3s ease;
}

.process-step.active .step-number {
  background: #d2bb3a;
  transform: translateX(-50%) scale(1.1);
  animation: pulse 0.5s ease;
  box-shadow: 
    0 0 0 6px #f5f7fb,
    0 0 12px rgba(210,187,58,0.4);
}

.process-step:hover .step-number{
  transform: translateX(-50%) scale(1.08);
}

.timeline-progress{
  position:absolute;
  top:80px;
  left:0;
  height:2px;
  background:#163f6d;
  width:0;
  transition:width 1s cubic-bezier(.22,.61,.36,1);
  z-index: 1;
}

.timeline-marker{
  position:absolute;
  top:80px;
  left:0;
  width:14px;
  height:14px;
  background:#f1e75b;
  border-radius:50%;
  transition: left 0.9s cubic-bezier(.22,.61,.36,1);
  z-index:2;
}

/* card feel */
.process-step h3 {
  margin-top: 35px;
  font-size: 1.1rem;
  min-height: 50px;
}

.process-step h3::after{
  content:"";
  display:block;
  width:30px;
  height:2px;
  background:#e2e6ee;
  margin:10px auto 0;
}

.process-step p {
  font-size:0.95rem;
  line-height:1.7;
  color:#6b7280;
}


.portfolio {
    background-color: var(--primary);
    padding: 4rem 2rem;
    margin: 4rem auto;
}

.portfolio-section-header{
  text-align:center;
  margin-bottom:3rem;
  color: #ffffff;
}

.portfolio-section-header p{
  margin-top: 1rem;
}

.portfolio-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  margin-left:0;
  max-width: 900px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

/* row container */

.portfolio-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;

  padding: 0.8rem 1rem;
  border-radius: 10px;

  transition: transform 0.25s ease;
  color: #ffffff;
}

.portfolio-item:last-child {
  grid-column: 2;
}

/* hover highlight */

.portfolio-item:hover {
  background: rgba(252, 236, 236, 0.04);
  transform: translateY(-3px);
}

.portfolio-icon {
  width: 64px;
  height: 64px;
  min-width: 64px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.9rem;

  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.portfolio-icon svg {
  width: 30px;
  height: 30px;
}

.portfolio-item p {
  margin: 0;
  font-weight: 500;
}

.performance-highlights{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:2rem;
  text-align:center;
  padding:4rem 1rem;
  background:#0f172a; /* or your dark section color */
  color:white;
}

.performance-section{
  padding:5rem 1rem;
  background:#0f172a; /* or your dark section color */
  color:white;
}

.performance-header{
  text-align:center;
  margin-bottom:3rem;
}

.section-line{
  display:block;
  width:60px;
  height:3px;
  background:var(--accent-color);
  margin:0 auto 1rem auto;
}

.performance-header h2{
  font-size:1.8rem;
  font-weight:600;
  margin-bottom: 1rem;
}

.stat{
  position:relative;
}

.stat:not(:last-child)::after{
  content:"";
  position:absolute;
  right:-1rem;
  top:50%;
  transform:translateY(-50%);
  height:40px;
  width:1px;
  background:rgba(255,255,255,0.2);
}

.counter{
  font-weight:700;
  margin-bottom:0.3rem;
  color: var(--accent);
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 1.1;
  word-break: break-word;
}

.stat p{
  font-size:0.9rem;
  opacity:0.85;
}
.stat-item{
  opacity:0;
  transform:translateY(30px);
  transition:all 0.8s ease;
}

.stat-item.show{
  opacity:1;
  transform:translateY(0);
}

.stat-item:nth-child(1){transition-delay:0.1s;}
.stat-item:nth-child(2){transition-delay:0.25s;}
.stat-item:nth-child(3){transition-delay:0.4s;}
.stat-item:nth-child(4){transition-delay:0.55s;}

@media (max-width:768px){

  .container,
  .service-card-grid,
  .portfolio-list,
  .performance-highlights,
  .process-timeline {
    padding-left: 16px;
    padding-right: 16px;
  }

  .service-cards {
    padding: 60px 0;
  }
  .service-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .service-card {
    padding: 22px 18px;
    border-radius: 12px;
  }
  .service-card h2 {
    font-size: 18px;
  }

  .service-card p {
    font-size: 13.5px;
    max-width: 100%;
  }
  .service-icon {
    width: 50px;
    height: 50px;
  }
  .service-cards::before,
  .service-cards::after {
    display: none;
  }
  .service-card:hover {
    transform: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
  }
  .performance-section {
    padding: 3.5rem 1rem;
  }
  .performance-highlights {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 3rem 1.2rem;
  }
  .stat {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 16px;
  }
  .stat::after{
    display:none;
  }
  .stat:last-child {
    border-bottom: none;
  }
  .counter {
    font-weight: 500;
  }
  .stat p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .process-step {
    padding: 20px 18px;
    min-height: auto;
    max-width: 100%;

    align-items: center;
    text-align: center;

    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.04);
  }

  .step-number {
    position: static;
    transform: none;
    margin-bottom: 8px;
  }

  .step-bg {
    font-size: 60px;
    top: 0;
  }
  .process-step h3 {
    font-size: 1rem;
    min-height: auto;
  }
  .process-step p {
    font-size: 0.9rem;
  }
  .process {
    padding: 60px 0;
  }
  .portfolio-list {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .portfolio-item {
    padding: 0.9rem 0.8rem;
    border-radius: 8px;
  }
  .portfolio-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
  }

  .portfolio-icon svg {
    width: 24px;
    height: 24px;
  }
  .portfolio-item p {
    font-size: 0.75rem;
  }
  .portfolio {
    padding: 3rem 1.2rem;
  }
   .cta-button-container {
    flex-direction: column;
    width: 65%;
    gap: 12px;
    padding-right: 2.9rem;
  }
}

@media (max-width: 900px) {

  .service-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .performance-highlights {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .stat::after {
    display: none;
  }
  .counter {
    font-weight: 500;
  }
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .process-timeline::before {
    display: none;
  }

  .timeline-progress,
  .timeline-marker {
    display: none;
  }

  .process-step {
    padding-top: 80px;
  }
  .portfolio-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .portfolio-item:last-child {
    grid-column: auto;
  }
}