/* ================================================================
   StackVel — Global Design System v3.0
   Stripe-level spacing · Apple-level polish · Dark-black aesthetic
   ================================================================ */

/* ──────────────────────────────────────────────────────────────
   0.  DESIGN TOKENS
────────────────────────────────────────────────────────────── */
:root {
  /* Palette - Deep Space & Apple Gloss */
  --bg:           #000000;
  --bg-subtle:    #050505;
  --bg-card:      rgba(255, 255, 255, 0.03);
  --border:       rgba(255, 255, 255, 0.08);
  --border-bright:rgba(255, 255, 255, 0.15);
  
  --accent:       #38B6FF;
  --accent-dark:  #0084D1;
  --accent-glow:  rgba(56, 182, 255, 0.4);
  --purple:       #7C3AED;
  --purple-glow:  rgba(124, 58, 237, 0.4);
  
  --text:         #FFFFFF;
  --text-muted:   #A1A1AA;
  --text-dim:     #71717A;

  /* Border Radius */
  --r-sm: 0.5rem;
  --r-md: 0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --r-2xl: 2rem;
  --r-pill: 9999px;

  /* Spacing Scale - Ultra Premium */
  --section-py:   clamp(6rem, 10vw, 8rem);
  --container-px: clamp(1.5rem, 8vw, 6rem);

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.8);
  --shadow-glass: 0 0 0 1px rgba(255,255,255,0.05), 0 10px 30px -10px rgba(0,0,0,0.5);
  --shadow-accent: 0 0 40px var(--accent-glow);

  /* Animation */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1); /* Apple-style */
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast:     0.25s;
  --dur-base:     0.5s;
  --dur-slow:     0.8s;
  --dur-reveal:   1.2s;

}

/* ──────────────────────────────────────────────────────────────
   1.  RESET & BASE
────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; text-size-adjust: 100%; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ──────────────────────────────────────────────────────────────
   2.  SCROLLBAR
────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: var(--r-pill); }

/* ──────────────────────────────────────────────────────────────
   4.  NAVBAR
────────────────────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 1.125rem 1.5rem;
  transition: background var(--dur-base) ease,
              backdrop-filter var(--dur-base) ease,
              box-shadow var(--dur-base) ease;
}
#navbar.nav-scrolled {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
@media (max-width: 767px) {
  #navbar { padding: 0.75rem 0.75rem; }
  #navbar > .max-w-7xl {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--r-pill);
    padding: 0.6rem 1.25rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    margin-top: 0.5rem;
  }
  #mobile-menu {
    border-radius: var(--r-xl);
    margin: 0.75rem;
    top: calc(100% + 0.5rem) !important;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  }
  #navbar.nav-scrolled { background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; }

  /* Fix vertical overlap of hero with capsule nav */
  #hero { padding-top: 10rem !important; }
  .page-hero { padding-top: 10rem !important; }
}
.nav-link {
  position: relative;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem; font-weight: 500;
  transition: all var(--dur-fast);
  white-space: nowrap;
  padding: 0.45rem 1.15rem;
  border-radius: var(--r-pill);
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* ──────────────────────────────────────────────────────────────
   5.  BUTTONS
────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.8rem 1.75rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff; font-weight: 700; font-size: 0.9rem;
  border: none; border-radius: var(--r-md);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35), 0 0 12px rgba(56, 182, 255, 0.2);
  transition: box-shadow var(--dur-base), transform var(--dur-fast);
  cursor: pointer; position: relative; overflow: hidden;
  white-space: nowrap;
}
.btn-primary:hover {
  box-shadow: 0 0 44px rgba(255,255,255,0.48), 0 12px 28px rgba(0,0,0,0.55);
  transform: perspective(600px) translateY(-4px) rotateX(8deg);
}
.btn-primary:active { transform: perspective(600px) translateY(0) rotateX(0); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.8rem 1.75rem;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.82); font-weight: 600; font-size: 0.9rem;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.03);
  transition: border-color var(--dur-base), background var(--dur-base), transform var(--dur-fast), box-shadow var(--dur-fast);
  cursor: pointer; position: relative; overflow: hidden;
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.42);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transform: perspective(600px) translateY(-4px) rotateX(8deg);
}
.btn-ghost:active { transform: perspective(600px) translateY(0) rotateX(0); box-shadow: none; }

