.services {
    padding: 50px;
    background-color: #f5f5f5;
    text-align: center;
}

.services h1 {
    font-size: 48px;
    color: #333;
    margin-bottom: 40px;
}

.service-items {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.service-item {
    width: 30%;
    background-color: #fff;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    text-align: left;
    cursor: pointer;
}
.service-item:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.service-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 16px;
    color: #666;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    overflow-y: auto;
    padding: 60px 20px;
}

.modal-content {
    background-color: #fff;
    color: #333;
    max-width: 800px;
    margin: auto;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 20px;
}

.modal-content ul {
    padding-left: 20px;
    margin: 15px 0;
}

.modal-content ul li {
    margin-bottom: 10px;
    list-style-type: disc;
}

.modal-content p {
    margin-bottom: 15px;
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    color: #888;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #F20505;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(20px);}
    to {opacity: 1; transform: translateY(0);}
}

@media (max-width: 768px) {

    .modal {
        z-index: 1002;
      }

    .modal-content {
      width: 95%;
      padding: 20px;
    }
  
    .modal-content h2 {
      font-size: 24px;
    }
    
    .service-items {
      flex-direction: column;
      gap: 20px;
      align-items: center;
    }
  
    .service-item {
      width: 90%;
    }
  
    .service-item img {
      margin: 0 auto 15px;
    }
  
    .service-item h3 {
      font-size: 20px;
    }
  
    .service-item p {
      font-size: 14px;
    }
  }