/* =========================================
   Home Page Specific Styles
   ========================================= */

/* Hero Section */
.hero {
  min-height: 100vh;
  background-color: var(--primary-color);
  background: radial-gradient(circle at center, #015bd6 0%, var(--primary-color) 70%);
  display: flex; align-items: center; justify-content: center; text-align: left;
  padding: 100px 0 20px;
}
.hero-content { color: var(--text-light); max-width: 1280px; width: 100%; padding: 0 var(--spacing-container); }
.hero-content h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; margin-bottom: 20px; max-width: 800px; }
.hero-content p { font-size: clamp(1.1rem, 2.5vw, 1.25rem); margin-bottom: 40px; opacity: 0.9; max-width: 600px; }

/* Services Section */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.service-card {
  padding: 40px; border-radius: var(--radius-card); text-align: center;
  border: 1px solid #eee; background: var(--bg-white);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.icon-placeholder img { width: 80px; height: 80px; margin: 0 auto 25px; border-radius: 20px; }
.service-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 15px; }
.service-card p { color: #666; }

/* About Section */
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text h2 { font-size: clamp(2.5rem, 5vw, 3rem); font-weight: 800; color: var(--primary-color); margin-bottom: 25px; }
.about-text p { font-size: 1.125rem; color: #444; margin-bottom: 20px; }
.about-image img { width: 100%; height: auto; }

/* Gallery Preview Section */
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.gallery-item { position: relative; border-radius: 12px; overflow: hidden; height: auto; cursor: pointer; }
.gallery-item img { width: 100%; height: auto; display: block; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* Media Queries for Home */
@media (max-width: 1024px) {
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2-col { gap: 40px; }
}

@media (max-width: 768px) {
  .grid-2-col { grid-template-columns: 1fr; }
  .about-image { order: -1; }
}

@media (max-width: 480px) {
  .preview-grid, .services-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
}

/* =========================================
   Clients Marquee Section
   ========================================= */
.clients-section {
  background-color: var(--bg-light); /* Or #F8F8F8 to match the image precisely */
}

.marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 20px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: clamp(40px, 8vw, 100px);
  width: max-content;
  animation: scrollMarqueeStraight 20s linear infinite;
  padding-right: 20px; /* Optional end padding for cleanliness */
}

.marquee-steady {
  display: flex;
  justify-content: center;
  width: 100%;
}
.marquee-steady .marquee-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(40px, 8vw, 100px);
  width: 100%;
  padding-right: 0;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.client-card {
  width: 250px;
  height: 120px;
  background: var(--bg-white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  flex-shrink: 0;
}

.client-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@keyframes scrollMarqueeStraight {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* =========================================
   Reviews Marquee Section
   ========================================= */
.reviews-section {
  background-color: var(--primary-color, #015bd6); 
  padding: 60px 0;
  overflow: hidden;
}

.reviews-title {
  color: #ff7f2a; 
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 40px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.reviews-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 90%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 10px 0 30px;
  display: flex;
}

.reviews-marquee-track {
  display: flex;
  width: max-content;
  /* 7 items * 3s (2s pause + 1s move) = 21s total */
  animation: scrollReviewsStepwise 23s ease-in-out infinite; 
}

.reviews-marquee-steady .reviews-marquee-track {
  animation: none !important;
  justify-content: center;
  width: 100%;
}

.reviews-marquee-group {
  display: flex;
  gap: 20px;
  padding-right: 20px; 
}

.reviews-marquee-steady .reviews-marquee-group {
  justify-content: center;
  flex-wrap: wrap;
  padding-right: 0;
}

.reviews-marquee-track:hover {
  animation-play-state: paused;
}

.review-card {
  width: 340px;
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.review-author {
  font-weight: 700;
  color: #111;
  margin-bottom: 15px;
  font-size: 1.15rem;
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 25px;
  flex-grow: 1; 
}

.review-divider {
  width: 100%;
  height: 1px;
  background-color: #d1dfed; 
  margin-bottom: 15px;
}

.review-stars {
  color: #015bd6;
  font-size: 1.3rem;
  text-align: right;
  letter-spacing: 2px;
}

@keyframes scrollReviewsStepwise {
  0%, 12% { transform: translateX(0); }
  14.28%, 26.28% { transform: translateX(-360px); }
  28.57%, 40.57% { transform: translateX(-720px); }
  42.85%, 54.85% { transform: translateX(-1080px); }
  57.14%, 69.14% { transform: translateX(-1440px); }
  71.43%, 83.43% { transform: translateX(-1800px); }
  85.71%, 97.71% { transform: translateX(-2160px); }
  100% { transform: translateX(-2520px); }
}
