/* ============================================================
   STORYARC DIGITAL — Ultra-Modern Dark Theme Stylesheet
   ============================================================ */

/* ===================== TOKENS ===================== */
:root {
  --blue: #2F5FE3;
  --blue-light: #4c7df8;
  --purple: #7B4FE3;
  --orange: #FF7A1A;
  --bg: #0B0F1A;
  --bg-2: #0D1321;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border: rgba(47, 95, 227, 0.2);
  --border-hover: rgba(47, 95, 227, 0.5);
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --grad-main: linear-gradient(135deg, var(--blue) 0%, var(--purple) 50%, var(--orange) 100%);
  --grad-blue-orange: linear-gradient(90deg, var(--blue), var(--orange));
  --glow-blue: 0 0 40px rgba(47, 95, 227, 0.25);
  --glow-orange: 0 0 40px rgba(255, 122, 26, 0.15);
  --glow-purple: 0 0 40px rgba(123, 79, 227, 0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: 0.2s ease;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }
input, textarea, select, button { font-family: inherit; }

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--blue), var(--orange)); border-radius: 10px; }

/* ===================== LOADER ===================== */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-logo { width: 100px; height: 100px; margin: 0 auto 20px; }
.loader-ring {
  animation: ringDraw 1.5s ease forwards, ringRotate 2s linear 1.5s infinite;
}
@keyframes ringDraw { to { stroke-dashoffset: 0; } }
@keyframes ringRotate { from { transform-origin: center; transform: rotate(0deg); } to { transform-origin: center; transform: rotate(360deg); } }
.node { animation: nodePop 0.4s ease forwards; opacity: 0; }
.n1 { animation-delay: 1.5s; }
.n2 { animation-delay: 1.7s; }
.n3 { animation-delay: 1.9s; }
.edge { opacity: 0; animation: fadeIn 0.4s ease 2s forwards; }
.center-dot { opacity: 0; animation: fadeIn 0.4s ease 2.2s forwards, pulseDot 2s ease 2.2s infinite; }
@keyframes nodePop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes pulseDot {
  0%, 100% { r: 8; opacity: 0.8; }
  50% { r: 12; opacity: 1; }
}
.loader-text {
  display: flex; align-items: center; justify-content: center; gap: 2px;
  font-size: 2rem; font-weight: 700; letter-spacing: -0.5px;
  opacity: 0; animation: fadeUp 0.6s ease 2.2s forwards;
}
.loader-brand { color: var(--text); }
.loader-dot { color: var(--orange); }
.loader-brand2 { color: var(--blue); }
.loader-bar {
  width: 200px; height: 2px; background: rgba(0,0,0,0.1);
  margin: 20px auto 0; border-radius: 10px;
  overflow: hidden;
  opacity: 0; animation: fadeIn 0.3s ease 2.2s forwards;
}
.loader-progress {
  height: 100%; width: 0;
  background: var(--grad-main);
  border-radius: 10px;
  animation: loadProgress 1.2s ease 2.4s forwards;
}
@keyframes loadProgress { to { width: 100%; } }

/* ===================== CURSOR ===================== */
/* ===================== CURSOR ===================== */
.custom-cursor {
  position: fixed; width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue);
  pointer-events: none; z-index: 999999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: normal;
  box-shadow: 0 0 10px rgba(47, 95, 227, 0.4);
}
.cursor-trail {
  position: fixed; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--blue);
  border-right-color: var(--blue);
  border-left-color: var(--blue);
  pointer-events: none; z-index: 999998;
  transform-origin: center;
  transform: translate(-50%, -50%);
  animation: cursorSpin 2s linear infinite;
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

@keyframes cursorSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

body.hovering .custom-cursor { width: 30px; height: 30px; background: rgba(255, 122, 26, 0.4); border: 1px solid var(--orange); }
body.hovering .cursor-trail { 
  width: 50px; height: 50px; 
  border-top-color: var(--orange);
  border-right-color: var(--orange);
  border-left-color: var(--orange);
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.2rem 3rem;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s, box-shadow 0.4s;
}
.navbar.scrolled {
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  padding: 0.8rem 3rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.1rem; font-weight: 700; letter-spacing: -0.3px;
  flex-shrink: 0;
}
.nav-logo span { color: var(--text); }
.nav-logo em { font-style: normal; color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 2.5rem; margin-left: auto; }
.nav-links a {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  position: relative; transition: color var(--transition-fast);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--grad-main);
  transform: scaleX(0); transition: transform var(--transition-fast);
  border-radius: 2px;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none; padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(11, 15, 26, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.95);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.mobile-menu.open {
  display: flex; opacity: 1; transform: scale(1); pointer-events: auto;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 2rem; text-align: center; }
