:root {
  --bg: #ffffff;
  --royal: #0b1e3f;
  /* deep royal blue */
  --electric: #1e5eff;
  /* electric blue */
  --platinum: #e4e7ec;
  /* platinum silver */
  --white: #ffffff;
  --gold: #cda434;
  --muted: #9aa3b2;
  --card: rgba(255, 255, 255, 0.55);
  --glass: rgba(255, 255, 255, 0.06);
  --shadow-soft: 0 12px 40px rgba(3, 10, 30, 0.12);
  --shadow-glow: 0 8px 30px rgba(30, 94, 255, 0.12);
  --radius: 14px;
  font-family: "Poppins", "Inter", "DM Sans", system-ui, -apple-system,
    "Segoe UI", Roboto, Arial;
}

a {
  text-decoration: none;
  color: inherit;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: #0f172a;
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px;
}
.chemical-bg {
  position: relative;
  overflow: hidden;
}

.chemical-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='800' height='800' viewBox='0 0 800 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23ffffff' stroke-width='1' stroke-opacity='0.15'%3E%3Ccircle cx='100' cy='100' r='3'/%3E%3Cline x1='100' y1='100' x2='180' y2='160'/%3E%3Ccircle cx='180' cy='160' r='3'/%3E%3Cline x1='180' y1='160' x2='260' y2='120'/%3E%3Ccircle cx='260' cy='120' r='3'/%3E%3Cline x1='260' y1='120' x2='340' y2='200'/%3E%3Ccircle cx='340' cy='200' r='3'/%3E%3C/ g %3E%3C/svg%3E")
    repeat;
  animation: moveBonds 18s linear infinite;
  z-index: 1;
  /* decorative background should not block clicks */
  pointer-events: none;
}

@keyframes moveBonds {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 500px 500px;
  }
}

/* Dark overlay (optional) */
.chemical-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  /* don't block clicks on content sitting above this overlay */
  pointer-events: none;
}

.chemical-content {
  position: relative;
  z-index: 3;
}

/* Utility */
.max-w-narrow {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.muted {
  color: var(--muted);
}

/* Page background lighting */
body::before {
  content: "";
  position: fixed;
  right: -20%;
  top: -10%;
  width: 60vw;
  height: 60vh;
  background: radial-gradient(
      circle at 30% 20%,
      rgba(30, 94, 255, 0.14),
      transparent 20%
    ),
    radial-gradient(circle at 60% 80%, rgba(13, 30, 90, 0.06), transparent 30%);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  padding: 10px 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.6),
    rgb(4 31 218 / 25%)
  );
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* Logo in navbar */
.brand a.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(30, 94, 255, 0.08);
  background: #fff;
  padding: 2px 4px;
  transition: box-shadow 0.18s;
}
.logo-link:hover .logo-img {
  box-shadow: 0 6px 24px rgba(205, 164, 52, 0.13),
    0 2px 12px rgba(30, 94, 255, 0.12);
}
.logo-name {
  color: var(--royal);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  font-family: "Poppins", "Inter", "DM Sans", sans-serif;
}

.logo-mark {
  display: inline-block;
  background: linear-gradient(135deg, var(--electric), var(--royal));
  color: var(--white);
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: var(--shadow-glow);
  letter-spacing: 1px;
}

.logo-name {
  color: var(--royal);
  font-weight: 700;
}

.main-nav a {
  margin-left: 20px;
  color: var(--royal);
  text-decoration: none;
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--electric);
  transform: translateY(-2px);
}

.nav-cta {
  margin-left: 12px;
}

/* Sticky smaller on scroll (JS could add class) */
.site-header.small {
  padding: 8px 0;
}

/* Hero */
.hero {
  padding: 84px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  left: -12%;
  top: -18%;
  width: 140%;
  height: 120%;
  transform: rotate(-6deg);
  background: linear-gradient(
    180deg,
    rgba(30, 94, 255, 0.14),
    rgba(11, 30, 70, 0.03)
  );
  filter: blur(40px);
  opacity: 0.85;
  /* decorative blur layer should not intercept pointer events */
  pointer-events: none;
}

.hero-grid {
  display: flex;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: 2.6rem;
  margin: 0 0 12px;
  line-height: 1.02;
  color: var(--royal);
  font-weight: 800;
  text-wrap: auto;
  text-wrap-mode: wrap;
}

