*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #070710;
  --bg2: #0d0d1a;
  --cyan: #00f5d4;
  --blue: #4f46e5;
  --gold: #f59e0b;
  --white: #f0f0ff;
  --muted: #8888aa;
  --glass: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Cairo', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* Custom Cursor */
.cursor {
  width: 12px; height: 12px;
  background: var(--cyan);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transition: transform 0.15s ease;
  mix-blend-mode: screen;
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1px solid rgba(0,245,212,0.4);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  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)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1000; opacity: 0.4;
}

/* NAV */
nav {
  position: fixed; top: 0; width: 100%; z-index: 500;
  padding: 20px 60px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(7,7,16,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-size: 1.6rem; font-weight: 800; color: var(--white);
  letter-spacing: -0.5px;
  font-family: 'Syne', sans-serif;
  text-shadow: 0 0 25px rgba(0,245,212,0.3);
}
.nav-logo-text { color: #ffffff; -webkit-text-fill-color: #ffffff; }
.nav-logo-text span { color: var(--cyan); -webkit-text-fill-color: var(--cyan); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.95rem; font-weight: 600;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--cyan); color: var(--bg);
  border: none; padding: 10px 26px;
  border-radius: 100px; font-family: 'Cairo',sans-serif;
  font-weight: 700; font-size: 0.9rem; cursor: none;
  transition: all 0.3s; letter-spacing: 0.3px;
}
.nav-cta:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(0,245,212,0.4); }

/* The generic `nav` rule above also hits the footer's <nav class="footer-links">,
   which made the footer links render as a fixed bar pinned to the top, covering
   the real header nav and its logo. Keep the footer nav in normal flow. */
.footer-links {
  position: static; top: auto; width: auto; z-index: auto;
  background: none; backdrop-filter: none; border: none; padding: 0;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 120px 60px 80px;
  text-align: center;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79,70,229,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(0,245,212,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 80% 60%, rgba(245,158,11,0.08) 0%, transparent 60%);
}

/* Floating orbs */
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); animation: float 8s ease-in-out infinite;
}
.orb-1 { width:400px;height:400px; background:rgba(79,70,229,0.15); top:-100px;right:-100px; animation-delay:0s; }
.orb-2 { width:300px;height:300px; background:rgba(0,245,212,0.1); bottom:0;left:-50px; animation-delay:-3s; }
.orb-3 { width:200px;height:200px; background:rgba(245,158,11,0.08); top:40%;left:10%; animation-delay:-5s; }

@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content { position: relative; z-index: 2; max-width: 900px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,245,212,0.1);
  border: 1px solid rgba(0,245,212,0.25);
  padding: 6px 18px; border-radius: 100px;
  font-size: 0.85rem; color: var(--cyan); font-weight: 600;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
}
.badge-dot { width:7px;height:7px;background:var(--cyan);border-radius:50%;animation:pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.3)} }

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -1px;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero h1 .line-1 { display: block; color: var(--white); }
.hero h1 .line-2 {
  display: block;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  margin-top: 24px; font-size: 1.2rem;
  color: var(--muted); line-height: 1.7; max-width: 620px; margin-inline: auto;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-actions {
  margin-top: 44px; display: flex; gap: 16px;
  justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #00c4aa);
  color: var(--bg); border: none;
  padding: 16px 38px; border-radius: 100px;
  font-family: 'Cairo',sans-serif; font-weight: 800;
  font-size: 1.05rem; cursor: none;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.btn-primary::after {
  content:''; position:absolute; inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,0.2),transparent);
  opacity:0; transition:opacity 0.3s;
}
.btn-primary:hover { transform:translateY(-3px); box-shadow:0 20px 50px rgba(0,245,212,0.35); }
.btn-primary:hover::after { opacity:1; }

.btn-ghost {
  background: var(--glass); color: var(--white);
  border: 1px solid var(--border);
  padding: 16px 38px; border-radius: 100px;
  font-family: 'Cairo',sans-serif; font-weight: 700;
  font-size: 1.05rem; cursor: none;
  transition: all 0.3s; backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); background:rgba(255,255,255,0.08); transform:translateY(-2px); }

