/* ═══════════════════════════════════════════════════════════════
   MAFASA LTD — Premium Automotive Spare Parts
   style.css — Production Quality, Dark Industrial Aesthetic
════════════════════════════════════════════════════════════════ */

/* ─── CSS CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  --mafasa-black:   #1A1A1A;
  --mafasa-deep:    #0D0D0D;
  --mafasa-panel:   #141414;
  --mafasa-card:    #1E1E1E;
  --mafasa-white:   #F5F5F5;
  --mafasa-blue:  #2563EB;
  --mafasa-blue2: #3B82F6;
  --mafasa-steel:   #2D4A55;
  --mafasa-silver:  #C0C0C0;
  --mafasa-grey:    #888;
  --mafasa-border:  rgba(37,99,235,0.18);

  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --section-pad: clamp(80px, 10vw, 140px);
  --radius: 12px;
  --radius-lg: 20px;
}

/* ─── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--mafasa-deep);
  color: var(--mafasa-white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── SCROLL PROGRESS BAR ────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--mafasa-blue), var(--mafasa-blue2), #93C5FD);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px var(--mafasa-blue);
}

/* ─── NAVIGATION ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 clamp(16px, 4vw, 48px);
  height: 72px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s, box-shadow 0.4s;
}

#navbar.scrolled {
  background: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 1px 0 rgba(37,99,235,0.15), 0 8px 32px rgba(0,0,0,0.5);
}

.nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s;
}

.nav-logo:hover .logo-img {
  transform: rotate(15deg) scale(1.08);
  box-shadow: 0 0 20px rgba(37,99,235,0.5);
}

.nav-brand {
  font-family: var(--font-head);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: var(--mafasa-white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.825rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mafasa-silver);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--mafasa-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.nav-links a:hover { color: var(--mafasa-white); }
.nav-links a:hover::after { transform: scaleX(1); }

.btn-nav-cta {
  padding: 8px 20px;
  background: var(--mafasa-blue);
  color: var(--mafasa-deep) !important;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem !important;
  letter-spacing: 0.06em;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s !important;
}

.btn-nav-cta::after { display: none !important; }

.btn-nav-cta:hover {
  background: var(--mafasa-blue2) !important;
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
  transform: translateY(-1px);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.lang-btn {
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--mafasa-grey);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.lang-btn:hover {
  color: var(--mafasa-white);
  border-color: rgba(255,255,255,0.25);
}

.lang-btn.active {
  color: var(--mafasa-deep);
  background: var(--mafasa-blue);
  border-color: var(--mafasa-blue);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--mafasa-white);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO SECTION ───────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--mafasa-deep);
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Geometric accent lines */
.hero-lines { position: absolute; inset: 0; pointer-events: none; z-index: 1; }

.h-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.12), transparent);
  height: 1px;
  width: 100%;
}

.h-line-1 { top: 25%; animation: lineFloat 8s ease-in-out infinite; }
.h-line-2 { top: 50%; animation: lineFloat 10s ease-in-out infinite 1.5s; opacity: 0.6; }
.h-line-3 { top: 75%; animation: lineFloat 12s ease-in-out infinite 3s; opacity: 0.4; }

@keyframes lineFloat {
  0%, 100% { transform: translateX(-5%) scaleX(1.1); opacity: 0.4; }
  50% { transform: translateX(5%) scaleX(0.9); opacity: 0.8; }
}

/* Corner brackets */
#hero::before, #hero::after {
  content: '';
  position: absolute;
  width: 80px; height: 80px;
  border-color: rgba(37,99,235,0.3);
  border-style: solid;
  z-index: 2;
  pointer-events: none;
}

#hero::before {
  top: 100px; left: clamp(16px, 4vw, 60px);
  border-width: 2px 0 0 2px;
}

#hero::after {
  bottom: 60px; right: clamp(16px, 4vw, 60px);
  border-width: 0 2px 2px 0;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 clamp(20px, 5vw, 60px);
  max-width: 900px;
  width: 100%;
}

.hero-logo-mark {
  width: clamp(90px, 14vw, 140px);
  height: clamp(90px, 14vw, 140px);
  margin: 0 auto 36px;
  opacity: 0;
  transform: scale(0.6) rotate(-20deg);
  transition: opacity 0.9s var(--ease-spring) 0.1s, transform 0.9s var(--ease-spring) 0.1s;
  cursor: pointer;
  position: relative;
}

