/* Portfolio Section Styles */

.portfolio-section {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.portfolio-background-elements {
  position: absolute;
  inset: 0;
}

.portfolio-gradient-1 {
  background: linear-gradient(to right, rgba(26, 55, 95, 0.1) 0%, transparent 50%, rgba(228, 151, 51, 0.05) 100%);
}

.portfolio-gradient-2 {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, transparent 50%, rgba(249, 250, 251, 0.1) 100%);
}

.portfolio-decorative-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 24rem;
  height: 24rem;
  background: linear-gradient(135deg, rgba(228, 151, 51, 0.1) 0%, transparent 100%);
  border-radius: 50%;
  filter: blur(3rem);
}

.portfolio-decorative-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20rem;
  height: 20rem;
  background: linear-gradient(45deg, rgba(26, 55, 95, 0.1) 0%, transparent 100%);
  border-radius: 50%;
  filter: blur(3rem);
}

/* Portfolio Grid */
#portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

.portfolio-item {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.portfolio-list-item:hover {
  background-color: #f9fafb;
}

/* Portfolio Title and Accent */
.portfolio-title {
  color: #1A375F;
}

.portfolio-accent-line {
  background-color: #E49733;
}

.portfolio-thumbnail-container {
  background: linear-gradient(135deg, rgba(228, 151, 51, 0.1), rgba(26, 55, 95, 0.05));
}

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-expanded {
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

/* Portfolio Buttons */
.portfolio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background-color: #E49733;
  color: white;
  font-weight: 600;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(228, 151, 51, 0.3);
}

.portfolio-btn:hover {
  background-color: #1A375F;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 55, 95, 0.4);
}

.portfolio-btn:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .portfolio-expanded .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .portfolio-section {
    padding: 3rem 1rem;
  }
  
  .portfolio-thumbnail-container {
    width: 4rem;
    height: 4rem;
  }
  
  .portfolio-thumbnail-container img {
    width: 3rem;
    height: 3rem;
  }
}

/* Portfolio Carousel */
.portfolio-carousel {
  position: relative;
  width: 100%;
}

.carousel-images {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: 0.75rem;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 55, 95, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(26, 55, 95, 0.3);
}

.carousel-btn:hover {
  background: #E49733;
  box-shadow: 0 4px 12px rgba(228, 151, 51, 0.4);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #E49733;
  box-shadow: 0 2px 6px rgba(228, 151, 51, 0.4);
}

.indicator:hover {
  background: #1A375F;
  transform: scale(1.2);
}

/* Icon Styling with Brand Colors */
.portfolio-icon-primary {
  color: #1A375F;
}

.portfolio-icon-accent {
  color: #E49733;
}

.portfolio-icon-muted {
  color: #6b7280;
  transition: color 0.3s ease;
}

.portfolio-icon-muted:hover {
  color: #E49733;
}

/* Enhanced Portfolio Item Styling */
.portfolio-item:hover .portfolio-icon-muted {
  color: #1A375F;
}

.portfolio-item .chevron-icon {
  color: #6b7280;
  transition: all 0.3s ease;
}

.portfolio-item:hover .chevron-icon {
  color: #E49733;
  transform: scale(1.1);
}

.portfolio-expanded .chevron-icon {
  color: #1A375F !important;
  transform: rotate(180deg) scale(1.1) !important;
}

/* Date and Location Icons */
.portfolio-meta-icon {
  color: #E49733;
  transition: color 0.3s ease;
}

.portfolio-item:hover .portfolio-meta-icon {
  color: #1A375F;
}

/* Placeholder Image Icon */
.portfolio-placeholder-icon {
  color: #1A375F;
  background: linear-gradient(135deg, rgba(228, 151, 51, 0.1), rgba(26, 55, 95, 0.05));
  padding: 1rem;
  border-radius: 0.5rem;
}

/* Enhanced Hover Effects */
.portfolio-list-item {
  position: relative;
  overflow: hidden;
}

.portfolio-list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(to bottom, #E49733, #1A375F);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.portfolio-list-item:hover::before {
  transform: scaleY(1);
}

/* Line clamp utility classes */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}