/* variables */
:root {
  --bg-color: #e0fcff;
  --primary-color: #222558;
  --secondary-color: #E12428;
  --black: #2E2E2E;
  --muted: #5b6280;
  --line: #d3ecf1;
  --card-bg: #ffffff;
  --shadow: 0 20px 45px -22px rgba(16, 26, 87, .28);
  --heading-font: "Outfit", sans-serif;
}

/* global properties */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--black);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.btn {
  color: #fff;
  padding: 12px 26px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .3px;
  border: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -10px rgba(225, 36, 40, .55);
}

.radius {
  border-radius: 10px;
}

a {
  text-decoration: none;
  display: inline-block;
  color: inherit;
}

img {
  width: 100%;
}

.w-full {
  width: calc(100vw - 10rem) !important;
  max-width: 1440px;
  margin: auto;
}

/* for all headings */
.heading {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: clamp(30px, 6.5vw, 76px);
  color: var(--primary-color);
  text-transform: uppercase;
  line-height: 0.98;
  margin-bottom: 1.4rem;
}

/* ================= HEADER ================= */

header {
  padding: .9rem 0;
  position: fixed;
  z-index: 100;

  top: 0;
  left: 0;

  width: 100%;

  background: rgba(255, 255, 255, .55);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transition: box-shadow .3s ease, background .3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 12px 30px -18px rgba(16, 26, 87, .4);
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

header .logo {
  max-width: 132px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0 auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  position: relative;
  padding: 6px 0;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--secondary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width .25s ease;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

header .btn {
  background-color: var(--secondary-color);
  border-radius: 8px;
  flex-shrink: 0;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
}

#main {
  overflow: hidden;
}

#detergent {
  position: absolute;
  left: 80%;
  top: 2.8%;
  transform: translateX(-50%);
  width: 40vw;
  height: 40vw;
  max-width: 660px;
  max-height: 660px;
  background: transparent;
  z-index: 9;
  filter: drop-shadow(0 30px 60px rgba(0, 19, 95, .25));
  transform-origin: center center;
}

/* ================= SECTION 1 : HERO ================= */

#section1 {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;

  /* fallback in case the video hasn't loaded yet / is missing */
  background: linear-gradient(135deg, #e0fcff 0%, #cdeff5 50%, #b9e6f0 100%);
}

#heroVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(224, 252, 255, .35);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: calc(100vw - 10rem);
  max-width: 1440px;
  margin: auto;
}

#section1 .heading {
  max-width: 950px;
  font-size: clamp(52px, 9vw, 150px);
  line-height: .92;
  margin: 0;
}

.hero-lead {
  margin-top: 22px;
  max-width: 440px;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  opacity: .8;
}

/* ================= SECTION 2 : INTRO + FEATURES ================= */

#section2 {
  min-height: 100vh;
  padding-top: 8vw;
}

.section2-top {
  display: flex;
  align-items: center;
  gap: 4vw;
}

#section2 .heading {
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 46px);
}

#section2 .heading span {
  color: var(--secondary-color);
}

#section2 p {
  color: var(--muted);
  line-height: 1.8;
  font-size: larger;
}

#section2 .btn {
  background-color: var(--black);
  margin-top: 1.8rem;
}

#section2 .content-wrapper {
  max-width: 500px;
  flex-shrink: 0;
}

.product-showcase {
  flex: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 380px;
  border-radius: 30px;
  background: radial-gradient(circle at 50% 100%, #cdeff5 0%, transparent 65%);
}

.product-showcase img {
  width: auto;
  max-width: 100%;
  max-height: 460px;
  object-fit: contain;
  filter: drop-shadow(8px 35px 24px rgba(0, 19, 95, .18));
}

.feature-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  margin-top: 6vw;
}

.feature-box {
  border: 1px solid var(--line);
  background: var(--card-bg);
  padding: 4rem 4.4rem;
  border-radius: 14px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.feature-box::before {
  content: '';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--bg-color);
  font-size: 22px;
}

