.applications {
  background-color: white;
}

/* 2x2 Grid Endüstriyel Uygulamalar */
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.app-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,84,166,0.2);
  border-color: #0054a6;
}

.app-image {
  height: 200px;
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  flex-shrink: 0;
}

/* Specific background images for each application */
.app-food {
  background-image: url('../png/Food_Image.png') !important;
}

.app-pharma {
  background-image: url('../png/Pharma_Image.png') !important;
}

.app-cosmetics {
  background-image: url('../png/Cosmetics_Image.png') !important;
}

.app-electronics {
  background-image: url('../png/Electronics_Image.png') !important;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,84,166,0.8), rgba(0,84,166,0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.app-card:hover .image-overlay {
  opacity: 1;
}

.overlay-text {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  padding: 10px;
}

.app-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.app-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 70px;
}

.stat-number {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0054a6;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.75rem;
  color: #718096;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 25px;
    max-width: 800px;
  }
  
  .app-card {
    min-height: 350px;
  }
  
  .app-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .app-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;
    max-width: 100%;
  }
  
  .app-card {
    min-height: auto;
  }
  
  .app-image {
    height: 150px;
  }
  
  .app-content {
    padding: 20px;
  }
  
  .stat-item {
    min-width: 30%;
    flex: 1;
  }
  
  .app-stats {
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    margin-top: 15px;
  }
  
  .app-stats .stat-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
  }
  
  .app-stats .stat-number {
    margin-bottom: 4px;
    font-size: 1.1rem;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.1;
  }
  
  .app-stats .stat-label {
    font-size: 0.65rem;
    line-height: 1.2;
    word-break: break-word;
    hyphens: auto;
  }
}

/* Very small mobile screens */
@media (max-width: 480px) {
  .app-stats .stat-item {
    padding: 10px 6px;
  }
  
  .app-stats .stat-number {
    font-size: 0.95rem;
  }
  
  .app-stats .stat-label {
    font-size: 0.6rem;
  }
}