/* =========================================================
   Arambh Technology — Animations & Effects (animations.css)
   Loaded after style.css on every page
   ========================================================= */

/* -------- KEYFRAMES -------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(-18px) translateX(8px); }
}
@keyframes floatAlt {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  50%      { transform: translateY(22px) translateX(-12px) scale(1.05); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes shimmer {
  0%   { transform: translateX(-120%) skewX(-20deg); }
  100% { transform: translateX(220%) skewX(-20deg); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes spin360 {
  to { transform: rotate(360deg); }
}
@keyframes scrollDown {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(14px); opacity: 0; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* -------- SCROLL REVEAL -------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="zoom"]  { transform: scale(0.92); }

[data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Stagger helpers (set via inline style: --d:0.1s, 0.2s …) */
[data-reveal] { transition-delay: var(--d, 0s); }

/* -------- HERO ENHANCEMENTS -------- */
#hero { position: relative; isolation: isolate; }

#hero .hero-blob-1,
#hero .hero-blob-2,
#hero .hero-blob-3 {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
#hero .hero-blob-1 {
  width: 380px; height: 380px;
  top: -80px; left: -120px;
  background: radial-gradient(circle, rgba(124, 58, 237,0.35), transparent 70%);
  animation: float 12s ease-in-out infinite;
}
#hero .hero-blob-2 {
  width: 320px; height: 320px;
  bottom: -100px; right: 10%;
  background: radial-gradient(circle, rgba(99,102,241,0.28), transparent 70%);
  animation: floatAlt 14s ease-in-out infinite;
}
#hero .hero-blob-3 {
  width: 220px; height: 220px;
  top: 30%; right: -80px;
  background: radial-gradient(circle, rgba(56,189,248,0.30), transparent 70%);
  animation: float 18s ease-in-out infinite;
}
#hero .hero-inner { position: relative; z-index: 2; }

/* Animated grid backdrop for hero */
#hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
  z-index: 0; pointer-events: none;
}

/* Hero text entrance */
.hero-tag    { animation: fadeUp 0.7s ease-out 0.05s both; }
.hero-title  { animation: fadeUp 0.8s ease-out 0.15s both; }
.hero-tagline{ animation: fadeUp 0.8s ease-out 0.30s both; }
.hero-desc   { animation: fadeUp 0.8s ease-out 0.40s both; }
.hero-actions{ animation: fadeUp 0.8s ease-out 0.55s both; }
.hero-visual .hv-card:nth-child(1) { animation: slideLeft 0.8s ease-out 0.35s both; }
.hero-visual .hv-card:nth-child(2) { animation: slideLeft 0.8s ease-out 0.50s both; }
.hero-visual .hv-card:nth-child(3) { animation: slideLeft 0.8s ease-out 0.65s both; }
.hero-visual .hv-card:nth-child(4) { animation: slideLeft 0.8s ease-out 0.80s both; }

/* Override default hv-card hover (was translateX(6px), now lifts cleanly) */
.hv-card { transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s, border-color 0.3s; }
.hv-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 18px 40px rgba(124, 58, 237,0.18);
  border-color: rgba(124, 58, 237,0.35);
}

