/* Image Resize and Normalization Styles */

/* For product cards on products page */
.product-card-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  padding: 0;
}

.card-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border-radius: 0;
  margin-bottom: 1.5rem;
}

/* For app icons on home page */
.app-icon-container {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.app-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* For modal header icons */
.app-icon-large {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 1.5rem;
}

/* Contract project logos */
.contract-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.project-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border-radius: 16px;
  padding: 0.5rem;
}

/* Ensure all images maintain quality */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Fix for different image formats */
img[src$=".png"],
img[src$=".webp"],
img[src$=".jpg"],
img[src$=".jpeg"] {
  max-width: 100%;
  height: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-icon {
    width: 60px;
    height: 60px;
  }
  
  .app-icon-container {
    width: 50px;
    height: 50px;
  }
  
  .app-icon-large {
    width: 100px;
    height: 100px;
  }
}