html, body {
  overflow-x: hidden;
}

/* ==================== SLIDER ==================== */
.animated-gallery {
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.gallery-track {
  display: flex;
  gap: 16px;
  animation: scrollGallery 25s linear infinite;
}

.gallery-track img {
  width: 500px;
  height: 600px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-track img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.animated-gallery:hover .gallery-track {
  animation-play-state: paused;
}

@keyframes scrollGallery {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==================== GALLERY SECTION ==================== */
.gallery-section {
  padding: 40px;
  background: #0a0a0a;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(8, auto);
  justify-content: center;
  gap: 10px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 8px;
  width: 200px;
  height: 140px;
}

.gallery-item img,
.gallery-item video {
  width: 200px;
  height: 140px;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 8px;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.05);
  filter: brightness(0.8);
}

/* Play button for videos */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  border-radius: 50%;
  font-size: 32px;
  color: white;
  width: 60px;
  height: 60px;
  text-align: center;
  line-height: 56px;
  pointer-events: none;
  opacity: 0.9;
}

/* ==================== POPUP MODAL ==================== */
.popup-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  width: 100%;
  height: 1000px;
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.popup-content img,
.popup-content video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  z-index: 1001;
}

.close-btn:hover {
  color: #ff5555;
}

/* ==================== CONTACT ==================== */
.contact {
  padding: 80px 10%;
  background-color: #0d0d0d;
  color: #f5f5f5;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.contact-form, .contact-info {
  flex: 1 1 45%;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group label {
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  background: #1b1b1b;
  color: #fff;
}

.submit-btn {
  background-color: #c49b3e;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background-color: #b48a32;
}

.contact-info h3 {
  margin-bottom: 20px;
  color: #c49b3e;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.info-icon {
  font-size: 1.5rem;
  margin-right: 15px;
}

.info-details h4 {
  margin: 0 0 5px 0;
  color: #c49b3e;
}

.info-details p {
  margin: 0;
}

.contact-info a {
  color: #f5f5f5;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover,
.contact-info a:focus,
.contact-info a:active {
  color: #c49b3e;
  text-decoration: none;
  outline: none;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .contact-container {
    flex-direction: column;
  }
  .contact-form, .contact-info {
    flex: 1 1 100%;
  }
}

/* Slider Mobile Fix */
@media (max-width: 768px) {
  .about-text {
    padding-bottom: 10%;
  }

  .animated-gallery {
    padding-top: 10%;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    border-radius: 0;
  }

  .gallery-track {
    animation-duration: 25s;
    gap: 0;
  }

  .gallery-track img {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    flex-shrink: 0;
    border-radius: 0;
    aspect-ratio: 4 / 5; /* optional, keeps images proportional */
  }
}

/* Gallery Columns Responsiveness */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .gallery-item {
    border-radius: 6px;
    width: 100%;
    height: auto;
  }

  .gallery-item img,
  .gallery-item video {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .play-btn {
    font-size: 1.4rem;
    padding: 0.3rem 0.6rem;
  }
}

@media (max-width: 400px) {
  .gallery-grid {
    grid-template-columns: 1fr; /* fallback for tiny screens */
  }
}