/* Animated gradient text on hero */
.hero-title .blue {
  background: linear-gradient(120deg, #7C3AED 0%, #A855F7 30%, #EC4899 60%, #7C3AED 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease-in-out infinite;
  position: relative;
  display: inline-block;
  min-width: 4ch;
}
.hero-title .blue::after {
  content: '|';
  position: absolute;
  right: -8px;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Floating icon on hv-card */
.hv-card .hv-icon { transition: transform 0.35s ease; }
.hv-card:hover .hv-icon { transform: rotate(-8deg) scale(1.1); }

/* ------ LANGUAGE TICKER ------ */
.lang-ticker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding: 0.4rem 0.9rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 0.82rem;
  color: var(--navy);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(124, 58, 237,0.06);
  animation: fadeUp 0.8s ease-out 0.45s both;
}
.lang-ticker .lang-flag {
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF9933 0%, #FFFFFF 50%, #138808 100%);
  align-items: center; justify-content: center;
  font-size: 11px;
  box-shadow: 0 0 0 2px rgba(124, 58, 237,0.12);
  animation: spin360 8s linear infinite;
}
.lang-ticker .lang-text {
  position: relative;
  display: inline-block;
  min-width: 12.5em;
  text-align: left;
  background: linear-gradient(90deg, var(--accent), #A855F7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lang-ticker .lang-text.fading { animation: langSwap 0.6s ease both; }
@keyframes langSwap {
  0%   { opacity: 0; transform: translateY(8px); filter: blur(3px); }
  100% { opacity: 1; transform: translateY(0);   filter: blur(0); }
}

/* Scroll indicator */
.scroll-cue {
  position: absolute; left: 50%; bottom: 24px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(124, 58, 237,0.4);
  border-radius: 20px;
  display: flex; justify-content: center; padding-top: 8px;
  z-index: 3;
}
.scroll-cue::after {
  content: '';
  width: 4px; height: 8px;
  background: var(--accent);
  border-radius: 4px;
  animation: scrollDown 2s ease-in-out infinite;
}

/* -------- BUTTON SHIMMER -------- */
.btn-primary, .nav-cta, .btn-white, .btn-submit {
  position: relative; overflow: hidden;
}
.btn-primary::before, .nav-cta::before, .btn-white::before, .btn-submit::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-120%) skewX(-20deg);
  pointer-events: none;
}
.btn-primary:hover::before,
.nav-cta:hover::before,
.btn-white:hover::before,
.btn-submit:hover::before {
  animation: shimmer 0.9s ease-out;
}

/* Arrow nudge on links */
.btn-primary, .btn-outline, .nav-cta, .btn-white {
  transition: background 0.25s, color 0.25s,
              transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s;
}

/* -------- CARD HOVER MAGIC -------- */
.why-card, .value-card, .ind-card, .port-card,
.svc-visual, .contact-card, .hv-card, .story-box, .client-pill {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}

.why-card { position: relative; overflow: hidden; }
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), #A855F7, #EC4899);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.why-card:hover::before { transform: scaleX(1); }
.why-card:hover .why-icon { animation: bounce 0.6s ease; }

.value-card { position: relative; overflow: hidden; }
.value-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
              rgba(124, 58, 237,0.08), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.value-card:hover::after { opacity: 1; }
.value-card:hover .v-icon { animation: bounce 0.6s ease; }

