/* Products Page Styles */
#products-hero {
  background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 86, 179, 0.8)),
    url("/placeholder.svg?height=800&width=1200") no-repeat center center / cover;
  color: white;
  padding: 100px 0;
  text-align: center;
}

#products-intro {
  padding-bottom: 40px;
}

.products-intro-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
}

.products-intro-text p {
  margin-bottom: 20px;
}

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.tab-btn {
  padding: 12px 20px;
  background-color: #f0f0f0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background-color: #e0e0e0;
}

.tab-btn.active {
  background-color: #0056b3;
  color: white;
  box-shadow: 0 3px 10px rgba(0, 86, 179, 0.3);
}

/* Brand Products */
.brand-products {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.brand-products.active {
  display: block;
  opacity: 1;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.brand-logo-img {
  max-height: 60px;
  max-width: 120px;
  object-fit: contain;
}

.brand-header h2 {
  color: #0056b3;
  font-size: 2rem;
  margin: 0;
}

/* Update the products-grid styling to ensure consistent layout across all brands */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
  justify-content: center;
  justify-items: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

/* Ensure product cards have consistent sizing */
.product-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-color);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  margin-bottom: 20px;
  width: 100%;
  max-width: 350px;
  border: 1px solid var(--border-color);
}

.product-header {
  display: flex;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.product-header:hover {
  background-color: var(--section-bg-alt);
}

.product-image {
  width: 150px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
  flex-shrink: 0;
}

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

.product-basic-info {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-basic-info h3 {
  font-size: 1.3rem;
  color: #0056b3;
  margin-bottom: 10px;
  font-weight: 600;
}

.product-summary {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.7;
  line-height: 1.4;
  margin-bottom: 15px;
  flex: 1;
}

.product-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #0056b3;
  font-weight: 600;
  font-size: 0.9rem;
}

.toggle-icon {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.product-details-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, background-color 0.3s ease;
  background-color: var(--section-bg-alt);
}

.product-card.expanded .product-details-dropdown {
  border-top: 1px solid var(--border-color);
}

.product-specs-section,
.product-pricing-section {
  padding: 20px;
}

.product-pricing-section {
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.product-specs-section h4,
.product-pricing-section h4 {
  color: #0056b3;
  font-size: 1.1rem;
  margin-bottom: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-specs-section h4::before {
  content: "🔧";
  font-size: 1rem;
}

.product-pricing-section h4::before {
  content: "💰";
  font-size: 1rem;
}

.product-specs {
  list-style: none;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 8px;
}

.product-specs li {
  font-size: 0.85rem;
  padding: 4px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
}

.product-specs li:last-child {
  border-bottom: none;
}

.product-description {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.6;
  font-style: italic;
  background-color: var(--card-bg);
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #0056b3;
  border: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.pricing-list li {
  padding: 12px 15px;
  background-color: var(--section-bg-alt);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.pricing-list li:hover {
  background-color: var(--card-bg);
  border-color: #0056b3;
  transform: translateY(-2px);
}

.pricing-list li strong {
  color: var(--text-color);
  font-weight: 600;
}

.btn-quote {
  background: linear-gradient(135deg, #0056b3, #007bff);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-size: 1rem;
}

.btn-quote:hover {
  background: linear-gradient(135deg, #003d82, #0056b3);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 0 15px;
  }

  .service-info-content {
    grid-template-columns: 1fr;
  }

  .service-info-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .product-header {
    flex-direction: column;
  }

  .product-image {
    width: 100%;
    height: 150px;
  }

  .product-specs {
    grid-template-columns: 1fr;
  }

  .pricing-list {
    grid-template-columns: 1fr;
  }

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

  .tab-btn {
    width: 100%;
    max-width: 300px;
  }

  .brand-header {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .product-basic-info {
    padding: 15px;
  }

  .product-specs-section,
  .product-pricing-section {
    padding: 15px;
  }

  .pricing-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .product-card {
    max-width: 350px;
  }

  .products-grid {
    padding: 0 5px;
  }
}

/* Animation for smooth transitions */
.product-card {
  transition: all 0.3s ease;
}

.product-card.expanded {
  box-shadow: 0 10px 25px rgba(0, 86, 179, 0.15);
}

/* Loading state for better UX */
.product-details-dropdown.loading {
  opacity: 0.7;
}

.product-details-dropdown.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid #0056b3;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Service Info Section - New Creative Layout */
#service-info {
  background: linear-gradient(135deg, var(--section-bg-alt) 0%, var(--bg-color) 100%);
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

#service-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230056b3' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
    repeat;
  pointer-events: none;
}

.service-info-content {
  position: relative;
  z-index: 1;
}

.service-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.service-intro p {
  font-size: 1.2rem;
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.8;
}

.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.service-feature-card {
  background: var(--card-bg);
  padding: 30px 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 86, 179, 0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.service-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #0056b3, #007bff);
  transition: left 0.3s ease;
}

.service-feature-card:hover::before {
  left: 0;
}

.service-feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 86, 179, 0.15);
}

.service-feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #0056b3, #007bff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: transform 0.3s ease;
}

.service-feature-card:hover .service-feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-feature-icon i {
  font-size: 1.8rem;
  color: white;
}

.service-feature-card h4 {
  font-size: 1.3rem;
  color: #0056b3;
  margin-bottom: 15px;
  font-weight: 600;
}

.service-feature-card p {
  color: var(--text-color);
  opacity: 0.7;
  line-height: 1.6;
  margin: 0;
}

.service-highlight {
  background: linear-gradient(135deg, #0056b3, #007bff);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-highlight::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

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

.service-highlight-content {
  position: relative;
  z-index: 1;
}

.service-highlight h4 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.service-highlight h4 i {
  font-size: 1.8rem;
  color: #ffd700;
}

.service-highlight p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0;
  opacity: 0.95;
}

.service-contact-section {
  text-align: center;
}

.service-contact-section h4 {
  font-size: 1.5rem;
  color: #0056b3;
  margin-bottom: 30px;
  font-weight: 600;
}

.service-contact-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-card {
  background: var(--card-bg);
  padding: 25px 30px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 5px 20px rgba(0, 86, 179, 0.1);
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
  min-width: 250px;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 86, 179, 0.15);
  border-color: #0056b3;
}

.contact-card i {
  font-size: 2rem;
  color: #0056b3;
  min-width: 40px;
}

.contact-card div {
  text-align: left;
}

.contact-card span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.7;
  margin-bottom: 5px;
  font-weight: 500;
}

.contact-card a {
  font-size: 1.1rem;
  color: #0056b3;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: #007bff;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .service-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-highlight {
    padding: 30px 20px;
  }

  .service-contact-cards {
    flex-direction: column;
    align-items: center;
  }

  .contact-card {
    min-width: auto;
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  .service-feature-card {
    padding: 25px 20px;
  }

  .service-highlight h4 {
    flex-direction: column;
    gap: 10px;
  }
}

/* Back to home button */
.back-to-home {
  text-align: center;
  margin-top: 30px;
}

.back-to-home .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-to-home .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 86, 179, 0.2);
}

/* Smooth scrolling for better UX */
html {
  scroll-behavior: smooth;
}

/* Dark mode support for products page */
.tab-btn {
  background-color: var(--section-bg-alt);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background-color: var(--card-bg);
}