.feature-box:nth-child(1)::before {
  content: '⚗️';
}

.feature-box:nth-child(2)::before {
  content: '🌐';
}

.feature-box:nth-child(3)::before {
  content: '🏷️';
}

.feature-box:nth-child(4)::before {
  content: '✅';
}

.feature-name {
  font-family: var(--heading-font);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: .5px;
  line-height: 1.2;
  margin-bottom: .6rem;
  color: var(--primary-color);
}

.feature-detail {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ================= SECTION 3 : PREMIUM CHEMISTRY ================= */

#section3 {
  min-height: 40vh;
  padding-top: 4vw;
  padding-bottom: 4vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#section3 .heading {
  font-size: clamp(38px, 8vw, 100px);
  text-align: center;
  text-wrap: balance;
  margin-bottom: 3vw;
}

#section3 .content-wrapper {
  /* width: calc(100vw - 10rem); */
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4vw;
}

/* #section3 video {
  width: 100%;
  max-width: 460px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
} */

#section3 .content {
  max-width: 480px;
}

#section3 p {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.8;
  font-size: larger;
}

#section3 .content .btn {
  background-color: var(--secondary-color);
  border-radius: 8px;
  margin-top: 1.8rem;
}

/* ========================= */
/* VIDEO */
/* ========================= */

.video-wrapper{
    width:100%;
    max-width:600px;
    aspect-ratio:1.15/1;
    overflow:hidden;

    /* Second image jaisi organic shape */
    clip-path: path("M65 45C95 10 530 0 570 70C600 120 600 280 555 330C520 370 460 390 390 392C285 395 170 385 85 340C15 302 0 245 0 180C0 110 20 72 65 45Z");

    box-shadow:0 25px 60px rgba(0,0,0,.18);
}

.video-wrapper video{
    width:100%;
    height:80%;
    object-fit:cover;
    display:block;
}

/* ========================= */

/* ================= SECTION 4 : COLLAGE ================= */

#section4 {
  min-height: 100vh;
  position: relative;
}

#section4 img {
  border: 10px solid #fff;
  box-shadow: var(--shadow);
  position: absolute;
}

#section4 .img1 {
  max-width: 260px;
  top: 12%;
  left: 3%;
  transform: rotate(15deg);
}

#section4 .img2 {
  max-width: 470px;
  right: 4%;
  top: 22%;
  transform: rotate(14deg);
}

#section4 .img3 {
  max-width: 340px;
  left: 10%;
  bottom: 12%;
  transform: rotate(-12deg);
}

/* ================= HOUSEHOLD INSECTICIDE BANNER ================= */

.insecticide-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 30px 24px;
  margin: 0 0 4vw;
  background: linear-gradient(90deg, #cfeaf0, #eaf7fb 50%, #cfeaf0);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.insecticide-banner h2 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: .5px;
  text-transform: uppercase;
  font-weight: 700;
}

.insecticide-banner .leaf {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

/* ================= PRODUCT CAROUSELS (5 / 7 / 8 / 9) ================= */

#section5,
#section7,
#section8,
#section9 {
  text-align: center;
  padding-top: 4vw;
  padding-bottom: 5vw;
}

#section5 .heading,
#section7 .heading,
#section8 .heading,
#section9 .heading {
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: 1.8rem;
}

.carousel-frame {
  width: calc(100vw - 10rem);
  max-width: 1280px;
  margin: 0 auto 2rem;
  background: var(--card-bg);
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 2.4rem 3.2rem 2.8rem;
  box-shadow: 0 18px 45px -30px rgba(16, 26, 87, .35);
  overflow: visible;
}

.productSwiper {
  position: relative;
  padding: 8px 40px 16px;
  overflow: hidden;
  width: 100%;
}

.productSwiper .swiper-wrapper {
  align-items: stretch;
}

.swiper-slide {
  height: auto;
  box-sizing: border-box;
}