.ind-card .icon { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.ind-card:hover .icon { transform: scale(1.18) rotate(-6deg); }

.contact-card { transition: transform 0.3s, background 0.3s, border-color 0.3s; }
.contact-card:hover { background: var(--white); border-color: var(--accent); transform: translateX(6px); }
.contact-card:hover .cc-icon { background: var(--accent); color: #fff; transform: rotate(-8deg); }
.cc-icon { transition: background 0.3s, color 0.3s, transform 0.3s; }

.client-pill { will-change: transform; }
.client-pill:hover { transform: translateY(-3px) scale(1.04); }

/* -------- STATS COUNTER -------- */
.stat-num {
  position: relative;
  background: linear-gradient(120deg, var(--accent), #A855F7);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* -------- NAV SCROLLED STATE -------- */
nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

/* -------- FAQ smooth toggle -------- */
.faq-q .faq-arrow { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.faq-q { transition: padding 0.3s ease; }
.faq-item { transition: box-shadow 0.3s ease, border-color 0.3s ease; }
.faq-item:hover { box-shadow: 0 6px 22px rgba(124, 58, 237,0.08); border-color: rgba(124, 58, 237,0.25); }

/* -------- CTA BANNER UPGRADE -------- */
.cta-banner, [class*="cta-banner"], section + div[style*="background:var(--accent)"] {
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255,255,255,0.14), transparent 50%);
  animation: gradientShift 10s ease-in-out infinite;
  background-size: 200% 200%;
}
.cta-banner > * { position: relative; z-index: 2; }

/* -------- SECTION TAG PULSE -------- */
.section-tag, .hero-tag {
  position: relative;
}

/* -------- CUSTOM SELECTION COLOR -------- */
::selection { background: rgba(124, 58, 237,0.25); color: var(--navy); }

/* -------- LINK UNDERLINE EFFECT FOR FOOTER -------- */
.footer-col a {
  position: relative;
  display: inline-block;
}
.footer-col a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}
.footer-col a:hover::after { width: 100%; }

/* -------- SERVICE BLOCK ENHANCE -------- */
.svc-feature { transition: transform 0.3s, background 0.3s, color 0.3s, border-color 0.3s; }
.svc-feature:hover {
  transform: translateX(6px);
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.svc-feature:hover span { transform: scale(1.2); }
.svc-feature span { display: inline-block; transition: transform 0.3s; }

.svc-icon-big { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.service-block:hover .svc-icon-big { transform: rotate(-8deg) scale(1.1); }

/* -------- FORM POLISH -------- */
.form-group input,
.form-group textarea,
.form-group select {
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  box-shadow: 0 0 0 4px rgba(124, 58, 237,0.12);
}

/* -------- LOGO HOVER -------- */
.logo { transition: transform 0.3s; }
.logo:hover { transform: scale(1.03); }

/* -------- REDUCED MOTION -------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   ADVANCED EFFECTS (v3)
   ========================================================= */

/* ---- 3D TILT CARDS ---- */
.hv-card, .why-card, .value-card, .ind-card, .port-card,
.contact-card, .svc-visual {
  transform-style: preserve-3d;
  perspective: 1000px;
}
.tilt {
  transform: perspective(1000px)
             rotateX(var(--rx, 0deg))
             rotateY(var(--ry, 0deg))
             translateZ(0);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.tilt-shine {
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
              rgba(255,255,255,0.55) 0%, transparent 38%);
  opacity: 0; transition: opacity 0.25s;
  pointer-events: none; border-radius: inherit;
  mix-blend-mode: overlay;
}
.tilt:hover .tilt-shine,
.tilt.is-hovering .tilt-shine { opacity: 1; }

/* ---- MAGNETIC BUTTONS ---- */
.btn-primary, .btn-outline, .nav-cta, .btn-white, .btn-submit {
  --mag-x: 0; --mag-y: 0;
  transform: translate(var(--mag-x), var(--mag-y));
}

/* ---- INDUSTRY MARQUEE ---- */
.marquee-strip {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.marquee-strip::before,
.marquee-strip::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 120px; z-index: 2; pointer-events: none;
}
.marquee-strip::before { left: 0;  background: linear-gradient(90deg, var(--navy), transparent); }
.marquee-strip::after  { right: 0; background: linear-gradient(-90deg, var(--navy), transparent); }
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marqueeSlide 32s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #CBD5E1;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.marquee-item .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(124, 58, 237,0.6);
}
@keyframes marqueeSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- ANIMATED SVG UNDERLINE FOR SECTION TITLES ---- */
.section-title {
  position: relative;
  display: inline-block;
}
.section-title .underline-svg {
  position: absolute;
  left: 0; bottom: -10px;
  width: 100%;
  height: 14px;
  overflow: visible;
  pointer-events: none;
}
.section-title .underline-svg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.section-title.is-visible .underline-svg path,
[data-reveal].is-visible .underline-svg path,
[data-reveal].is-visible.section-title .underline-svg path {
  stroke-dashoffset: 0;
}

/* ---- PARALLAX MOUSE TRACKING ON HERO ---- */
#hero .hero-blob-1,
#hero .hero-blob-2,
#hero .hero-blob-3 {
  transition: transform 0.4s ease-out;
}

/* ---- BACK-TO-TOP BUTTON ---- */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  cursor: pointer; border: none;
  opacity: 0; pointer-events: none;
  transform: translateY(20px) scale(0.85);
  transition: opacity 0.35s, transform 0.35s;
  box-shadow: 0 8px 22px rgba(124, 58, 237,0.35);
  z-index: 80;
}
.back-to-top.show {
  opacity: 1; pointer-events: auto;
  transform: translateY(0) scale(1);
}
.back-to-top:hover { background: var(--accent-dark); transform: translateY(-4px) scale(1.05); }

/* ---- ANIMATED LOGO DOT ---- */
.logo span { display: inline-block; animation: pulse 2s ease-in-out infinite; }

/* ---- LOGO IMAGE IN NAV ---- */
nav .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
nav .logo img {
  width: 36px; height: 36px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 2px;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.15);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
nav .logo:hover img { transform: rotate(-8deg) scale(1.08); }

/* ---- CUSTOM CODE-ICON CURSOR ---- */
/* Native cursor stays visible — custom cursor floats alongside as decoration */

.cursor-code {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  width: 44px; height: 44px;
  margin-left: -22px; margin-top: -22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--accent);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -0.02em;
  color: var(--accent);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.28);
  transition: width 0.25s, height 0.25s, background 0.25s,
              color 0.25s, transform 0.25s ease-out, border-radius 0.25s,
              border-color 0.25s;
  will-change: transform;
  opacity: 0;
  user-select: none;
}
.cursor-code.ready { opacity: 1; }