/* ──────────────────────────────────────────────────────────────
   6.  GLASS CARDS
────────────────────────────────────────────────────────────── */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-glass);
  transition: border-color var(--dur-base) var(--ease-premium), 
              box-shadow var(--dur-base) var(--ease-premium),
              transform var(--dur-base) var(--ease-premium),
              background var(--dur-base) var(--ease-premium);
}
.glass-3d {
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.glass-strong {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--border-bright);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-pill);
  padding: 0.4rem 1rem;
}

/* ──────────────────────────────────────────────────────────────
/* Removed glow, grids, spotlight, mesh-glow for minimal style */

.animate-border {
  position: relative;
  background: linear-gradient(var(--bg-subtle), var(--bg-subtle)) padding-box,
              linear-gradient(135deg, var(--accent), var(--purple)) border-box;
  border: 1px solid transparent;
}

@keyframes svShimmerPulse {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.premium-shimmer {
  position: relative;
  overflow: hidden;
}

.premium-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: svShimmerPulse 8s infinite linear;
  pointer-events: none;
}

/* ──────────────────────────────────────────────────────────────
   8.  SCROLL REVEAL ANIMATIONS
────────────────────────────────────────────────────────────── */
.sv-animate { 
  will-change: transform, opacity, filter;
  opacity: 0;
  transform: translateY(40px);
  filter: blur(10px);
  transition: opacity var(--dur-slow) var(--ease-premium),
              transform var(--dur-slow) var(--ease-premium),
              filter var(--dur-slow) var(--ease-premium);
}
.sv-animate-left { will-change: transform, opacity;
  opacity: 0; transform: translateX(-36px);
  transition: opacity var(--dur-reveal) var(--ease-out),
              transform var(--dur-reveal) var(--ease-out);
}
.sv-animate-right { will-change: transform, opacity;
  opacity: 0; transform: translateX(36px);
  transition: opacity var(--dur-reveal) var(--ease-out),
              transform var(--dur-reveal) var(--ease-out);
}
.sv-animate-scale { will-change: transform, opacity;
  opacity: 0; transform: scale(0.9);
  transition: opacity var(--dur-reveal) var(--ease-out),
              transform var(--dur-reveal) var(--ease-out);
}
.sv-animate.sv-visible,
.sv-animate-left.sv-visible,
.sv-animate-right.sv-visible,
.sv-animate-scale.sv-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ──────────────────────────────────────────────────────────────
   9.  GRADIENT TEXT
────────────────────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(90deg, #38B6FF 0%, #ffffff 50%, #38B6FF 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: svShimmer 6s linear infinite;
}

/* Removed 3D animations and spatial utilities for minimal style */

.text-balance { text-wrap: balance; }
.tracking-tight-premium { letter-spacing: -0.04em; }
.leading-tight-premium { line-height: 1.15; }

/* ──────────────────────────────────────────────────────────────
   11. BADGE / PILL LABEL
────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.4rem 1rem;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--accent);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  backdrop-filter: blur(8px);
}

/* ──────────────────────────────────────────────────────────────
   11. SECTION DIVIDER
────────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(
    90deg, transparent 0%, rgba(255,255,255,0.07) 30%,
    rgba(255,255,255,0.07) 70%, transparent 100%
  );
  margin: 0 2rem;
}

/* ──────────────────────────────────────────────────────────────
   12. PAGE HERO BAND (non-home pages)
────────────────────────────────────────────────────────────── */
.page-hero {
  padding-top: 9rem;
  padding-bottom: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.7)), url('../assets/images/bg.webp');
  background-size: cover;
  background-position: center;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.04em !important;
  margin-bottom: 1.5rem !important;
}

/* ──────────────────────────────────────────────────────────────
   13. HERO ENTRY ANIMATIONS
────────────────────────────────────────────────────────────── */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.hero-appear { animation: heroIn 0.9s var(--ease-out) both; }

/* ──────────────────────────────────────────────────────────────
   14. TYPEWRITER CURSOR
────────────────────────────────────────────────────────────── */
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
#typewriter::after {
  content: '|'; color: var(--accent);
  animation: blink 0.8s step-end infinite;
}

