/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
  text-align: center;
  line-height: 1.6;
}

/* Header */
.site-header {
  background: #004080;
  color: #fff;
  padding: 20px;
}
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.logo {
  width: 135px; 
  height: 100px; 
  object-fit: contain;
}
.company-name {
  font-size: 40px; 
  font-weight: 500; 
  font-family: "Alfa Slab One", sans-serif;
}
.tagline {
  margin-top: 8px;
  font-size: 1.1rem;
}

/* Gallery */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 30px;
}
.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 19px 12px rgba(0,0,0,0.1);
  transition: transform 0.25s ease;
  cursor: pointer;
  max-width: 265px;
  max-height: fit-content;
}
.product-card:hover {
  transform: translateY(-5px);
}
.product-card img {
  max-width: 265px; 
  height: auto; 
  object-fit: fill;
}

/* Modal */
.modal {
  display: none; /* مخفي عند البداية */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
}
.modal-content {
  max-width: 100%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  animation: zoomIn 0.4s ease;
  width: 450px;
}
@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Caption */
#caption {
  color: #fff;
  font-size: 18px;
  margin-top: 15px;
  text-align: center;
  max-width: 90%;
}

/* Close button */
.close-button {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 40px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}
.close-button:hover {
  color: #ff4444;
}

/* Arrows */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  font-size: 60px;
  font-weight: bold;
  color: #fff;
  user-select: none;
  transition: color 0.3s;
}
.prev { left: 30px; }
.next { right: 30px; }
.prev:hover, .next:hover {
  color: #ffcc00;
}

/* Footer */
footer {
  background: #004080;
  color: #fff;
  padding: 15px;
  margin-top: 30px;
}

