/* ==================== ACCESSIBILITY UTILITIES ==================== */

/* Screen-reader-only: visually hidden but announced by assistive tech */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip navigation link: visible only on keyboard focus */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: #38ef7d;
  color: #111;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Global focus indicator for keyboard navigation */
:focus-visible {
  outline: 3px solid #38ef7d;
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* ==================== END ACCESSIBILITY ==================== */

body {
  position: relative;
  color: #000;
 /*  background: url('Images/SiteBackground.png') center center/cover no-repeat;  */
        background: Black;
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
 /* background: url("Images/SiteBackground.png") center / cover no-repeat;  */
  opacity: 1;
  z-index: -1;
  pointer-events: none;
}

/* ----------------- HERO ----------------- */
.hero {
  background: url('Images/Imagebackground.png') center center/cover no-repeat;
  color: #fff;
  height: 60vh;
  display: flex;
  margin-bottom: 4rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.58) 50%, rgba(121,121,121,0.48) 100%);
  backdrop-filter: blur(3px);
  z-index: 0;
}
.hero > div {
  position: relative;
  z-index: 1;
}

/* ----------------- NAVBAR ----------------- */
.navbar {
  background: #232329 !important;
}
.navbar .navbar-brand,
.navbar-nav .nav-link {
  color: #fff !important;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:hover {
  color: #b259a0 !important;
}


/* ----------------- CARDS ----------------- */
.card {
  background: rgba(19, 17, 17, 0.767);
  color: #fff;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 8px 28px 0 rgba(0,0,0,0.12);
  backdrop-filter: blur(1px);
  transition: transform 0.12s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 12px 32px 0 rgba(89,44,178,0.18);
}
.card,
.card h5,
.card h6,
.card p,
.card a,
.card .badge {
  color: #fff !important;
}



/* ----------------- PRODUCT IMAGES ----------------- */
.product-image-container {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #000000;  /* or your preferred bg color */
  border-radius: 0.25rem;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain; /* fits entirely within the container */
  object-position: center center;
  display: block;
  border-radius: 0.25rem;
}

/* ----------------- CARD STACK ----------------- */
.card-stack-wrapper {
  position: relative;
  width: 96vw;
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 44px;
  padding-right: 44px;
}
@media (max-width: 1200px) {
  .card-stack-wrapper {
    padding-left: 20px;
    padding-right: 20px;
  }
}
.card-stack {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  scroll-behavior: smooth;
  padding-left: 10px;
  padding-right: 10px;
}
.card-stack::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}
.featured-card {
  flex: 0 0 auto;
  width: 23vw;
  min-width: 170px;
  max-width: 240px;
  margin: 0 6px;
}
@media (max-width: 991px) {
  .featured-card {
    width: 30vw;
    min-width: 140px;
    max-width: 180px;
  }
}
@media (max-width: 767px) {
  .featured-card {
    width: 32vw;
    min-width: 100px;
    max-width: 140px;
    margin: 0 4px;
  }
  .card-stack-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Arrows */
.stack-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  background: rgba(30,30,30,0.9);
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.09);
  cursor: pointer;
  transition: background 0.13s;
  opacity: 0.85;
  padding: 0;
}
.stack-arrow.left-arrow { left: -22px; }
.stack-arrow.right-arrow { right: -22px; }
.stack-arrow:hover {
  background: #19d4fb;
  color: #000;
  opacity: 1;
}
@media (max-width: 767px) {
  .stack-arrow { display: none !important; }
}


 /* Thumbnails below carousel */
    .thumbnail-img {
      max-height: 32px;
      cursor: pointer;
      border-radius: 0.25rem;
    }
    /* Featured reviews cards */
    .review-card-dark {
      background-color: #212529;
      color: #fff;
      border-radius: 6px;
      padding: 1rem;
      margin-bottom: 1rem;
    }
    .star-display {
      font-size: 1.3rem;
      margin-right: 2px;
      color: #ccc;
    }
    .star-display.filled {
      color: #f0ad4e;
    }
    .reply-box {
      background-color: #2c3034;
      border-radius: 6px;
      padding: 0.8rem;
      margin-top: 0.6rem;
      font-size: 0.9rem;
    }

    /* Fade-in animation styles */
    .fade-in-section {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
      will-change: opacity, transform;
    }
    /* When visible */
    .fade-in-section.is-visible {
      opacity: 1;
      transform: none;
    }




    /* ==================== JOURNEY / PERFORMANCE PAGE ==================== */
    /* Core styles are now inline in Journey.php <style> block.
       Only shared/reusable classes kept here. */

    .form-control {
      background: rgba(34, 34, 56, 0.8);
      border: 2px solid #555;
      color: #eee;
      border-radius: 10px;
      padding: 0.75rem;
    }

    .form-control:focus {
      background: rgba(34, 34, 56, 0.9);
      border-color: #38ef7d;
      color: #eee;
      box-shadow: 0 0 0 0.2rem rgba(56, 239, 125, 0.25);
    }

    .form-control:disabled {
      background: rgba(34, 34, 56, 0.4);
      border-color: #333;
      color: #777;
      cursor: not-allowed;
      opacity: 0.5;
    }

    .btn-elytx {
      background: linear-gradient(135deg, #38ef7d, #11998e);
      color: #111;
      border: none;
      padding: 0.75rem 2rem;
      border-radius: 10px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .btn-elytx:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(56, 239, 125, 0.4);
      color: #111;
    }

    .btn-history {
      background: linear-gradient(135deg, #117a68, #38ef7d);
      color: #111;
      border: none;
      padding: 0.75rem 2rem;
      border-radius: 10px;
      font-weight: 600;
      text-decoration: none;
      display: inline-block;
      transition: all 0.3s ease;
    }

    .btn-history:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(17, 122, 104, 0.4);
      color: #111;
      text-decoration: none;
    }

    /* End of Journey/Performance CSS */
    /* ==================== MOBILE NAVBAR FIX ==================== */

/* Ensure navbar collapse is hidden by default on mobile */
@media (max-width: 991.98px) {
  .navbar-collapse {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: #000000 !important;
    z-index: 1040 !important;
    padding: 1rem !important;
    overflow-y: auto !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease-in-out !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .navbar-collapse.show {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Backdrop when navbar is open */
  body.navbar-open::after {
    content: '' !important;
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    z-index: 1035 !important;
    backdrop-filter: blur(5px) !important;
  }

  /* Prevent body scroll when navbar is open */
  body.navbar-open {
    overflow: hidden !important;
  }
}

/* Desktop - normal behavior */
@media (min-width: 992px) {
  .navbar-collapse {
    position: relative !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
