/* ============================================================
   PULSAR TECH — PREMIUM ENHANCEMENTS v2
   • Loading screen
   • Custom cursor + magnetic effect
   • Scroll progress bar
   • Aurora background orbs
   • Animated gradient card borders
   • Mouse spotlight on products section
   • Typewriter cursor
   • Stagger animations + wave dividers
   • Glowing stat rings
   • Enhanced nav, footer glow
============================================================ */

/* ─── LOADING SCREEN ─────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  background: #030810;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: loaderPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.loader-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -1px;
}
.loader-logo-text span { color: var(--cyan); }

.loader-ring {
  position: relative;
  width: 60px; height: 60px;
}
.loader-ring svg {
  width: 100%; height: 100%;
  animation: loaderSpin 1.4s linear infinite;
  transform-origin: center;
}
.loader-ring circle {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 75;
  stroke: url(#loaderGrad);
  animation: loaderDash 1.4s ease-in-out infinite;
}
@keyframes loaderSpin { to { transform: rotate(360deg); } }
@keyframes loaderDash {
  0%   { stroke-dashoffset: 100; }
  50%  { stroke-dashoffset: 25; }
  100% { stroke-dashoffset: 100; }
}
@keyframes loaderPop {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.loader-bar-wrap {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 3px;
  animation: loaderBarFill 1.8s ease-out forwards;
}
@keyframes loaderBarFill { from { width: 0; } to { width: 100%; } }

/* ─── SCROLL PROGRESS BAR ────────────────────────────────── */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--teal));
  z-index: 9999;
  transition: width 0.05s linear;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

/* ─── CUSTOM CURSOR ──────────────────────────────────────── */
#cursorDot,
#cursorRing {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  /* Use transform instead of left/top — stays on GPU compositor layer */
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

#cursorDot {
  width: 6px; height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan), 0 0 16px var(--cyan);
  transition: width 0.2s ease, height 0.2s ease, opacity 0.3s ease;
  will-change: left, top;
}

#cursorRing {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(0, 212, 255, 0.5);
  transition: width 0.35s ease, height 0.35s ease,
              border-color 0.35s ease, background 0.35s ease,
              opacity 0.3s ease;
  will-change: left, top;
}

body.cursor-hover #cursorDot  { width: 10px; height: 10px; }
body.cursor-hover #cursorRing {
  width: 56px; height: 56px;
  border-color: rgba(0, 212, 255, 0.8);
  background: rgba(0, 212, 255, 0.05);
}
body.cursor-click #cursorRing {
  width: 28px; height: 28px;
  background: rgba(0, 212, 255, 0.2);
}

@media (pointer: coarse) {
  #cursorDot, #cursorRing { display: none; }
  * { cursor: auto !important; }
}

/* Hide system cursor on desktop */
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  * { cursor: none !important; }
}

/* ─── AURORA / GRADIENT ORBS ─────────────────────────────── */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora__orb {
  position: absolute;
  border-radius: 50%;
  /* No filter:blur — radial-gradient fades naturally */
  animation: orbFloat linear infinite;
  opacity: 0;
  animation-fill-mode: both;
  pointer-events: none;
}
.aurora__orb--1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(var(--purple-rgb),0.28) 0%, transparent 65%);
  top: -15%; left: -10%;
  animation-duration: 20s;
  animation-delay: 0s;
}
.aurora__orb--2 {
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(var(--cyan-rgb),0.16) 0%, transparent 65%);
  top: 5%; right: -20%;
  animation-duration: 28s;
  animation-delay: -8s;
}
.aurora__orb--3 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(var(--teal-rgb),0.12) 0%, transparent 65%);
  bottom: 5%; left: 25%;
  animation-duration: 22s;
  animation-delay: -14s;
}
@keyframes orbFloat {
  0%   { opacity: 0.6; transform: translate(0, 0) scale(1); }
  25%  { opacity: 0.8; transform: translate(30px, -40px) scale(1.05); }
  50%  { opacity: 0.5; transform: translate(-20px, 30px) scale(0.95); }
  75%  { opacity: 0.7; transform: translate(40px, 20px) scale(1.08); }
  100% { opacity: 0.6; transform: translate(0, 0) scale(1); }
}

