/* =========================
   WEB DEVELOPMENT SECTION
========================= */

.web-dev-section{
  padding: 120px 20px;
  background: #ffffff;
  overflow: hidden;
}

.web-dev-top{
  text-align: center;
  max-width: 900px;
  margin: 0 auto 70px;
}

.web-badge{
  display: inline-block;
  padding: 10px 20px;
  border-radius: 100px;
  background: #fff3f3;
  color: #d40000;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255,0,0,0.1);

  transition: all 0.4s ease-in-out;
}

.web-badge:hover{
  transform: translateY(-3px);
}

.web-dev-top h2{
  font-size: clamp(40px,6vw,70px);
  line-height: 1.1;
  color: #111;
  margin-bottom: 24px;
  font-weight: 800;
}

.web-dev-top h2 span{
  background: linear-gradient(90deg,#d40000,#ff4040);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.web-dev-top p{
  font-size: 18px;
  line-height: 1.8;
  color: #666;
}

/* =========================
   CAROUSEL
========================= */

.carousel-wrapper{
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 90px;
}

.carousel-track{
  display: flex;
  align-items: center;
  gap: 25px;
  width: max-content;

  animation:
    infiniteScroll 28s linear infinite;
}

/* CARD */

.web-card{
  position: relative;
  width: 320px;
  height: 430px;
  border-radius: 35px;
  overflow: hidden;
  flex-shrink: 0;

  transition:
    all 0.5s ease-in-out;
}

.web-card:hover{
  transform:
    translateY(-12px)
    scale(1.02);

  box-shadow:
    0 30px 70px rgba(255,0,0,0.15);
}

.web-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition:
    transform 0.8s ease-in-out;
}

.web-card:hover img{
  transform: scale(1.08);
}

.overlay{
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.88),
      rgba(0,0,0,0.18)
    );
}

.card-content{
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  color: white;
}

.card-content span{
  display: inline-block;
  padding: 8px 16px;
  border-radius: 100px;

  background:
    rgba(255,255,255,0.14);

  backdrop-filter: blur(10px);

  font-size: 13px;
  margin-bottom: 15px;
}

.card-content h3{
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
}

/* =========================
   DESCRIPTION
========================= */

.web-description{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 25px;
}

.desc-card{
  padding: 35px;
  border-radius: 28px;
  background: white;
  border: 1px solid rgba(0,0,0,0.07);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.05);

  transition:
    all 0.5s ease-in-out;
}

.desc-card:hover{
  transform:
    translateY(-10px);

  border-color: rgba(255,0,0,0.2);

  box-shadow:
    0 25px 60px rgba(255,0,0,0.08);
}

.desc-icon{
  width: 70px;
  height: 70px;
  border-radius: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 30px;
  margin-bottom: 22px;

  background:
    linear-gradient(135deg,#ff1e1e,#8b0000);

  color: white;

  transition:
    all 0.5s ease-in-out;
}

.desc-card:hover .desc-icon{
  transform:
    rotate(8deg)
    scale(1.08);
}

.desc-card h3{
  font-size: 24px;
  margin-bottom: 12px;
  color: #111;
}

.desc-card p{
  color: #666;
  line-height: 1.8;
  font-size: 16px;
}

/* =========================
   INFINITE ANIMATION
========================= */

@keyframes infiniteScroll{

  from{
    transform: translateX(0);
  }

  to{
    transform: translateX(-50%);
  }

}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:992px){

  .web-description{
    grid-template-columns: 1fr;
  }

}

@media(max-width:768px){

  .web-dev-section{
    padding: 90px 18px;
  }

  .web-dev-top h2{
    font-size: 42px;
  }

  .web-dev-top p{
    font-size: 16px;
  }

  .carousel-track{
    gap: 18px;
  }

  .web-card{
    width: 260px;
    height: 360px;
    border-radius: 28px;
  }

  .card-content{
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .card-content h3{
    font-size: 24px;
  }

  .desc-card{
    padding: 28px;
  }

}

@media(max-width:480px){

  .web-card{
    width: 220px;
    height: 320px;
  }

  .card-content h3{
    font-size: 20px;
  }

  .desc-icon{
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

}

/* CARD LINK FIX */

.web-card{
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}