.hero-text .eyebrow {
  display: inline-block;
  background: linear-gradient(
    90deg,
    rgba(30, 94, 255, 0.12),
    rgba(13, 30, 90, 0.06)
  );
  color: var(--electric);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.tagline {
  color: var(--muted);
  margin: 8px 0;
}

.lead {
  color: var(--royal);
  font-size: 1.05rem;
  margin-bottom: 18px;
  word-break: break-word;
}

.cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, var(--electric), var(--royal));
  color: var(--white);
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s, box-shadow 0.22s;
}

.btn.secondary {
  background: transparent;
  color: var(--royal);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

.btn.small {
  padding: 8px 12px;
  font-size: 0.95rem;
}

.btn.gold-outline {
  /* background: transparent; */
  border: 1px solid rgba(205, 164, 52, 0.12);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
}

@media (max-width: 400px) {
  .btn.gold-outline {
    margin-top: 5px;
  }
}

.btn.gold-outline:hover {
  box-shadow: 0 10px 30px rgba(205, 164, 52, 0.06);
  transform: translateY(-3px);
}

.hero-image img {
  max-width: 520px;
  width: 100%;
  filter: drop-shadow(0 30px 60px rgba(13, 30, 70, 0.12));
}

/* Trust badges & stats */

.trust-row {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
}

.trust-badge {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.35)
  );
  padding: 10px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  color: var(--royal);
}

.trust-badge::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  background: linear-gradient(90deg, var(--electric), var(--royal));
  border-radius: 99px;
}

.stats {
  display: flex;
  gap: 22px;
  margin-top: 22px;
}

.stat {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85),
    rgba(244, 248, 255, 0.9)
  );
  padding: 18px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.stat h3 {
  margin: 0;
  color: var(--royal);
  font-family: "Poppins", sans-serif;
}

.stat p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Features */

.features {
  margin-top: 36px;
}

.features .grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.7),
    rgba(245, 250, 255, 0.7)
  );
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(205, 164, 52, 0.04);
  box-shadow: var(--shadow-soft);
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card p {
  text-align: center;
}

.feature-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    rgba(30, 94, 255, 0.12),
    rgba(11, 30, 70, 0.05)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 20px;
}

.feature-card h4 {
  margin: 0 0 8px;
}

/* Testimonial */

.testimonial {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.testimonial .quote {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.85),
    rgba(245, 250, 255, 0.9)
  );
  padding: 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid rgba(205, 164, 52, 0.12);
}

.quote p {
  margin: 0;
  font-style: italic;
  color: var(--royal);
  font-size: 1.03rem;
}

.quote cite {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
}

/* Newsletter */

.newsletter {
  margin-top: 28px;
  background: linear-gradient(
    90deg,
    rgba(30, 94, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  padding: 16px;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.newsletter input {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.6);
}

/* Highlights */
.highlights .grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.card {
  background: var(--card);
  padding: 18px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.card h4 {
  margin: 0 0 8px;
}

/* Products grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.product-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72),
    rgba(245, 250, 255, 0.7)
  );
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(205, 164, 52, 0.04);
  text-align: center;
  transition: transform 0.28s, box-shadow 0.28s;
}

.product-card img {
  height: 120px;
  object-fit: contain;
  margin-bottom: 12px;
  transition: transform 0.28s, filter 0.28s;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(3, 10, 30, 0.16);
}

.product-card:hover img {
  transform: scale(1.06);
  filter: drop-shadow(0 20px 40px rgba(30, 94, 255, 0.12));
}

.product-card h3 {
  margin: 8px 0;
  font-weight: 700;
  word-break: break-word;
}

.micro {
  color: var(--muted);
  font-size: 0.95rem;
  word-break: break-word;
}

.featured h2 {
  margin: 8px 0 14px;
}

/* Product detail */
.product-detail .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.image-large img {
  width: 100%;
  max-width: 480px;
}

.specs {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.specs th {
  text-align: left;
  padding: 12px;
  background: linear-gradient(
    90deg,
    rgba(30, 94, 255, 0.06),
    rgba(255, 255, 255, 0.6)
  );
  width: 36%;
}

.specs td {
  padding: 12px;
}

.marketing-block {
  background: var(--accent);
  padding: 12px;
  border-radius: 8px;
  margin-top: 12px;
}

/* Contact */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 2px 8px rgba(3, 10, 30, 0.03);
}

.map-placeholder {
  height: 180px;
  background: #eef2ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.alert.success {
  background: #ecfdf5;
  color: #065f46;
  padding: 12px;
  border-radius: 8px;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #021028 0%, #061733 80%);
  color: #cfe9ff;
  padding: 36px 0;
  margin-top: 40px;
  border-top: 4px solid rgba(205, 164, 52, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

.footer-bottom {
  text-align: center;
  padding-top: 18px;
  color: #9fbbe6;
}

.footer-divider {
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(205, 164, 52, 0.25),
    rgba(255, 255, 255, 0.02)
  );
  margin: 16px 0;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    flex-direction: column-reverse;
  }

  .features .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-image {
    width: -webkit-fill-available;
  }
  .hero-image img {
    max-inline-size: none;
  }
}

@media (max-width: 520px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .brand a {
    font-size: 1rem;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .logo-mark {
    padding: 6px 8px;
  }
}

@media (max-width: 520px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .brand a {
    font-size: 1rem;
  }

  .features .grid-4 {
    grid-template-columns: repeat(1, 1fr);
  }

  .trust-row {
    flex-wrap: wrap;
  }

  .tagline {
    text-align: justify;
  }
}

/* small animation classes */
.fade-up {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.in-view {
  opacity: 1;
  transform: none;
}

/* About short section styling */
/* .about-short {
  padding: 28px auto;
} */
.about-short .about-grid {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}
.about-short h2 {
  margin: 0 0 8px;
  color: var(--royal);
}
.about-short .lead {
  color: var(--muted);
  margin-bottom: 12px;
  text-align: justify;
}

/* Enhanced about page styles and animations */
.about-hero {
  padding: 28px 0 18px;
}
.about-hero .hero-grid {
  display: flex;
  gap: 24px;
  align-items: center;
}
.about-hero .hero-image img {
  width: 100%;
  max-width: 520px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  transform-origin: center center;
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.3s;
}
.about-hero .cta-row {
  position: relative;
  z-index: 4;
}
.about-hero .hero-image img:hover {
  transform: translateY(-6px) scale(1.02);
}

.about-grid .bullets {
  padding-left: 18px;
}
.factsheet {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.factsheet th,
.factsheet td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  text-align: left;
}
.factsheet th {
  width: 45%;
  font-weight: 700;
  color: var(--royal);
}

.company-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.company-gallery .gallery-item {
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(245, 250, 255, 0.95)
  );
  box-shadow: var(--shadow-soft);
}
.company-gallery .gallery-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1), filter 0.4s;
}
.company-gallery .gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.03);
}

