/* Portfolio Section Styles */
.portfolio {
  background-color: var(--color-background-alt);
  position: relative;
}

.portfolio::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(197, 75, 116, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.portfolio .container {
  position: relative;
  z-index: 1;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-4xl);
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  background-color: var(--color-white);
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(197, 75, 116, 0.9) 0%,
    rgba(107, 70, 193, 0.9) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition-normal);
}

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

.portfolio-info {
  text-align: center;
  color: var(--color-white);
  padding: var(--spacing-lg);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.portfolio-item:hover .portfolio-info {
  transform: translateY(0);
}

.portfolio-info h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-sm);
  color: var(--color-white);
}

.portfolio-info p {
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-lg);
  color: rgba(255, 255, 255, 0.9);
  line-height: var(--line-height-relaxed);
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  background-color: var(--color-white);
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.portfolio-link:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.portfolio-link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.portfolio-link:hover::after {
  transform: translateX(4px);
}

/* Staggered Animation */
.portfolio-item {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.portfolio-item:nth-child(1) {
  animation-delay: 0.1s;
}

.portfolio-item:nth-child(2) {
  animation-delay: 0.2s;
}

.portfolio-item:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Individual Portfolio Item Styling */
.portfolio-item:nth-child(1) .portfolio-overlay {
  background: linear-gradient(
    135deg,
    rgba(197, 75, 116, 0.9) 0%,
    rgba(214, 107, 138, 0.9) 100%
  );
}

.portfolio-item:nth-child(2) .portfolio-overlay {
  background: linear-gradient(
    135deg,
    rgba(45, 90, 135, 0.9) 0%,
    rgba(61, 111, 167, 0.9) 100%
  );
}

.portfolio-item:nth-child(3) .portfolio-overlay {
  background: linear-gradient(
    135deg,
    rgba(107, 70, 193, 0.9) 0%,
    rgba(139, 92, 246, 0.9) 100%
  );
}

/* Hover Effects */
.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 49%, rgba(255, 255, 255, 0.1) 50%, transparent 51%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 1;
  pointer-events: none;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .portfolio-item {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .portfolio-info h3 {
    font-size: var(--font-size-lg);
  }
  
  .portfolio-info p {
    font-size: var(--font-size-sm);
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .portfolio-info {
    padding: var(--spacing-md);
  }
  
  .portfolio-info h3 {
    font-size: var(--font-size-base);
  }
  
  .portfolio-info p {
    font-size: var(--font-size-xs);
    margin-bottom: var(--spacing-md);
  }
  
  .portfolio-link {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--font-size-xs);
  }
}

