/* Custom Modern Color Theme & Base Setup */
:root {
  --primary-dark: #0f172a;
  --secondary-teal: #0d9488;
  --accent-cyan: #06b6d4;
  --highlight-coral: #ff5757;
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --card-border: rgba(13, 148, 136, 0.15);
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background-color: #ffffff;
  overflow-x: hidden;
}

.brand-logo {
  display: inline-block;
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  vertical-align: middle;
}

.brand-logo-footer {
  width: 6rem;
  height: 6rem;
}

.navbar-brand {
  font-size: 1.4rem !important;
}

/* Top Bar */
.top-bar {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.875rem;
}

.top-bar a,
.top-bar a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Navbar */
.navbar {
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  background: #ffffff;
}

.navbar-brand span {
  color: var(--secondary-teal);
  font-weight: 700;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--secondary-teal) !important;
}

.btn-custom-primary {
  background: linear-gradient(135deg, var(--secondary-teal), var(--accent-cyan));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-custom-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(13, 148, 136, 0.3);
  color: #fff;
}

/* Hero Banners */
.page-hero {
  background:
    radial-gradient(circle at 85% 18%, rgba(6, 182, 212, 0.24), transparent 28%),
    radial-gradient(circle at 10% 100%, rgba(13, 148, 136, 0.2), transparent 34%),
    linear-gradient(135deg, var(--primary-dark) 0%, #1e293b 100%);
  color: #ffffff;
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.2) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  letter-spacing: -0.04em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.hero-carousel,
.hero-slide {
  min-height: 420px;
}
.top-bar div a{
    text-decoration: none;
    color:#fff;
}
.hero-slide {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.78) 48%, rgba(15, 23, 42, 0.3) 100%),
    var(--hero-image) center/cover no-repeat;
}

.hero-content {
  min-height: 420px;
}

.hero-slide h1,
.hero-slide h2 {
  max-width: 760px;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.hero-carousel .carousel-indicators {
  margin-bottom: 1.5rem;
}

.hero-carousel .carousel-indicators [data-bs-target] {
  width: 30px;
  height: 4px;
  border: 0;
  border-radius: 99px;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 8%;
}

/* Glassmorphism Cards */
.custom-card {
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.custom-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(13, 148, 136, 0.12);
  border-color: var(--secondary-teal);
}

.product-image-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  background: #ffffff;
}

.product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chemical-hero {
  padding: 0;
  min-height: 440px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 78% 42%, rgba(6, 182, 212, 0.25), transparent 34%),
    radial-gradient(ellipse at 12% 100%, rgba(13, 148, 136, 0.25), transparent 38%),
    linear-gradient(120deg, #0b1428 0%, #12233d 58%, #103a4d 100%);
}

.chemical-hero::before {
  top: -38%;
  right: -6%;
  width: 580px;
  height: 580px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12), transparent 68%);
}

.chemical-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 4.5rem;
  padding-bottom: 1.5rem;
}

.chemical-hero-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.1);
  color: #a5f3fc;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chemical-hero h1 {
  max-width: 780px;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.chemical-hero p {
  max-width: 650px;
}

.chemical-hero-card {
  position: relative;
  display: flex;
  min-height: 265px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.chemical-hero-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 1rem;
  background: rgba(6, 182, 212, 0.18);
  color: #67e8f9;
  font-size: 1.35rem;
}

.chemical-hero-card-label,
.chemical-hero-card-caption {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.chemical-hero-card strong {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 4.25rem;
  line-height: 1.05;
}

.chemical-hero-card strong small {
  color: #67e8f9;
  font-size: 2.5rem;
}

.chemical-hero-orbit {
  position: absolute;
  width: 11rem;
  height: 11rem;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 50%;
}

.chemical-hero-orbit-one {
  right: -3rem;
  top: -3rem;
}

.chemical-hero-orbit-two {
  right: 1.5rem;
  bottom: -7rem;
}

.chemical-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-top: 2rem;
  color: #cbd5e1;
  font-size: 0.88rem;
}

.chemical-breadcrumb a {
  color: #67e8f9;
  text-decoration: none;
}

.chemical-breadcrumb i {
  color: #64748b;
  font-size: 0.72rem;
}

.chemical-catalog-section {
  background: #f5f8fc;
}

.chemical-catalog-heading {
  scroll-margin-top: 7rem;
}

.chemical-catalog-count {
  flex: 0 0 auto;
  padding: 0.75rem 1rem;
  border: 1px solid #dce7f1;
  border-radius: 999px;
  background: #fff;
  color: #526277;
  font-size: 0.88rem;
}

.chemical-catalog-count i,
.chemical-catalog-count strong {
  color: var(--secondary-teal);
}

.chemical-catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) 1.2fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid #e4ebf3;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.chemical-search {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #dce5ef;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #718096;
}

