/* res/css/services.css */

/* Services Section */
.services {
  min-height: 100vh;
  padding: 2rem 0;
}

.services-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* Services Tabs */
.services-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.service-tab {
  padding: 1rem 2rem;
  background: var(--secondry-bg-color);
  border: 2px solid transparent;
  border-radius: 50px;
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-tab i {
  font-size: 1.3rem;
  color: var(--main-color);
}

.service-tab:hover {
  transform: translateY(-3px);
  border-color: var(--main-color);
  box-shadow: 0 5px 20px var(--main-color-alpha50);
}

.service-tab.active {
  background: var(--main-color);
  color: var(--secondry-bg-color);
  border-color: var(--main-color);
  box-shadow: 0 8px 25px var(--main-color-alpha50);
}

.service-tab.active i {
  color: var(--secondry-bg-color);
}

/* Services Category Container */
.services-category {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  animation: fadeIn 0.5s ease;
}

.services-category.active {
  display: grid;
}

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

/* Service Card */
.service-card {
  background: var(--secondry-bg-color);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--main-color);
}

/* Service Card Header */
.service-card-header {
  padding: 2rem 2rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-alpha50) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--secondry-bg-color);
  box-shadow: 0 10px 30px var(--main-color-alpha50);
}

.service-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--main-color);
  color: var(--secondry-bg-color);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 var(--main-color-alpha50);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(8, 232, 222, 0);
  }
}

/* Service Card Body */
.service-card-body {
  padding: 0 2rem 1.5rem;
  flex-grow: 1;
}

.service-card-body h3 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.service-description {
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Topics/Features Section */
.service-topics,
.service-features {
  margin-bottom: 1.5rem;
}

.service-topics h4,
.service-features h4 {
  font-size: 1rem;
  color: var(--main-color);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-tag {
  background: var(--primary-bg-color);
  color: var(--text-color);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.topic-tag:hover {
  background: var(--main-color);
  color: var(--secondry-bg-color);
  transform: translateY(-2px);
}

.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  padding: 0.5rem 0;
  color: var(--text-color);
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.features-list li i {
  color: var(--main-color);
  font-size: 0.8rem;
}

/* Service Details */
.service-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  background: var(--primary-bg-color);
  border-radius: 15px;
  margin-top: 1.5rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.detail-item i {
  font-size: 1.5rem;
  color: var(--main-color);
}

.detail-item div {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.8rem;
  color: var(--text-color);
  opacity: 0.6;
  font-weight: 500;
}

.detail-value {
  font-size: 0.95rem;
  color: var(--text-color);
  font-weight: 600;
  margin-top: 0.2rem;
}

.price-highlight .detail-value {
  color: var(--main-color);
  font-size: 1.2rem;
}

/* Service Card Footer */
.service-card-footer {
  padding: 1.5rem;
}

.btn-enroll,
.btn-hire {
  padding: 1rem;
  background: var(--main-color);
  color: var(--secondry-bg-color);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-enroll:hover,
.btn-hire:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--main-color-alpha50);
  filter: brightness(1.1);
}

.btn-enroll i,
.btn-hire i {
  font-size: 1.1rem;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
  .services-category {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .services-content {
    padding: 1rem;
  }

  .services-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .service-tab {
    justify-content: center;
  }

  .services-category {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-details {
    grid-template-columns: 1fr;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .service-card-body h3 {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 480px) {
  .service-card-header {
    padding: 1.5rem 1.5rem 0.5rem;
  }

  .service-card-body {
    padding: 0 1.5rem 1rem;
  }

  .service-card-footer {
    padding: 1rem ;
  }
}