/* ─── ANIMATED GRADIENT BORDER ON CARDS ─────────────────── */
/* Lightweight: box-shadow pulse instead of conic-gradient RAF */
.product-card:hover::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1.5px rgba(0, 212, 255, 0.35),
              0 0 30px rgba(0, 212, 255, 0.08);
  opacity: 1;
  z-index: -1;
  pointer-events: none;
  animation: none;
}
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Remove expensive @property custom prop — not needed anymore */

/* Solid inner bg to cover the conic bleed */
.product-card .product-card__glow ~ *,
.product-card > *:not(.product-card__glow) {
  position: relative;
  z-index: 1;
}

/* ─── MOUSE SPOTLIGHT ON PRODUCTS SECTION ────────────────── */
.products__grid {
  position: relative;
}
.products__grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 212, 255, 0.04),
    transparent 40%
  );
  pointer-events: none;
  z-index: 0;
  border-radius: 24px;
  transition: background 0.1s linear;
}

/* ─── HERO ENHANCEMENTS ──────────────────────────────────── */
.hero__headline {
  position: relative;
}
/* Ensure gradient-text span is always visible (no JS dependency) */
.hero__inner .hero__headline {
  opacity: 1;
  transform: none;
}
/* Keep headline--visible as no-op so old JS class toggle is harmless */
.hero__inner .hero__headline.headline--visible {
  opacity: 1;
}

/* Floating particles in hero (JS will render on canvas but add CSS shimmer lines too) */
.hero__particles-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--cyan-rgb),0.4), transparent);
  pointer-events: none;
  animation: lineSlide 4s ease-in-out infinite;
}
@keyframes lineSlide {
  0%   { width: 0; opacity: 0; left: -10%; }
  50%  { opacity: 1; }
  100% { width: 40%; opacity: 0; left: 110%; }
}

/* Hero glow pulse */
.hero__glow--left  { animation: glowPulse1 8s ease-in-out infinite; }
.hero__glow--right { animation: glowPulse2 10s ease-in-out infinite; }
@keyframes glowPulse1 {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50%     { opacity: 1;   transform: scale(1.15); }
}
@keyframes glowPulse2 {
  0%,100% { opacity: 0.5; transform: scale(1); }
  50%     { opacity: 0.8; transform: scale(1.2); }
}

/* Hero badge shimmer */
.hero__badge {
  background: linear-gradient(
    90deg,
    rgba(var(--cyan-rgb),0.06) 0%,
    rgba(var(--cyan-rgb),0.14) 50%,
    rgba(var(--cyan-rgb),0.06) 100%
  );
  background-size: 200% 100%;
  animation: badgeShimmer 3s ease-in-out infinite;
}
@keyframes badgeShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ─── STAT RINGS ─────────────────────────────────────────── */
.hero__stats {
  position: relative;
}
.stat {
  position: relative;
}
.stat::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--cyan-rgb),0.08), transparent 70%);
  animation: statRing 3s ease-in-out infinite;
}
.stat:nth-child(3)::before { animation-delay: -1s; background: radial-gradient(circle, rgba(var(--purple-rgb),0.1), transparent 70%); }
.stat:nth-child(5)::before { animation-delay: -2s; background: radial-gradient(circle, rgba(var(--teal-rgb),0.08), transparent 70%); }
@keyframes statRing {
  0%,100% { transform: scale(1); opacity: 0.6; }
  50%     { transform: scale(1.4); opacity: 0; }
}

/* ─── DASHBOARD MOCKUP ENHANCED ──────────────────────────── */
.dashboard-mockup {
  position: relative;
}
.dashboard-mockup::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at center, rgba(var(--cyan-rgb),0.06), transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: mockupGlow 4s ease-in-out infinite;
}
@keyframes mockupGlow {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50%     { opacity: 1;   transform: scale(1.02); }
}

/* Scanline effect on mockup */
.mockup-body::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0; right: 0;
  height: 40%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 212, 255, 0.03),
    transparent
  );
  animation: scanline 5s linear infinite;
  pointer-events: none;
}
.mockup-body { position: relative; overflow: hidden; }
@keyframes scanline {
  0%   { top: -40%; }
  100% { top: 100%; }
}

/* ─── WAVY SECTION DIVIDER ───────────────────────────────── */
.wave-divider {
  position: relative;
  height: 60px;
  overflow: hidden;
  margin-top: -1px;
}
.wave-divider svg {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 100%;
}