.chemical-search:focus-within {
  border-color: var(--secondary-teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.chemical-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-dark);
}

.chemical-search kbd {
  padding: 0.15rem 0.4rem;
  border: 1px solid #dce5ef;
  border-radius: 0.35rem;
  background: #fff;
  color: #718096;
  font-size: 0.7rem;
}

.chemical-filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.chemical-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #59677a;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chemical-filter:hover {
  border-color: #d6e5e8;
  color: var(--secondary-teal);
}

.chemical-filter.active {
  background: #e8f6f5;
  color: #087d74;
}

.chemical-filter span {
  display: inline-grid;
  min-width: 1.3rem;
  height: 1.3rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.12);
  font-size: 0.7rem;
}

.chemical-product-grid {
  align-items: stretch;
}

.chemical-product-item {
  display: flex;
}

.chemical-product-card {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #e2eaf2;
  border-radius: 1.15rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.chemical-product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.1);
}

.chemical-product-image-frame {
  position: relative;
  height: 215px;
  margin: 0 !important;
  border: 0;
  border-radius: 0.85rem;
  background:
    radial-gradient(circle at 50% 40%, rgba(13, 148, 136, 0.07), transparent 55%),
    #f4f8fa;
}

.chemical-product-image-frame .product-image {
  padding: 0.5rem;
  border-radius: inherit;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.chemical-product-card:hover .product-image {
  transform: scale(1.045);
}

.chemical-product-name {
  margin: 1rem 0 0.45rem;
  color: #12223a;
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.35;
}

.chemical-product-card > .text-muted {
  min-height: 3.4rem;
  margin-bottom: 1rem !important;
  font-size: 0.86rem !important;
  line-height: 1.55;
}

.chemical-product-card > .mt-auto {
  margin-top: auto;
}

.chemical-product-card .btn-custom-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 0.8rem;
  border-radius: 0.7rem;
  font-size: 0.84rem;
}

.chemical-no-results {
  padding: 4rem 1rem;
  border: 1px dashed #c9d7e3;
  border-radius: 1rem;
  background: #fff;
  text-align: center;
}

.chemical-no-results > span {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #e8f6f5;
  color: var(--secondary-teal);
  font-size: 1.25rem;
}

.chemical-catalog-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid #dce8ed;
  border-radius: 1.1rem;
  background: linear-gradient(110deg, #fff, #f0f9f8);
}

.chemical-catalog-cta > div {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chemical-cta-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.9rem;
  background: #e1f4f2;
  color: var(--secondary-teal);
  font-size: 1.15rem;
}

.product-category-carousel {
  padding: 0 3.5rem 2.75rem;
  overflow: hidden;
}

.product-category-carousel .carousel-indicators {
  bottom: 0;
  margin-bottom: 0;
}

.product-category-carousel .carousel-indicators [data-bs-target] {
  width: 28px;
  height: 4px;
  border: 0;
  border-radius: 99px;
  background-color: var(--secondary-teal);
}

.category-product-card {
  overflow: hidden;
}

.category-product-image {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.category-product-card .card-body {
  flex: 1;
}

.category-product-card h3 {
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-product-card p {
  min-height: 3.75rem;
}

.category-product-actions {
  display: flex;
  gap: 0.5rem;
}

.category-product-actions .btn {
  flex: 1;
  padding: 0.45rem 0.5rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

.category-product-carousel .row {
  margin-right: 0;
  margin-left: 0;
}

.product-category-carousel .carousel-control-prev,
.product-category-carousel .carousel-control-next {
  top: 40%;
  bottom: auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--secondary-teal);
  opacity: 1;
}

.product-category-carousel .carousel-control-prev {
  left: 0;
}

.product-category-carousel .carousel-control-next {
  right: 0;
}

.product-category-carousel .carousel-control-prev:hover,
.product-category-carousel .carousel-control-next:hover {
  background: var(--primary-dark);
}

/* Section Titles */
.section-subtitle {
  color: var(--secondary-teal);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
}

.section-title {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
}

.testimonial-carousel {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 3.5rem 3rem;
}

.testimonial-card {
  min-height: 270px;
  padding: 4rem 3rem 3rem;
}

.testimonial-carousel .carousel-indicators {
  bottom: 0;
  margin-bottom: 0;
}

.testimonial-carousel .carousel-indicators [data-bs-target] {
  width: 28px;
  height: 4px;
  border: 0;
  border-radius: 99px;
  background-color: var(--secondary-teal);
}

.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next {
  top: 50%;
  bottom: auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--secondary-teal);
  opacity: 1;
  transform: translateY(-50%);
}

.testimonial-carousel .carousel-control-prev {
  left: 0;
}

.testimonial-carousel .carousel-control-next {
  right: 0;
}

.testimonial-carousel .carousel-control-prev:hover,
.testimonial-carousel .carousel-control-next:hover {
  background: var(--primary-dark);
}

.vision-mission-icon {
  display: inline-block;
  width: auto;
  height: auto;
  font-size: 1.75rem;
  line-height: 1;
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: #94a3b8;
}

footer h5 {
  color: #ffffff;
  font-weight: 700;
}

footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent-cyan);
}

