/* Home page styling */

:root {
  --brand-blue: #2563eb;
  --brand-green: #22c55e;
  --brand-purple: #9333ea;
}

html,
body {
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
}

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

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

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

.animate-fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-left {
  animation: slideLeft 0.8s ease-out forwards;
}

.animate-pulse-slow {
  animation: pulse 3s infinite;
}

.service-card {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s;
}

.service-card:hover::before {
  left: 100%;
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  position: relative;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.6)
  );
  border-radius: 1rem;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
  animation: fadeInUp 0.3s ease-out;
}

.modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 0;
  border-radius: 24px;
  width: min(95vw, 650px);
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 30px 70px -12px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem;
  color: white;
}

.modal-body {
  padding: 2rem;
  max-height: calc(90vh - 150px);
  overflow-y: auto;
}

#page-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: 1100;
  transition: opacity 0.5s ease;
}

#page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #2563eb, #9333ea);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

#home {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 80vh;
  background-image: linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.9),
      rgba(147, 51, 234, 0.85)
    ),
    url("https://www.laundrylite.com/public/web-assets/images/hotel-linen-laundry-service.jpg");
}

#scroll-top,
#whatsapp-btn {
  position: fixed;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: white;
  border: none;
  cursor: pointer;
  z-index: 999;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#scroll-top {
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  opacity: 0;
  transform: translateY(100px);
  box-shadow: 0 10px 30px -5px rgba(102, 126, 234, 0.6);
}

#scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}

#scroll-top:hover {
  transform: translateY(-5px) scale(1.1);
}

#whatsapp-btn {
  bottom: 110px;
  right: 30px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 10px 30px -5px rgba(37, 211, 102, 0.6);
  animation: pulse 2s infinite;
}

#whatsapp-btn:hover {
  transform: translateY(-5px) scale(1.1);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slider-container {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider-item {
  min-width: 100%;
  transition: opacity 0.5s;
}

.star-rating {
  color: #fbbf24;
}

.reviews-container {
  overflow: hidden;
  position: relative;
}

.reviews-container .grid {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}
/* Hero Section with Background Image Slider */
.hero-section {
  position: relative;
  min-height: 80vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  animation: fadeInUp 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.9),
    rgba(147, 51, 234, 0.85)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.floating-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(3xl);
  opacity: 0.15;
  animation: pulse 3s infinite;
  z-index: 2;
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
}

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

.hero-dot.active {
  background: white;
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .header-logo {
    height: 40px;
  }

  .hero-section {
    min-height: 60vh;
  }
}

/* Reviews marquee - CSS only auto scroll, pause on hover */
.reviews-marquee {
  overflow: hidden;
  position: relative;
}
.reviews-track {
  display: inline-flex;
  align-items: stretch;
  gap: 2rem;
  will-change: transform;
  animation: reviews-scroll 25s linear infinite;
}
.reviews-marquee:hover .reviews-track {
  animation-play-state: paused;
}
@keyframes reviews-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.review-slide {
  flex: 0 0 calc(33.333% - 2rem);
  margin: 0 1rem;
  transition: transform 0.3s ease;
}

.review-slide:hover {
  transform: scale(1.02);
}

.header-logo {
  height: 50px;
  width: auto;
}
.floating-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(3xl);
  opacity: 0.15;
  animation: pulse 3s infinite;
  z-index: 2;
}
.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 1rem;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #2563eb, #9333ea);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.footer-link {
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
}

.footer-link:hover {
  color: white;
  padding-left: 10px;
}

.footer-link:hover i {
  color: #22c55e;
}

@media (max-width: 768px) {
  .stat-number {
    font-size: 2.5rem;
  }
  .service-image {
    height: 180px;
  }
  .header-logo {
    height: 40px;
  }
}