.mobile-link { font-size: 2rem; font-weight: 700; color: var(--text-muted); transition: color var(--transition-fast); }
.mobile-link:hover, .mobile-link.cta { color: var(--text); }
.mobile-link.cta {
  background: var(--grad-main); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.8rem; border-radius: 100px;
  font-weight: 600; font-size: 0.95rem;
  cursor: none; border: none; transition: var(--transition);
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--transition); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 0 20px rgba(47, 95, 227, 0.4);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--orange) 0%, var(--purple) 50%, var(--blue) 100%);
  opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover { box-shadow: 0 0 40px rgba(47, 95, 227, 0.6), 0 0 80px rgba(255, 122, 26, 0.2); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(47, 95, 227, 0.08);
  color: var(--blue-light);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(47, 95, 227, 0.15);
  border-color: var(--border-hover);
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
}
.btn-nav {
  background: rgba(47, 95, 227, 0.15);
  color: var(--blue-light);
  border: 1px solid var(--border);
  padding: 0.6rem 1.4rem;
  font-size: 0.875rem;
}
.btn-nav:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: var(--glow-blue);
}
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }

/* ===================== UTILS ===================== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 8rem 0; position: relative; scroll-margin-top: 100px; }
.gradient-text {
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  color: var(--blue-light);
  background: rgba(47, 95, 227, 0.1);
  border: 1px solid rgba(47, 95, 227, 0.25);
  padding: 0.4rem 1rem; border-radius: 100px;
  margin-bottom: 1.2rem;
}
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.5px; margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 600px; margin: 0 auto;
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes floatReverse { 0%, 100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes glow { 0%, 100% { box-shadow: var(--glow-blue); } 50% { box-shadow: var(--glow-orange); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ringPulse { 0%, 100% { transform: scale(1); opacity: 0.4; } 50% { transform: scale(1.05); opacity: 0.7; } }

.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 0 2rem;
}
#network-canvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
}
.hero-particles { position: absolute; inset: 0; z-index: 1; }
.hero-content {
  position: relative; z-index: 3;
  max-width: min(600px, 50%);
  padding-top: 6rem; padding-bottom: 4rem;
  margin-left: max(2rem, calc((100vw - 1280px) / 2));
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  color: var(--orange);
  background: rgba(255, 122, 26, 0.1);
  border: 1px solid rgba(255, 122, 26, 0.25);
  padding: 0.5rem 1.2rem; border-radius: 100px;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  animation: pulse 1.5s ease infinite;
}
.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -1px; margin-bottom: 1.5rem;
  animation-delay: 0.1s;
}
.typed-text { display: block; min-height: 1.2em; }
.typed-cursor {
  display: inline-block; width: 3px; height: 1em;
  background: var(--blue); margin-left: 4px;
  animation: blink 0.7s ease infinite;
  vertical-align: middle;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-sub {
  font-size: 1.1rem; color: var(--text-muted);
  margin-bottom: 2.5rem; line-height: 1.7;
  animation-delay: 0.2s;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-bottom: 3rem;
  animation-delay: 0.3s;
}
.hero-stats {
  display: flex; align-items: center; gap: 2rem;
  animation-delay: 0.4s;
}
.stat { text-align: left; }
.stat-num {
  font-size: 2rem; font-weight: 800;
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat > span:nth-child(2) {
  font-size: 1.4rem; font-weight: 800;
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); display: block; margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

.hero-globe {
  position: absolute; right: -5%; top: 50%;
  transform: translateY(-50%);
  width: 55vw; max-width: 700px;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}
.globe-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: ringPulse 4s ease-in-out infinite;
}
.globe-ring.r1 {
  width: 70%; height: 70%;
  border-color: rgba(47, 95, 227, 0.3);
  animation-delay: 0s;
}
.globe-ring.r2 {
  width: 85%; height: 85%;
  border-color: rgba(123, 79, 227, 0.2);
  animation-delay: 0.7s;
  animation-name: ringPulseR;
}
.globe-ring.r3 {
  width: 100%; height: 100%;
  border-color: rgba(255, 122, 26, 0.15);
  animation-delay: 1.4s;
}
@keyframes ringPulseR {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.03) rotate(180deg); opacity: 0.6; }
}
.globe-svg { width: 100%; height: 100%; animation: spin 30s linear infinite; }

.scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 2px;
  z-index: 3;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===================== MARQUEE ===================== */
