/* Moving Photos Section - Brooklake Style */
.moving-photos {
  background: transparent;
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
  margin: 1rem 0 0 0;
  z-index: 1;
  height: 350px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.photos-container {
  width: 100vw;
  height: 350px;
  position: relative;
  overflow: hidden;
  margin: 0;
  display: flex;
  align-items: center;
}

.photo-stream {
  display: flex;
  width: 200vw;
  height: 100%;
  animation: slidePhotos 40s linear infinite;
  gap: 3rem;
  align-items: center;
  padding: 0;
}

.photo-item {
  flex: 0 0 auto;
  width: 400px;
  height: 280px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
}

.photo-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.15),
    0 16px 32px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-item:hover img {
  transform: scale(1.08);
}

.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    transparent 0%,
    rgba(0, 0, 0, 0.1) 30%,
    rgba(0, 0, 0, 0.8) 100%
  );
  color: white;
  padding: 1.2rem 1rem 1rem;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-item:hover .photo-overlay {
  transform: translateY(0);
}

.photo-overlay span {
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Enhanced Animation */
@keyframes slidePhotos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50vw);
  }
}

/* Pause animation on hover */
.photos-container:hover .photo-stream {
  animation-play-state: paused;
}

/* Add subtle floating effect */
.photo-item:nth-child(odd) {
  animation: floatUp 6s ease-in-out infinite;
}

.photo-item:nth-child(even) {
  animation: floatDown 6s ease-in-out infinite;
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes floatDown {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(10px); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .moving-photos {
    height: 320px;
  }
  
  .photos-container {
    height: 320px;
  }
  
  .photo-item {
    width: 350px;
    height: 240px;
  }
  
  .photo-stream {
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .moving-photos {
    height: 280px;
  }
  
  .photos-container {
    height: 280px;
  }
  
  .photo-item {
    width: 280px;
    height: 180px;
  }
  
  .photo-stream {
    gap: 2rem;
  }
  
  .photo-overlay {
    padding: 1rem 0.8rem 0.8rem;
  }
  
  .photo-overlay span {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .moving-photos {
    height: 240px;
  }
  
  .photos-container {
    height: 240px;
  }
  
  .photo-item {
    width: 240px;
    height: 160px;
  }
  
  .photo-stream {
    gap: 1.5rem;
  }
}

/* Add creative background effects */
.moving-photos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.moving-photos::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(78, 205, 196, 0.03) 25%,
    transparent 50%,
    rgba(78, 205, 196, 0.03) 75%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Performance optimization */
.photo-item {
  will-change: transform;
}

.photo-stream {
  will-change: transform;
}