.cursor-code .glyph {
  transition: opacity 0.18s, transform 0.32s;
  line-height: 1;
  white-space: nowrap;
}

/* Larger pulse ring trailing behind the cursor */
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  width: 56px; height: 56px;
  margin-left: -28px; margin-top: -28px;
  border-radius: 50%;
  border: 1.5px solid rgba(124, 58, 237, 0.35);
  transition: transform 0.22s ease-out, width 0.25s, height 0.25s, border-color 0.25s, opacity 0.25s;
  will-change: transform;
  opacity: 0;
}
.cursor-ring.ready { opacity: 1; }

/* Hovering interactive states */
.cursor-code.is-hover-link {
  transform: scale(1.35);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.45),
              0 0 0 4px rgba(124, 58, 237, 0.18);
}
.cursor-code.is-hover-input {
  width: 4px !important;
  height: 28px !important;
  border-radius: 2px !important;
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  box-shadow: none;
}
.cursor-code.is-hover-input .glyph { opacity: 0; }
.cursor-ring.is-hover-link {
  border-color: rgba(124, 58, 237, 0.7);
  transform: scale(1.4);
}
.cursor-ring.is-hover-input { opacity: 0; }

/* Disable on touch devices */
@media (pointer: coarse), (max-width: 900px) {
  .cursor-code, .cursor-ring, .cursor-trail { display: none !important; }
}

/* ---- CURSOR PARTICLE TRAIL ---- */
.cursor-trail {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.02em;
  user-select: none;
  will-change: transform, opacity;
  animation: trailFade 1100ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  text-shadow: 0 0 8px currentColor;
}
@keyframes trailFade {
  0%   { opacity: 1; transform: translate(var(--tx, 0), 0) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--tx, 0), -60px) scale(0.6) rotate(var(--rot, 0deg)); }
}

body.native-cursor .cursor-trail { display: none !important; }

/* ---- SETTINGS PANEL (bottom-left) ---- */
.settings-fab {
  position: fixed;
  left: 24px; bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--accent);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s;
  z-index: 80;
}
.settings-fab:hover {
  transform: rotate(45deg) scale(1.05);
  background: var(--accent);
  color: #fff;
}
.settings-fab svg { width: 18px; height: 18px; }