/* Stats bar */
.stats-bar {
  margin-top: 80px; position: relative; z-index: 2;
  display: flex; justify-content: center; gap: 0;
  border: 1px solid var(--border);
  background: var(--glass); backdrop-filter: blur(20px);
  border-radius: 20px; overflow: hidden; max-width: 700px;
  margin-inline: auto;
  animation: fadeUp 0.8s 0.4s ease both;
}
.stat {
  flex: 1; padding: 28px 20px; text-align: center;
  border-left: 1px solid var(--border);
}
.stat:last-child { border-left: none; }
.stat-num {
  font-size: 2.2rem; font-weight: 900; color: var(--white);
  font-family: 'Syne', sans-serif;
}
.stat-num span { color: var(--cyan); }
.stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

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

/* SECTION COMMON */
section { padding: 110px 60px; position: relative; }
.section-tag {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 3px;
  color: var(--cyan); text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900; line-height: 1.15;
  letter-spacing: -0.5px;
}
.section-title em { font-style: normal; color: var(--cyan); }
.section-sub {
  color: var(--muted); font-size: 1.05rem;
  line-height: 1.7; margin-top: 14px; max-width: 560px;
}

/* SERVICES */
.services { background: var(--bg2); }
.services-header { text-align: center; margin-bottom: 70px; }
.services-header .section-sub { margin-inline: auto; }

.services-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; max-width: 1100px; margin: 0 auto;
}

.service-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 24px; padding: 50px 44px;
  position: relative; overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  cursor: none;
}
.service-card::before {
  content:''; position:absolute;
  inset:0; opacity:0;
  transition:opacity 0.4s;
  border-radius: 24px;
}
.service-card.portfolio::before {
  background: radial-gradient(ellipse at top right, rgba(79,70,229,0.2), transparent 70%);
}
.service-card.ecommerce::before {
  background: radial-gradient(ellipse at top right, rgba(0,245,212,0.15), transparent 70%);
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,0.15); }
.service-card:hover::before { opacity:1; }

.service-icon {
  width: 70px; height: 70px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin-bottom: 28px;
  position: relative; z-index: 1;
}
.service-card.portfolio .service-icon { background: rgba(79,70,229,0.2); }
.service-card.ecommerce .service-icon { background: rgba(0,245,212,0.15); }

.service-name {
  font-size: 1.7rem; font-weight: 900; margin-bottom: 14px;
  position: relative; z-index: 1;
}
.service-desc {
  color: var(--muted); font-size: 1rem; line-height: 1.75;
  margin-bottom: 32px; position: relative; z-index: 1;
}

.service-features { list-style: none; position: relative; z-index: 1; }
.service-features li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 0.95rem; color: var(--white);
}
.service-features li:last-child { border-bottom: none; }
.feature-check { color: var(--cyan); font-size: 1.1rem; flex-shrink: 0; }

.service-price {
  margin-top: 36px; position: relative; z-index: 1;
  display: flex; align-items: flex-end; gap: 8px;
}
.price-from { color: var(--muted); font-size: 0.9rem; margin-bottom: 6px; }
.price-amount {
  font-size: 3rem; font-weight: 900;
  font-family: 'Syne', sans-serif;
  color: var(--white); line-height: 1;
}
.price-currency { color: var(--cyan); font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }

/* Dual-tier pricing block with "free now" badge */
.service-price {
  flex-direction: column; align-items: stretch; gap: 14px;
  padding: 18px; border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.free-badge {
  text-align: center; font-weight: 800; font-size: 0.95rem;
  padding: 10px 14px; border-radius: 100px;
  background: linear-gradient(90deg, #00f5d4, #00d68f);
  color: #0b1020; letter-spacing: 0.3px;
  box-shadow: 0 8px 24px rgba(0,245,212,0.25);
  animation: free-pulse 2.4s ease-in-out infinite;
}
.service-card.portfolio .free-badge {
  background: linear-gradient(90deg, #a78bfa, #6366f1);
  color: #fff; box-shadow: 0 8px 24px rgba(99,102,241,0.35);
}
@keyframes free-pulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.025); }
}
.pricing-after {
  color: var(--muted); font-size: 0.78rem; text-align: center;
  letter-spacing: 0.5px; opacity: 0.85;
}
.price-options {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
}
.price-option {
  text-align: center; padding: 10px 8px; border-radius: 12px;
  background: rgba(255,255,255,0.03);
  display: flex; flex-direction: column; gap: 4px;
}
.price-tier { color: var(--muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; }
.price-value {
  color: var(--white); font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1.6rem; line-height: 1; white-space: nowrap;
}
.price-value .price-cur { color: var(--cyan); font-size: 0.9rem; margin-inline-end: 2px; vertical-align: top; }
.service-card.portfolio .price-value .price-cur { color: #a78bfa; }
.price-value small { color: var(--muted); font-size: 0.65rem; font-weight: 600; margin-inline-start: 2px; }
.price-divider {
  color: var(--muted); font-size: 0.78rem; font-weight: 700;
  padding: 0 4px; opacity: 0.7;
}
@media (max-width: 480px) {
  .price-options { grid-template-columns: 1fr; }
  .price-divider { padding: 4px 0; }
  .price-value { font-size: 1.4rem; }
}

.service-cta {
  margin-top: 28px; width: 100%; padding: 14px;
  border-radius: 14px; border: none;
  font-family: 'Cairo',sans-serif; font-weight: 800;
  font-size: 1rem; cursor: none;
  transition: all 0.3s; position: relative; z-index: 1;
}
.service-card.portfolio .service-cta {
  background: rgba(79,70,229,0.2); color: #a5b4fc;
  border: 1px solid rgba(79,70,229,0.4);
}
.service-card.portfolio .service-cta:hover {
  background: var(--blue); color: #fff;
  box-shadow: 0 10px 30px rgba(79,70,229,0.4);
}
.service-card.ecommerce .service-cta {
  background: rgba(0,245,212,0.1); color: var(--cyan);
  border: 1px solid rgba(0,245,212,0.3);
}
.service-card.ecommerce .service-cta:hover {
  background: var(--cyan); color: var(--bg);
  box-shadow: 0 10px 30px rgba(0,245,212,0.4);
}

/* Live-demo link on service cards */
.service-demo {
  display: block; margin-top: 14px; text-align: center;
  font-size: 0.92rem; font-weight: 700;
  color: var(--cyan); text-decoration: none;
  transition: opacity .3s; position: relative; z-index: 1;
}
.service-demo:hover { opacity: .7; }

/* WHY US */
.why {
  background: var(--bg);
  position: relative; overflow: hidden;
}
.why::before {
  content:''; position:absolute;
  top:-200px; right:-200px;
  width:600px; height:600px;
  background:radial-gradient(circle, rgba(79,70,229,0.12), transparent 70%);
}

.why-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.why-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 18px; padding: 28px 24px;
  transition: all 0.3s;
}
.why-card:hover { border-color:rgba(0,245,212,0.3); transform:translateY(-4px); }
.why-card-icon { font-size: 1.8rem; margin-bottom: 14px; }
.why-card-title { font-weight: 800; font-size: 1rem; margin-bottom: 8px; }
.why-card-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

/* PROCESS */
.process { background: var(--bg2); }
.process-inner { max-width: 900px; margin: 0 auto; }
.process-header { text-align:center; margin-bottom: 70px; }
.process-header .section-sub { margin-inline: auto; }

.process-steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex; align-items: flex-start; gap: 32px;
  padding: 36px 0; border-bottom: 1px solid var(--border);
  position: relative;
  opacity: 0; transform: translateX(30px);
  transition: all 0.6s ease;
}
.step.visible { opacity:1; transform:translateX(0); }
.step:last-child { border-bottom: none; }

.step-num {
  width: 56px; height: 56px; flex-shrink: 0;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-family: 'Syne',sans-serif; font-weight: 800;
  font-size: 1.3rem; color: var(--muted);
  transition: all 0.3s;
}
.step:hover .step-num { background: rgba(0,245,212,0.1); border-color: var(--cyan); color: var(--cyan); }
.step-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.step-desc { color: var(--muted); line-height: 1.7; }