.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: linear-gradient(180deg, #f7fcfd 0%, #ffffff 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 14px 20px;
  height: 100%;
  min-height: 240px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.product:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

#section5 img,
#section7 img,
#section8 img,
#section9 img,
.product img {
  width: auto;
  max-width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(4px 12px 10px rgba(0, 0, 0, .12));
}

.product .name {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
  line-height: 1.3;
}

.product .price {
  font-size: 15px;
  font-weight: 800;
  color: var(--secondary-color);
  margin-top: 4px;
}

/* swiper nav arrows — kept inside the frame */
.productSwiper .swiper-button-prev,
.productSwiper .swiper-button-next {
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--primary-color);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
  top: 50%;
  margin-top: -20px;
  z-index: 5;
  box-shadow: 0 4px 14px rgba(16, 26, 87, .12);
}

.productSwiper .swiper-button-prev:hover,
.productSwiper .swiper-button-next:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.productSwiper .swiper-button-prev::after,
.productSwiper .swiper-button-next::after {
  font-size: 14px;
  font-weight: 900;
}

.productSwiper .swiper-button-prev {
  left: 0;
}

.productSwiper .swiper-button-next {
  right: 0;
}

/* ================= SECTION 6 : GLOBAL MARKETS ================= */

#section6 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5rem;
  padding: 6rem 0 8rem;
  min-height: 90vh;
}

#section6 .content-wrapper {
  flex: 1;
  max-width: 520px;
}

#section6 .heading {
  font-size: clamp(30px, 4vw, 56px);
  margin: 1rem 0;
}

#section6 p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}

.section-tag {
  display: inline-block;
  color: var(--secondary-color);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
}

.map-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-wrapper img {
  width: 100%;
  max-width: 720px;
  filter: drop-shadow(0 20px 50px rgba(0, 19, 95, .15));
  animation: mapFloat 8s ease-in-out infinite;
}

.pakistan-pin {
  position: absolute;
  left: 66%;
  top: 43%;
  transform: translate(-50%, -50%);
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--secondary-color);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(225, 36, 40, .45);
  transform: translate(-50%, -50%);
  animation: pulsePin 2s infinite;
}

.label {
  position: absolute;
  top: -70px;
  left: 20px;
  white-space: nowrap;
  background: #00135F;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

.label::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -8px;
  border: 8px solid transparent;
  border-top-color: #00135F;
}

@keyframes pulsePin {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }
}

.stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.stat h3 {
  font-size: 2.6rem;
  color: var(--secondary-color);
  font-family: var(--heading-font);
}

.stat span {
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: .3px;
}

@keyframes mapFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* ================= FOOTER ================= */

footer {
  margin-top: 4rem;
  background: #0b1f33;
  color: #fff;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 5rem;
  padding: 5rem 0;
}

.footer-grid .logo {
  max-width: 180px;
  margin-bottom: 1.5rem;
}

.footer-grid p {
  opacity: .75;
  line-height: 1.8;
}

.footer-grid h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  letter-spacing: .5px;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 12px;
}

.footer-grid a {
  color: #fff;
  opacity: .75;
  transition: .3s;
}

.footer-grid a:hover {
  color: var(--secondary-color);
  opacity: 1;
}

.footer-grid .social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.25rem;
}

.footer-grid .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  opacity: 1;
  transition: 0.3s;
}

.footer-grid .social-icons a:hover {
  background: var(--secondary-color);
  color: #fff;
  transform: translateY(-3px);
}

.footer-grid .social-icons svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-grid a[href^="tel:"] {
  opacity: 0.9;
  font-weight: 600;
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1.5rem;
  opacity: .7;
  font-size: 12.5px;
}

.to-top {
  position: absolute;
  right: 40px;
  top: -24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 18px;
}

/* ================= CUSTOM POINTER / CURSOR ================= */

@media (hover: hover) and (pointer: fine) {

  body {
    cursor: none;
  }

  a,
  button,
  .swiper-button-prev,
  .swiper-button-next,
  .feature-box,
  .product,
  .burger {
    cursor: none;
  }
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 100000;
  border-radius: 50%;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--secondary-color);
  transition: width .25s ease, height .25s ease, background .25s ease;
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(34, 37, 88, .55);
  transition: width .25s ease, height .25s ease, border-color .25s ease, background .25s ease;
}