/* ─── WHY SECTION — NUMBERED CARDS ──────────────────────── */
.why-card {
  counter-increment: whyCard;
}
.why__grid { counter-reset: whyCard; }

.why-card__num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cyan);
  opacity: 0.6;
  margin-bottom: 20px;
  font-family: 'Space Grotesk', sans-serif;
}

/* ─── SECTION HEADER GLOW LINE ───────────────────────────── */
.section-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--grad);
  border-radius: 3px;
  margin: 20px auto 0;
  box-shadow: 0 0 12px rgba(var(--cyan-rgb),0.5);
}

/* ─── NAV LINK HOVER LINE ────────────────────────────────── */
.nav__link {
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 16px; right: 16px;
  height: 1.5px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: center;
}
.nav__link:hover::after,
.nav__link--active::after { transform: scaleX(1); }

/* ─── FOOTER GLOW LINE ───────────────────────────────────── */
.footer {
  border-top: 1px solid transparent;
  background-image: linear-gradient(var(--bg-1), var(--bg-1)),
                    linear-gradient(90deg, transparent 0%, rgba(var(--cyan-rgb),0.3) 50%, transparent 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* ─── CONTACT SECTION GLOW BG ────────────────────────────── */
.contact {
  background: var(--bg-0);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  bottom: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--purple-rgb),0.12), transparent 70%);
  pointer-events: none;
}

/* ─── PRODUCTS SECTION BG ─────────────────────────────────── */
.products {
  background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 50%, var(--bg-0) 100%);
}

/* ─── CTA BANNER — ANIMATED GRADIENT ─────────────────────── */
.cta-banner {
  background-size: 200% 200%;
  animation: ctaGrad 6s ease infinite;
}
@keyframes ctaGrad {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* ─── TAG COUNTER STAGGER ────────────────────────────────── */
.products__grid .product-card:nth-child(1) { animation-delay: 0ms; }
.products__grid .product-card:nth-child(2) { animation-delay: 80ms; }
.products__grid .product-card:nth-child(3) { animation-delay: 160ms; }
.products__grid .product-card:nth-child(4) { animation-delay: 240ms; }
.products__grid .product-card:nth-child(5) { animation-delay: 320ms; }
.products__grid .product-card:nth-child(6) { animation-delay: 400ms; }

/* ─── ENHANCED CARD INNER SEPARATOR ─────────────────────── */
.product-card__header {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: border-color 0.3s ease;
}
.product-card:hover .product-card__header {
  border-bottom-color: rgba(0, 212, 255, 0.12);
}

/* ─── HERO FLOATING LINES ────────────────────────────────── */
@keyframes floatLine {
  0%   { transform: translateY(0) scaleX(0.8); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100vh) scaleX(1.2); opacity: 0; }
}
.float-line {
  position: absolute;
  left: var(--fl-x);
  bottom: -4px;
  width: var(--fl-w, 1px);
  height: var(--fl-h, 80px);
  background: linear-gradient(to top, var(--cyan), transparent);
  opacity: 0;
  animation: floatLine var(--fl-dur, 6s) ease-in infinite;
  animation-delay: var(--fl-delay, 0s);
  pointer-events: none;
  border-radius: 1px;
}

/* ─── RESPONSIVE: hide cursor on touch ───────────────────── */
@media (hover: none) {
  #cursorDot, #cursorRing { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  #loader,
  #scrollProgress,
  #cursorDot,
  #cursorRing {
    display: none !important;
  }

  .aurora__orb,
  .hero__glow,
  .hero__badge,
  .float-line,
  .stat::before,
  .dashboard-mockup::before,
  .mockup-body::after,
  .cta-banner {
    animation: none !important;
    transform: none !important;
  }

  .products__grid::before,
  .product-card::after {
    display: none !important;
  }
}

/* ─── FORM FOCUSED STATE ─────────────────────────────────── */
.form-group.focused label {
  color: var(--cyan);
}
.form-group.focused input,
.form-group.focused textarea,
.form-group.focused select {
  background: rgba(0, 212, 255, 0.04);
}

