/* Portfolio Styles */
#portfolio {
  padding: 60px 0;
  background: #02000a;
}

#portfolio .container {
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio_category_buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.category_btn {
  background-color: transparent;
  color: #00f7ff;
  border: 2px solid #00f7ff;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.category_btn:hover, .category_btn.active {
  background-color: #00f7ff;
  color: #02000a;
}

.portfolio_gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

@media (max-width: 992px) {
  .portfolio_gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .portfolio_gallery {
    grid-template-columns: 1fr;
  }
}

.gallery_item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #0f0f1b;
  height: 100%;
}

.gallery_item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gallery_item:hover img {
  transform: scale(1.05);
}

.gallery_item_overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  text-align: center;
}

.gallery_item:hover .gallery_item_overlay {
  transform: translateY(0);
}

.gallery_item_overlay h4 {
  color: #00f7ff;
  margin-bottom: 5px;
  font-size: 20px;
}

.gallery_item_overlay p {
  color: white;
  margin-bottom: 10px;
  font-size: 14px;
}

.gallery_item_overlay button {
  background-color: #00f7ff;
  color: #020114;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.gallery_item_overlay button:hover {
  background-color: white;
  color: #020114;
}

/* RTL Support for Arabic */
[dir="rtl"] .portfolio_gallery {
  direction: rtl;
}
