.service-tab-btn {
    color: #4F46E5;
  }
  
  .service-tab-btn.active {
    background: linear-gradient(to right, #4F46E5, #2563EB);
    color: white;
  }
  
  .service-panel {
    display: none;
  }
  
  .service-panel.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
  }
  

  /* Popup Styles */
.service-gallery-popup {
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.service-gallery-popup.active {
  opacity: 1;
  visibility: visible;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Animation for popup */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.popup-content {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Fullscreen Image View */
.fullscreen-image {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fullscreen-image.active {
  opacity: 1;
  visibility: visible;
}

.fullscreen-image img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

.fullscreen-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}
/* Popup Styles */
.service-gallery-popup {
  z-index: 9999;
  display: none;
}

.service-gallery-popup.active {
  display: block;
}

/* Tab styles */
.gallery-tab {
  position: relative;
  transition: all 0.3s ease;
}

.gallery-tab.active {
  opacity: 1;
}

.gallery-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, #ffcf66, #f9a94a, #dd7722);
}

.gallery-tab:hover {
  opacity: 1;
}

/* Gallery content */
.gallery-content {
  display: none;
}

.gallery-content.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: #2a2a2a;
}

.gallery-item img {
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Fullscreen Image view */
.fullscreen-image {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.fullscreen-image.active {
  opacity: 1;
  visibility: visible;
}

.fullscreen-image img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

.fullscreen-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Make scrollbar more stylish */
.overflow-y-auto::-webkit-scrollbar {
  width: 6px;
}

.overflow-y-auto::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background: #555;
}

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Responsive enhancements for touch devices */
@media (hover: none) {
  .gallery-item {
    transition: transform 0.2s ease;
  }
  
  .gallery-item:active {
    transform: scale(0.98);
  }
}

/* Better scrolling experience on mobile */
.overflow-y-auto {
  -webkit-overflow-scrolling: touch;
}

/* Optimize for small screens */
@media (max-width: 360px) {
  .gallery-tab {
    font-size: 0.75rem;
    padding-left: 8px;
    padding-right: 8px;
  }
}