/* services.css */

.services-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
  }
  
  .services-popup {
    background-color: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--secondary-color);
    border-radius: 15px;
    padding: 20px;
    max-width: 600px; /* Reduced from 800px */
    max-height: 80vh; /* Add this to limit height */
    width: 90%;
    position: relative;
    box-shadow: 0 0 20px var(--secondary-color);
    opacity: 0;
    transform: scale(0.8);
    overflow-y: auto; /* Add scrolling if content overflows */
}
  
  .services-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: var(--secondary-color);
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .services-close:hover {
    color: var(--primary-color);
  }
  
  .services-content h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--primary-color);
  }
  
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .service-card {
    background-color: rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
  }
  
  .service-card:hover {
    background-color: rgba(0, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    fill: var(--secondary-color);
  }
  
  .service-title {
    color: var(--secondary-color);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .service-description {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.4;
  }
  
  @media (max-width: 768px) {
    .services-popup {
      padding: 20px;
    }
    
    .services-content h2 {
      font-size: 24px;
    }
    
    .service-card {
      padding: 15px;
    }
    
    .service-icon {
      width: 40px;
      height: 40px;
    }
    
    .service-title {
      font-size: 16px;
    }
    
    .service-description {
      font-size: 12px;
    }
  }


  .service-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.service-card p {
    font-size: 14px;
    color: var(--text-color);
    margin-top: 10px;
}