/* style2.css */

/* ============== RESET ============== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* ============== LENIS SMOOTH SCROLL ============== */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #EEF2F6;
  color: #0F172A;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
}

#nav-inner {
  transition: background-color 300ms ease, box-shadow 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
}

/* ============== CAPSULE TO FULL NAVBAR TRANSITION (DESKTOP) ============== */
@media (min-width: 768px) {
  /* Inside Hero: Ultra-compact Floating Capsule */
  #nav-inner {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    padding: 8px 16px;
    transition: max-width 550ms cubic-bezier(0.16, 1, 0.3, 1), 
                padding 550ms cubic-bezier(0.16, 1, 0.3, 1),
                background-color 300ms ease, 
                box-shadow 300ms ease, 
                border-color 300ms ease, 
                backdrop-filter 300ms ease;
  }

  /* Nav Links Hidden at Top */
  #desktop-nav-links {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -4px) scale(0.92);
    transition: opacity 350ms ease, transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Past Hero: Expands Capsule & Reveals Nav Links */
  #nav-inner.is-past-hero {
    max-width: 1440px;
    padding: 10px 24px;
  }

  #nav-inner.is-past-hero #desktop-nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
  }
}

#nav-inner.is-scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.15);
  border-color: rgba(0, 102, 255, 0.1);
}

/* ============== NAV LINK ============== */
.nav-link {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  padding: 6px 14px;
  border-radius: 9999px;
  transition: color 250ms ease, background-color 250ms ease, transform 250ms ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: rgba(0, 102, 255, 0.08);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 250ms cubic-bezier(0.16, 1, 0.3, 1), transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.nav-link:hover {
  color: #0066FF;
}

.nav-link:hover::before {
  opacity: 1;
  transform: scale(1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 4px;
  height: 4px;
  background-color: #0066FF;
  border-radius: 50%;
  transform: translateX(-50%) scale(0);
  opacity: 0;
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1), opacity 250ms ease;
}

.nav-link:hover::after {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

/* ============== HERO MAIN TITLE (TWO-LINE STACKED EQUAL WIDTH) ============== */
.hero-main-title {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  font-family: 'Elms Sans', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  text-transform: uppercase;
  color: #0F172A;
  perspective: 1000px;
}

.hero-main-title .line-accel {
  font-size: clamp(3.4rem, 7.8vw, 6.8rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-weight: 900;
  color: #0F172A;
  display: block;
}

.hero-main-title .line-enterprise {
  font-size: clamp(1.35rem, 3.1vw, 2.7rem);
  line-height: 1;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.15em;
}

.hero-word {
  vertical-align: top;
}
.hero-char {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.hero-headline {
  font-size: clamp(1.75rem, 7vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 500;
}



/* ============== SECTION HEADING ============== */
.section-heading {
  font-size: clamp(1.75rem, 7vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: #0F172A;
}
@media (min-width: 640px) {
  .section-heading {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
  }
}

/* ============== HERO BACKGROUND ============== */
.hero,
.video-background-layer,
.video-background-layer img,
.hero-etched-text,
.shader-grain,
.shader-glass {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.video-background-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: #EEF2F6;
}

.video-background-layer img,
.video-background-layer video {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}

/* ============== HERO DUAL VERTICAL MARQUEE ============== */
@keyframes vertical-marquee-up {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(calc(-50% - 0.375rem));
  }
}

@keyframes vertical-marquee-down {
  0% {
    transform: translateY(calc(-50% - 0.375rem));
  }
  100% {
    transform: translateY(0);
  }
}

.vertical-marquee-up {
  animation: vertical-marquee-up 18s linear infinite;
  will-change: transform;
}

.vertical-marquee-down {
  animation: vertical-marquee-down 22s linear infinite;
  will-change: transform;
}

.vertical-marquee-up:hover,
.vertical-marquee-down:hover {
  animation-play-state: paused;
}

/* ============== SHADER BACKGROUND BLOBS ============== */
.shader-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: #EEF2F6;
}

.shader-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.blob-1 {
  width: 55vw;
  height: 55vw;
  max-width: 800px;
  max-height: 800px;
  top: -15%;
  left: -10%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.28), transparent 65%);
  animation: float-1 26s ease-in-out infinite;
}

.blob-2 {
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  bottom: -15%;
  right: -8%;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.16), transparent 65%);
  animation: float-2 32s ease-in-out infinite;
}

