/* --- Stats Ticker --- */
@import url("./hero.css");
.stats-bar {
  background: var(--dark);
  color: white;
  padding: 3rem 5%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.8rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.stat-item p {
  font-size: 1rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Features Grid --- */
.features {
  padding: 6rem 5%;
  background: var(--light);
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: -webkit-linear-gradient(#0f172a, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.section-header p {
  font-size: 1.1rem;
  color: #64748b;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease-out;
  border: 1px solid #e2e8f0;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.card::before {
  /* Animated border effect */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-15px) rotateZ(-1deg);
  box-shadow: 0 15px 40px -8px rgba(0, 102, 204, 0.25);
  border-color: transparent;
}

.card-icon {
  font-size: 2.8rem;
  margin-bottom: 1.8rem;
  background: #e0f2fe;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--primary);
  margin: 0 auto 1.8rem auto;
  position: relative;
  z-index: 1;
}

/* Specific Icon Animations (simulating Lottie) */
.icon-gear svg {
  width: 70%;
  height: 70%;
  animation: rotateGear 5s linear infinite;
}
@keyframes rotateGear {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.icon-flow svg {
  width: 70%;
  height: 70%;
  animation: flowWave 2s ease-in-out infinite alternate;
}
@keyframes flowWave {
  0% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(1.05);
  }
}

.icon-puzzle svg {
  width: 70%;
  height: 70%;
  animation: bouncePuzzle 2s ease-in-out infinite;
}
@keyframes bouncePuzzle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.icon-support svg {
  width: 70%;
  height: 70%;
  animation: pulseSupport 2s ease-in-out infinite;
}
@keyframes pulseSupport {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
/* --- Products Overview Section --- */
.products-overview {
  padding: 6rem 5%;
  background: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.product-card {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.product-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.product-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--dark);
}

.product-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.product-link:hover {
  text-decoration: underline;
}
/* --- Products Carousel Section (Updated Styles) --- */
.products-carousel-section {
  padding: 6rem 0;
  background: var(--light);
}

/* NEW: This container enables USER scrolling */
.carousel-container-user-scroll {
  overflow-x: scroll; /* Allows user to swipe/drag scroll */
  -webkit-overflow-scrolling: touch;
  padding: 0 5%;
  /* Hide scrollbar visually */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-container-user-scroll::-webkit-scrollbar {
  display: none;
}

.product-carousel-track {
  display: flex;
  gap: 2rem;
  padding-bottom: 20px;
  width: fit-content;
  /* REMOVE CSS animation keyframes here, JS will handle auto-scroll */
}

/* --- E-commerce Card Styling --- */
.product-carousel-track .ecommerce-card {
  min-width: 300px; /* Standard card size */
  max-width: 300px;
  height: auto;
  flex-shrink: 0;
  background: var(--white);
  padding: 0; /* Remove padding from outer card */
  border-radius: 12px; /* Slightly smaller radius */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Lighter shadow */
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #e2e8f0;
  overflow: hidden; /* Crucial for image border radius */
  text-align: left;
}
.product-carousel-track .ecommerce-card:hover {
  transform: translateY(-3px); /* Less aggressive hover */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #e2f0ff;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers the area */
  transition: transform 0.5s;
}
.ecommerce-card:hover .card-image img {
  transform: scale(1.05); /* Image slight zoom on hover */
}

.card-body {
  padding: 1rem 1.2rem 1.5rem 1.2rem;
}

.card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.card-body .description {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1rem;
  min-height: 40px;
}

.price-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
}
.rating {
  font-size: 0.85rem;
  color: #f97316; /* Orange rating color */
}

.btn-product-details {
  width: 100%;
  background: var(--accent);
  color: var(--dark);
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-product-details:hover {
  background: var(--primary);
  color: white;
}
.btn {
  padding: 10px;
  border: 0;
  cursor: pointer;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
}
.btn-primary {
  background-color: #2868ff;
  color: #e0f2fe;
}

/* --- Services Section --- */
.our-services {
  padding: 6rem 5%;
  background: #f0fdf4; /* Light green background for eco focus */
  display: flex;
  gap: 4rem;
  align-items: center;
}
.service-content {
  flex: 1;
}
.service-content h2 {
  font-size: 2.5rem;
  color: #16a34a; /* Green for services */
  margin-bottom: 1rem;
}
.service-content ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
}
.service-content li {
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
  color: #374151;
}
.service-image-placeholder {
  flex: 1; /* Takes available space */
  height: 400px; /* Fixed height for consistency */
  background-color: #e0fdf4; /* Light green background if image fails to load */
  border-radius: 16px;
  box-shadow: var(--shadow); /* Uses your defined shadow variable */
  overflow: hidden; /* Ensures the image doesn't spill out */
  display: flex; /* For centering content if no image, or for the image itself */
  align-items: center;
  justify-content: center;
  position: relative; /* Needed for absolute positioning of the actual image */
}

/* Style for the actual image inside the placeholder */
.service-image-placeholder img {
  width: 100%; /* Make the image fill the width of its container */
  height: 100%; /* Make the image fill the height of its container */
  object-fit: cover; /* This is KEY: it scales the image to cover the container while maintaining aspect ratio, cropping if necessary */
  border-radius: 16px; /* Apply border-radius to the image as well */
  display: block; /* Removes any extra space below the image */
}

/* Add this to your existing media query for smaller screens */
@media (max-width: 768px) {
  .service-image-placeholder {
    height: 250px; /* Adjust height for mobile */
    margin-top: 2rem;
  }
}
/* Mobile Adjustments for new sections */
@media (max-width: 768px) {
  .our-services {
    flex-direction: column;
    padding: 4rem 5%;
  }
  .service-content,
  .service-image-placeholder {
    width: 100%;
  }
  .service-image-placeholder {
    height: 250px;
    margin-top: 2rem;
  }
}

.map {
  text-align: center;
  width: 100%;
}
.map svg {
  width: 100%;
  height: 500px;
}

.map {
  position: relative;
}
.headquarterName {
  width: 200px;
  padding: 20px;
  background-color: #166534;
  border-radius: 10px;
  position: absolute;
  left: 40%;
  top: 20%;
  color: red;
  font-weight: bold;
  color: #ffff;
}
