/* Custom Styles & Animations */

.hero-pattern {
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230ea5e9' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.fade-in {
  animation: fadeIn 1s ease-in-out;
}

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

/* Floating WhatsApp Button */
.float-wa {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.float-wa:hover {
  transform: scale(1.1);
}

/* Navbar Transition */
#navbar {
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.nav-link.active {
  color: #0ea5e9;
  font-weight: 600;
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #0ea5e9;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav-link.active::after {
    display: none;
  }
}

/* Swiper Navigation Buttons */
.gallery-nav-btn {
  width: 48px !important;
  height: 48px !important;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  color: #0ea5e9 !important;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.gallery-nav-btn:hover {
  background: #0ea5e9;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
  transform: scale(1.08);
}

.gallery-nav-btn::after {
  font-size: 18px !important;
  font-weight: 700;
}

.swiper-button-prev.gallery-nav-btn {
  left: 8px !important;
}

.swiper-button-next.gallery-nav-btn {
  right: 8px !important;
}

/* Gallery Styles */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

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

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#lightbox.active {
  display: flex;
}

#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

#lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

#lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  padding: 1rem;
  z-index: 201;
}

.lightbox-nav:hover {
  opacity: 1;
}

.lightbox-nav.left {
  left: 1.5rem;
}

.lightbox-nav.right {
  right: 1.5rem;
}

/* Video Section */
.video-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

.video-card:hover .video-thumb-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.video-play-btn {
  width: 72px;
  height: 72px;
  background: rgba(14, 165, 233, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-card:hover .video-play-btn {
  transform: scale(1.12);
  background: #0ea5e9;
}

/* Video Modal */
.video-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: modalFadeIn 0.25s ease;
}

.video-modal-backdrop.active {
  display: flex;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.video-modal-box {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #0f172a;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
  animation: modalSlideUp 0.28s ease;
}

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

.video-modal-close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.video-modal-close:hover {
  background: rgba(255,255,255,0.25);
}

.video-modal-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 1.25rem 0.5rem;
  letter-spacing: 0.01em;
}

.video-modal-player {
  width: 100%;
  display: block;
  max-height: 80vh;
  background: #000;
}