.blob-3 {
  width: 40vw;
  height: 40vw;
  max-width: 600px;
  max-height: 600px;
  top: 35%;
  left: 45%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 65%);
  animation: float-3 24s ease-in-out infinite;
}

.blob-4 {
  width: 30vw;
  height: 30vw;
  max-width: 450px;
  max-height: 450px;
  top: 15%;
  right: 20%;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.10), transparent 70%);
  animation: float-4 28s ease-in-out infinite;
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(15%, 20%) scale(1.08); }
  66% { transform: translate(8%, -10%) scale(0.95); }
}
@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-12%, -18%) scale(1.12); }
}
@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-10%, 18%) scale(0.92); }
  66% { transform: translate(12%, -14%) scale(1.1); }
}
@keyframes float-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18%, 12%) scale(1.15); }
}

/* ============== BLOOM FIELD PURE CSS GRADIENT (HERO) ============== */
.bloom-field-hero {
  position: absolute;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  background-color: #E2E2E2;
  background-image: 
    radial-gradient(at 15% 15%, #1B9FFF 0px, transparent 55%),
    radial-gradient(at 85% 25%, #4AC9FF 0px, transparent 60%),
    radial-gradient(at 45% 65%, #1B9FFF 0px, transparent 65%),
    radial-gradient(at 80% 85%, #1B9FFF 0px, transparent 55%),
    radial-gradient(at 50% 40%, #4AC9FF 0px, transparent 50%),
    radial-gradient(at 20% 80%, #E2E2E2 0px, transparent 70%);
  filter: blur(40px);
  transform: scale(1.08);
}

/* Subtle film grain texture overlay */
.shader-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/></svg>");
  opacity: 0.14;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 10;
}

/* Glass refraction top sheen */
.shader-glass {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 30%),
    linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(15,23,42,0.04) 100%);
  mix-blend-mode: overlay;
}

/* ============== LIQUID GLASS UTILITIES ============== */
.liquid-glass {
  background: rgba(255, 255, 255, 0.60);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px -8px rgba(15, 23, 42, 0.12);
}

.liquid-glass-strong {
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 40px -10px rgba(15, 23, 42, 0.15);
}

/* ============== BUTTON: PRIMARY ============== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #0066FF;
  border-radius: 9999px;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  transition: background-color 300ms ease, box-shadow 300ms ease;
  line-height: 1;
}
.btn-primary:hover {
  background-color: #0052CC;
  box-shadow: 0 6px 20px -4px rgba(0, 102, 255, 0.4);
}

/* ============== BUTTON: PRIMARY LARGE ============== */
.btn-primary.btn-lg {
  padding: 0.65rem 0.65rem 0.65rem 1.45rem;
  gap: 0.75rem;
}
.btn-primary.btn-lg .arrow-circle {
  width: 2rem;
  height: 2rem;
}

/* ============== BUTTON: CONTACT FOR MORE (SHOP SECTION) ============== */
.btn-contact-more {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.75rem 0.75rem 1.6rem;
  border-radius: 9999px;
  background-color: #0F172A;
  color: #FFFFFF;
  box-shadow: 0 10px 30px -6px rgba(15, 23, 42, 0.25);
  transition: background-color 350ms ease, transform 300ms ease, box-shadow 300ms ease;
  line-height: 1;
}

.btn-contact-more .arrow-circle {
  width: 2.1rem;
  height: 2.1rem;
  background-color: #FFFFFF;
}

.btn-contact-more:hover {
  background-color: #0066FF;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -6px rgba(0, 102, 255, 0.4);
}

.arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.arrow-rotate {
  transform: rotate(-45deg);
  transition: transform 300ms ease;
}
.group:hover .arrow-rotate {
  transform: rotate(0deg);
}

/* ============== TEXT ROLL ============== */
.roll-text {
  position: relative;
  display: inline-block;
  overflow: hidden;
  line-height: 1.4;
  vertical-align: middle;
}

.roll-current,
.roll-next {
  display: block;
  transition: transform 500ms cubic-bezier(0.25, 0.1, 0.25, 1);
  white-space: nowrap;
}

.roll-next {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
}

.group:hover .roll-current {
  transform: translateY(-100%);
}
.group:hover .roll-next {
  transform: translateY(-100%);
}

/* ============== PRODUCT CARD ============== */
.product-btn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  width: 36px;
  border-radius: 9999px;
  background-color: #ffffff;
  color: #0F172A;
  overflow: hidden;
  transition: width 300ms ease-in-out, background-color 300ms ease, color 300ms ease;
  box-shadow: 0 4px 18px -4px rgba(15, 23, 42, 0.25);
  border: none;
  cursor: pointer;
}

.product-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.product-btn-text {
  opacity: 0;
  white-space: nowrap;
  padding-right: 16px;
  font-size: 13px;
  font-weight: 500;
  transition: opacity 120ms ease;
}

.group:hover .product-btn {
  width: 145px;
}
.group:hover .product-btn-text {
  opacity: 1;
  transition: opacity 120ms ease 180ms;
}

/* Dark variant for dark backgrounds */
.product-btn-dark {
  background-color: #0F172A;
  color: #ffffff;
}

/* ============== PRODUCT MODAL ============== */
#product-modal {
  visibility: hidden;
  opacity: 0;
  transition: opacity 300ms ease, visibility 300ms ease;
}
#product-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  opacity: 0;
  transition: opacity 300ms ease;
}
#product-modal.is-open .modal-backdrop {
  opacity: 1;
}