/* ─── PRODUCT CARD INNER BG (opaque to cover conic) ─────── */
.product-card {
  background: linear-gradient(145deg, #0B1829 0%, #091425 100%);
}
.product-card:hover {
  background: linear-gradient(145deg, #0E2040 0%, #0B1829 100%);
}

/* ─── PRODUCT-CARD ::AFTER OVERRIDE — now uses box-shadow approach above ── */
/* Remove old conflicting override */

/* ─── SECTION HEADER RTL ─────────────────────────────────── */
html[lang="ar"] .section-header::after { margin: 20px auto 0; }

/* ─── WHY CARD NUM RTL ───────────────────────────────────── */
html[lang="ar"] .why-card__num { direction: ltr; display: inline-block; }

/* ─── NAV LINK HOVER LINE RTL ────────────────────────────── */
html[lang="ar"] .nav__link::after { transform-origin: center; }

/* ─── HERO PARALLAX PREVENT OVERFLOW ────────────────────── */
.hero { contain: paint; }

/* ─── LOADER PULSE SVG ───────────────────────────────────── */
#loader svg circle {
  animation: loaderDash 1.4s ease-in-out infinite,
             loaderColor 2.8s ease-in-out infinite;
}
@keyframes loaderColor {
  0%,100% { stroke: var(--cyan); }
  50%     { stroke: var(--purple); }
}

/* ─── BACK TO TOP RTL ────────────────────────────────────── */
html[lang="ar"] .back-to-top { right: auto; left: 28px; }

/* ─── MOBILE: no parallax transform ─────────────────────── */
@media (max-width: 768px) {
  .hero__dashboard { transform: none !important; }
  .aurora__orb     { transform: none !important; }
}

/* ─── GPU COMPOSITING HINTS — minimal, targeted ─────────── */
.aurora__orb,
.hero__glow,
.dashboard-mockup {
  will-change: transform;
}
/* Everything else: browser decides */


/* ═══════════════════════════════════════════════════════════
   3D PRODUCT CAROUSEL
═══════════════════════════════════════════════════════════ */
.carousel-section {
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}
.carousel-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(var(--purple-rgb),0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Scene wrapper ── */
.c3d-scene-wrap {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.c3d-scene {
  width: 100%;
  height: 330px;
  perspective: 1100px;
  perspective-origin: 50% 48%;
  position: relative;
}

/* ── The rotating stage ── */
.c3d-stage {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Individual card (single-face, no flip) ── */
.c3d-card {
  position: absolute;
  width: 220px;
  height: 295px;
  top: 50%;
  left: 50%;
  margin-top: -147px;
  margin-left: -110px;
  border-radius: 18px;
  cursor: pointer;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: linear-gradient(160deg, #0f1f3d 0%, #0a1428 50%, #091222 100%);
  border: 1px solid rgba(var(--cyan-rgb),0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 18px 18px;
  transition: filter 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Card angles for 6-card carousel */
.c3d-card[data-index="0"] { --c3d-angle:   0deg; }
.c3d-card[data-index="1"] { --c3d-angle:  60deg; }
.c3d-card[data-index="2"] { --c3d-angle: 120deg; }
.c3d-card[data-index="3"] { --c3d-angle: 180deg; }
.c3d-card[data-index="4"] { --c3d-angle: 240deg; }
.c3d-card[data-index="5"] { --c3d-angle: 300deg; }

.c3d-card {
  transform: rotateY(var(--c3d-angle)) translateZ(300px);
}

/* Active card glow */
.c3d-card.is-active {
  border-color: rgba(var(--cyan-rgb),0.4);
  box-shadow:
    0 0 0 1px rgba(var(--cyan-rgb),0.15),
    0 32px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(var(--cyan-rgb),0.1),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ── Accent stripe at top ── */
.c3d-card__accent {
  height: 3px;
  width: 100%;
  margin: 0 -18px;
  width: calc(100% + 36px);
  flex-shrink: 0;
}
.c3d-accent--erp   { background: linear-gradient(90deg, transparent, var(--cyan), transparent); }
.c3d-accent--hr    { background: linear-gradient(90deg, transparent, var(--purple), transparent); }
.c3d-accent--pos   { background: linear-gradient(90deg, transparent, var(--teal), transparent); }
.c3d-accent--tours { background: linear-gradient(90deg, transparent, #FFB400, transparent); }
.c3d-accent--med   { background: linear-gradient(90deg, transparent, #FF3C64, transparent); }
.c3d-accent--lms   { background: linear-gradient(90deg, transparent, #3CB4FF, transparent); }

/* ── Card header (icon + tag row) ── */
.c3d-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  padding: 8px 12px;
  width: fit-content;
}

/* ── Icon ── */
.c3d-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.c3d-icon--erp   { background: rgba(var(--cyan-rgb),0.15);   color: var(--cyan);   border: 1px solid rgba(var(--cyan-rgb),0.35); }
.c3d-icon--hr    { background: rgba(168,130,255,0.18);  color: #A882FF; border: 1px solid rgba(168,130,255,0.4); }
.c3d-icon--pos   { background: rgba(var(--teal-rgb),0.15);    color: var(--teal);   border: 1px solid rgba(var(--teal-rgb),0.35); }
.c3d-icon--tours { background: rgba(255,180,0,0.15);          color: #FFB400;       border: 1px solid rgba(255,180,0,0.35); }
.c3d-icon--med   { background: rgba(255,60,100,0.15);         color: #FF3C64;       border: 1px solid rgba(255,60,100,0.35); }
.c3d-icon--lms   { background: rgba(60,180,255,0.15);         color: #3CB4FF;       border: 1px solid rgba(60,180,255,0.35); }

/* ── Tag (product-colored) ── */
.c3d-card__tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 3px 10px;
}
.c3d-tag--erp   { color: var(--cyan);   background: rgba(var(--cyan-rgb),0.12);   border: 1px solid rgba(var(--cyan-rgb),0.35); }
.c3d-tag--hr    { color: #A882FF; background: rgba(168,130,255,0.15); border: 1px solid rgba(168,130,255,0.4); }
.c3d-tag--pos   { color: var(--teal);   background: rgba(var(--teal-rgb),0.12);   border: 1px solid rgba(var(--teal-rgb),0.35); }
.c3d-tag--tours { color: #FFB400;       background: rgba(255,180,0,0.12);         border: 1px solid rgba(255,180,0,0.35); }
.c3d-tag--med   { color: #FF3C64;       background: rgba(255,60,100,0.12);        border: 1px solid rgba(255,60,100,0.35); }
.c3d-tag--lms   { color: #3CB4FF;       background: rgba(60,180,255,0.12);        border: 1px solid rgba(60,180,255,0.35); }

/* ── Title ── */
.c3d-card__name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 10px 0 0;
  flex-shrink: 0;
}

/* ── Description ── */
.c3d-card__desc {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
  flex: 1;
  margin: 6px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── CTA Button (product-colored) ── */
.c3d-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  margin-top: auto;
  flex-shrink: 0;
}
.c3d-card__btn .fa-arrow-right {
  font-size: 0.7rem;
  transition: transform 0.25s ease;
}
.c3d-card__btn:hover .fa-arrow-right {
  transform: translateX(3px);
}
.c3d-btn-clr--erp   { background: rgba(var(--cyan-rgb),0.1);   border: 1px solid rgba(var(--cyan-rgb),0.4);   color: var(--cyan); }
.c3d-btn-clr--hr    { background: rgba(168,130,255,0.12);  border: 1px solid rgba(168,130,255,0.45); color: #A882FF; }
.c3d-btn-clr--pos   { background: rgba(var(--teal-rgb),0.1);    border: 1px solid rgba(var(--teal-rgb),0.4);   color: var(--teal); }
.c3d-btn-clr--tours { background: rgba(255,180,0,0.1);          border: 1px solid rgba(255,180,0,0.4);         color: #FFB400; }
.c3d-btn-clr--med   { background: rgba(255,60,100,0.1);         border: 1px solid rgba(255,60,100,0.4);        color: #FF3C64; }
.c3d-btn-clr--lms   { background: rgba(60,180,255,0.1);         border: 1px solid rgba(60,180,255,0.4);        color: #3CB4FF; }
.c3d-card__btn:hover {
  transform: translateY(-1px);
}
.c3d-btn-clr--erp:hover   { background: rgba(var(--cyan-rgb),0.22);   border-color: rgba(var(--cyan-rgb),0.6); }
.c3d-btn-clr--hr:hover    { background: rgba(168,130,255,0.25);  border-color: rgba(168,130,255,0.65); }
.c3d-btn-clr--pos:hover   { background: rgba(var(--teal-rgb),0.22);    border-color: rgba(var(--teal-rgb),0.6); }
.c3d-btn-clr--tours:hover { background: rgba(255,180,0,0.22);          border-color: rgba(255,180,0,0.6); }
.c3d-btn-clr--med:hover   { background: rgba(255,60,100,0.22);         border-color: rgba(255,60,100,0.6); }
.c3d-btn-clr--lms:hover   { background: rgba(60,180,255,0.22);         border-color: rgba(60,180,255,0.6); }

/* ── Controls ── */
.c3d-controls {
  display: flex;
  align-items: center;
  gap: 24px;
}

.c3d-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(var(--cyan-rgb),0.06);
  border: 1px solid rgba(var(--cyan-rgb),0.2);
  color: var(--cyan);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.c3d-btn:hover {
  background: rgba(var(--cyan-rgb),0.15);
  border-color: rgba(var(--cyan-rgb),0.45);
  transform: scale(1.08);
}

/* ── Progress indicator (replaces dots) ── */
.c3d-progress {
  display: flex;
  align-items: center;
  gap: 14px;
}
.c3d-progress__track {
  width: 120px;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.c3d-progress__fill {
  height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), margin-left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.c3d-progress__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.5px;
  white-space: nowrap;
  min-width: 32px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .c3d-scene { height: 290px; perspective: 750px; }
  .c3d-card  { width: 195px; height: 265px; margin-top: -132px; margin-left: -97px; padding: 0 14px 14px; }
  .c3d-card  { transform: rotateY(var(--c3d-angle)) translateZ(240px); }
  .c3d-card__accent { margin: 0 -14px; width: calc(100% + 28px); }
  .c3d-card__head { padding: 6px 10px; gap: 8px; margin-top: 14px; }
  .c3d-card__icon { width: 32px; height: 32px; font-size: 0.85rem; }
  .c3d-card__name { font-size: 0.85rem; }
  .c3d-card__desc { font-size: 0.7rem; -webkit-line-clamp: 3; line-clamp: 3; }
  .c3d-card__btn { padding: 6px 12px; font-size: 0.68rem; }
}
@media (max-width: 480px) {
  .c3d-scene { height: 255px; perspective: 550px; }
  .c3d-card  { width: 170px; height: 240px; margin-top: -120px; margin-left: -85px; padding: 0 12px 12px; }
  .c3d-card  { transform: rotateY(var(--c3d-angle)) translateZ(190px); }
  .c3d-card__accent { margin: 0 -12px; width: calc(100% + 24px); }
  .c3d-card__head { margin-top: 12px; padding: 5px 8px; gap: 6px; }
  .c3d-card__icon { width: 28px; height: 28px; font-size: 0.8rem; border-radius: 8px; }
  .c3d-card__tag { font-size: 0.52rem; padding: 2px 7px; letter-spacing: 1px; }
  .c3d-card__name { font-size: 0.78rem; margin-top: 8px; }
  .c3d-card__desc { font-size: 0.65rem; -webkit-line-clamp: 3; line-clamp: 3; }
  .c3d-card__btn { padding: 5px 10px; font-size: 0.65rem; }
  .c3d-progress__track { width: 80px; }
}

/* ═══════════════════════════════════════════════════════════
   LIGHT MODE — Premium "Crystal" Components
═══════════════════════════════════════════════════════════ */
html[data-theme="light"] #loader {
  background: linear-gradient(135deg, #FAFBFF 0%, #F3F1FF 100%);
}
html[data-theme="light"] .loader-logo-text { color: #1A1F36; }
html[data-theme="light"] .loader-logo-text span {
  background: linear-gradient(135deg, #0EA5E9, #7C5CFC);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .aurora__orb:nth-child(1) {
  background: radial-gradient(circle, rgba(124,92,252,0.06) 0%, transparent 70%);
}
html[data-theme="light"] .aurora__orb:nth-child(2) {
  background: radial-gradient(circle, rgba(14,165,233,0.05) 0%, transparent 70%);
}
html[data-theme="light"] .aurora__orb:nth-child(3) {
  background: radial-gradient(circle, rgba(217,70,168,0.04) 0%, transparent 70%);
}

/* Carousel cards */
html[data-theme="light"] .carousel-section::before {
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(124,92,252,0.04) 0%, transparent 70%);
}
html[data-theme="light"] .c3d-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(250,248,255,0.96) 100%);
  border-color: rgba(124,92,252,0.16);
  backdrop-filter: blur(6px);
  box-shadow:
    0 10px 30px rgba(90, 70, 170, 0.10),
    0 2px 8px rgba(30, 35, 70, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.8);
}
html[data-theme="light"] .c3d-card.is-active {
  border-color: rgba(124,92,252,0.38);
  box-shadow:
    0 0 0 1px rgba(124,92,252,0.14),
    0 26px 64px rgba(124,92,252,0.18),
    0 0 36px rgba(14,165,233,0.10),
    inset 0 1px 0 rgba(255,255,255,0.9);
}
html[data-theme="light"] .c3d-card:not(.is-active) {
  filter: saturate(0.92) brightness(0.98);
}
html[data-theme="light"] .c3d-card__head {
  background: rgba(124,92,252,0.08);
  border-color: rgba(124,92,252,0.20);
}
html[data-theme="light"] .c3d-card__name { color: #1A1F36; }
html[data-theme="light"] .c3d-card__desc { color: #4A556F; }
html[data-theme="light"] .c3d-card__accent { opacity: 0.92; }
html[data-theme="light"] .c3d-progress__track { background: rgba(124,92,252,0.08); }
html[data-theme="light"] .c3d-progress__fill { background: linear-gradient(90deg, #7C5CFC, #0EA5E9); }
html[data-theme="light"] .c3d-progress__label { color: rgba(26,31,54,0.55); }
html[data-theme="light"] .c3d-btn {
  background: rgba(124,92,252,0.08);
  border-color: rgba(124,92,252,0.24);
  color: #7C5CFC;
}
html[data-theme="light"] .c3d-btn:hover {
  background: rgba(124,92,252,0.16);
  border-color: rgba(124,92,252,0.45);
  box-shadow: 0 6px 18px rgba(124,92,252,0.16);
}

/* Carousel card CTA + tag */
html[data-theme="light"] .c3d-card__btn {
  box-shadow: 0 2px 8px rgba(30,35,70,0.06);
}
html[data-theme="light"] .c3d-btn-clr--erp   { background: rgba(var(--cyan-rgb),0.14); border-color: rgba(var(--cyan-rgb),0.45); color: #008CB0; }
html[data-theme="light"] .c3d-btn-clr--hr    { background: rgba(168,130,255,0.18); border-color: rgba(168,130,255,0.5); color: #6D4AE8; }
html[data-theme="light"] .c3d-btn-clr--pos   { background: rgba(var(--teal-rgb),0.16); border-color: rgba(var(--teal-rgb),0.5); color: #0A9E79; }
html[data-theme="light"] .c3d-btn-clr--tours { background: rgba(255,180,0,0.18); border-color: rgba(255,180,0,0.5); color: #B87900; }
html[data-theme="light"] .c3d-btn-clr--med   { background: rgba(255,60,100,0.16); border-color: rgba(255,60,100,0.5); color: #C5254D; }
html[data-theme="light"] .c3d-btn-clr--lms   { background: rgba(60,180,255,0.16); border-color: rgba(60,180,255,0.5); color: #0B7FC2; }
html[data-theme="light"] .c3d-btn-clr--erp:hover   { background: rgba(var(--cyan-rgb),0.24); }
html[data-theme="light"] .c3d-btn-clr--hr:hover    { background: rgba(168,130,255,0.28); }
html[data-theme="light"] .c3d-btn-clr--pos:hover   { background: rgba(var(--teal-rgb),0.26); }
html[data-theme="light"] .c3d-btn-clr--tours:hover { background: rgba(255,180,0,0.28); }
html[data-theme="light"] .c3d-btn-clr--med:hover   { background: rgba(255,60,100,0.26); }
html[data-theme="light"] .c3d-btn-clr--lms:hover   { background: rgba(60,180,255,0.26); }
html[data-theme="light"] .c3d-card__tag {
  background: rgba(124,92,252,0.09);
  color: #6D4AE8;
  border-color: rgba(124,92,252,0.26);
}


