/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  padding: 8rem 0 6rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section h1 {
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Make sure all service images are optimized */
.service-card img {
  max-height: 300px;
  width: 100%;
  object-fit: cover;
}

/* Mobile Product Grid Styling */
.mobile-products-grid {
  margin-top: 1rem;
}

.mobile-product-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mobile-product-card:active {
  transform: scale(0.98);
}

.mobile-product-image {
  height: 120px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.mobile-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mobile-product-info {
  padding: 0.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.mobile-product-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.mobile-product-link {
  font-size: 0.85rem;
  color: var(--primary-blue);
  text-decoration: none;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-product-link i {
  font-size: 0.75rem;
}

/* Partner Brands Section */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 0 auto;
  max-width: 900px;
}

.partner-logo {
  width: 130px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  opacity: 0.7;
  transform: translateY(20px);
  opacity: 0;
}

.partner-logo.animate {
  opacity: 0.7;
  transform: translateY(0);
}

.partner-logo:hover {
  opacity: 1;
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.partner-logo img {
  max-width: 100%;
  max-height: 50px;
  object-fit: contain;
}

.grayscale {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.partner-logo:hover .grayscale {
  filter: grayscale(0%);
}

/* FAQ Section */
.accordion-item {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid rgba(0,0,0,0.1);
}

.accordion-button {
  background-color: white;
  color: var(--text-dark);
  font-weight: 600;
  box-shadow: none;
  padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(0, 102, 204, 0.05);
  color: var(--primary-blue);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0, 102, 204, 0.25);
}

.accordion-button::after {
  background-size: 1rem;
  transition: transform 0.3s ease;
}

.accordion-body {
  padding: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .hero-section {
    padding: 6rem 0 4rem;
  }
  
  .hero-section h1 {
    font-size: 2.25rem;
  }
  
  .partner-logos {
    gap: 1rem;
  }
  
  .partner-logo {
    width: 100px;
    height: 70px;
  }
  
  .partner-logo img {
    max-height: 40px;
  }
  
  .accordion-button {
    padding: 1rem;
    font-size: 0.95rem;
  }
  
  .accordion-body {
    padding: 1rem;
    font-size: 0.9rem;
  }
}

/* Animation timing for partner logos */
.partner-logo:nth-child(1) { transition-delay: 0ms; }
.partner-logo:nth-child(2) { transition-delay: 100ms; }
.partner-logo:nth-child(3) { transition-delay: 200ms; }
.partner-logo:nth-child(4) { transition-delay: 300ms; }
.partner-logo:nth-child(5) { transition-delay: 400ms; }
.partner-logo:nth-child(6) { transition-delay: 500ms; }

/* 3D Effect Card for Desktop */
.product-card-3d {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 5px 15px rgba(0,0,0,0.1),
    0 15px 35px rgba(50,50,93,0.1);
  transform: perspective(1000px) rotateX(5deg);
  transition: all 0.3s ease;
  height: 100%;
  width: 280px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.product-card-3d:hover {
  transform: perspective(1000px) rotateX(0);
  box-shadow: 
    0 10px 25px rgba(0,0,0,0.1),
    0 20px 45px rgba(50,50,93,0.2);
}

.product-image-container {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.product-image-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 70%,
    rgba(255,255,255,1) 100%
  );
  pointer-events: none;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: bottom;
  transition: transform 0.5s ease;
}

.product-card-3d:hover .product-image {
  transform: scale(1.08);
}

.product-info {
  padding: 1.25rem;
  position: relative;
  z-index: 1;
}

.product-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.product-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.product-link {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--primary-blue);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0,102,204,0.3);
  transition: all 0.3s ease;
}

.product-link:hover {
  background: #005bb5;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,102,204,0.4);
}

.product-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0,102,204,0.3);
}

/* 3D Effect Card for Mobile */
.mobile-product-card-3d {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 5px 12px rgba(0,0,0,0.08),
    0 10px 25px rgba(50,50,93,0.08);
  transform: perspective(1000px) rotateX(5deg);
  transition: transform 0.3s ease;
  height: 100%;
  position: relative;
}

.mobile-product-card-3d:active {
  transform: perspective(1000px) rotateX(0) scale(0.98);
}

.mobile-product-image-container {
  height: 140px;
  position: relative;
  overflow: hidden;
}

.mobile-product-image-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 60%,
    rgba(255,255,255,1) 100%
  );
  pointer-events: none;
}

.mobile-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-product-info {
  padding: 0.75rem;
  position: relative;
  z-index: 1;
}

.mobile-product-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.mobile-product-link {
  display: inline-block;
  width: 100%;
  padding: 0.5rem;
  background: var(--primary-blue);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,102,204,0.25);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .mobile-products-grid .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .mobile-products-grid .col-6 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .mobile-product-image-container {
    height: 120px;
  }
}