.settings-panel {
  position: fixed;
  left: 24px; bottom: 78px;
  width: 240px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.95rem 1rem 0.85rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
  z-index: 81;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.settings-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.settings-panel h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
}
.settings-row + .settings-row { border-top: 1px solid var(--border); }
.settings-row small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Toggle switch */
.toggle {
  position: relative;
  width: 38px; height: 22px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider {
  position: absolute; inset: 0;
  background: #CBD5E1;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s;
}
.toggle .slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(15,23,42,0.2);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.toggle input:checked + .slider { background: var(--accent); }
.toggle input:checked + .slider::before { transform: translateX(16px); }

/* Native-cursor mode (when user disables custom cursor) */
body.native-cursor,
body.native-cursor a, body.native-cursor button,
body.native-cursor input, body.native-cursor textarea, body.native-cursor select,
body.native-cursor label, body.native-cursor [role="button"],
body.native-cursor .btn, body.native-cursor .nav-cta,
body.native-cursor .hamburger, body.native-cursor .faq-q,
body.native-cursor .port-card, body.native-cursor .why-card,
body.native-cursor .value-card, body.native-cursor .ind-card,
body.native-cursor .hv-card, body.native-cursor .contact-card,
body.native-cursor .client-pill, body.native-cursor .svc-feature,
body.native-cursor .stat, body.native-cursor .logo {
  cursor: auto;
}
body.native-cursor a, body.native-cursor button,
body.native-cursor .btn, body.native-cursor .nav-cta,
body.native-cursor .hamburger, body.native-cursor .faq-q,
body.native-cursor .port-card, body.native-cursor .why-card,
body.native-cursor .value-card, body.native-cursor .ind-card,
body.native-cursor .hv-card, body.native-cursor .contact-card,
body.native-cursor .client-pill, body.native-cursor .svc-feature,
body.native-cursor .logo { cursor: pointer; }
body.native-cursor input, body.native-cursor textarea { cursor: text; }
body.native-cursor .cursor-code,
body.native-cursor .cursor-ring { display: none !important; }

@media (max-width: 900px) {
  .settings-fab, .settings-panel { display: none !important; }
}

/* =========================================================
   DARK MODE
   ========================================================= */
body.dark {
  --accent:        #A78BFA;   /* lighter blue for contrast */
  --accent-dark:   #8B5CF6;
  --accent-light:  rgba(96, 165, 250, 0.12);
  --navy:          #F1F5F9;
  --text:          #E2E8F0;
  --muted:         #94A3B8;
  --bg:            #0B1120;
  --white:         #121A2B;
  --border:        rgba(255, 255, 255, 0.08);

  background: var(--bg);
  color: var(--text);
}

/* Smooth transition between themes */
body, body * { transition: background-color 0.35s ease, color 0.3s ease, border-color 0.35s ease; }
body.dark, body.dark * {
  /* keep transition for theme swap but skip when JS animations are running */
}

/* Nav glass effect in dark */
body.dark nav {
  background: rgba(18, 26, 43, 0.85);
  border-bottom-color: var(--border);
}
body.dark nav.scrolled {
  background: rgba(18, 26, 43, 0.96);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
body.dark nav .logo img {
  background: #fff;
  box-shadow: 0 2px 10px rgba(96, 165, 250, 0.25);
}

/* Hero gradient override */
body.dark #hero {
  background: linear-gradient(160deg, rgba(11,17,32,0.45), rgba(20,33,58,0.40)) !important;
}
body.dark #hero::after {
  background-image:
    linear-gradient(rgba(96,165,250,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,0.06) 1px, transparent 1px);
}
body.dark .page-hero {
  background: linear-gradient(160deg, rgba(11,17,32,0.45), rgba(20,33,58,0.40)) !important;
}

