/* =========================================================
   Kalpataru Polyplast — theme tokens & custom styling
   Tailwind (CDN) handles utilities; this file adds the
   futuristic look that utilities alone can't express.
   ========================================================= */

:root {
  --ink: #06080f;
  --panel: #0b0f1c;
  --brand-blue: #1d3a6e;
  --brand-blue-light: #3b6cd8;
  --brand-orange: #f4903c;
  --brand-orange-light: #ffb066;
}

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
}

.font-display { font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif; }
.bg-ink { background-color: var(--ink); }
.bg-panel { background-color: var(--panel); }

/* ---------- text helpers ---------- */
.text-gradient {
  background: linear-gradient(90deg, var(--brand-orange-light), var(--brand-orange), var(--brand-blue-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-orange-light);
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-orange), transparent);
  display: inline-block;
}

.section-title {
  margin-top: .9rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: #fff;
}

.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }

/* ---------- header ---------- */
#site-header { backdrop-filter: blur(0px); }
#site-header.scrolled {
  background: rgba(6, 8, 15, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-link { position: relative; transition: color .25s ease; }
.nav-link:hover { color: #fff; }
.nav-link::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--brand-orange);
  transition: width .25s ease;
}
.nav-link:hover::after { width: 100%; }
.mobile-link { display: block; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }

/* ---------- buttons ---------- */
.btn-glow, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  transition: all .3s ease;
  white-space: nowrap;
}
.btn-glow {
  color: #0a0a0a;
  background: linear-gradient(90deg, var(--brand-orange-light), var(--brand-orange));
  box-shadow: 0 0 0 0 rgba(244,144,60,.5), 0 8px 24px -8px rgba(244,144,60,.6);
}
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 8px 30px -6px rgba(244,144,60,.8); }
.btn-ghost {
  color: #e5e9f2;
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,.04); }

/* ---------- WhatsApp inquiry button (per product) ---------- */
.btn-inquiry {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.5rem;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  color: #eafff2;
  background: linear-gradient(90deg, #1faf52, #25d366);
  box-shadow: 0 8px 24px -10px rgba(37,211,102,.7);
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
  white-space: nowrap;
}
.btn-inquiry svg { flex: none; }
.btn-inquiry:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(37,211,102,.9); filter: brightness(1.05); }

/* ---------- Floating WhatsApp button (always on top) ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #1faf52, #25d366);
  box-shadow: 0 8px 24px -6px rgba(37,211,102,.8), 0 0 0 0 rgba(37,211,102,.6);
  color: #fff;
  animation: whatsapp-pulse 2.4s infinite;
  transition: transform .3s ease, box-shadow .3s ease;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px -6px rgba(37,211,102,.95);
}
.whatsapp-float svg { width: 1.9rem; height: 1.9rem; }
@keyframes whatsapp-pulse {
  0% { box-shadow: 0 8px 24px -6px rgba(37,211,102,.8), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 8px 24px -6px rgba(37,211,102,.8), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px -6px rgba(37,211,102,.8), 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 640px) {
  .whatsapp-float { right: 1rem; bottom: 1rem; width: 3.1rem; height: 3.1rem; }
  .whatsapp-float svg { width: 1.6rem; height: 1.6rem; }
}

/* ---------- hero ---------- */
.bg-hero-glow {
  background:
    radial-gradient(60% 50% at 18% 20%, rgba(59,108,216,.35), transparent 60%),
    radial-gradient(45% 45% at 85% 15%, rgba(244,144,60,.25), transparent 60%),
    radial-gradient(70% 60% at 50% 100%, rgba(29,58,110,.4), transparent 70%);
}
.bg-grid-fade {
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 100%);
}
#tsparticles { pointer-events: none; }

.hero-orb {
  position: absolute;
  top: -10%; right: -10%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(244,144,60,.35), transparent 65%);
  filter: blur(30px);
  border-radius: 50%;
  z-index: -1;
}

