/* ===============================
   Product Card Hover Enhancements
   =============================== */

/* Base card styling */
.card {
  transition: all 0.4s ease;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  background: #fff;
}

/* Hover elevation & shadow */
.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  border-color: rgba(13, 110, 253, 0.4);
}

/* Subtle zoom effect on product image */
.card img {
  transition: transform 0.5s ease, opacity 0.4s ease;
}

.card:hover img {
  transform: scale(1.1);
  opacity: 0.95;
}

/* Title hover effect */
.card .card-title,
.card h5 {
  transition: color 0.3s ease;
}

.card:hover .card-title,
.card:hover h5 {
  color: #0d6efd;
}

/* Description fade-in effect */
.card-text {
  transition: color 0.3s ease, transform 0.3s ease;
}

.card:hover .card-text {
  color: #444;
  transform: translateY(-3px);
}

/* Animated gradient border */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(120deg, #444, #444, #0dcaf0, #0d6efd);
  background-size: 300% 300%;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease, background-position 1s ease;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.card:hover::before {
  opacity: 1;
  background-position: 100% 0;
  animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Shine reflection effect */
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  transform: skewX(-25deg);
  transition: left 0.75s ease;
  z-index: 1;
}

.card:hover::after {
  left: 130%;
}

/* Buttons inside card */
.card .btn {
  transition: all 0.3s ease;
}

.card:hover .btn-primary {
  /* background-color: #0b5ed7; */
  transform: translateY(-2px);
}

.card:hover .btn-success {
  background-color: #198754;
  transform: translateY(-2px);
}

/* Optional glowing badges */
.badge-top {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(13, 110, 253, 0.1);
  /* color: #0d6efd; */
  padding: 6px 10px;
  font-size: 0.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.card:hover .badge-top {
  /* background: #0d6efd; */
  color: #fff;
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
}


  /* Modal visual upgrade: gradient border, shadow, rounded corners */
#productModal .modal-content {
  border-radius: 14px;
  overflow: hidden;
  border: 0;
  position: relative;
  box-shadow: 0 20px 50px rgba(2,6,23,0.35);
  background: linear-gradient(180deg, #ffffff, #fbfbff);
  transform-origin: center center;
}

/* Animated border glow (subtle) */
#productModal .modal-content::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(13,110,253,0.08), rgba(111,66,193,0.06));
  pointer-events: none;
}

/* Modal fade + slight scale in */
.modal.fade .modal-dialog {
  transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .28s ease;
  transform: translateY(10px) scale(.98);
  opacity: 0;
}
.modal.fade.show .modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Header with large close button */
.modal-header-blank {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1055; /* above modal-content elements */
}

/* Make close button visible & large */
.modal-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  box-shadow: 0 6px 18px rgba(2,6,23,0.15);
  background: #ffffff;
}

/* image area */
#productModal .modal-body .bg-dark {
  background: linear-gradient(180deg, #0b1220 0%, #16202b 100%);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* framed image */
#modalImage {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(2,6,23,0.45);
  background: rgba(255,255,255,0.03);
}

/* make modal content above the pseudo border */
#productModal .modal-body,
#productModal .modal-footer {
  position: relative;
  z-index: 2;
}

/* Prev/Next group style */
.modal-controls { gap: .6rem; }
.modal-controls .btn { min-width: 86px; }

/* Meta list */
#modalMeta li { margin-bottom: .35rem; color: #6c757d; }

/* Responsive: stack content on xs */
@media (max-width: 991.98px) {
  #productModal .col-lg-7, #productModal .col-lg-5 { flex: 0 0 100%; max-width: 100%; }
  #modalImage { max-height: 48vh; }
  .modal-dialog { margin: .5rem; }
}







/* ///////////////                         whatsapp                     //////////////////// */

.whatsapp-float {
    position: fixed;
    bottom: 40px;
    left: 40px; /* position on the left side */
    z-index: 999;
    border-radius: 50%;
    background-color: #25D366;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    background-color: #1ebe5d;
    transform: scale(1.1);
    color: #fff;
}

