/* res/css/services.css */

/* Services Section */
.services {
  min-height: 100vh;
  padding: 2rem 0;
  background-color: var(--secondry-bg-color);
}

.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(--primary-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(--primary-bg-color);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
  border-color: var(--border-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: 54px;
  height: 54px;
  background: var(--secondry-bg-color);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--main-color);
  border: 1px solid var(--border-color);
}

.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.25rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.service-description {
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

/* 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(--secondry-bg-color);
  color: var(--text-color);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  border: 1px solid transparent;
  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.45rem 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
}

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

/* Service Details */
.service-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--secondry-bg-color);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
}

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

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

.detail-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.detail-value {
  font-size: 0.8rem;
  color: var(--text-color);
  font-weight: 600;
}

.price-highlight {
  background: var(--main-color-alpha10);
  border: 1px solid var(--main-color-alpha50);
}

.price-highlight .detail-value,
.price-highlight .detail-label,
.price-highlight i {
  color: var(--main-color);
}

/* 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 ;
  }
}