.marquee-wrapper {
  overflow: hidden;
  background: linear-gradient(90deg, rgba(47,95,227,0.02), rgba(123,79,227,0.03), rgba(255,122,26,0.02));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}
.marquee-track {
  display: flex; align-items: center; gap: 2rem;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-muted);
}
.marquee-track span { white-space: nowrap; }
.marquee-track .sep { color: var(--orange); opacity: 0.7; }

/* ===================== SERVICES ===================== */
.services { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  position: relative; overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  cursor: pointer;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(47,95,227,0.05) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(47,95,227,0.3);
}
.service-card:hover::before { opacity: 1; }
.card-glow {
  position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,95,227,0.2) 0%, transparent 70%);
  transition: var(--transition);
}
.service-card:hover .card-glow {
  background: radial-gradient(circle, rgba(255,122,26,0.25) 0%, transparent 70%);
  transform: scale(1.5);
}
.service-icon {
  width: 56px; height: 56px; margin-bottom: 1.5rem;
  background: rgba(47,95,227,0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: rgba(255,122,26,0.1);
  border-color: rgba(255,122,26,0.3);
  transform: rotate(5deg);
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: -0.2px; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.service-list {
  display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem;
}
.service-list li {
  font-size: 0.82rem; color: var(--text-dim);
  display: flex; align-items: center; gap: 0.5rem;
}
.service-list li::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0;
}
.card-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.875rem; font-weight: 600; color: var(--blue-light);
  transition: gap 0.2s, color 0.2s;
}
.card-link svg { width: 16px; height: 16px; }
.card-link:hover { gap: 0.7rem; color: var(--orange); }
.service-card-cta {
  background: linear-gradient(135deg, rgba(47,95,227,0.15) 0%, rgba(123,79,227,0.15) 50%, rgba(255,122,26,0.08) 100%);
  border-color: rgba(47,95,227,0.3);
  display: flex; align-items: center; justify-content: center;
}
.cta-card-inner { text-align: center; }
.cta-card-inner h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.75rem; }
.cta-card-inner p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }

/* ===================== ABOUT ===================== */
.about { background: var(--bg-2); overflow: hidden; }
.about-bg-lines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 60px,
    rgba(47,95,227,0.03) 60px,
    rgba(47,95,227,0.03) 61px
  );
  pointer-events: none;
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: center;
}
.about-visual { position: relative; }
.about-shape-outer {
  width: 100%; padding-bottom: 100%;
  position: relative; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,95,227,0.05) 0%, transparent 70%);
}
.about-shape-inner {
  position: absolute; inset: 10%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.about-network {
  width: 90%; height: 90%;
}
.pulse-node { animation: pulse 3s ease-in-out infinite; }
.pulse-node.big { animation-duration: 2s; }
.pulse-node:nth-child(2) { animation-delay: 0.5s; }
.pulse-node:nth-child(3) { animation-delay: 1s; }
.pulse-node:nth-child(4) { animation-delay: 1.5s; }
.pulse-node:nth-child(5) { animation-delay: 2s; }
.about-float-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1.2rem;
  display: flex; align-items: center; gap: 0.8rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.about-float-badge.f1 {
  top: 10%; right: -5%;
  animation: float 4s ease-in-out infinite;
}
.about-float-badge.f2 {
  bottom: 15%; left: -5%;
  animation: floatReverse 5s ease-in-out infinite;
}
.f-icon { font-size: 1.5rem; }
.about-float-badge strong { font-size: 0.85rem; display: block; }
.about-float-badge small { font-size: 0.75rem; color: var(--text-muted); }
.about-content { }
.about-lead {
  font-size: 1.15rem; font-weight: 500;
  color: var(--text); margin-bottom: 1rem;
  line-height: 1.7;
}
.about-text {
  color: var(--text-muted); line-height: 1.8;
  margin-bottom: 2.5rem;
}
.about-timeline {
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.about-timeline::before {
  content: ''; position: absolute; left: 14px; top: 8px;
  bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--orange));
  border-radius: 2px;
}
.timeline-item {
  display: flex; gap: 1.5rem;
  padding-bottom: 2rem; position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-2);
  border: 3px solid var(--blue);
  flex-shrink: 0; margin-top: 2px;
  position: relative; z-index: 1;
  transition: var(--transition);
  box-shadow: 0 0 0 4px rgba(47,95,227,0.15);
}
.timeline-item:hover .timeline-dot {
  border-color: var(--orange);
  box-shadow: 0 0 0 6px rgba(255,122,26,0.15), var(--glow-orange);
}
.timeline-year {
  font-size: 0.75rem; font-weight: 600;
  color: var(--blue-light); text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 0.2rem; display: block;
}
.timeline-content h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.timeline-content p { font-size: 0.875rem; color: var(--text-muted); }

