/* full_services.css */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #000;
  color: #fff;
}

.services-page {
  padding: 60px 20px;
  background-color: #111;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-title {
  font-size: 3rem;
  color: #6cff64;
  text-align: center;
  margin-bottom: 30px;
}

.service-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 20px rgba(108, 255, 100, 0.3);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.service-card h2 {
  color: #6cff64;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 12px;
  color: #ccc;
  margin-bottom: 20px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #6cff64;
  color: #000;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #4df34a;
}

/* Popup Overlay */
.service-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  perspective: 1000px;
}

.service-popup {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 20px;
  width: calc(100% - 60px);
  height: calc(100% - 60px);
  margin: 30px;
  position: relative;
  transform: rotateY(90deg);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.service-popup.show {
  transform: rotateY(0deg);
  opacity: 1;
}

.service-popup img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
  object-fit: cover;
  width: 100%;
  height: 40%;
}

.service-popup h2 {
  color: #6cff64;
  font-size: 1.2rem;
  margin-bottom: 10px;
  text-align: center;
}

.service-popup p {
  color: #ccc;
  font-size: 11px;
  line-height: 1.4;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: #6cff64 #1a1a1a;
  margin-bottom: 15px;
}

.service-popup p::-webkit-scrollbar {
  width: 6px;
}
.service-popup p::-webkit-scrollbar-track {
  background: #1a1a1a;
}
.service-popup p::-webkit-scrollbar-thumb {
  background-color: #6cff64;
  border-radius: 10px;
}

.service-popup .btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #6cff64;
  color: #000;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-top: auto;
}

.service-popup .btn:hover {
  background-color: #4df34a;
}

.close-popup {
  position: absolute;
  right: 20px;
  color: #fff;
  width:50px;
  border-radius:8px;
  font-size: 2rem;
  background-color:#2A2A2A ;
  cursor: pointer;
}

/* Responsive (Optional) */
@media (max-width: 768px) {
  .service-popup {
    padding: 15px;
  }

  .service-popup img {
    height: 150px;
  }

  .service-popup p {
    
  }

  .service-popup h2 {
    font-size: 1rem;
  }
}