/* Removed glow blob and hero canvas for minimal style */

#hero {
  background-image: 
    linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,1) 100%),
    url('../assets/images/bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Removed 3D tilt styles */

/* ──────────────────────────────────────────────────────────────
   17. SERVICE / FEATURE ICON RING
────────────────────────────────────────────────────────────── */
.icon-ring {
  width: 50px; height: 50px;
  border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  transition: background var(--dur-base), border-color var(--dur-base);
}
.group:hover .icon-ring {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.38);
}

/* ──────────────────────────────────────────────────────────────
   18. PORTFOLIO CARD
────────────────────────────────────────────────────────────── */
.pf-card .pf-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  opacity: 0;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  transition: opacity var(--dur-base);
}
.pf-card:hover .pf-overlay { opacity: 1; }
.pf-card .pf-thumb { transition: transform 0.5s var(--ease-out); }
.pf-card:hover .pf-thumb { transform: scale(1.06); }

/* ──────────────────────────────────────────────────────────────
   19. PRICING — popular card glow
────────────────────────────────────────────────────────────── */
.popular-glow {
  box-shadow: 0 0 56px rgba(56,182,255,0.1),
              inset 0 1px 0 rgba(255,255,255,0.2);
}

/* ──────────────────────────────────────────────────────────────
   20. TILT card base
────────────────────────────────────────────────────────────── */
[data-tilt] { will-change: transform; }

/* ──────────────────────────────────────────────────────────────
   21. FORM INPUTS (contact.html)
────────────────────────────────────────────────────────────── */
.sv-label {
  display: block;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.5rem;
}
.sv-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  color: #fff; font-size: 0.9rem; font-family: inherit;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  outline: none;
  resize: vertical;
}
.sv-input::placeholder { color: rgba(255,255,255,0.22); }
.sv-input:focus {
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}
.sv-input option { background: #0d1627; }

/* ──────────────────────────────────────────────────────────────
   22. CONTACT SUCCESS OVERLAY
────────────────────────────────────────────────────────────── */
#form-success {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(20px);
  border-radius: inherit;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.25rem;
  text-align: center; padding: 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base);
}
#form-success.show { opacity: 1; pointer-events: auto; }

/* ──────────────────────────────────────────────────────────────
   23. SKILL BARS (about.html)
────────────────────────────────────────────────────────────── */
.skill-bar-track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--r-pill); overflow: hidden;
  margin-top: 6px;
}
.skill-bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  border-radius: var(--r-pill);
  transition: width 1.1s var(--ease-out) 0.2s;
}

/* ──────────────────────────────────────────────────────────────
   24. TIMELINE (about.html)
────────────────────────────────────────────────────────────── */
.timeline-item { position: relative; padding-left: 2.5rem; }
.timeline-item::before {
  content: '';
  position: absolute; left: 0; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255,255,255,0.5);
}
.timeline-item::after {
  content: '';
  position: absolute; left: 4px; top: 18px;
  width: 2px;
  height: calc(100% + 1.5rem);
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
}
.timeline-item:last-child::after { display: none; }

/* ──────────────────────────────────────────────────────────────
   25. FOOTER
────────────────────────────────────────────────────────────── */
.sv-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 5rem 1.5rem 2.5rem;
}

/* ──────────────────────────────────────────────────────────────
   26. WHATSAPP FLOAT
────────────────────────────────────────────────────────────── */
#whatsapp-btn {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 400;
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
#whatsapp-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}

/* ──────────────────────────────────────────────────────────────
   27. FILTER PILLS (portfolio.html)
────────────────────────────────────────────────────────────── */
.filter-pill {
  padding: 0.45rem 1.1rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem; font-weight: 600;
  cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast);
  white-space: nowrap;
}
.filter-pill:hover {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
}
.filter-pill.active {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.1);
  color: var(--accent);
}