/* TESTIMONIALS */
.testimonials { background: var(--bg); overflow:hidden; }
.testimonials-header { text-align:center; margin-bottom: 60px; }
.testimonials-header .section-sub { margin-inline:auto; }

.testi-track {
  display: flex; gap: 24px;
  animation: scroll-left 30s linear infinite;
  width: max-content;
}
.testi-wrapper { overflow: hidden; }
@keyframes scroll-left {
  from { transform:translateX(0); }
  to { transform:translateX(-50%); }
}

.testi-card {
  width: 340px; flex-shrink: 0;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px;
}
.testi-stars { color: var(--gold); font-size: 1rem; margin-bottom: 16px; letter-spacing: 3px; }
.testi-text { color: var(--white); line-height: 1.7; font-size: 0.95rem; margin-bottom: 24px; }
.testi-author { display:flex; align-items:center; gap:14px; }
.testi-avatar {
  width:44px;height:44px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:1.3rem; flex-shrink:0;
}
.testi-name { font-weight: 700; font-size: 0.95rem; }
.testi-role { color:var(--muted); font-size:0.82rem; margin-top:2px; }

/* CTA SECTION */
.cta-section {
  background: var(--bg2); text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(0,245,212,0.1), transparent 70%);
}
.cta-inner { position:relative; z-index:2; max-width:700px; margin:0 auto; }
.cta-title { font-size:clamp(2rem,5vw,4rem); font-weight:900; line-height:1.1; }
.cta-title span { color:var(--cyan); }
.cta-sub { color:var(--muted); font-size:1.1rem; margin:20px 0 44px; line-height:1.7; }
.cta-actions { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

/* FOOTER */
footer {
  padding: 50px 60px;
  border-top: 1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
  color:var(--muted); font-size:0.88rem;
  background: var(--bg);
}
.footer-logo {
  font-weight:800; font-size:1.5rem;
  font-family:'Syne',sans-serif;
  background: linear-gradient(135deg, #ffffff 0%, var(--cyan) 50%, var(--blue) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0,245,212,0.4));
  letter-spacing: -0.5px;
}
.footer-logo span { color:var(--cyan); }

/* REVEAL */
.reveal {
  opacity:0; transform:translateY(40px);
  transition: all 0.7s cubic-bezier(0.16,1,0.3,1);
  /* Fail-safe: if the JS scroll-reveal is slow/never runs (e.g. cold start),
     reveal the content via CSS after a short delay so it never stays hidden. */
  animation: revealFailsafe 0.7s cubic-bezier(0.16,1,0.3,1) 1.2s forwards;
}
.reveal.visible { opacity:1; transform:translateY(0); animation:none; }
@keyframes revealFailsafe { to { opacity:1; transform:translateY(0); } }

@media (max-width: 900px) {
  nav { padding: 14px 18px; }
  .nav-links { display:none; }
  .nav-logo { font-size: 1.15rem; gap: 6px !important; }
  .nav-logo img { width: 36px !important; height: 36px !important; }
  .nav-cta { padding: 8px 16px; font-size: 0.8rem; white-space: nowrap; }
  section { padding: 80px 24px; }
  .hero { padding: 120px 24px 60px; }
  .services-grid { grid-template-columns:1fr; }
  .why-inner { grid-template-columns:1fr; gap:50px; }
  .stats-bar { flex-direction:column; }
  .stat { border-left:none; border-top:1px solid var(--border); }
  footer { flex-direction:column; gap:12px; text-align:center; }
  .testi-card { width: 280px; }
}

/* Keep the horizontal testimonials strip usable when the auto-scroll
   animation is paused (reduced-motion / iOS Low Power Mode): let the user
   swipe through the reviews by hand instead of being stuck on the first. */
@media (prefers-reduced-motion: reduce) {
  .testi-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
  .testi-track { animation: none; }
  .testi-card { scroll-snap-align: center; }
}