.hero-logo-mark.visible {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.hero-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 16px rgba(37,99,235,0.35));
  transition: filter 0.3s ease;
  /* spin is handled via JS-injected class */
}

.hero-logo-mark:hover img {
  filter: brightness(0) invert(1) drop-shadow(0 0 28px rgba(37,99,235,0.7));
}

.hero-logo-mark img.logo-spinning {
  animation: logoSpin 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes logoSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(1080deg); }
}

/* Hero Title — letters animate individually */
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(4.5rem, 16vw, 14rem);
  line-height: 0.88;
  letter-spacing: 0.08em;
  text-align: center;
  white-space: nowrap;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #FFFFFF 0%, #C8C8C8 45%, #FFFFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(55px) skewY(5deg);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  background: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .char.visible {
  opacity: 1;
  transform: translateY(0) skewY(0deg);
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--mafasa-blue);
  margin-bottom: 36px;
  font-weight: 500;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.2s forwards;
}

.typewriter {
  border-right: 2px solid var(--mafasa-blue);
  padding-right: 4px;
  animation: blink 0.8s step-end 1.2s 8 forwards;
}

@keyframes blink {
  0%, 100% { border-color: var(--mafasa-blue); }
  50% { border-color: transparent; }
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.5s forwards;
}

.badge {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mafasa-silver);
  padding: 6px 16px;
  border: 1px solid rgba(192,192,192,0.2);
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
}

.badge-sep {
  color: var(--mafasa-blue);
  font-size: 1.2rem;
}

/* CTA Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 44px;
  background: linear-gradient(135deg, var(--mafasa-blue), var(--mafasa-blue2));
  color: var(--mafasa-deep);
  font-family: var(--font-head);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.3s;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.8s forwards;
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--mafasa-blue2), #93C5FD);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(37,99,235,0.5), 0 0 0 1px rgba(37,99,235,0.3);
}

.btn-cta:hover::before { opacity: 1; }

.btn-cta:active { transform: translateY(-1px) scale(0.99); }

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.btn-icon svg { width: 100%; height: 100%; }
.btn-cta > span:last-of-type, .btn-cta > :not(.btn-icon) { position: relative; z-index: 1; }

/* Pulse animation */
@keyframes ctaPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,99,235,0.5); }
  70% { box-shadow: 0 0 0 18px rgba(37,99,235,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}

.pulse { animation: fadeUp 0.8s var(--ease-out) 1.8s forwards, ctaPulse 2.5s ease-out 2.6s infinite; }

/* Large CTA variant */
.btn-cta-lg {
  font-size: 1.5rem;
  padding: 22px 56px;
  opacity: 1;
  animation: ctaPulse 2.5s ease-out 1s infinite !important;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1.5px solid var(--mafasa-blue);
  color: var(--mafasa-blue);
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.1em;
  border-radius: 6px;
  margin-top: 8px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.btn-secondary:hover {
  background: var(--mafasa-blue);
  color: var(--mafasa-deep);
  transform: translateY(-2px);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeIn 1s ease 2.5s forwards;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--mafasa-blue);
  border-radius: 50%;
  margin: 0 auto;
  animation: scrollBounce 2s ease-in-out infinite;
  box-shadow: 0 0 10px var(--mafasa-blue);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.5; }
}

/* ─── SHARED SECTION STYLES ──────────────────────────────────── */
section {
  position: relative;
  padding: var(--section-pad) clamp(16px, 4vw, 48px);
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mafasa-blue);
  margin-bottom: 12px;
  padding: 5px 14px;
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: 100px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: 0.04em;
  color: var(--mafasa-white);
  line-height: 1.05;
}

/* ─── REVEAL ANIMATIONS ──────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal-child {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-child.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger siblings */
.reveal-child:nth-child(1) { transition-delay: 0s; }
.reveal-child:nth-child(2) { transition-delay: 0.1s; }
.reveal-child:nth-child(3) { transition-delay: 0.2s; }
.reveal-child:nth-child(4) { transition-delay: 0.3s; }
.reveal-child:nth-child(5) { transition-delay: 0.4s; }
.reveal-child:nth-child(6) { transition-delay: 0.5s; }

