: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;
}

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

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

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

/* HERO SECTION */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 60px;
  width: 100%;
}

.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.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 25px;
  font-weight: 800;
  word-wrap: break-word;
}

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

.hero-content p {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 600px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.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-primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
}

.hero-features {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.feature-item span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
}

.hero-image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
  z-index: 1;
}

.hero-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating Cards */
.floating-card {
  position: absolute;
  background: rgba(26, 31, 58, 0.9);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.floating-card-1 {
  top: 10%;
  right: -50px;
  animation-delay: 0s;
}

.floating-card-2 {
  bottom: 15%;
  left: -50px;
  animation-delay: 1s;
}

.floating-card h4 {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.floating-card p {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

/* STATS SECTION */
.stats {
  background: var(--secondary);
  border-radius: 20px;
  padding: 20px 80px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(99, 102, 241, 0.2);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
  width: 100%;
}

.stat-item {
  padding: 20px;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-10px);
}

.stat-item h3 {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.stat-item p {
  color: var(--muted);
  font-size: 1rem;
}

/* SERVICES SECTION */
.services {
  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(300px, 1fr));
  gap: 30px;
  width: 100%;
}

/* Service Slideshow */
.services-slideshow {
  display: none;
  position: relative;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
}

.service-slide {
  display: none;
  width: 100%;
}

.service-slide.active {
  display: block;
  animation: slideIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.slideshow-dots {
  text-align: center;
  margin-top: 30px;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.5;
  flex-shrink: 0;
}

.dot.active {
  background: var(--accent);
  opacity: 1;
  transform: scale(1.4);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}

.dot:hover {
  opacity: 0.8;
  transform: scale(1.2);
}

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

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3);
}

.service-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.service-card:hover .service-image {
  transform: scale(1.1);
}

.service-content {
  padding: 30px;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--light);
}

.service-content p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

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

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

/* PROCESS SECTION */
.process {
  background: var(--dark);
  position: relative;
}

.process-timeline {
  position: relative;
  padding: 40px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), rgba(99, 102, 241, 0.2));
}

.process-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
  position: relative;
}

.process-step:nth-child(even) .step-content {
  order: 2;
}

.process-step:nth-child(even) .step-visual {
  order: 1;
}

.step-number {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
  z-index: 2;
}

.step-content {
  padding: 40px;
  background: var(--secondary);
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.step-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--accent);
}

.step-content p {
  color: var(--muted);
  line-height: 1.8;
}

.step-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  width: 120px;
  height: 120px;
  background: var(--gradient-accent);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

/* INDUSTRIES SECTION */
.industries {
  background: var(--secondary);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.industry-item {
  background: var(--primary);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 30px;
}

.industry-item:hover {
  transform: translateX(10px);
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.05);
}

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

.industry-item h4 {
  font-size: 1.1rem;
  color: var(--light);
}

/* TESTIMONIALS SECTION */
.testimonials {
  background: var(--dark);
}

.testimonials-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  width: 100%;
}

/* Testimonials Slideshow */
.testimonials-slideshow {
  display: block;
  position: relative;
  max-width: 100%;
  width: 100%;
  overflow: visible;
}

.testimonial-slide {
  display: none;
  width: 100%;
}

.testimonial-slide.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  animation: fadeSlide 0.6s ease;
}

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

.testimonial-card {
  background: var(--secondary);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
  position: relative;
  width: 100%;
  max-width: 100%;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 6rem;
  color: var(--accent);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

.testimonial-text {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 25px;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.author-info h5 {
  color: var(--light);
  margin-bottom: 3px;
}

.author-info p {
  color: var(--accent);
  font-size: 0.9rem;
}

.rating {
  color: #fbbf24;
  margin-top: 15px;
}

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

.cta-box {
  background: var(--gradient-accent);
  padding: 20px 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: 2rem;
  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-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;
}

/* MOBILE RESPONSIVE */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .process-step {
    grid-template-columns: 1fr;
  }

  .process-step:nth-child(even) .step-content,
  .process-step:nth-child(even) .step-visual {
    order: unset;
  }

  .timeline-line {
    display: none;
  }

  .step-number {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    margin-bottom: 20px;
  }

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

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

  .hero {
    min-height: auto;
    padding-top: 40px;
  }

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

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

  .stats {
    padding: 40px 30px;
    margin-top: -40px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .stat-item h3 {
    font-size: 2.2rem;
  }

  .services-grid {
    display: none;
  }

  .services-slideshow {
    display: block;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .testimonials-grid {
    display: none;
  }

  .testimonials-slideshow {
    display: block;
  }

  .testimonial-slide.active {
    display: block;
    grid-template-columns: 1fr;
  }

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

  .cta-box h2 {
    font-size: 2rem;
  }

  .cta-box p {
    font-size: 1rem;
  }

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

  .floating-card-1,
  .floating-card-2 {
    display: none;
  }

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

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

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

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

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

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