/* General Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Navbar links */
.navbar-nav .nav-link {
  transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover {
  color: #0d6efd;
}

/* Carousel */
.carousel-item img {
  object-fit: cover;
  height: 80vh;
  min-height: 400px;
  width: 100%;
}
.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
}
.carousel-caption h2 {
  font-size: 2rem;
  font-weight: bold;
}
.carousel-caption p {
  font-size: 1.1rem;
}

/* About Section */
#about img,
#about-2 img {
  max-height: 450px;
  object-fit: cover;
}

/* Calendar Cards */
#calendar .card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
#calendar .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
#calendar .card img {
  height: 250px;
  object-fit: cover;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .carousel-item img {
    height: 60vh;
  }
  .carousel-caption h2 {
    font-size: 1.5rem;
  }
  .carousel-caption p {
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  .carousel-caption h2 {
    font-size: 1.3rem;
  }
  .carousel-caption p {
    font-size: 0.9rem;
  }
  #calendar .card img {
    height: 200px;
  }
}
@media (max-width: 576px) {
  .carousel-item img {
    height: 50vh;
  }
  .carousel-caption {
    padding: 0.5rem 1rem;
  }
  .carousel-caption h2 {
    font-size: 1rem;
  }
  .carousel-caption p {
    font-size: 0.8rem;
  }
}
/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  z-index: 999;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#backToTop.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

#backToTop.hide {
  opacity: 0;
  transform: translateY(20px);
}
/* Footer styles */
.site-footer {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 2.5rem;
  background: #ffffff;
  color: #212529; /* dark text for white background */
}

.site-footer .footer-link {
  color: #212529;
  text-decoration: none;
  transition: color .2s ease;
}
.site-footer .footer-link:hover {
  color: #0d6efd;
  text-decoration: underline;
}

.site-footer .social-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(13,110,253,0.05);
  transition: transform .2s ease, background .2s ease;
  color: #212529 !important;
}
.site-footer .social-icon i {
  font-size: 14px;
}
.site-footer .social-icon:hover {
  transform: translateY(-4px);
  background: rgba(13,110,253,0.12);
  color: #0d6efd !important;
}

/* Newsletter small message */
#newsletterMsg {
  font-size: 0.9rem;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .site-footer .navbar-brand img {
    height: 36px;
  }
  .site-footer .social-icon {
    width: 36px;
    height: 36px;
  }
  .site-footer .d-flex.gap-2 { gap: .5rem !important; }
}
/* Brand Cards hover effect */
.hover-scale {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hover-scale:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Brand card images */
#brands .card-img-top {
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
  background-color: #f8f9fa;
}
@media (max-width: 768px) {
  #brands .card-img-top {
    height: 180px;
  }
}
/* Fade-in animation for first 4 images */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

/* Group 2: Images 5-8 */
.fade-in-group {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInGroup 1s forwards;
}

/* Group 3: Images 9-12 */
.fade-in-group-2 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInGroup 1s forwards;
}

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

@keyframes fadeInGroup {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#exhibit {
  background: #f8f9fa;
}

#exhibit form {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#exhibit form:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

#exhibit .form-label {
  font-weight: 600;
}
/* Contact Form */
#contact form {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#contact form:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Live Chat */
#liveChat {
  max-width: 100%;
}
.chat-box {
  height: 250px;
  overflow-y: auto;
  background: #f8f9fa;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}
.chat-message {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 20px;
  max-width: 80%;
}
.chat-message.bot {
  background: #0d6efd;
  color: #fff;
  align-self: flex-start;
}
.chat-message.user {
  background: #e9ecef;
  align-self: flex-end;
  color: #000;
}
/* WhatsApp Floating Button */
#whatsappChat {
  position: fixed;
  bottom: 100px; /* above Back to Top button */
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

#whatsappChat:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
  .event-img {
    height: 350px;
    object-fit: cover;
  }
  .hover-scale {
    transition: transform 0.3s ease;
  }
  .hover-scale:hover {
    transform: scale(1.05);
  }
  .video-item video {
      transition: transform 0.3s ease;
    }

    .video-item:hover video {
      transform: scale(1.05);
    }

    .play-btn {
      cursor: pointer;
      background: rgba(0, 0, 0, 0.6);
      padding: 15px 20px;
      border-radius: 50%;
      transition: background 0.3s ease;
    }

    .play-btn:hover {
      background: rgba(13, 110, 253, 0.8);
    }

    /* Popup Modal */
    .video-modal {
      display: none;
      position: fixed;
      z-index: 9999;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.7);
      backdrop-filter: blur(5px);
      justify-content: center;
      align-items: center;
    }

    .video-content {
      background: #000;
      padding: 10px;
      border-radius: 10px;
      max-width: 80%;
      width: 800px;
      position: relative;
    }

    .video-content video {
      width: 100%;
      max-height: 80vh;
      border-radius: 10px;
    }

    .close {
      position: absolute;
      top: -35px;
      right: -5px;
      color: #fff;
      font-size: 2rem;
      cursor: pointer;
    }