/* Optional: Hide on small screens if overlapping */
@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 45px;
        left: 35px;
        width: 50px;
        height: 50px;
    }
}

/* //////////                            footer                           //////////// */
/* Footer Container */
.footer-section {
    position: relative;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
}

/* Background Image with Blur */
.footer-bg {
    background: url('../img/footer1.png') no-repeat center center/cover;
    position: absolute;
    inset: 0;
    filter: blur(10px) brightness(0.4);
    z-index: 0;
    transform: scale(1.1); /* prevents blur edges */
}

/* Ensure Content Above Blur */
.footer-section > .container {
    position: relative;
    z-index: 2;
}

/* Links & Hover */
.footer-section a {
    transition: color 0.3s ease;
}
.footer-section a:hover {
    color: #25D366; /* Dezigo accent color (WhatsApp green or blue if you prefer) */
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .footer-bg {
        filter: blur(6px) brightness(0.5);
    }
}


/* /////////////////////////// text //////////////////////////////// */

/* Base hidden state */
.tagline,
.tagline-sub {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

/* When visible on scroll */
.tagline.show {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.tagline-sub.show {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

/* Mobile focus or tap glow */
@media (max-width: 768px) {
  .tagline:focus,
  .tagline-sub:focus,
  .tagline.active,
  .tagline-sub.active {
    color: #25D366;
    text-shadow: 0 0 10px rgba(37, 211, 102, 0.4);
  }
}


/* //////////////////////////////////////////// */

/* Scrollable description area */
.scrollable-desc {
  max-height: 100px;           /* adjust height as needed */
  overflow-y: auto;            /* enable vertical scrolling */
  padding-right: 0.5rem;       /* space for scrollbar */
  scrollbar-width: thin;       /* Firefox - thin scrollbar */
  scrollbar-color: #ccc transparent;
}

/* Optional: prettier scrollbar for WebKit browsers */
.scrollable-desc::-webkit-scrollbar {
  width: 6px;
}

.scrollable-desc::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

.scrollable-desc::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}


/* ////////////////////////////////hero/////////////////////////////////////// */



/* Fullscreen slider image with overlay */
.slider-img {
  height: 100vh;
  object-fit: cover;
  filter: brightness(0.65); /* Slight dark overlay for readability */
  transition: transform 1s ease, filter 0.8s ease, opacity 1s ease;
}

/* Active slide animation */
.carousel-item {
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.carousel-item.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: opacity 1s ease, transform 1s ease;
}

/* Gradient overlay */
.carousel-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 0;
}




/* Caption styling */
.carousel-caption {
  bottom: 35%;
  z-index: 9;
  text-align: left;
  padding: 0 2rem;
  animation: captionFade 1s ease forwards;
}

@keyframes captionFade {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.carousel-caption h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff; /* White font */
  text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

.carousel-caption h1 span {
  color: #fff; /* White accent */
  font-style: italic;
}

.carousel-caption p {
  font-size: 1.3rem;
  color: #fff; /* White font */
  max-width: 600px;
  line-height: 1.5;
  text-shadow: 1px 1px 8px rgba(0,0,0,0.6);
  margin-top: 1rem;
  animation: captionFade 1.2s ease forwards;
}

/* Controls styling */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  /* background-color: rgba(255, 255, 255, 0.6); */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  transition: background 0.3s ease;
}



/* Indicators styling */
.carousel-indicators button {
  background-color: rgba(255, 255, 255, 0.6);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-indicators .active {
  background-color: #fff;
  transform: scale(1.3);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .carousel-caption h1 {
    font-size: 2.5rem;
  }
  .carousel-caption p {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .carousel-caption {
    bottom: 25%;
    padding: 0 1rem;
  }
  .carousel-caption h1 {
    font-size: 1.8rem;
  }
  .carousel-caption p {
    font-size: 0.95rem;
  }
}