/* ─── STATS SECTION ──────────────────────────────────────────── */
#stats {
  background: var(--mafasa-panel);
  border-top: 1px solid rgba(37,99,235,0.1);
  border-bottom: 1px solid rgba(37,99,235,0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 60px);
  max-width: 960px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: clamp(32px, 4vw, 56px) 24px;
  background: var(--mafasa-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(37,99,235,0.2);
}

.stat-card:hover::before { opacity: 1; }

.stat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
}

.stat-icon svg { width: 100%; height: 100%; }

.stat-number {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: 0.02em;
  color: var(--mafasa-white);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mafasa-grey);
}

/* ─── ABOUT SECTION ──────────────────────────────────────────── */
#about {
  background: var(--mafasa-black);
  overflow: hidden;
}

.about-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(45,74,85,0.15) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,0.015) 40px, rgba(255,255,255,0.015) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.015) 40px, rgba(255,255,255,0.015) 41px);
  pointer-events: none;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.about-accent {
  text-align: center;
  position: relative;
}

.about-big-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(8rem, 18vw, 16rem);
  line-height: 0.85;
  background: linear-gradient(135deg, var(--mafasa-blue) 0%, rgba(37,99,235,0.2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.about-big-label {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 3vw, 2rem);
  letter-spacing: 0.5em;
  color: var(--mafasa-silver);
  margin-top: -20px;
}

.about-content .section-tag { display: inline-block; }

.about-text {
  color: rgba(245,245,245,0.75);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  line-height: 1.75;
  margin-top: 16px;
}

.about-tagline {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  letter-spacing: 0.05em;
  color: var(--mafasa-blue);
  margin-top: 28px;
  margin-bottom: 28px;
}

/* ─── WHY MAFASA SECTION ─────────────────────────────────────── */
#why {
  background: var(--mafasa-deep);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}

.feature-card {
  padding: clamp(28px, 3.5vw, 48px) clamp(24px, 3vw, 40px);
  background: var(--mafasa-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, border-color 0.3s;
  cursor: default;
}

.feature-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mafasa-blue), var(--mafasa-steel));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(37,99,235,0.25);
  border-color: rgba(37,99,235,0.25);
}

.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover::after { opacity: 1; }

.feature-icon {
  width: 56px;
  height: 56px;
  color: var(--mafasa-blue);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.feature-icon svg { width: 100%; height: 100%; }

.feature-title {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  letter-spacing: 0.06em;
  color: var(--mafasa-white);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.feature-text {
  font-size: 0.9rem;
  color: rgba(245,245,245,0.6);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ─── CATEGORIES SECTION ─────────────────────────────────────── */
#categories {
  background: var(--mafasa-black);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(28px, 3.5vw, 44px) 20px clamp(24px, 3vw, 36px);
  background: var(--mafasa-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, border-color 0.3s;
  gap: 16px;
}

.cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(37,99,235,0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(37,99,235,0.3);
  border-color: rgba(37,99,235,0.3);
}

.cat-card:hover::after { opacity: 1; }

.cat-icon-wrap {
  width: 72px;
  height: 72px;
  padding: 12px;
  background: rgba(37,99,235,0.07);
  border-radius: 50%;
  border: 1px solid rgba(37,99,235,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-spring);
  position: relative;
  z-index: 1;
}

.cat-card:hover .cat-icon-wrap {
  background: rgba(37,99,235,0.15);
  border-color: rgba(37,99,235,0.5);
  transform: scale(1.08);
}

.cat-icon-wrap svg { width: 100%; height: 100%; }

.cat-title {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: 0.06em;
  color: var(--mafasa-white);
  position: relative;
  z-index: 1;
}

.cat-link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mafasa-blue);
  margin-top: auto;
  transition: letter-spacing 0.2s;
  position: relative;
  z-index: 1;
}

.cat-card:hover .cat-link { letter-spacing: 0.2em; }

/* ─── TESTIMONIALS SECTION ───────────────────────────────────── */
#testimonials {
  background: var(--mafasa-panel);
}