@media (max-width: 900px) {
  .company-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .about-hero .hero-grid {
    flex-direction: column-reverse;
  }
  .company-gallery {
    grid-template-columns: 1fr;
  }
  .company-gallery .gallery-item img {
    height: 140px;
  }
}

/* subtle card lift when in-view */
.fade-up.in-view .feature-card,
.fade-up.in-view .feature-card * {
  transition: transform 0.44s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.4s;
}
.fade-up.in-view {
  transform: none;
}

/* Improve product image responsiveness */
.product-card img {
  height: auto;
  max-height: 140px;
  width: 100%;
  object-fit: contain;
}

/* Ensure large product/detail images scale on small screens */
.image-large img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* ============================
   MOBILE TOGGLE (HAMBURGER)
=============================*/
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 6px;
  z-index: 1210;
}

.mobile-nav-toggle .hamburger {
  width: 22px;
  height: 2px;
  background: var(--royal);
  position: relative;
}

.mobile-nav-toggle .hamburger::before,
.mobile-nav-toggle .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--royal);
}
.mobile-nav-toggle .hamburger::before {
  top: -6px;
}
.mobile-nav-toggle .hamburger::after {
  top: 6px;
}

/* ============================
   NAV MENU + CLOSE BUTTON
=============================*/
.nav-close-btn {
  display: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: right;
  padding: 10px 6px;
  font-size: 32px;
  cursor: pointer;
  color: var(--royal);
}

.nav-close-btn .close-icon {
  font-size: 36px;
  line-height: 0;
}

/* ============================
   MOBILE MENU STYLES
=============================*/
@media (max-width: 800px) {
  .mobile-nav-toggle {
    display: flex;
  }
  .main-nav {
    display: none;
  }
  .nav-cta {
    display: none;
  }

  body.nav-open .main-nav {
    display: flex;
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    padding: 16px;
    gap: 12px;
    z-index: 2000;
  }

  /* Show close button only in mobile menu */
  body.nav-open .nav-close-btn {
    display: block;
  }
}

/* Slightly reduce container padding on small devices for breathing room */
@media (max-width: 520px) {
  .container {
    padding: 10px;
  }
  .hero {
    padding: 24px 0 12px;
  }
  .product-card {
    padding: 12px;
  }
  .product-card img {
    max-height: 100px;
  }
  .about-short {
    padding-block: 14px;
  }
}
.team-description {
  display: flex;
  text-align: justify !important;
}