/* ===================== PORTFOLIO ===================== */
.portfolio { background: var(--bg); }
.portfolio-filter { display: flex; gap: 0.75rem; justify-content: center; margin-bottom: 3rem; flex-wrap: wrap; }
.filter-btn {
  padding: 0.5rem 1.2rem; border-radius: 100px;
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.875rem; font-weight: 500;
  cursor: none; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: rgba(47,95,227,0.15);
  border-color: var(--blue);
  color: var(--blue-light);
  box-shadow: var(--glow-blue);
}
.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.portfolio-item {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3;
  transition: var(--transition);
}
.portfolio-item.portfolio-wide { grid-column: span 2; aspect-ratio: 16/7; }
.portfolio-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.6s ease;
}
.portfolio-item:hover .portfolio-img { transform: scale(1.05); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.1) 100%);
  display: flex; align-items: flex-end;
  padding: 2rem;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; transform: translateY(0); }
.portfolio-tag {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  color: var(--orange); display: block; margin-bottom: 0.5rem;
}
.portfolio-info h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.portfolio-info p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.6; }

/* Portfolio Visuals */
.portfolio-visual {
  width: 80%; height: 80%; display: flex; align-items: center; justify-content: center;
  opacity: 0.6;
}
.pv-screen {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; width: 100%; overflow: hidden;
}
.pv-topbar {
  background: rgba(0,0,0,0.3); padding: 8px 12px;
  display: flex; gap: 6px; align-items: center;
}
.pv-topbar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.pv-content { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.pv-line { height: 8px; background: rgba(255,255,255,0.15); border-radius: 4px; }
.pv-line.w80 { width: 80%; }
.pv-line.w60 { width: 60%; }
.pv-line.w70 { width: 70%; }
.pv-line.w50 { width: 50%; }
.pv-block { height: 50px; background: rgba(47,95,227,0.2); border-radius: 6px; }
.pv-circle { width: 40px; height: 40px; border-radius: 50%; background: rgba(123,79,227,0.4); margin-bottom: 8px; }
.pv-phone {
  width: 60%; max-width: 150px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 8px; overflow: hidden;
}
.pv-phone-screen { border-radius: 14px; overflow: hidden; background: rgba(0,0,0,0.4); }
.pv-phone-header { height: 30px; background: rgba(123,79,227,0.4); }
.pv-phone-content { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.pv-phone-screen.green .pv-phone-header { background: rgba(34,197,94,0.4); }
.pv-chart { display: flex; align-items: flex-end; gap: 8px; height: 100px; padding: 0 20px; }
.pv-bar { flex: 1; background: linear-gradient(to top, rgba(255,122,26,0.6), rgba(47,95,227,0.4)); border-radius: 4px 4px 0 0; }
.pv-dashboard { display: flex; width: 100%; height: 80%; gap: 8px; }
.pv-dash-sidebar { width: 22%; background: rgba(0,0,0,0.4); border-radius: 8px; }
.pv-dash-main { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.pv-dash-header { height: 25%; background: rgba(47,95,227,0.2); border-radius: 8px; }
.pv-dash-cards { flex: 1; display: flex; gap: 8px; }
.pv-dash-card { flex: 1; background: rgba(255,255,255,0.05); border-radius: 8px; }
.pv-maplike { height: 50px; background: rgba(34,197,94,0.2); border-radius: 4px; margin-bottom: 8px; }
.pv-social { display: flex; flex-direction: column; gap: 8px; width: 80%; }
.pv-social-post { height: 60px; background: rgba(255,255,255,0.06); border-radius: 8px; }
.pv-social-post.sm { height: 40px; }
.mobile-vis { align-items: center; justify-content: center; }

/* Portfolio hidden items */
.portfolio-item.hidden { display: none; }

/* ===================== PROCESS ===================== */
.process { background: var(--bg-2); }
.process-glow-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(47,95,227,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.process-flow { position: relative; }
.process-line {
  display: none;
}
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; position: relative;
}
.process-steps::before {
  content: ''; position: absolute;
  top: 35px; left: calc(12.5% + 28px); right: calc(12.5% + 28px);
  height: 2px;
  background: linear-gradient(to right, var(--blue), var(--purple), var(--orange));
  z-index: 0;
}
.process-step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.step-node {
  position: relative; width: 70px; height: 70px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; z-index: 1;
}
.step-ring {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid;
  border-color: var(--blue);
  animation: ringPulse 3s ease-in-out infinite;
}
.process-step:nth-child(2) .step-ring { border-color: var(--purple); animation-delay: 0.5s; }
.process-step:nth-child(3) .step-ring { border-color: var(--purple); animation-delay: 1s; }
.process-step:nth-child(4) .step-ring { border-color: var(--orange); animation-delay: 1.5s; }
.step-icon {
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-light);
  transition: var(--transition);
}
.process-step:nth-child(2) .step-icon { color: var(--purple); border-color: rgba(123,79,227,0.3); }
.process-step:nth-child(3) .step-icon { color: var(--purple); border-color: rgba(123,79,227,0.3); }
.process-step:nth-child(4) .step-icon { color: var(--orange); border-color: rgba(255,122,26,0.3); }
.process-step:hover .step-icon {
  transform: scale(1.1);
  box-shadow: var(--glow-blue);
}
.step-icon svg { width: 32px; height: 32px; }
.step-num {
  font-size: 0.75rem; font-weight: 700; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 0.5rem; display: block;
}
.step-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-content p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* ===================== TESTIMONIALS ===================== */
.testimonials { background: var(--bg); }
.testimonials-wrapper { position: relative; overflow: hidden; }
.testimonials-track {
  display: flex; gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.testimonial-card {
  min-width: calc(33.333% - 1rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  position: relative; overflow: hidden;
  flex-shrink: 0;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.tcard-glow {
  position: absolute; top: -20px; left: -20px;
  width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,95,227,0.15) 0%, transparent 70%);
}
.tcard-quote {
  font-size: 3rem; line-height: 1; color: var(--blue);
  opacity: 0.5; margin-bottom: 1rem; font-family: Georgia, serif;
}
.testimonial-card p {
  font-size: 0.95rem; color: var(--text-muted);
  line-height: 1.8; margin-bottom: 1.5rem; font-style: italic;
}
.tcard-author {
  display: flex; align-items: center; gap: 1rem;
}
.tcard-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.tcard-author strong { font-size: 0.9rem; display: block; }
.tcard-author span { font-size: 0.8rem; color: var(--text-dim); }
.tcard-stars { margin-left: auto; color: var(--orange); font-size: 0.85rem; letter-spacing: 2px; }
.testimonials-controls {
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  margin-top: 2.5rem;
}
.tctrl {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(47,95,227,0.1);
  border: 1px solid var(--border); color: var(--text-muted);
  cursor: none; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.tctrl svg { width: 20px; height: 20px; }
.tctrl:hover {
  background: rgba(47,95,227,0.2);
  border-color: var(--blue);
  color: var(--text);
  box-shadow: var(--glow-blue);
}
.t-dots { display: flex; gap: 8px; }
.t-dot {
  width: 8px; height: 8px; border-radius: 100px;
  background: var(--border); cursor: none; transition: var(--transition);
}
.t-dot.active { width: 24px; background: var(--blue); }

/* ===================== CTA ===================== */
.cta-section {
  background: var(--bg-2);
  position: relative; overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; overflow: hidden; }
.cta-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
}
.cta-orb-1 {
  width: 600px; height: 600px;
  background: rgba(47,95,227,0.12);
  top: -200px; left: -200px;
  animation: float 8s ease-in-out infinite;
}
.cta-orb-2 {
  width: 500px; height: 500px;
  background: rgba(123,79,227,0.1);
  top: 50%; right: -150px;
  animation: floatReverse 10s ease-in-out infinite;
}
.cta-orb-3 {
  width: 400px; height: 400px;
  background: rgba(255,122,26,0.08);
  bottom: -100px; left: 30%;
  animation: float 12s ease-in-out infinite 2s;
}
.cta-inner {
  max-width: 800px; margin: 0 auto; text-align: center;
  position: relative; z-index: 1;
}
.cta-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -1px; margin: 1rem 0;
}
.cta-sub {
  font-size: 1.1rem; color: var(--text-muted);
  margin-bottom: 3rem;
}
.cta-form { text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { position: relative; margin-bottom: 1rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 1rem 1.2rem;
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text); font-size: 0.95rem;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding-left: 0.2rem;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47,95,227,0.15);
}
.form-group select option { background: var(--bg-2); }
.form-group textarea { resize: vertical; min-height: 120px; }
.cta-direct {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem;
  margin-top: 2rem; font-size: 0.9rem; color: var(--text-muted);
}
.cta-direct a { color: var(--blue-light); font-weight: 500; }
.cta-direct a:hover { color: var(--orange); }
.cta-direct .sep { color: var(--border); }

/* ===================== FOOTER ===================== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem; margin-bottom: 4rem;
}
.footer-logo { margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.9rem; color: var(--text-muted);
  line-height: 1.7; margin-bottom: 1.5rem;
  max-width: 320px;
}
.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover {
  background: rgba(47,95,227,0.15);
  border-color: var(--blue);
  color: var(--blue-light);
  transform: translateY(-3px);
  box-shadow: var(--glow-blue);
}
.footer-col h4 {
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text);
  margin-bottom: 1.5rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a {
  font-size: 0.9rem; color: var(--text-muted);
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--blue-light); }
.contact-list li {
  display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; color: var(--text-muted);
}
.contact-list li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--blue); }
.contact-list a { color: var(--text-muted); }
.contact-list a:hover { color: var(--blue-light); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.85rem; color: var(--text-dim);
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--text-dim); transition: color var(--transition-fast); }
.footer-legal a:hover { color: var(--text-muted); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item.portfolio-wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  .navbar { padding: 1rem 1.5rem; }
  .navbar.scrolled { padding: 0.8rem 1.5rem; }
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }
  .hero-content { max-width: 100%; }
  .hero-globe { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { max-width: 400px; margin: 0 auto; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .testimonial-card { min-width: calc(50% - 0.75rem); }
}

@media (max-width: 640px) {
  .section { padding: 4rem 1rem; }
  .services-grid { grid-template-columns: 1fr; gap: 2rem; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 2rem; }
  .portfolio-item.portfolio-wide { grid-column: span 1; aspect-ratio: 4/3; }
  .process-steps { grid-template-columns: 1fr; gap: 3rem; }
  .testimonial-card { min-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .footer-brand { align-items: center; display: flex; flex-direction: column; }
  .social-links { justify-content: center; }
  .contact-list li { justify-content: center; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; justify-content: center; text-align: center; }
  .stat-divider { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .hero-content { padding-top: 7rem; padding-bottom: 3rem; margin: 0 auto; text-align: center; }
  .hero-cta { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 1.5rem; }
  .cta-direct { flex-direction: column; gap: 0.5rem; }
  .section-title, .cta-title { font-size: 2.2rem; }
  .btn { padding: 0.9rem 1.8rem; }
}

/* ===================== PERFORMANCE ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ===================== MODAL ===================== */
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.service-modal.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.95);
  backdrop-filter: blur(15px);
  z-index: -1;
}

