html,
body {
  overflow-x: hidden;
}


@font-face {
  font-family: 'Font Awesome 6 Pro';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/fa-regular-400.woff2') format('woff2');
}

@font-face {
  font-family: "Font Awesome 6 Brands";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/fa-brands-400.woff2") format("woff2"),
    url("../fonts/fa-brands-400.ttf") format("truetype");
}


@font-face {
  font-family: 'Font Awesome 6 Pro';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/fa-solid-900.woff2') format('woff2'),
    url('../fonts/fa-solid-900.woff') format('woff');
}

.fas {
  font-family: "Font Awesome 6 Pro";
  /* or "Font Awesome 6 Solid" */
  font-weight: 900;
}

/* Default is dark mode */
body {
  background-color: #121212;
  color: #ffffff;
}

body.light-mode {
  background-color: #ffffff;
  color: #000000 !important;
}

/* Example: General overrides */

body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body p,
body span,
body a,
body .text-white {
  color: inherit !important;
}

/* OR: Create overrides specific to light-mode */
body.light-mode .text-white {
  color: #000 !important;
}

.site-footer,
.site-footer * {
  color: #ffffff !important;
}

.main-navbar,
.main-navbar * {
  color: #ffffff !important;
}

#theme-toggle {
  background-color: #121212 !important;
  color: #ffffff !important;
  border: none;
  padding: 6px 16px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

#theme-toggle:hover {
  background-color: #1e1e1e !important;
}

body.light-mode .btn-outline-light.theme-adapt-btn {
  color: #000 !important;
  border-color: #000 !important;
}

body.light-mode .btn-outline-light.theme-adapt-btn:hover {
  background-color: #000 !important;
  color: #fff !important;
}

/* Prevent modal text from switching on light mode */
body.light-mode .stay-dark {
  color: #fff !important;
}

/* Keep modal header and paragraph text white */
body.light-mode .stay-dark h4,
body.light-mode .stay-dark p,
body.light-mode .stay-dark .modal-title {
  color: #fff !important;
}

/* Keep white border and text for close button */
body.light-mode .stay-dark .btn-close {
  filter: invert(1);
  /* ensures visibility on white themes */
}

/* Prevent color changes in light mode for scroll percentage */
body.light-mode .stay-dark {
  color: #000 !important;
}

/* Optional: Target span inside if needed */
body.light-mode .stay-dark span {
  color: #000 !important;
}


body.light-mode .category-card,
body.light-mode .product-card {
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .open-btn,
body.light-mode .read-btn {
  background-color: #000;
  color: #fff !important;
}

/* Prevent footer/nav color change */
footer,
header {
  background-color: #000 !important;
  color: #fff !important;
}

footer *,
header * {
  color: #fff !important;
}

/* Default (Dark Mode) */
.theme-text {
  color: #ffffff;
}

/* Light Mode override */
body.light-mode .theme-text .text-change {
  color: #000000;
}

/* Default (dark mode) */
.theme-toggle-section {
  background-color: #121212;
  color: #ffffff;
}

/* Light mode override */
body.light-mode .theme-toggle-section {
  background-color: #ffffff;
  color: #000000;
}

/* Update specific child text elements */
body.light-mode .theme-toggle-section h5,
body.light-mode .theme-toggle-section p,
body.light-mode .theme-toggle-section a {
  color: #000000 !important;
}

body.light-mode .theme-toggle-section i {
  color: #000000 !important;
}

/* body.light-mode .icon-img {
    filter: brightness(0.8);
  } */

.about-banner {
  background-image: url(img/trion1c.jpg);
  /* Replace with your actual image path */
  background-size: cover;
  background-position: center;
  height: 300px;
  /* Adjust as needed */
  position: relative;
}

.about-banner h1 {
  font-size: 3rem;
  z-index: 2;
}

.product-card {
  background-color: transparent;
  border-bottom: 1px solid #333;
}

.product-content h5,
.product-content p {
  margin: 0;
}

.btn-outline-light {
  border-radius: 0;
}

.owl-carousel {
  display: none;
}

.owl-carousel.owl-loaded {
  display: block !important;
}

.custom-carousel .item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  height: 100%;
}

.custom-carousel .item {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Wrapper around image and overlay */
/* Wrapper */
.image-wrapper {
  position: relative;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
}

/* Overlay to darken */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
}

