/* services.css */

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  font-family: Arial, sans-serif;
  background: #f5f7fa;
}

.services-section{

}

.section-title{
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2{
  font-size: 42px;
  color: #0f172a;
  margin-bottom: 15px;
}

.section-title p{
  max-width: 700px;
  margin: auto;
  color: #64748b;
  line-height: 1.7;
}

.services-container{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0px;
}

.service-card{
  position: relative;
  height: 420px;
  /* border-radius: 20px; */
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease;
  background-size: cover;
  background-position: center;
}

.service-card:hover{
  transform: translateY(-10px);
}

/* Background Images */

.service-card:nth-child(1){
  background-image: url('https://images.unsplash.com/photo-1556740749-887f6717d7e4');
}

.service-card:nth-child(2){
  background-image: url('https://images.unsplash.com/photo-1578575437130-527eed3abbec');
}

.service-card:nth-child(3){
  background-image: url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05');
}

.service-card:nth-child(4){
  background-image: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d');
}

.overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.2)
  );
  transition: 0.4s ease;
}

.service-card:hover .overlay{
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85),
    rgba(0,0,0,0.35)
  );
}

.service-content{
  position: absolute;
  bottom: 30px;
  left: 25px;
  right: 25px;
  color: white;
  z-index: 2;
  transform: translateY(20px);
  transition: 0.4s ease;
}

.service-card:hover .service-content{
  transform: translateY(0);
}

.service-content i{
  font-size: 34px;
  margin-bottom: 18px;
}

.service-content h3{
  font-size: 28px;
  margin-bottom: 12px;
}

.service-content p{
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}