.cursor-dot.cursor-hover {
  width: 12px;
  height: 12px;
  background: var(--primary-color);
}

.cursor-ring.cursor-hover {
  width: 60px;
  height: 60px;
  border-color: var(--secondary-color);
  background: rgba(225, 36, 40, .08);
}

.cursor-dot.cursor-press {
  transform: translate(-50%, -50%) scale(0.6);
}

.cursor-ring.cursor-press {
  transform: translate(-50%, -50%) scale(0.7);
}

/* touch devices never see the custom cursor layer */
@media (hover: none), (pointer: coarse) {

  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }

  body {
    cursor: auto !important;
  }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1200px) {
  .w-full {
    width: calc(100vw - 6rem) !important;
  }

  .carousel-frame {
    width: calc(100vw - 6rem);
    padding: 2rem 1.8rem 2.4rem;
  }

  .productSwiper {
    padding: 8px 36px 12px;
  }
}

@media (max-width: 990px) {
  #detergent {
    left: 50%;
    top: 6%;
    width: 62vw;
    height: 62vw;
    max-width: 380px;
    max-height: 380px;
  }
}

@media (max-width: 991px) {

  #section2 {
    min-height: auto;
    padding-top: 4rem;
  }

  .section2-top {
    flex-direction: column;
    gap: 2rem;
  }

  #section2 .content-wrapper {
    max-width: 100%;
    text-align: center;
  }

  .product-showcase {
    width: 100%;
    min-height: 280px;
  }

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

  #section3 .content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  #section3 .content {
    max-width: 560px;
    margin: 0 auto;
  }

  .video-wrapper {
    max-width: 100%;
    clip-path: none;
    border-radius: 24px;
    aspect-ratio: 16 / 11;
  }

  #section6 {
    flex-direction: column-reverse;
    text-align: center;
    gap: 3rem;
  }

  #section6 .content-wrapper {
    max-width: 100%;
  }

  .stats {
    justify-content: center;
    flex-wrap: wrap;
  }

  .map-wrapper img {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .to-top {
    right: 24px;
  }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 2rem 22px 1.5rem;
    gap: 16px;
    box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .3);
    transform: translateY(-140%);
    transition: transform .3s ease;
    z-index: 50;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .burger {
    display: flex;
  }

  header .btn.nav-cta {
    display: none;
  }

  /* Hero — prevent mid-word breaks, balanced layout */
  #section1 {
    height: auto;
    min-height: 100svh;
    padding: 100px 0 40px;
    align-items: flex-start;
  }

  #section1 .heading {
    font-size: clamp(36px, 11vw, 64px);
    line-height: 1.05;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    max-width: 100%;
  }

  .hero-content {
    width: calc(100vw - 3rem);
    padding-top: 0;
  }

  .hero-lead {
    font-size: 15px;
    max-width: 100%;
    margin-top: 14px;
  }

  /* Molecule below text on tablet/mobile, not overlapping */
  #detergent {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    display: block;
    margin: 24px auto 0;
    width: 55vw;
    height: auto;
    max-width: 260px;
    max-height: none;
  }

  #section4 {
    min-height: 70vh;
  }

  #section4 .img1 {
    max-width: 40vw;
  }

  #section4 .img2 {
    max-width: 55vw;
  }

  #section4 .img3 {
    max-width: 46vw;
  }
}

