/* ============================================
   HAFA Technical Services — Home Page Styles
   ============================================ */

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 75px;
}

#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 0%, var(--bg-primary) 75%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--gold-muted);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--gold-light);
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge i {
  font-size: 0.75rem;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-title .typing-text {
  display: inline;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: var(--gold-primary);
  margin-left: 4px;
  animation: blink 1s infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

.hero-buttons .btn i {
  font-size: 1rem;
}

/* Floating appliance icons in hero */
.hero-floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-float-icon {
  position: absolute;
  font-size: 2rem;
  color: var(--gold-muted);
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
}

.hero-float-icon:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s; font-size: 2.5rem; }
.hero-float-icon:nth-child(2) { top: 25%; right: 10%; animation-delay: 1s; font-size: 1.8rem; }
.hero-float-icon:nth-child(3) { bottom: 30%; left: 12%; animation-delay: 2s; font-size: 2.2rem; }
.hero-float-icon:nth-child(4) { bottom: 20%; right: 8%; animation-delay: 0.5s; font-size: 2rem; }
.hero-float-icon:nth-child(5) { top: 40%; left: 5%; animation-delay: 1.5s; font-size: 1.6rem; }
.hero-float-icon:nth-child(6) { top: 35%; right: 5%; animation-delay: 2.5s; font-size: 1.9rem; }

/* Hero gradient mesh blobs */
.hero-blob {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(100px);
  opacity: 0.08;
  z-index: 1;
  pointer-events: none;
}

.hero-blob.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--gold-primary);
  top: -15%;
  right: -10%;
}

.hero-blob.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--gold-dark);
  bottom: -10%;
  left: -10%;
}

/* ============================================
   Services Overview Section
   ============================================ */
.services-overview {
  background: var(--bg-secondary);
  position: relative;
}

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

.service-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
}

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

.service-card-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  background: var(--gold-muted);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  color: var(--gold-primary);
  transition: all var(--transition-normal);
}

.service-card:hover .service-card-icon {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  transform: scale(1.05) rotateZ(5deg);
  border-color: transparent;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.services-cta {
  text-align: center;
}

/* ============================================
   Why Choose Us Section
   ============================================ */
.why-choose {
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  transition: all var(--transition-normal);
}

.stat-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--gold-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.3rem;
  color: var(--gold-primary);
  transition: all var(--transition-normal);
}

.stat-card:hover .stat-icon {
  background: var(--gold-gradient);
  color: var(--bg-primary);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
  background: var(--bg-secondary);
  position: relative;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  padding-top: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--border-glass);
}

.timeline-step {
  text-align: center;
  position: relative;
}

.timeline-number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 2px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold-primary);
  position: relative;
  z-index: 2;
  transition: all var(--transition-normal);
}

.timeline-step:hover .timeline-number {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  border-color: transparent;
  box-shadow: var(--gold-glow-strong);
}

.timeline-step-icon {
  font-size: 1.8rem;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

.timeline-step h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.timeline-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 200px;
  margin: 0 auto;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials {
  position: relative;
  overflow: hidden;
}

.testimonials-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card {
  min-width: 100%;
  padding: 0 20px;
}

.testimonial-inner {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  position: relative;
}

.testimonial-quote {
  font-size: 3rem;
  color: var(--gold-muted);
  position: absolute;
  top: 16px;
  left: 24px;
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.5;
}

.testimonial-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-stars i {
  color: var(--gold-primary);
  font-size: 1rem;
}

.testimonial-text {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gold-light);
  font-size: 1rem;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  transition: all var(--transition-normal);
}

.carousel-btn:hover {
  background: var(--gold-muted);
  border-color: var(--gold-primary);
  transform: scale(1.05);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border-glass);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.carousel-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--gold-gradient);
}

/* ============================================
   CTA Banner Section
   ============================================ */
.cta-banner {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.cta-inner {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--gold-muted) 0%, transparent 60%);
  opacity: 0.3;
  pointer-events: none;
}

.cta-inner h2 {
  margin-bottom: 14px;
  position: relative;
}

.cta-inner p {
  font-size: 1.1rem;
  margin-bottom: 28px;
  color: var(--text-light);
  position: relative;
}

.cta-inner .btn {
  position: relative;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 16px;
}

.cta-phone i {
  -webkit-text-fill-color: var(--gold-primary);
}

/* ============================================
   Responsive — Home
   ============================================ */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .timeline::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-float-icon {
    display: none;
  }

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

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

  .stat-card {
    padding: 28px 16px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 0;
  }

  .testimonial-inner {
    padding: 28px 20px;
  }

  .cta-inner {
    padding: 40px 24px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

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