/* Cards / surfaces */
body.dark .hv-card,
body.dark .why-card,
body.dark .value-card,
body.dark .ind-card,
body.dark .port-card,
body.dark .contact-card,
body.dark .contact-form-box,
body.dark .svc-visual,
body.dark .story-box,
body.dark .faq-item,
body.dark .marquee-strip,
body.dark .client-pill,
body.dark .lang-ticker,
body.dark .settings-fab,
body.dark .settings-panel,
body.dark .back-to-top {
  background: var(--white);
  border-color: var(--border);
  color: var(--text);
}
body.dark .marquee-strip { background: #050B17; }
body.dark .marquee-strip::before { background: linear-gradient(90deg, #050B17, transparent); }
body.dark .marquee-strip::after  { background: linear-gradient(-90deg, #050B17, transparent); }

/* Card content text colors */
body.dark .hv-card h4, body.dark .hv-card p,
body.dark .why-card h3, body.dark .value-card h3,
body.dark .ind-card h3, body.dark .port-body h3,
body.dark .contact-form-box h3, body.dark .story-box h3 { color: var(--navy); }

body.dark .why-card p, body.dark .value-card p,
body.dark .ind-card p, body.dark .port-body p,
body.dark .contact-form-box p, body.dark .story-list li,
body.dark .hv-card p, body.dark .section-sub,
body.dark .page-hero p { color: var(--muted); }

/* Stats row */
body.dark .stats-row {
  background: var(--white);
  border-color: var(--border);
}

/* Forms */
body.dark .form-group label { color: var(--text); }
body.dark .form-group input,
body.dark .form-group textarea,
body.dark .form-group select {
  background: #0B1120;
  border-color: var(--border);
  color: var(--text);
}
body.dark .form-group input:focus,
body.dark .form-group textarea:focus,
body.dark .form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
}
body.dark .form-group input::placeholder,
body.dark .form-group textarea::placeholder { color: #475569; }

/* Service features */
body.dark .svc-feature {
  background: #0B1120;
  border-color: var(--border);
  color: var(--text);
}

/* Section backgrounds */
body.dark #why, body.dark #values,
body.dark #industries, body.dark #faq, body.dark #clients { background: var(--bg); }
body.dark #story, body.dark #team,
body.dark #portfolio, body.dark #contact-section,
body.dark #services-list { background: #080F1C; }

/* FAQ */
body.dark .faq-q { color: var(--navy); }
body.dark .faq-q:hover { color: var(--accent); }
body.dark .faq-a { color: var(--muted); }

/* CTA banner — keep blue */
body.dark .cta-banner { background: linear-gradient(135deg, #6D28D9, #8B5CF6); }
body.dark .btn-white { background: #fff; color: #6D28D9; }

/* Tags / pills */
body.dark .tag, body.dark .port-tag {
  background: rgba(96, 165, 250, 0.14);
  color: var(--accent);
}
body.dark .port-industry { color: var(--muted); }

/* Settings panel separator */
body.dark .settings-row + .settings-row { border-top-color: var(--border); }
body.dark .settings-row { color: var(--navy); }
body.dark .settings-row small { color: var(--muted); }
body.dark .toggle .slider { background: #334155; }

/* Mobile menu */
body.dark .mobile-menu {
  background: #121A2B;
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
body.dark .mobile-menu a { color: var(--text); border-bottom-color: var(--border); }

/* Success message (contact form) */
body.dark .success-msg {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #4ADE80;
}

/* Custom cursor in dark mode */
body.dark .cursor-code {
  box-shadow: 0 6px 20px rgba(96, 165, 250, 0.35);
}

/* Coming soon dashed box */
body.dark .coming-soon {
  background: #080F1C;
  border-color: var(--border);
}
body.dark .coming-soon h3 { color: var(--navy); }
body.dark .coming-soon p { color: var(--muted); }

/* Footer stays the same (already dark) */
body.dark footer { background: #050B17; }

/* ---- TAG TYPED CURSOR FALLBACK STABILITY ---- */
@media (max-width: 600px) {
  .hero-title .blue::after { display: none; }
  .lang-ticker { font-size: 0.78rem; }
  .lang-ticker .lang-text { min-width: 11em; }
}



/* =========================================================
   EXTRA MOTION UPGRADES (buttons + cards)
   ========================================================= */
.btn-primary, .nav-cta { position: relative; overflow: hidden; }
.btn-primary::before, .nav-cta::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: translateX(-160%) skewX(-18deg); pointer-events: none;
}
.btn-primary:hover::before, .nav-cta:hover::before { animation: shimmer 0.9s ease; }

.why-card, .value-card, .ind-card, .port-card, .contact-card, .faq-item {
  position: relative; overflow: hidden;
}
.why-card::before, .value-card::before, .ind-card::before,
.port-card::before, .contact-card::before, .faq-item::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.why-card:hover::before, .value-card:hover::before, .ind-card:hover::before,
.port-card:hover::before, .contact-card:hover::before, .faq-item:hover::before {
  transform: scaleX(1);
}
.section-tag { animation: tagGlow 3.5s ease-in-out infinite; }
@keyframes tagGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.0); }
  50%      { box-shadow: 0 0 18px 0 rgba(var(--accent-rgb), 0.22); }
}
@media (prefers-reduced-motion: reduce) { .section-tag { animation: none !important; } }

/* =========================================================
   AURORA WAVES BACKGROUND (global, injected via animations.js)
   ========================================================= */
.aurora-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1200px 800px at 15% -10%, rgba(124, 58, 237, 0.10), transparent 60%),
    radial-gradient(1000px 700px at 100% 0%, rgba(236, 72, 153, 0.10), transparent 55%),
    linear-gradient(180deg, #FBF7FF 0%, #FDF6FB 45%, #FBF7FF 100%);
}
.aurora {
  position: absolute; width: 65vw; height: 65vw; min-width: 620px; min-height: 620px;
  border-radius: 46% 54% 60% 40% / 52% 44% 56% 48%;
  filter: blur(75px); opacity: 0.55; mix-blend-mode: multiply; will-change: transform;
}
.aurora-1 { top: -22%; left: -14%;
  background: conic-gradient(from 120deg, #A855F7, #7C3AED, #C084FC, #A855F7);
  animation: auroraDrift1 26s ease-in-out infinite; }
.aurora-2 { top: 8%; right: -18%;
  background: conic-gradient(from 300deg, #EC4899, #F472B6, #A855F7, #EC4899);
  animation: auroraDrift2 32s ease-in-out infinite; }
.aurora-3 { bottom: -26%; left: 22%; opacity: 0.42;
  background: conic-gradient(from 200deg, #8B5CF6, #EC4899, #C084FC, #8B5CF6);
  animation: auroraDrift3 38s ease-in-out infinite; }
.aurora-grain {
  position: absolute; inset: -20%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.35), transparent 45%);
  animation: auroraSweep 18s ease-in-out infinite; opacity: 0.5;
}
@keyframes auroraDrift1 {
  0%,100% { transform: translate(0,0) rotate(0deg) scale(1); }
  33%     { transform: translate(8vw,6vh) rotate(60deg) scale(1.08); }
  66%     { transform: translate(-6vw,10vh) rotate(140deg) scale(0.96); }
}
@keyframes auroraDrift2 {
  0%,100% { transform: translate(0,0) rotate(0deg) scale(1); }
  40%     { transform: translate(-10vw,8vh) rotate(-70deg) scale(1.1); }
  70%     { transform: translate(-4vw,-6vh) rotate(-130deg) scale(0.94); }
}
@keyframes auroraDrift3 {
  0%,100% { transform: translate(0,0) rotate(0deg) scale(1); }
  50%     { transform: translate(10vw,-8vh) rotate(90deg) scale(1.12); }
}
@keyframes auroraSweep {
  0%,100% { transform: translate(-8%,-6%); opacity: 0.35; }
  50%     { transform: translate(8%,6%); opacity: 0.6; }
}
body.dark .aurora-bg {
  background:
    radial-gradient(1200px 800px at 15% -10%, rgba(124, 58, 237, 0.28), transparent 60%),
    radial-gradient(1000px 700px at 100% 0%, rgba(236, 72, 153, 0.24), transparent 55%),
    linear-gradient(180deg, #0B0716 0%, #120A22 50%, #0B0716 100%);
}
body.dark .aurora { mix-blend-mode: screen; opacity: 0.4; filter: blur(85px); }
body.dark .aurora-grain { opacity: 0.15; }
@media (prefers-reduced-motion: reduce) { .aurora, .aurora-grain { animation: none !important; } }
@media (max-width: 600px) { .aurora { filter: blur(55px); opacity: 0.5; } }