@media (max-width: 560px) {
  .w-full {
    width: calc(100vw - 2.5rem) !important;
  }

  /* Section 1 hero tighter */
  #section1 {
    padding: 90px 0 28px;
    min-height: auto;
  }

  #section1 .heading {
    font-size: clamp(32px, 10.5vw, 48px);
    line-height: 1.08;
  }

  .hero-lead {
    font-size: 14px;
  }

  #detergent {
    width: 48vw;
    max-width: 200px;
    margin-top: 18px;
  }

  /* Section 2 — reduce empty space above image */
  #section2 {
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }

  .section2-top {
    gap: 1.5rem;
  }

  #section2 .heading {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 0.8rem;
  }

  #section2 p {
    font-size: 14px;
    line-height: 1.65;
  }

  .product-showcase {
    min-height: 220px;
    margin-top: 0.5rem;
  }

  .product-showcase img {
    max-height: 260px;
  }

  .feature-wrapper {
    grid-template-columns: 1fr;
    margin-top: 2rem;
    gap: 1rem;
  }

  .feature-box {
    padding: 1.6rem 1.4rem;
  }

  /* Section 3 — video full width, softer clip on mobile */
  #section3 {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  #section3 .heading {
    font-size: clamp(28px, 9vw, 42px);
    margin-bottom: 1.5rem;
  }

  #section3 .content-wrapper {
    gap: 1.5rem;
  }

  .video-wrapper {
    max-width: 100%;
    aspect-ratio: 16 / 11;
    border-radius: 20px;
    clip-path: none;
    overflow: hidden;
  }

  #section3 video,
  .video-wrapper video {
    max-width: 100%;
    height: 110%;
    object-fit: cover;
  }

  #section3 p {
    font-size: 14px;
  }

  .insecticide-banner {
    flex-direction: column;
    gap: 10px;
    padding: 20px 16px;
    margin-bottom: 1.5rem;
  }

  .insecticide-banner .leaf {
    display: none;
  }

  .insecticide-banner h2 {
    font-size: 16px;
  }

  /* Slider — single product on mobile */
  .carousel-frame {
    width: calc(100vw - 2.5rem);
    padding: 1.2rem 0.6rem 1.6rem;
  }

  .productSwiper {
    padding: 4px 36px 8px;
  }

  .product {
    min-height: 230px;
    padding: 18px 12px 16px;
  }

  #section5 img,
  #section7 img,
  #section8 img,
  #section9 img,
  .product img {
    height: 130px;
  }

  .product .name {
    font-size: 13px;
  }

  .product .price {
    font-size: 13px;
  }

  .productSwiper .swiper-button-prev,
  .productSwiper .swiper-button-next {
    width: 34px;
    height: 34px;
    margin-top: -17px;
  }

  .productSwiper .swiper-button-prev::after,
  .productSwiper .swiper-button-next::after {
    font-size: 12px;
  }

  #section5 .heading,
  #section7 .heading,
  #section8 .heading,
  #section9 .heading {
    font-size: 16px;
    margin-bottom: 1rem;
  }

  /* Section 6 map */
  #section6 {
    padding: 3rem 0 4rem;
    min-height: auto;
  }

  #section6 .heading {
    font-size: clamp(26px, 8vw, 36px);
  }

  .stats {
    gap: 1.5rem;
  }

  .stat h3 {
    font-size: 1.8rem;
  }
}

/* ================= BUBBLE CANVAS ================= */

#bubbleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

#blastFlash {
  position: fixed;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
}

/* Products always visible — blast animation enhances on scroll when GSAP is ready */
#section5 .product,
#section7 .product,
#section8 .product,
#section9 .product {
  opacity: 1;
  transform: none;
}

/* Optional blast prep class (applied by JS only if animation runs) */
#section5.blast-ready .product {
  opacity: 0;
  transform: translateY(80px) scale(.85);
}

body.loading {
  overflow: hidden;
}

/* ========== INNER PAGES ========== */
.page-hero {
  padding: 160px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #00135F;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 19, 95, 0.78) 0%,
    rgba(0, 30, 80, 0.68) 50%,
    rgba(225, 36, 40, 0.35) 100%
  );
  z-index: 0;
}

.page-hero .w-full,
.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero .heading {
  font-size: clamp(36px, 6vw, 64px);
  margin-bottom: 1rem;
  color: #fff;
}