footer .text-muted {
  color: #cbd5e1 !important;
}

footer a.text-muted:hover {
  color: var(--accent-cyan) !important;
}

#galleryGrid .gallery-item {
  opacity: 1 !important;
  transform: none !important;
}

.gallery-card {
  background: var(--primary-dark);
}

.home-gallery-card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.home-gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  align-items: flex-end;
  opacity: 1;
  background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.88) 100%);
  pointer-events: none;
}

#galleryGrid .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h6 {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

footer .col-lg-3:last-child p {
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.contact-info-link {
  color: var(--secondary-teal);
  text-decoration: none;
}

.contact-info-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .home-gallery-card img {
    height: 220px;
  }

  .chemical-hero {
    min-height: 0;
  }

  .chemical-hero-content {
    padding-top: 3.25rem;
    padding-bottom: 1rem;
  }

  .chemical-hero h1 {
    font-size: clamp(2.25rem, 10vw, 3.4rem);
  }

  .chemical-hero p {
    font-size: 1rem;
  }

  .chemical-hero .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .chemical-breadcrumb {
    padding-top: 1.25rem;
  }

  .chemical-catalog-section .container {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .chemical-catalog-toolbar {
    grid-template-columns: 1fr;
    padding: 0.8rem;
  }

  .chemical-filter-group {
    justify-content: flex-start;
    gap: 0.3rem;
  }

  .chemical-filter {
    padding: 0.55rem 0.7rem;
    font-size: 0.78rem;
  }

  .chemical-product-image-frame {
    height: 205px;
  }

  .chemical-product-card > .text-muted {
    min-height: 0;
  }

  .chemical-catalog-cta,
  .chemical-catalog-cta > div {
    align-items: flex-start;
  }

  .chemical-catalog-cta {
    flex-direction: column;
  }

  .chemical-catalog-cta > .btn {
    width: 100%;
  }

  .hero-carousel,
  .hero-slide,
  .hero-content {
    min-height: 540px;
  }

  .hero-slide {
    background:
      linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62)),
      var(--hero-image) center/cover no-repeat;
  }

  .hero-slide h1,
  .hero-slide h2 {
    font-size: clamp(2.5rem, 11vw, 3.5rem);
  }

  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    width: 12%;
  }

  .product-category-carousel {
    padding: 0 2.25rem 2.5rem;
  }

  .product-category-carousel .carousel-item .row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .product-category-carousel .carousel-item .row::-webkit-scrollbar {
    display: none;
  }

  .product-category-carousel .carousel-item .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
    scroll-snap-align: center;
  }

  .product-category-carousel .carousel-control-prev,
  .product-category-carousel .carousel-control-next {
    top: 42%;
    width: 2rem;
    height: 2rem;
  }

  .product-category-carousel .carousel-control-prev-icon,
  .product-category-carousel .carousel-control-next-icon {
    width: 1rem;
    height: 1rem;
  }

  .category-product-image {
    height: 220px;
  }

  .category-product-card .card-body {
    padding: 0.75rem !important;
  }

  .category-product-card h3 {
    font-size: 0.95rem;
  }

  .category-product-card p {
    font-size: 0.8rem !important;
  }

  .category-product-actions {
    gap: 0.25rem;
  }

  .category-product-actions .btn {
    min-width: 0;
    padding: 0.45rem 0.5rem;
    font-size: 0.8rem;
  }

  .navbar-brand {
    font-size: 1.1rem !important;
  }

  .brand-logo {
    width: 4rem;
    height: 4rem;
  }

  .brand-logo-footer {
    width: 5rem;
    height: 5rem;
  }

  .testimonial-carousel {
    padding: 0 2.25rem 2.5rem;
  }

  .testimonial-card {
    min-height: 300px;
    padding: 3.5rem 1.25rem 2rem;
  }

  .testimonial-card .fa-quote-left {
    margin: 0.75rem !important;
    font-size: 1.5rem;
  }

  .testimonial-card p {
    font-size: 1rem !important;
  }

  .testimonial-carousel .carousel-control-prev,
  .testimonial-carousel .carousel-control-next {
    width: 2rem;
    height: 2rem;
  }

  .testimonial-carousel .carousel-control-prev-icon,
  .testimonial-carousel .carousel-control-next-icon {
    width: 1rem;
    height: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .chemical-catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .chemical-filter-group {
    justify-content: flex-start;
  }

  .chemical-product-image-frame {
    height: 195px;
  }
}