.modal-container {
  position: relative;
  width: 90%;
  max-width: 850px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4rem;
  transform: scale(0.9);
  transition: transform var(--transition);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.service-modal.active .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.modal-close:hover {
  color: var(--orange);
}

.modal-body h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.modal-body .modal-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(47, 95, 227, 0.1);
  color: var(--blue-light);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.modal-body p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.modal-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.modal-feature {
  display: flex;
  gap: 1rem;
}
.mf-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.mf-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}
.mf-text span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .modal-container { 
    width: 95%; /* Better fit for mobile */
    max-width: 650px;
    padding: 3rem 1.5rem; 
    margin: 20px auto; 
    pointer-events: auto; /* Ensure container itself processes clicks */
  }
  .modal-close {
    top: 15px;
    right: 15px;
    z-index: 100;
  }
  .modal-features { grid-template-columns: 1fr; gap: 1.5rem; }
  .modal-body h2 { font-size: 2.2rem; margin-bottom: 1rem; }
  .modal-body p { margin-bottom: 1.5rem; font-size: 1rem; }
}

@media (max-width: 480px) {
  .modal-container { padding: 2.5rem 1rem; }
  .modal-body h2 { font-size: 1.8rem; }
  .mf-icon { font-size: 1.5rem; }
  .mf-text h4 { font-size: 1rem; }
}
