/* SERVICES PAGE STYLES - All classes prefixed with 'services-' */
.services-main {
  padding-top: 70px;
  min-height: 100vh;
  background: var(--dark);
}

/* Header Section */
.services-header-section {
  text-align: center;
  padding: 80px 20px 40px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.services-header-title {
  font-size: clamp(42px, 7vw, 64px);
  margin-bottom: 20px;
  color: var(--text);
}

.services-header-title span {
  color: var(--orange);
  position: relative;
  display: inline-block;
}

.services-header-title span::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(255, 107, 53, 0.2);
  z-index: -1;
}

.services-header-subtitle {
  color: var(--light);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Services Grid */
.services-overview {
  max-width: 1400px;
  margin: 60px auto;
  padding: 0 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* Service Cards - Flip Animation */
.service-card {
  background: transparent;
  height: 320px;
  perspective: 1500px;
  cursor: pointer;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front, .service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 30px;
  padding: 30px;
  box-sizing: border-box;
  background: var(--dark2);
  border: 1px solid rgba(255, 107, 53, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.service-card-front {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--dark2), var(--dark));
}

.service-card-back {
  background: linear-gradient(135deg, var(--orange), #ff8c5a);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  color: white;
}

.service-icon {
  font-size: 48px;
  margin-bottom: 20px;
  background: rgba(255, 107, 53, 0.1);
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--orange);
}

.service-title {
  font-size: 24px;
  color: var(--text);
  margin-bottom: 10px;
}

.service-brief {
  color: var(--light);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}

.service-expand-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--orange);
  font-size: 12px;
  margin-top: 20px;
}

.service-back-title {
  font-size: 18px;
  margin-bottom: 15px;
  color: white;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex: 1;
}

.service-features li {
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.service-inquire {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
}

/* Showcase Section */
.services-showcase {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.services-showcase-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: var(--text);
}

.services-showcase-title span {
  color: var(--orange);
}

.showcase-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.showcase-tab {
  padding: 12px 30px;
  background: transparent;
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 50px;
  color: var(--light);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.showcase-tab:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.showcase-tab.active {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

.showcase-content {
  background: var(--dark2);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 30px;
  padding: 40px;
}

.showcase-panel {
  display: none;
}

.showcase-panel.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.process-step {
  text-align: center;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: white;
  margin: 0 auto 20px;
}

.step-content h4 {
  color: var(--text);
  margin-bottom: 10px;
  font-size: 18px;
}

.step-content p {
  color: var(--light);
  font-size: 14px;
  line-height: 1.6;
}

/* Technology Stack */
.services-tech {
  max-width: 1400px;
  margin: 80px auto;
  padding: 0 20px;
}

.services-tech-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: var(--text);
}

.services-tech-title span {
  color: var(--orange);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.tech-category {
  background: var(--dark2);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 20px;
  padding: 25px;
}

.tech-category h4 {
  color: var(--orange);
  margin-bottom: 20px;
  font-size: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-item {
  padding: 6px 12px;
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 20px;
  color: var(--text);
  font-size: 12px;
}

/* Case Studies */
.services-case-studies {
  max-width: 1400px;
  margin: 80px auto;
  padding: 0 20px;
}

.services-case-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: var(--text);
}

.services-case-title span {
  color: var(--orange);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.case-card {
  background: var(--dark2);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.case-card:hover {
  transform: translateY(-5px);
  border-color: var(--orange);
  box-shadow: 0 15px 30px rgba(255, 107, 53, 0.2);
}

.case-image {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-icon {
  font-size: 48px;
}

.case-content {
  padding: 25px;
}

.case-content h4 {
  color: var(--text);
  margin-bottom: 10px;
  font-size: 18px;
}

.case-content p {
  color: var(--light);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.case-link {
  color: var(--orange);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* CTA Section */
.services-cta {
  background: linear-gradient(135deg, var(--dark2), var(--dark));
  border-top: 1px solid rgba(255, 107, 53, 0.2);
  border-bottom: 1px solid rgba(255, 107, 53, 0.2);
  padding: 80px 20px;
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: 36px;
  color: var(--text);
  margin-bottom: 15px;
}

.cta-text {
  color: var(--light);
  font-size: 18px;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.cta-btn {
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-btn.primary {
  background: var(--orange);
  color: white;
}

.cta-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.cta-btn.secondary {
  border: 2px solid var(--orange);
  color: var(--orange);
}

.cta-btn.secondary:hover {
  background: var(--orange);
  color: white;
}

/* Responsive */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-header-title {
    font-size: 36px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
  }
  
  .case-grid {
    grid-template-columns: 1fr;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .showcase-tabs {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .service-card {
    height: 350px;
  }
  
  .service-card-front, .service-card-back {
    padding: 20px;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 36px;
  }
  
  .service-title {
    font-size: 20px;
  }
}