/* ================================================================
   HOME SECTION - Landing & Services Styles
   ================================================================ */

/* ===== Container ===== */
.home-container {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

/* ===== HERO SECTION ===== */
.home-hero {
  position: relative;
  overflow: hidden;
  height: 100vh;
  min-height: 600px;
  background: #f1f5f9;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 600px;
  padding: 40px;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  margin-bottom: 40px;
  opacity: 0.95;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 14px 40px;
  font-size: 1.1rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-outline-light {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-outline-light:hover {
  background: white;
  color: #667eea;
  transform: translateY(-2px);
}

.carousel-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  font-size: 60px;
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-icon:nth-child(2) {
  top: 60%;
  right: 10%;
  animation-delay: 1s;
}

.floating-icon:nth-child(3) {
  bottom: 15%;
  left: 15%;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(10deg);
  }
}

/* ===== Carousel Controls ===== */
.carousel-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 30px;
  background: rgba(255, 255, 255, 0.2);
  padding: 15px 30px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

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

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: white;
  width: 32px;
  border-radius: 6px;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.autoplay-indicator {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #4caf50;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

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

/* ===== STATS SECTION ===== */
.home-stats {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.home-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px 20px;
  border-radius: 16px;
  text-align: center;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.stat-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ===== SERVICES SECTION ===== */
.home-services,
.home-features,
.home-testimonials {
  padding: 80px 20px;
  background: white;
}

.home-features {
  background: #f8fafc;
}

.home-testimonials {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
  transform: translateY(-8px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 15px;
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}

.service-card:nth-child(2) .service-icon {
  animation-delay: 0.2s;
}

.service-card:nth-child(3) .service-icon {
  animation-delay: 0.4s;
}

.service-card:nth-child(4) .service-icon {
  animation-delay: 0.6s;
}

.service-card:nth-child(5) .service-icon {
  animation-delay: 0.8s;
}

.service-card:nth-child(6) .service-icon {
  animation-delay: 1s;
}

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

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #1e293b;
}

.service-card p {
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-features li {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ===== FEATURES SECTION ===== */
.features-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.feature-item {
  display: flex;
  gap: 20px;
  opacity: 0;
  animation: slideInUp 0.6s ease forwards;
}

.feature-item:nth-child(odd) {
  animation-name: slideInLeft;
}

.feature-item:nth-child(even) {
  animation-name: slideInRight;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }
.feature-item:nth-child(5) { animation-delay: 0.5s; }
.feature-item:nth-child(6) { animation-delay: 0.6s; }

.feature-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
}

.feature-content h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #1e293b;
}

.feature-content p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: slideUpCard 0.6s ease forwards;
}

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

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }

.testimonial-stars {
  color: #fbbf24;
  font-size: 1.2rem;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.testimonial-text {
  color: #334155;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.author-name {
  font-weight: 600;
  color: #1e293b;
}

.author-role {
  font-size: 0.85rem;
  color: #64748b;
}

/* ===== CTA SECTION ===== */
.home-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: floatBg 8s ease-in-out infinite;
}

.home-cta::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  animation: floatBg 10s ease-in-out infinite reverse;
}

@keyframes floatBg {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, 30px);
  }
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  color: white;
}

.home-cta h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.home-cta p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.btn-outline:hover {
  background: white;
  color: #667eea;
}

/* ===== Animations ===== */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fade-in 0.6s ease forwards;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  opacity: 0;
  animation: slide-up 0.6s ease forwards;
}

@keyframes hover-lift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8px);
  }
}

.hover-lift {
  transition: all 0.3s ease;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .home-hero {
    min-height: 500px;
  }

  .carousel-controls {
    bottom: 20px;
    gap: 15px;
    padding: 10px 20px;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .dot.active {
    width: 28px;
  }

  .autoplay-indicator {
    top: 15px;
    right: 15px;
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

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

  .hero-actions {
    gap: 10px;
  }

  .btn-lg {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .services-grid,
  .testimonials-grid,
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .features-list {
    gap: 30px;
  }

  .feature-item {
    gap: 15px;
  }

  .home-services,
  .home-features,
  .home-testimonials,
  .home-cta {
    padding: 50px 20px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .service-card,
  .testimonial-card {
    padding: 20px;
  }

  .service-icon {
    font-size: 40px;
  }

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

  .floating-icon {
    font-size: 40px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-lg {
    width: 100%;
  }

  .carousel-content {
    padding: 20px;
  }

  .carousel-controls {
    flex-direction: column;
    gap: 10px;
    bottom: 15px;
  }

  .carousel-dots {
    order: 2;
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
  }

  .feature-number {
    margin: 0 auto;
  }
}