.testimonials-wrap {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.testimonial-track {
  position: relative;
  min-height: 260px;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(36px, 5vw, 60px) clamp(24px, 5vw, 60px);
  background: var(--mafasa-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  pointer-events: none;
  gap: 20px;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.testimonial-slide.exit {
  opacity: 0;
  transform: translateX(-40px);
}

.stars {
  color: #FFB800;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  line-height: 1;
}

.review-text {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: rgba(245,245,245,0.85);
  line-height: 1.75;
  font-style: italic;
  max-width: 560px;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--mafasa-grey);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.reviewer-flag { font-size: 1.3rem; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  transition: background 0.3s, transform 0.3s var(--ease-spring), width 0.3s;
}

.dot.active {
  background: var(--mafasa-blue);
  transform: scale(1.2);
  width: 24px;
  border-radius: 4px;
}

.carousel-arrows {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 16px;
}

.carr-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(30,30,30,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--mafasa-white);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  transform: translateX(0);
}

#carr-prev { transform: translateX(-60px); }
#carr-next { transform: translateX(60px); }

.carr-btn svg { width: 20px; height: 20px; }

.carr-btn:hover {
  background: var(--mafasa-blue);
  border-color: var(--mafasa-blue);
  transform: scale(1.1) translateX(0);
}

#carr-prev:hover { transform: scale(1.1) translateX(-60px); }
#carr-next:hover { transform: scale(1.1) translateX(60px); }

.feedback-stamp {
  text-align: center;
  margin-top: 40px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mafasa-blue);
  padding: 10px;
  border-top: 1px solid rgba(37,99,235,0.15);
}

/* ─── FINAL CTA SECTION ──────────────────────────────────────── */
#final-cta {
  position: relative;
  min-height: clamp(400px, 55vh, 700px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--section-pad) clamp(16px, 4vw, 48px);
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  background-image: url('../brandbok/assets/banner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 0.6s;
}

#final-cta:hover .cta-banner-bg { transform: scale(1); }

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,13,13,0.90) 0%,
    rgba(13,13,13,0.75) 40%,
    rgba(37,99,235,0.15) 100%
  );
}

.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-pretitle {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mafasa-blue);
  margin-bottom: 16px;
}

.cta-headline {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: 0.05em;
  color: var(--mafasa-white);
  line-height: 1;
  margin-bottom: 24px;
}

.cta-sub {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: rgba(245,245,245,0.75);
  line-height: 1.75;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
#footer {
  background: #0A0A0A;
  border-top: 1px solid rgba(37,99,235,0.12);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) clamp(16px, 4vw, 48px) 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(37,99,235,0.2);
}

.footer-brand-name {
  font-family: var(--font-head);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: var(--mafasa-white);
}

.footer-brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mafasa-grey);
  margin-top: 2px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
}

.footer-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mafasa-grey);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--mafasa-blue); }

.footer-ebay { flex-shrink: 0; }

.ebay-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(229,50,56,0.08);
  border: 1px solid rgba(229,50,56,0.2);
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s;
}

.ebay-badge:hover {
  background: rgba(229,50,56,0.14);
  border-color: rgba(229,50,56,0.4);
}

.ebay-badge svg { width: 60px; height: 24px; }

.ebay-badge span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mafasa-silver);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 48px);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(136,136,136,0.7);
  letter-spacing: 0.04em;
}

.footer-made {
  font-style: italic;
  color: rgba(37,99,235,0.5) !important;
}

/* ─── MOBILE MENU OVERLAY ────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
  }

  .nav-links.open { transform: translateX(0); }

  .nav-links li:last-child { margin-top: 20px; }

  .nav-links a {
    font-size: 1rem;
    color: var(--mafasa-white);
  }

  .btn-nav-cta {
    font-size: 1rem !important;
    padding: 12px 32px !important;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .lang-switcher {
    margin-left: auto;
  }
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr; max-width: 380px; }
  .about-inner { grid-template-columns: 1fr; text-align: center; }
  .about-accent { order: -1; }
  .about-big-num { font-size: clamp(6rem, 22vw, 10rem); }
  .features-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  #carr-prev { transform: translateX(-10px) !important; }
  #carr-next { transform: translateX(10px) !important; }
  .carr-btn:hover { transform: scale(1.05) !important; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
  .hero-badges { flex-direction: column; align-items: center; }
  .badge-sep { display: none; }
  .btn-cta { width: 100%; justify-content: center; }
  .btn-cta-lg { font-size: 1.2rem; padding: 18px 32px; }
}

/* ─── UTILITY ────────────────────────────────────────────────── */
::selection {
  background: rgba(37,99,235,0.3);
  color: var(--mafasa-white);
}