.page-hero p {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Specific hero backgrounds (fallback if inline style missing) */
.page-hero.hero-about {
  background-image: url("../images/banners/img1.jpg");
}
.page-hero.hero-oem {
  background-image: url("../images/banners/img2.jpg");
}
.page-hero.hero-markets {
  background-image: url("../images/banners/img3.jpg");
}
.page-hero.hero-contact {
  background-image: url("../images/banners/img1.jpg");
}
.page-hero.hero-products {
  background-image: url("../images/banners/img1.jpg");
}

.page-section {
  padding: 4rem 0;
}

.page-section .content-block {
  max-width: 720px;
  margin: 0 auto 3rem;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.8rem;
  transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card h3 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  font-size: 1.15rem;
  margin-bottom: .6rem;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--black);
  outline: none;
  transition: border-color .2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--primary-color);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .btn {
  background: var(--secondary-color);
  border-radius: 8px;
  align-self: flex-start;
}

.product-grid .product {
  min-height: 260px;
}

@media (max-width: 991px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .page-hero {
    padding: 110px 0 40px;
  }
}

/* ================= PRODUCT MODAL ================= */
#productModal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 18, 45, .75);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: .35s;
  z-index: 99999;
  padding: 20px;
}

#productModal.show {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  width: min(1150px, 96%);
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.modal-box {
  position: relative;
  z-index: 1;
}

.modal-left {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
  background: #F4FCFF;
}

.modal-left img {
  height: min(420px, 50vh);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .15));
}

.modal-right {
  padding: 50px 40px;
}

.modal-right .section-tag {
  color: var(--secondary-color);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 12px;
  text-transform: uppercase;
}

.modal-right h2 {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--primary-color);
  margin: 12px 0;
  font-family: var(--heading-font);
  line-height: 1.15;
}

.modal-right p {
  line-height: 1.8;
  color: var(--muted);
}

.product-specs {
  margin: 28px 0;
}

.product-specs div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  font-size: 14px;
}

.product-specs strong {
  color: var(--primary-color);
}

.product-specs span {
  color: var(--muted);
  text-align: right;
}

.modal-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.downloadBtn {
  background: #00135F;
  border-radius: 8px;
}

.quoteBtn {
  background: var(--secondary-color);
  border-radius: 8px;
}

.closeModal {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
  z-index: 2;
  color: var(--primary-color);
}

.product[data-product],
.product-card[data-product] {
  cursor: pointer;
}

@media (max-width: 991px) {
  .modal-box {
    grid-template-columns: 1fr;
  }
  .modal-left {
    padding: 28px;
  }
  .modal-left img {
    height: 220px;
  }
  .modal-right {
    padding: 28px 22px 36px;
  }
  .modal-buttons {
    flex-direction: column;
  }
  .modal-buttons .btn {
    text-align: center;
  }
}

/* Modal open — freeze background scroll */
html.modal-open,
body.modal-open {
  overflow: hidden !important;
  height: 100% !important;
  touch-action: none;
}

/* Ensure modal is always viewport-fixed (outside ScrollSmoother transforms) */
#productModal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  margin: 0 !important;
  transform: none !important;
}


/* ================= HERO TEXT ROTATOR ================= */
.hero-text-rotator {
  position: relative;
  width: 100%;
  max-width: 950px;
}

.hero-slide {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-slide .heading {
  max-width: 950px;
  font-size: clamp(52px, 9vw, 150px);
  line-height: 0.92;
  margin: 0;
}

.hero-slide .hero-lead {
  margin-top: 22px;
  max-width: 520px;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  opacity: 0.85;
  line-height: 1.55;
}

.hero-rotator-dots {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.hero-rotator-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(34, 37, 88, 0.25);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.hero-rotator-dots button.is-active {
  background: var(--secondary-color);
  transform: scale(1.2);
}

@media (max-width: 860px) {
  .hero-slide .heading {
    font-size: clamp(32px, 10.5vw, 48px);
    line-height: 1.08;
  }
  .hero-slide .hero-lead {
    font-size: 14px;
    max-width: 100%;
  }
  
  .video-wrapper video {
		height: 115%;
	}
}