.floaty { animation: float 6s ease-in-out infinite; }
.floaty-slow { animation: float 8s ease-in-out infinite; animation-delay: -2s; }
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 1.9rem; font-weight: 700; color: #fff; }
.stat-label { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #64748b; margin-top: .2rem; }

.scroll-cue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue span {
  width: 4px; height: 8px; border-radius: 999px;
  background: var(--brand-orange-light);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* ---------- why-us cards ---------- */
.why-card {
  padding: 2rem 1.75rem;
  border-radius: 1.25rem;
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.07);
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}
.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244,144,60,.4);
  background: linear-gradient(160deg, rgba(244,144,60,.08), rgba(255,255,255,.02));
}
.why-icon {
  font-size: 1.4rem;
  color: var(--brand-orange-light);
  margin-bottom: 1rem;
}
.why-card h3 { color: #fff; font-weight: 600; font-size: 1.05rem; margin-bottom: .5rem; font-family: 'Space Grotesk', sans-serif; }
.why-card p { color: #8a94a6; font-size: .92rem; line-height: 1.55; }

/* ---------- product rows ---------- */
.product-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 2.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.07);
}
@media (min-width: 900px) {
  .product-row { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
  .product-row-reverse { grid-template-columns: 1.1fr 0.9fr; }
  .product-row-reverse .product-media { order: 2; }
  .product-row-reverse .product-info { order: 1; }
}
.product-media { position: relative; }
.product-img-main {
  width: 100%; aspect-ratio: 4/3.2; object-fit: cover;
  border-radius: 1.1rem; border: 1px solid rgba(255,255,255,.08);
}
.product-img-thumb {
  position: absolute; bottom: -1.2rem; right: -1.2rem;
  width: 38%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: 1rem; border: 3px solid var(--ink);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.6);
}
.product-placeholder {
  aspect-ratio: 4/3.2; border-radius: 1.1rem;
  border: 1px dashed rgba(255,255,255,.15);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem; color: #4b5568; background: rgba(255,255,255,.02);
}
.product-placeholder span { font-size: .78rem; letter-spacing: .04em; }

.product-tag {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-orange-light); font-weight: 600;
}
.product-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.7rem; font-weight: 600; color: #fff; margin-top: .4rem;
}
.product-info > p { color: #8a94a6; margin-top: .6rem; max-width: 32rem; }
.feature-list { margin-top: 1.25rem; display: grid; gap: .6rem; }
.feature-list li {
  position: relative; padding-left: 1.4rem; color: #b4bcca; font-size: .93rem;
}
.feature-list li::before {
  content: "";
  position: absolute; left: 0; top: .5em;
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--brand-orange);
}

/* ---------- vision / mission ---------- */
.vm-card {
  padding: 2.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.07);
}
.vm-text { margin-top: 1rem; color: #b4bcca; font-size: 1.05rem; line-height: 1.7; }
.vm-list { margin-top: 1rem; display: grid; gap: .9rem; }
.vm-list li {
  position: relative; padding-left: 1.5rem; color: #b4bcca; line-height: 1.55;
}
.vm-list li::before {
  content: "";
  position: absolute; left: 0; top: .45em;
  width: 8px; height: 8px; border-radius: 2px;
  background: linear-gradient(135deg, var(--brand-orange-light), var(--brand-blue-light));
}

/* ---------- contact ---------- */
.contact-row { display: flex; gap: .75rem; font-size: .95rem; }
.contact-row span:first-child { width: 6rem; color: #5b6577; }
.contact-form {
  padding: 2.25rem;
  border-radius: 1.5rem;
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.07);
}
.input {
  width: 100%;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: .8rem;
  padding: .8rem 1rem;
  color: #e5e9f2;
  font-size: .92rem;
  outline: none;
  transition: border-color .25s ease, background .25s ease;
}
.input::placeholder { color: #4b5568; }
.input:focus { border-color: var(--brand-orange); background: rgba(255,255,255,.05); }

/* ---------- reveal-on-scroll base state (GSAP animates from this) ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); }
[data-anim] { opacity: 0; }

::selection { background: var(--brand-orange); color: #0a0a0a; }

/* custom scrollbar for a more futuristic feel */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #1c2436; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-orange); }
