/* Gallery Section */
.gallery-showcase {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  overflow: hidden;
  position: relative;
}

/* Section Header */
.gallery-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  margin-bottom: 3rem;
  text-align: center;
}

.gallery-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #003366;
  margin-bottom: 1rem;
  position: relative;
  animation: fadeInUp 1s ease;
}

.gallery-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(45deg, #007bbf, #ffd700);
}

.gallery-subtitle {
  font-size: 1.2rem;
  color: #666;
  animation: fadeInUp 1s ease 0.3s both;
}

/* Marquee Container */
.marquee-container {
  position: relative;
  width: 100%;
}

/* Marquee Rows */
.marquee-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  white-space: nowrap;
}

.marquee-row:first-child {
  animation: marqueeLeft 30s linear infinite;
}

.marquee-row:last-child {
  animation: marqueeRight 35s linear infinite;
}

/* Gallery Item */
.gallery-item {
  flex-shrink: 0;
  position: relative;
  width: 320px;
  height: 220px;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 123, 191, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

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

/* Overlay */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 123, 191, 0.8),
    rgba(255, 215, 0, 0.6)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
}

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

/* Decorative Border */
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 15px;
  background: linear-gradient(45deg, #007bbf, #ffd700) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Gradient Overlays for Seamless Effect */
.marquee-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 100%;
  background: linear-gradient(
    90deg,
    #f8f9fa 0%,
    rgba(248, 249, 250, 0.8) 10%,
    transparent 100%
  );
  z-index: 10;
  pointer-events: none;
}

.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 100%;
  background: linear-gradient(
    270deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.8) 50%,
    transparent 100%
  );
  z-index: 10;
  pointer-events: none;
}

/* Pause on Hover */
.marquee-row:hover {
  animation-play-state: paused;
}

/* Bottom CTA */
.gallery-cta {
  text-align: center;
  margin-top: 3rem;
  animation: fadeInUp 1s ease 0.6s both;
}

.cta-button {
  background: linear-gradient(45deg, #007bbf, #4a90e2);
  color: white;
  font-weight: 600;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 123, 191, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 123, 191, 0.4);
  background: linear-gradient(45deg, #005a8b, #357abd);
}

/* Keyframe Animations */
@keyframes marqueeLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marqueeRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .gallery-title {
    font-size: 2rem;
  }

  .gallery-subtitle {
    font-size: 1rem;
  }

  .gallery-item {
    width: 280px;
    height: 190px;
  }

  .marquee-container::before,
  .marquee-container::after {
    width: 100px;
  }
}

@media (max-width: 480px) {
  .gallery-title {
    font-size: 1.8rem;
  }

  .gallery-item {
    width: 240px;
    height: 160px;
  }

  .marquee-row {
    gap: 1rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #007bbf, #ffd700);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #005a8b, #e6c200);
}
