/* ======================================================
   Flying Spark — Visual Redesign
   ====================================================== */

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

:root {
  --bg:      #080c14;
  --bg2:     #0d1424;
  --orange:  #ff6b00;
  --purple:  #7c3aed;
  --pink:    #ff2d55;
  --cyan:    #00d4ff;
  --text:    #e2e8f0;
  --muted:   #94a3b8;
  --border:  rgba(255,255,255,0.08);
  --glass:   rgba(255,255,255,0.04);
}

html { scroll-behavior:smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ── Custom Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar            { width:6px; }
::-webkit-scrollbar-track      { background:var(--bg); }
::-webkit-scrollbar-thumb      { background:linear-gradient(var(--orange),var(--purple)); border-radius:3px; }

/* ── Noise Texture ────────────────────────────────────── */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Custom Cursor ────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  margin: -5px 0 0 -5px;
  mix-blend-mode: screen;
  transition: width .2s, height .2s, margin .2s;
}

.cursor-follower {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,107,0,.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  margin: -18px 0 0 -18px;
  transition: width .3s, height .3s, margin .3s, border-color .3s;
}

.cursor.active        { width:18px; height:18px; margin:-9px 0 0 -9px; }
.cursor-follower.active { width:56px; height:56px; margin:-28px 0 0 -28px; border-color:rgba(255,107,0,.15); }

/* ── Navbar ───────────────────────────────────────────── */
.navbar {
  position: fixed;
  top:0; left:0; right:0;
  z-index: 100;
  padding: 24px 8%;
  transition: padding .4s ease, background .4s ease, border-color .4s ease;
}

.navbar.scrolled {
  padding: 14px 8%;
  background: rgba(8,12,20,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 44px;
  width: auto;
  border-radius: 8px;
  display: block;
  transition: opacity .3s;
}
.nav-logo img:hover { opacity: .8; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  transition: color .3s;
  cursor: none;
}
.nav-links a:hover { color: white; }

.nav-cta {
  color: white !important;
  border: 1px solid var(--border) !important;
  padding: 10px 22px;
  border-radius: 50px;
  transition: background .3s, border-color .3s !important;
}
.nav-cta:hover {
  background: rgba(255,107,0,.1) !important;
  border-color: var(--orange) !important;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0 8%;
  background: var(--bg);
}

/* Grid lines */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,0,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

/* Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
  transition: transform .8s cubic-bezier(.25,.46,.45,.94);
}

.orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,107,0,.22) 0%, transparent 70%);
  top: -120px; right: -120px;
  animation: orbFloat1 8s ease-in-out infinite;
}

.orb-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(124,58,237,.28) 0%, transparent 70%);
  bottom: -80px; left: -80px;
  animation: orbFloat2 11s ease-in-out infinite;
}

.orb-3 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(0,212,255,.14) 0%, transparent 70%);
  top: 42%; right: 26%;
  animation: orbFloat3 7s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%,100% { transform:translate(0,0) scale(1); }
  50%      { transform:translate(-30px,30px) scale(1.05); }
}
@keyframes orbFloat2 {
  0%,100% { transform:translate(0,0) scale(1); }
  50%      { transform:translate(20px,-40px) scale(1.08); }
}
@keyframes orbFloat3 {
  0%,100% { transform:translate(0,0) scale(1); }
  33%      { transform:translate(14px,-18px) scale(1.1); }
  66%      { transform:translate(-14px,10px) scale(.95); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-top: 80px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255,107,0,.1);
  border: 1px solid rgba(255,107,0,.2);
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
  animation: fadeUp .8s .2s both;
}

.hero-title {
  font-size: clamp(3rem,6vw,5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 24px;
}

.hero-title .line          { display:block; }
.hero-title .line:first-child { animation: fadeUp .8s .4s both; }
.hero-title .line:last-child  { animation: fadeUp .8s .55s both; }

/* Animated gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--orange) 0%, var(--pink) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

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

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 40px;
  animation: fadeUp .8s .7s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  animation: fadeUp .8s .85s both;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  position: relative;
  overflow: hidden;
  cursor: none;
  transition: transform .3s, box-shadow .3s;
  box-shadow: 0 0 30px rgba(255,107,0,.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  opacity: 0;
  transition: opacity .4s;
}

.btn-primary:hover { transform:translateY(-3px); box-shadow:0 8px 40px rgba(255,107,0,.5); }
.btn-primary:hover::before { opacity:1; }

.btn-primary span,
.btn-primary svg { position:relative; z-index:1; }

.btn-primary svg {
  width:18px; height:18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s;
}
.btn-primary:hover svg { transform:translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  border: 1px solid var(--border);
  cursor: none;
  transition: border-color .3s, background .3s, transform .3s;
}
.btn-ghost:hover { border-color:rgba(255,255,255,.3); background:var(--glass); transform:translateY(-3px); }

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px; left: 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 1s 1.2s both;
}

.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--orange));
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero-scroll span {
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

@keyframes scrollPulse {
  0%,100% { opacity:.3; }
  50%      { opacity:1; }
}

/* Hero badge */
.hero-badge {
  position: absolute;
  right: 10%; bottom: 20%;
  z-index: 2;
  width: 130px; height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 1s 1s both;
}

.badge-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(255,107,0,.4);
  animation: spinRing 14s linear infinite;
}

