/* ===== RESET & BASE ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 4px; }

html {
  scroll-behavior: smooth;
}

/* ===== NAVIGATION ===== */
.nav-blur {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ===== HERO ===== */
.hero-parallax-bg {
  will-change: transform;
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== PRODUCT CARDS ===== */
.product-card {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover {
  transform: translateY(-6px);
}
.product-card .product-overlay {
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-overlay {
  opacity: 1;
}
.product-card img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover img {
  transform: scale(1.08);
}

/* ===== PROCESS TIMELINE ===== */
.process-line {
  position: absolute;
  left: 23px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, #d4d4d8, #a1a1aa, #d4d4d8);
}
.process-dot {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.process-card:hover .process-dot {
  transform: scale(1.3);
}

/* ===== STATS ===== */
.stat-item .stat-number {
  display: inline-block;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.testimonial-card:hover {
  transform: translateY(-4px) scale(1.01);
}

/* ===== BLOG CARDS ===== */
.blog-card {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-card:hover {
  transform: translateY(-4px);
}
.blog-card img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-card:hover img {
  transform: scale(1.05);
}

/* ===== CATEGORY FILTER ===== */
.filter-btn {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.filter-btn.active {
  background: #18181b;
  color: white;
}

/* ===== GSAP ANCHOR ===== */
.gsap-fade-up,
.gsap-stagger-item {
  will-change: transform, opacity;
}

/* ===== TRUSTED BY ===== */
.trust-weave-bg {
  background-image:
    linear-gradient(rgba(24,24,27,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,24,27,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1.25rem 0.5rem 0.75rem;
  background: white;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 100px;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(24,24,27,0.04);
}
.brand-pill:hover {
  border-color: rgba(24, 24, 27, 0.2);
  box-shadow: 0 4px 12px rgba(24,24,27,0.08);
  transform: translateY(-2px);
}

.swatch-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.2);
}

.thread-bar {
  height: 3px;
  border-radius: 2px;
  opacity: 0.15;
  animation: threadShimmer 3s ease-in-out infinite;
}
.thread-bar:nth-child(2) { animation-delay: -0.6s; }
.thread-bar:nth-child(3) { animation-delay: -1.2s; }
.thread-bar:nth-child(4) { animation-delay: -1.8s; }
.thread-bar:nth-child(5) { animation-delay: -2.4s; }

@keyframes threadShimmer {
  0%, 100% { opacity: 0.1; transform: scaleX(0.95); }
  50% { opacity: 0.25; transform: scaleX(1); }
}

/* ===== MARQUEE ===== */
.marquee-track {
  display: flex;
  gap: 1.25rem;
  animation: marquee 40s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== BADGE GLOW ===== */
.badge-glow {
  box-shadow: 0 0 20px rgba(24, 24, 27, 0.15);
}

/* ===== FOOTER ===== */
.footer-link {
  position: relative;
  transition: color 0.3s ease;
}
.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-link:hover::after {
  width: 100%;
}

/* ===== SAFE AREA ===== */
.safe-area-bottom {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-bottom-nav {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(24, 24, 27, 0.08);
}
.mobile-bottom-nav a {
  transition: color 0.2s ease;
}
.mobile-bottom-nav a.active {
  color: #18181b;
}
.mobile-bottom-nav a.active .nav-icon-wrap {
  background: #18181b;
  color: white;
}
.nav-icon-wrap {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== PRODUCTS HORIZONTAL SCROLL (MOBILE) ===== */
.product-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.product-scroll::-webkit-scrollbar {
  display: none;
}

/* ===== GEOMETRIC SHAPES ===== */
.geo-circle {
  border: 1.5px solid rgba(24, 24, 27, 0.08);
  animation: geoFloat 6s ease-in-out infinite;
}
.geo-circle:nth-child(2) {
  animation-delay: -2s;
  animation-duration: 8s;
}
.geo-circle:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 7s;
}
.geo-diamond {
  border: 1.5px solid rgba(24, 24, 27, 0.06);
  transform: rotate(45deg);
  animation: geoPulse 4s ease-in-out infinite;
}
.geo-thread {
  stroke-dasharray: 8 4;
  stroke: rgba(24, 24, 27, 0.06);
  stroke-width: 1.5;
  fill: none;
  animation: threadMove 3s linear infinite;
}
.geo-dot {
  background: rgba(24, 24, 27, 0.08);
  animation: geoDotPulse 3s ease-in-out infinite;
}
.geo-dot:nth-child(2n) {
  animation-delay: -1.5s;
}

@keyframes geoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes geoPulse {
  0%, 100% { opacity: 0.4; transform: rotate(45deg) scale(1); }
  50% { opacity: 0.8; transform: rotate(45deg) scale(1.2); }
}
@keyframes geoDotPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.4); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .marquee-track {
    animation-duration: 20s;
    gap: 0.75rem;
  }
  .brand-pill {
    padding: 0.375rem 0.875rem 0.375rem 0.5rem;
    font-size: 0.75rem;
  }
  .swatch-dot {
    width: 8px;
    height: 8px;
  }
  .trust-weave-bg {
    background-size: 16px 16px;
  }
  .geo-circle, .geo-diamond, .geo-dot {
    display: none;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track {
    animation: none;
  }
  .product-card:hover img,
  .blog-card:hover img {
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}
