:root {
  --primary: #0a0e27;
  --secondary: #1a1f3a;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dark: #4f46e5;
  --success: #10b981;
  --light: #f8fafc;
  --muted: #94a3b8;
  --dark: #020617;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #6366f1, #8b5cf6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--primary);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  width: 100%;
}

section {
  padding: 100px 0;
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* HERO SECTION */
.services-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.services-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
  z-index: 0;
}

.services-hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.services-hero-content h1 {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 25px;
  font-weight: 800;
}

.services-hero-content p {
  font-size: 1.3rem;
  color: var(--muted);
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  margin-top: 30px;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  color: var(--accent);
}

/* SERVICES FILTER */
.services-filter {
  background: var(--secondary);
  padding: 30px 0;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 12px 30px;
  background: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--gradient-accent);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* SERVICES GRID */
.services-section {
  background: var(--primary);
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-header h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 35px;
  margin-bottom: 60px;
}

.service-card {
  background: var(--secondary);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.4s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-15px);
  border-color: var(--accent);
  box-shadow: 0 25px 60px rgba(99, 102, 241, 0.35);
}

.service-header {
  padding: 40px 30px 30px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  position: relative;
  overflow: hidden;
}

.service-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-header h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.service-header p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.service-body {
  padding: 30px;
}

.service-features {
  list-style: none;
  margin-bottom: 25px;
}

.service-features li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-features li:last-child {
  border-bottom: none;
}

.service-features li i {
  color: var(--accent);
  font-size: 1rem;
}

.service-footer {
  padding: 0 30px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-link {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
  text-decoration: none;
}

.service-card:hover .service-link {
  gap: 15px;
}

.service-tag {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* DETAILED SERVICE SECTIONS */
.service-detail {
  background: var(--dark);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.detail-grid:nth-child(even) .detail-content {
  order: 2;
}

.detail-grid:nth-child(even) .detail-visual {
  order: 1;
}

.detail-visual {
  position: relative;
}

.detail-image {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease;
}

.detail-grid:hover .detail-image {
  transform: scale(1.05);
}

.detail-content h3 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.detail-content p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 25px;
}

.detail-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: var(--secondary);
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  border-color: var(--accent);
  transform: translateX(5px);
}

.benefit-item i {
  color: var(--accent);
  font-size: 1.2rem;
}

.benefit-item span {
  color: var(--light);
  font-size: 0.9rem;
}

/* CTA */
.cta-section {
  background: var(--primary);
  padding: 100px 0;
}

.cta-box {
  background: var(--gradient-accent);
  padding: 80px 60px;
  border-radius: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-box h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.cta-box p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn {
  padding: 16px 40px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border: none;
}

.btn-white {
  background: white;
  color: var(--accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline-white:hover {
  background: white;
  color: var(--accent);
}

/* FOOTER */
footer {
  background: var(--dark);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-about h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-about p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 25px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--secondary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all 0.3s ease;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.footer-social a:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
}

.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--light);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links ul li a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  color: var(--muted);
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid:nth-child(even) .detail-content {
    order: unset;
  }

  .detail-grid:nth-child(even) .detail-visual {
    order: unset;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .services-hero-content h1 {
    font-size: 2.5rem;
  }

  .services-hero-content p {
    font-size: 1.1rem;
  }

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

  .cta-box {
    padding: 60px 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .services-hero-content h1 {
    font-size: 2rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .filter-tabs {
    gap: 10px;
  }

  .filter-tab {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