.image-wrapper img {
  width: 100%;
  max-height: 400px;
  /* adjust as needed */
  object-fit: cover;
  border-radius: 20px;
  display: block;
}


/* Flex wrapper for caption + button */
.caption-wrapper {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  /* align-items: flex-end; */
  flex-wrap: wrap;
}

/* Text */
.carousel-captions {
  color: #fff;
  text-align: left;
}

.carousel-caption small {
  font-size: 1rem;
  opacity: 0.8;
}

.carousel-caption h3 {
  font-size: 2rem;
  font-weight: bold;
  margin: 5px 0 0 0;
}

/* Button */
.read-btn {
  background: #fff;
  color: #000;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 25px;
  border: none;
  white-space: nowrap;
  font-size: 1rem;
}

/* Owl nav and dots */
.owl-carousel {
  display: none;
}

.owl-carousel.owl-loaded {
  display: block !important;
}

.owl-nav {
  position: absolute;
  right: 10px;
  bottom: 10px;
}

.owl-nav button.owl-next,
.owl-nav button.owl-prev {
  background: #fff;
  border-radius: 50%;
  padding: 5px 12px;
  margin-left: 5px;
  border: none;
}

.owl-dots {
  text-align: center;
  margin-top: 20px;
}

.owl-carousel .owl-dot {
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background: #fff;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.owl-carousel .owl-dot.active {
  opacity: 1;
}

/* 🔁 Responsive fix for mobile */
@media (max-width: 768px) {
  .caption-wrapper {
    flex-direction: column;
    /* align-items: flex-start; */
    gap: 10px;
  }

  .read-btn {
    align-self: flex-start !important;
  }

  .carousel-caption h3 {
    font-size: 1.5rem;
  }

  .carousel-caption small {
    font-size: 0.875rem;
  }
}


.owl-carousel .owl-dot.active {
  opacity: 1;
}

.owl-carousel .owl-dots {
  display: flex !important;
  justify-content: center;
  margin-top: 20px;
}

.owl-controls-manual {
  position: absolute;
  /* bottom: 20px; */
  right: 100px;
  gap: 10px;
  z-index: 9;
}

.owl-controls-manual button {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #fff;
  color: #000;
  border: none;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.owl-controls-manual button:hover {
  background-color: #f0f0f0;
}

/* Custom Nav Styling */
.owl-nav {
  position: absolute;
  /* bottom: 20px; */
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.owl-nav button.owl-next,
.owl-nav button.owl-prev {
  background: #f1f1f1;
  color: #000;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 20px;
  line-height: 1;
  text-align: center;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* Optional hover effect */
.owl-nav button.owl-next:hover,
.owl-nav button.owl-prev:hover {
  background-color: #e0e0e0;
}

/* ❌ Hide Nav on Mobile */
@media (max-width: 768px) {
  .owl-nav {
    display: none !important;
  }
}

/* Container padding to reveal partial next item */
.custom-carousel {
  padding-right: 80px;
  padding-left: 80px;
  /* Adjust this value as needed for the peek */
}

@media (max-width: 767px) {
  .custom-carousel {
    padding-right: 0;
    /* Disable on mobile for better UX */
    padding-right: 0px;
    padding-left: 0px;
    /* Adjust this value as needed for the peek */
  }
}


.category-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  transition: 0.3s ease;
  min-height: 100%;
  /* ensures equal height */
  word-break: break-word;
  /* prevent long text overflows */
}

.category-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.icon-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 10px;
}

.open-btn {
  background-color: #f4f4f4;
  color: #000 !important;
  font-weight: 500;
  padding: 6px 14px;
  /* smaller button */
  font-size: 0.875rem;
  border: none;
  border-radius: 12px;
  /* reduced radius */
  margin-left: 10px;
  white-space: nowrap;
}

.open-btn:hover {
  background-color: #000;
  /* Background turns black */
  color: #fff !important;
  /* Text turns white */
  transform: scale(1.05);
  /* Slight zoom effect */
}

@media (max-width: 768px) {
  .category-card {
    flex-direction: column;
    align-items: flex-start !important;
    text-align: left;
  }

  .category-card .d-flex.align-items-center {
    flex-direction: row;
    align-items: flex-start;
  }

  .open-btn {
    margin-top: 10px;
    margin-left: 0;
  }
}