.modal-card {
  transform: scale(0.92) translateY(24px);
  opacity: 0;
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms ease;
}
#product-modal.is-open .modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Custom Modal Scrollbar */
.modal-card ::-webkit-scrollbar {
  width: 6px;
}
.modal-card ::-webkit-scrollbar-track {
  background: transparent;
}
.modal-card ::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}

/* ============== MOBILE MENU ============== */
#mobile-menu {
  visibility: hidden;
}
#mobile-menu.is-open {
  visibility: visible;
}

.menu-backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 300ms ease;
}
#mobile-menu.is-open .menu-backdrop {
  opacity: 1;
}

.menu-sheet {
  transform: translateY(100%);
  transition: transform 500ms cubic-bezier(0.32, 0.72, 0, 1);
}
#mobile-menu.is-open .menu-sheet {
  transform: translateY(0);
}

.menu-link {
  transition: color 300ms ease, transform 300ms ease;
  display: inline-block;
  width: fit-content;
}
.menu-link:hover {
  color: #0066FF;
}

/* ============== FOOTER SUBTLE ANIMATED GRADIENT ============== */
#footer-gradient-layer {
  will-change: transform, opacity;
  transform: translateZ(0);
  animation: footer-gradient-float 14s ease-in-out infinite alternate;
}

@keyframes footer-gradient-float {
  0% {
    transform: scale(1) translateY(0);
    opacity: 0.82;
  }
  50% {
    transform: scale(1.04) translateY(-12px);
    opacity: 0.96;
  }
  100% {
    transform: scale(1.02) translateY(6px);
    opacity: 0.86;
  }
}

/* ============== SCROLL REVEAL ============== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 600ms cubic-bezier(0.25, 0.1, 0.25, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Body lock */
body.menu-open,
body.modal-open {
  overflow: hidden;
}

/* ============== ACCESSIBILITY ============== */
@media (prefers-reduced-motion: reduce) {
  .shader-blob {
    animation: none !important;
  }
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============== SELECTION ============== */
::selection {
  background: #0066FF;
  color: #ffffff;
}

/* ============== SCROLLBAR ============== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #EEF2F6;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
  border: 2px solid #EEF2F6;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* ============== STAGGERED TESTIMONIALS ============== */
.testimonial-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(100% - 32px);
  max-width: 620px;
  padding: 2rem;
  background-color: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.5rem;
  box-shadow: 0 20px 45px -15px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  user-select: none;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 300ms ease,
              box-shadow 300ms ease;
  will-change: transform, opacity;
  transform-origin: center center;
}

@media (max-width: 640px) {
  .testimonial-card {
    padding: 1.5rem;
    width: calc(100% - 24px);
  }
}

.testimonial-card.is-active {
  border-color: rgba(226, 232, 240, 1);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.16);
}

.testimonial-card.is-active:hover {
  border-color: rgba(0, 102, 255, 0.4);
  box-shadow: 0 30px 60px -12px rgba(0, 102, 255, 0.22);
}

/* ============== RUIXEN GRADIENT FOOTER ============== */
#footer-gradient-layer {
  transform: translateY(0);
  will-change: opacity;
}

/* ============== FULL BLEED SECTIONS ============== */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

#site-footer {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}