:focus-visible {
  outline: 2px solid var(--mafasa-blue);
  outline-offset: 3px;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--mafasa-deep); }
::-webkit-scrollbar-thumb { background: rgba(37,99,235,0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--mafasa-blue); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-title .char,
  .reveal-child,
  .hero-logo-mark {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn-cta, .hero-subtitle, .hero-badges, .scroll-hint {
    opacity: 1 !important;
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ✦ SPARKLE & GLOW EFFECTS
════════════════════════════════════════════════════════════════ */

/* ─── AURORA BLOBS (hero background) ────────────────────────── */
.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0;
  animation: auroraFade 0.8s ease forwards;
}

.aurora-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.22) 0%, transparent 70%);
  top: -100px; left: -150px;
  animation: auroraFade 1s ease 0.2s forwards, auroraFloat1 14s ease-in-out 1.2s infinite;
}

.aurora-blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(96,165,250,0.16) 0%, transparent 70%);
  top: 30%; right: -100px;
  animation: auroraFade 1s ease 0.5s forwards, auroraFloat2 18s ease-in-out 1.5s infinite;
}

.aurora-blob-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(147,197,253,0.12) 0%, transparent 70%);
  bottom: -80px; left: 30%;
  animation: auroraFade 1s ease 0.8s forwards, auroraFloat3 22s ease-in-out 2s infinite;
}

@keyframes auroraFade {
  to { opacity: 1; }
}

@keyframes auroraFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(60px, 40px) scale(1.1); }
  66%       { transform: translate(-40px, 60px) scale(0.95); }
}

@keyframes auroraFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(-70px, -50px) scale(1.08); }
  70%       { transform: translate(50px, 30px) scale(0.92); }
}

@keyframes auroraFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(80px, -60px) scale(1.15); }
}

/* ─── SHIMMER SWEEP (cards) ──────────────────────────────────── */
.feature-card,
.stat-card,
.cat-card {
  isolation: isolate;
}

.feature-card .shimmer-layer,
.stat-card .shimmer-layer,
.cat-card .shimmer-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.07) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  pointer-events: none;
  z-index: 10;
  border-radius: inherit;
}

.feature-card:hover .shimmer-layer,
.stat-card:hover .shimmer-layer,
.cat-card:hover .shimmer-layer {
  animation: shimmerSweep 0.65s ease forwards;
}

@keyframes shimmerSweep {
  to { transform: translateX(200%); }
}

/* ─── NEON GLOW — CTA BUTTONS ────────────────────────────────── */
.btn-cta {
  position: relative;
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50px;
  background: linear-gradient(90deg, #1D4ED8, #3B82F6, #93C5FD, #3B82F6, #1D4ED8);
  background-size: 300% 100%;
  animation: borderShift 3s linear infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-cta:hover::before,
.btn-cta.pulse::before {
  opacity: 1;
  animation: borderShift 3s linear infinite;
}

@keyframes borderShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* Replace old pulse with richer multi-ring glow */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(37,99,235,0.7),
                     0 0 20px  rgba(37,99,235,0.3); }
  50%  { box-shadow: 0 0 0 14px rgba(37,99,235,0),
                     0 0 60px  rgba(37,99,235,0.6),
                     0 0 120px rgba(96,165,250,0.2); }
  100% { box-shadow: 0 0 0 0   rgba(37,99,235,0),
                     0 0 20px  rgba(37,99,235,0.3); }
}

/* ─── HERO TITLE GLOW ────────────────────────────────────────── */
#hero-title {
  filter: drop-shadow(0 0 30px rgba(37,99,235,0.25))
          drop-shadow(0 0 80px rgba(96,165,250,0.12));
  transition: filter 0.5s;
}

#hero-title:hover {
  filter: drop-shadow(0 0 40px rgba(37,99,235,0.5))
          drop-shadow(0 0 100px rgba(96,165,250,0.25));
}

/* ─── HERO LOGO GLOW RING ────────────────────────────────────── */
.hero-logo-mark::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(37,99,235,0.35);
  animation: logoRingPulse 3s ease-in-out infinite;
  pointer-events: none;
}

.hero-logo-mark::before {
  content: '';
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  border: 1px solid rgba(37,99,235,0.15);
  animation: logoRingPulse 3s ease-in-out infinite 0.5s;
  pointer-events: none;
}