/* ──────────────────────────────────────────────────────────────
   28. FAQ ACCORDION
────────────────────────────────────────────────────────────── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ──────────────────────────────────────────────────────────────
   29. RESPONSIVENESS UTILITIES
────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .btn-primary,
  .btn-ghost { width: 100%; justify-content: center; }
  .divider { margin: 0 1rem; }
  .sv-footer { padding: 3.5rem 1rem 2rem; }
  .page-hero { padding-top: 7.5rem; padding-bottom: 3rem; }
}

/* ──────────────────────────────────────────────────────────────
   30. SELECTION COLOR
────────────────────────────────────────────────────────────── */
::selection {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* ──────────────────────────────────────────────────────────────
   31. MARQUEE
────────────────────────────────────────────────────────────── */
@keyframes svMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.sv-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  display: flex;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.sv-marquee-track {
  display: flex;
  width: max-content;
  animation: svMarquee 40s linear infinite;
  gap: 1.5rem;
}

.sv-marquee-track:hover {
  animation-play-state: paused;
}

/* ──────────────────────────────────────────────────────────────
   31. REDUCED MOTION
────────────────────────────────────────────────────────────── */
/* ──────────────────────────────────────────────────────────────
   32. CALCULATOR & SHIMMER (Components)
────────────────────────────────────────────────────────────── */
.calc-box.active {
  background: rgba(56,182,255,0.08) !important;
  border-color: rgba(56,182,255,0.4) !important;
  box-shadow: 0 0 20px rgba(56,182,255,0.1);
}
.calc-box.active .text-white { color: #38B6FF !important; }

.shimmer-text {
  background: linear-gradient(90deg, #38B6FF, #fff, #38B6FF);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: svShimmer 4s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .sv-animate, .sv-animate-left,
  .sv-animate-right, .sv-animate-scale { will-change: transform, opacity;
    opacity: 1; transform: none;
  }
}

/* ──────────────────────────────────────────────────────────────
   17. COOKIE BANNER
────────────────────────────────────────────────────────────── */
#cookie-banner {
  position: fixed; bottom: 2rem; left: 2rem; right: 2rem;
  max-width: 500px; z-index: 1000;
  padding: 1.5rem; display: none;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-xl);
  box-shadow: 0 12px 48px rgba(0,0,0,0.6);
  animation: svSlideUp 0.6s var(--ease-out) forwards;
}
@keyframes svSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px) {
  #cookie-banner { bottom: 1rem; left: 1rem; right: 1rem; padding: 1.25rem; }
}

/* ──────────────────────────────────────────────────────────────
   15. PERFORMANCE & RESPONSIVE OPTIMIZATIONS
────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 768px) {
  /* Reduce 3D hover effects on mobile for better touch experience and performance */
  .btn-primary:active, .btn-ghost:active { transform: translateY(1px) !important; box-shadow: none !important; }
  .btn-primary:hover, .btn-ghost:hover { transform: none !important; box-shadow: none !important; }
  
  /* Reduce float animation distance on mobile */
  @keyframes float3D {
    0% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
    50% { transform: translateY(-8px) rotateX(5deg) rotateY(5deg); }
    100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
  }
  @keyframes float3D-reverse {
    0% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
    50% { transform: translateY(8px) rotateX(-5deg) rotateY(-5deg); }
    100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
  }
  
  /* Optimize glass cards for mobile */
  .glass, .glass-strong {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

/* Global Hardware Acceleration for 3D elements */
.animate-float-3d, .animate-float-3d-reverse, .btn-primary, .btn-ghost {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* ──────────────────────────────────────────────────────────────
   16. MARQUEE
────────────────────────────────────────────────────────────── */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-marquee var(--marquee-duration, 30s) linear infinite;
  gap: var(--marquee-gap, 2rem);
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { 
    transform: translateX(calc(-50% - (var(--marquee-gap, 2rem) / 2))); 
  }
}

.testimonials-marquee {
  --marquee-duration: 60s;
  --marquee-gap: 1.5rem;
}

.logos-marquee {
  --marquee-duration: 30s;
  --marquee-gap: 4rem;
}

@media (max-width: 768px) {
  .logos-marquee { --marquee-gap: 2rem; }
}

.bg-grid, .mesh-glow, .spotlight-beam, .mouse-follow-glow, .glow-blob, canvas#hero-canvas { display: none !important; }

/* Typer Caret Blink */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #38B6FF; }
}
