/* Portfolio Section Styles */
#portfolio {
  background-color: #f8f9fa;
  /* Standardized padding to match other sections (100px) */
  padding: 100px 0;
}

.portfolio-item {
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.portfolio-img {
  position: relative;
  overflow: hidden;
}

/* Updated styles to handle both images and videos */
.portfolio-img img,
.portfolio-img video {
  width: 100%;
  /* Doubled height from 125px to 250px */
  height: 250px;
  object-fit: cover;
  /* Added object-position to show top part of videos */
  object-position: top;
  transition: transform 0.3s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* Updated hover effect to work with both images and videos */
.portfolio-item:hover .portfolio-img img,
.portfolio-item:hover .portfolio-img video {
  transform: scale(1.1);
}

.portfolio-content {
  text-align: center;
  color: white;
  padding: 20px;
}

.portfolio-content h4 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: white;
}

.portfolio-content p {
  font-size: 16px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.portfolio-content .btn {
  background-color: #007bff;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease;
}

.portfolio-content .btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .portfolio-item {
    margin-bottom: 20px;
  }

  /* Updated responsive styles for both images and videos */
  .portfolio-img img,
  .portfolio-img video {
    /* Doubled mobile height from 100px to 200px */
    height: 200px;
    /* Added object-position for mobile as well */
    object-position: top;
  }

  .portfolio-content h4 {
    font-size: 20px;
  }

  .portfolio-content p {
    font-size: 14px;
  }
}