@keyframes logoRingPulse {
  0%, 100% { transform: scale(1);   opacity: 0.7; }
  50%       { transform: scale(1.1); opacity: 0.2; }
}

/* ─── STAT NUMBERS GLOW ──────────────────────────────────────── */
.stat-number {
  filter: drop-shadow(0 0 12px rgba(37,99,235,0.4));
}

.stat-card:hover .stat-number {
  filter: drop-shadow(0 0 24px rgba(37,99,235,0.8))
          drop-shadow(0 0 48px rgba(96,165,250,0.4));
  transition: filter 0.3s;
}

/* ─── SECTION TAG GLOW ───────────────────────────────────────── */
.section-tag {
  text-shadow: 0 0 20px rgba(37,99,235,0.6);
}

/* ─── ABOUT BIG NUMBER GLOW ──────────────────────────────────── */
.about-big-num {
  filter: drop-shadow(0 0 40px rgba(37,99,235,0.4));
  animation: numBreath 4s ease-in-out infinite;
}

@keyframes numBreath {
  0%, 100% { filter: drop-shadow(0 0 30px rgba(37,99,235,0.3)); }
  50%       { filter: drop-shadow(0 0 70px rgba(37,99,235,0.7))
                      drop-shadow(0 0 120px rgba(96,165,250,0.3)); }
}

/* ─── FEATURE CARD ICON GLOW ─────────────────────────────────── */
.feature-card:hover .feature-icon svg {
  filter: drop-shadow(0 0 8px rgba(37,99,235,0.8))
          drop-shadow(0 0 20px rgba(96,165,250,0.4));
  transition: filter 0.3s;
}

/* ─── CATEGORY CARDS GLOW ────────────────────────────────────── */
.cat-card:hover .cat-icon-wrap svg {
  filter: drop-shadow(0 0 10px rgba(37,99,235,0.9))
          drop-shadow(0 0 25px rgba(96,165,250,0.5));
  transition: filter 0.3s;
}

/* ─── SCROLL PROGRESS GLOW ───────────────────────────────────── */
#scroll-progress {
  box-shadow: 0 0 10px rgba(37,99,235,0.9),
              0 0 30px rgba(96,165,250,0.5),
              0 0 60px rgba(147,197,253,0.2);
  height: 3px;
}

/* ─── NAV CTA BUTTON GLOW ────────────────────────────────────── */
.btn-nav-cta:hover {
  box-shadow: 0 0 20px rgba(37,99,235,0.6),
              0 0 40px rgba(37,99,235,0.3) !important;
}

/* ─── STARS / SPARKLE PARTICLES (JS-spawned) ─────────────────── */
.sparkle-star {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  font-size: 14px;
  line-height: 1;
  color: rgba(147,197,253,0.9);
  user-select: none;
  animation: sparkleFly var(--dur, 0.9s) ease forwards;
  text-shadow: 0 0 6px rgba(37,99,235,0.8), 0 0 20px rgba(96,165,250,0.6);
}

@keyframes sparkleFly {
  0%   { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--tx,0px), var(--ty,-60px)) scale(0.3) rotate(var(--rot,180deg)); }
}

/* ─── CLICK RIPPLE ───────────────────────────────────────────── */
.click-ripple {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  border: 2px solid rgba(37,99,235,0.6);
  animation: rippleExpand 0.6s ease forwards;
}

@keyframes rippleExpand {
  0%   { width: 0; height: 0; opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  100% { width: 120px; height: 120px; opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

/* ─── FOOTER GLOW LINE ───────────────────────────────────────── */
footer {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(37,99,235,0.5), rgba(96,165,250,0.8), rgba(37,99,235,0.5), transparent) 1;
}

/* ─── HERO LINES ENHANCED ────────────────────────────────────── */
.h-line {
  background: linear-gradient(90deg,
    transparent,
    rgba(37,99,235,0.06),
    rgba(96,165,250,0.18),
    rgba(37,99,235,0.06),
    transparent
  );
  box-shadow: 0 0 8px rgba(37,99,235,0.15);
}

/* ─── GRAIN OVERLAY (depth texture) ─────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ─── REDUCED MOTION overrides ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .aurora-blob,
  .hero-logo-mark::before,
  .hero-logo-mark::after,
  .about-big-num,
  .shimmer-layer,
  .sparkle-star,
  .click-ripple { animation: none !important; opacity: 1; }
}