.hero-badge > span {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  color: var(--orange);
  animation: counterPulse 3s ease-in-out infinite;
}

.hero-badge small {
  display: block;
  font-size: .58rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

@keyframes spinRing    { to { transform:rotate(360deg); } }
@keyframes counterPulse {
  0%,100% { text-shadow:0 0 0 transparent; }
  50%      { text-shadow:0 0 20px rgba(255,107,0,.6); }
}

/* ── Reveal Animations ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity:1; transform:translateY(0); }

@keyframes fadeUp {
  from { opacity:0; transform:translateY(28px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── Section Label ────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255,107,0,.1);
  border: 1px solid rgba(255,107,0,.2);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

/* ── Layout helpers ───────────────────────────────────── */
.container { width:min(1100px,90%); margin:0 auto; }

/* ── About ────────────────────────────────────────────── */
.about { padding:130px 0; position:relative; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(2rem,3.5vw,3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -.02em;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: .95rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform .4s, border-color .4s;
}

.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,107,0,.06), transparent);
  opacity: 0;
  transition: opacity .4s;
}

.stat-card:hover { transform:translateY(-6px); border-color:rgba(255,107,0,.3); }
.stat-card:hover::after { opacity:1; }

.stat-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label { font-size:.8rem; color:var(--muted); font-weight:500; }

/* ── Services ─────────────────────────────────────────── */
.services {
  padding: 130px 0;
  background: var(--bg2);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top:0; left:0; right:0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--purple), transparent);
}

.section-title {
  font-size: clamp(2rem,3.5vw,3rem);
  font-weight: 800;
  margin-bottom: 60px;
  letter-spacing: -.02em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

.card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  cursor: none;
  transition: transform .45s cubic-bezier(.25,.46,.45,.94), border-color .4s, box-shadow .4s;
}

/* Top accent bar */
.card::before {
  content: '';
  position: absolute;
  top:0; left:0; right:0;
  height: 3px;
  background: var(--accent, var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}

.card:hover { transform:translateY(-12px); border-color:rgba(255,255,255,.14); box-shadow:0 24px 60px rgba(0,0,0,.35); }
.card:hover::before { transform:scaleX(1); }

.card-glow {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 0%, var(--accent, var(--orange)), transparent 55%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
  mix-blend-mode: screen;
}
.card:hover .card-glow { opacity: .12; }

.card-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform .4s, box-shadow .4s, background .4s;
}

.card:hover .card-icon {
  transform: scale(1.12) rotate(-5deg);
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 24px var(--accent, var(--orange));
}

.card-icon svg {
  width: 22px; height: 22px;
  stroke: var(--accent, var(--orange));
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 { font-size:1.08rem; font-weight:700; margin-bottom:12px; color:white; }
.card p  { color:var(--muted); font-size:.87rem; line-height:1.75; }

/* ── Contact ──────────────────────────────────────────── */
.contact {
  padding: 150px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact-orb {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(124,58,237,.14) 0%, transparent 70%);
  top:50%; left:50%;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.contact-inner h2 {
  font-size: clamp(2.2rem,4vw,3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}

.contact-inner p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 30px;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.contact-info span { color:var(--muted); font-size:.9rem; }

.btn-large { padding:20px 52px; font-size:1.02rem; box-shadow:0 0 60px rgba(255,107,0,.22); }

/* ── Footer ───────────────────────────────────────────── */
footer { border-top:1px solid var(--border); padding:44px 0; }

.footer-inner {
  width: min(1100px,90%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  height: 36px; width:auto;
  border-radius: 6px;
  opacity: .65;
  transition: opacity .3s;
}
.footer-logo:hover { opacity:1; }

footer p { color:var(--muted); font-size:.85rem; }

.footer-tagline {
  font-style: italic;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width:1024px) {
  .cards { grid-template-columns:repeat(2,1fr); }
}

@media (max-width:768px) {
  .hero-badge { display:none; }
  .hero-scroll { display:none; }

  .about-grid   { grid-template-columns:1fr; gap:48px; }
  .about-stats  { grid-template-columns:1fr 1fr; }
  .cards        { grid-template-columns:1fr; }

  .contact-info { flex-direction:column; gap:14px; }
  .footer-inner { flex-direction:column; text-align:center; }

  .nav-links li:not(:last-child) { display:none; }

  /* restore default cursor on touch/mobile */
  body        { cursor:auto; }
  .cursor,
  .cursor-follower { display:none; }
}

