/* ============================================
   SERVICES.CSS - Services Section Styles
   ============================================ */

/* ===== Section Container ===== */
.services-section {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.services-background-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.services-section .container {
  position: relative;
  z-index: 1;
}

.services-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.services-subtitle {
  font-size: 1.2rem;
  color: #aaa;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ===== Services Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

.service-card {
  background: rgba(26, 26, 26, 0.8);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  opacity: 0;
  transform: translateY(60px) scale(0.9);
  backdrop-filter: blur(10px);
  transition: opacity 0.6s ease, transform 0.6s ease,
    box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 0;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 25px 50px rgba(102, 126, 234, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

/* ===== Service Image ===== */
.service-image-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: #1a1a1a;
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s;
  transform: scale(1.1);
  filter: brightness(0.7) contrast(1.1);
}

.service-card:hover .service-image {
  transform: scale(1.2) rotate(2deg);
  filter: brightness(1) contrast(1.2);
}

.service-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  transition: opacity 0.5s;
  z-index: 1;
}

.service-card:hover .service-image-overlay {
  opacity: 0.7;
}

/* ===== Service Badge ===== */
.service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-badge {
  transform: scale(1.1) rotate(360deg);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.service-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

/* ===== Service Content ===== */
.service-content {
  padding: 2.5rem;
  position: relative;
  z-index: 1;
}

.service-category {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.service-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
}

.service-content p {
  color: #bbb;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* ===== Service Features ===== */
.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.0rem;
}

.feature-tag {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.85rem;
  color: #ccc;
  transition: all 0.3s;
}

.service-card:hover .feature-tag {
  background: rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Service Link ===== */
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 0.8rem 1.5rem;
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 30px;
  overflow: hidden;
}

.service-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: left 0.4s;
  z-index: -1;
}

.service-link:hover {
  color: #fff;
  border-color: transparent;
  transform: translateX(5px);
}

.service-link:hover::before {
  left: 0;
}

.service-link svg {
  transition: transform 0.4s;
}

.service-link:hover svg {
  transform: translateX(5px);
}

/* ===== Animation States (Added by JavaScript) ===== */
.services-title.is-visible,
.services-subtitle.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .services-section {
    padding: 4rem 0;
  }

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

  .service-image-wrapper {
    height: 250px;
  }

  .service-content {
    padding: 2rem;
  }

  .service-content h3 {
    font-size: 1.5rem;
  }
}
