﻿/* ======================================================================
   PORTFOLIO CAROUSEL 
   ====================================================================== */
.portfolio-section {
  text-align: center;
  padding: 40px 20px;
  background-color: #000;
}
.portfolio-section h2 {
  font-weight: bold;
  font-size: 24px;
  margin-bottom: 20px;
  color: #fff;
}

.custom-carousel {
  position: relative;
  max-width: 1500px;
  margin: 30px auto;
  display: flex;
  align-items: center;
  gap: 15px;
}

.carousel-container {
  overflow: hidden;
  flex: 1;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.carousel-cell {
  flex: 0 0 100%;
  margin-right: 20px;
  min-width: 0;
  padding: 0 5px;
  box-sizing: border-box;
}

.carousel-cell img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.carousel-cell:hover img {
  transform: scale(1.03);
}

/* Buttons */
.carousel-btn {
  background: rgba(255,255,255,0.10);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.carousel-btn:hover {
  background: #b22222;
  transform: scale(1.1);
}

/* Responsive */
@media (min-width: 993px) {
  .carousel-cell { flex: 0 0 calc(33.333% - 20px); }
}

@media (min-width: 641px) and (max-width: 992px) {
  .carousel-cell { flex: 0 0 calc(50% - 15px); }
}

@media (max-width: 640px) {
  .carousel-cell { 
    flex: 0 0 100%; 
    margin-right: 0; 
    padding: 0 2px; 
  }
}