/* ─── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #07070f;
  color: #e2e8f0;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ─── Typography ───────────────────────────────────────── */
h1,h2,h3,h4 { font-weight: 700; line-height: 1.15; }
a { text-decoration: none; color: inherit; }

/* ─── CSS Variables ────────────────────────────────────── */
:root {
  --primary: #7c3aed;
  --primary-light: #a855f7;
  --muted: #94a3b8;
  --border: rgba(255,255,255,0.07);
  --glass-bg: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --radius: 1rem;
}

/* ─── Utilities ────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 3rem; }
@media (max-width: 768px) { .container { padding: 0 1.25rem; } }

.text-gradient {
  background: linear-gradient(135deg, #a78bfa 0%, #c084fc 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
}

.pill {
  display: inline-block;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.7);
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  color: #a78bfa;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 2rem;
  height: 3.25rem;
  border-radius: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 40px rgba(124,58,237,0.3);
}
.btn-primary:hover { background: #6d28d9; box-shadow: 0 0 60px rgba(124,58,237,0.5); }
.btn-outline {
  background: rgba(255,255,255,0.05);
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-white {
  background: #fff;
  color: #0f0f1a;
  font-weight: 700;
}
.btn-white:hover { background: rgba(255,255,255,0.9); }

/* ─── Starfield ─────────────────────────────────────────── */
#starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ─── Navbar ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.5rem 0;
  transition: background 0.3s, padding 0.3s, border-color 0.3s;
}
nav.scrolled {
  background: rgba(7,7,15,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}
.nav-logo img {
  height: 2.5rem;
  width: auto;
  mix-blend-mode: screen;
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-text strong { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.05em; color: #fff; }
.nav-logo-text span { font-size: 0.625rem; color: rgba(255,255,255,0.4); letter-spacing: 0.12em; font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: #e2e8f0; }
.nav-mobile-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; }
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(7,7,15,0.97); padding: 1rem 1.25rem 1.5rem; gap: 1.25rem; border-bottom: 1px solid var(--border); }
}

/* ─── Hero ──────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}
.hero-glow-1 {
  position: absolute; top: 20%; left: 10%;
  width: 40rem; height: 40rem;
  background: rgba(124,58,237,0.18);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none; z-index: 0;
}
.hero-glow-2 {
  position: absolute; bottom: 10%; right: 5%;
  width: 35rem; height: 35rem;
  background: rgba(79,70,229,0.15);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none; z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 56rem; margin: 0 auto; text-align: center; }
.hero-inner h1 { font-size: clamp(2.5rem, 7vw, 5.5rem); letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.hero-inner p { font-size: 1.125rem; color: var(--muted); max-width: 36rem; margin: 0 auto 2.5rem; line-height: 1.75; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* fade-in animation */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ─── Stats Bar ─────────────────────────────────────────── */
#stats {
  position: relative; z-index: 2;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(20px);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  divide-color: var(--border);
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }
.stat-value { font-size: 2.25rem; font-weight: 800; margin-bottom: 0.35rem; }
.stat-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }

/* ─── Sections shared ───────────────────────────────────── */
section { position: relative; z-index: 1; }
.section-py { padding: 7rem 0; }
.section-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--primary-light); display: block; margin-bottom: 0.75rem; }
.section-title { font-size: clamp(1.75rem, 4vw, 3rem); margin-bottom: 1.25rem; }
.section-subtitle { font-size: 1.05rem; color: var(--muted); max-width: 38rem; line-height: 1.7; }

/* ─── Services ──────────────────────────────────────────── */
.services-header { margin-bottom: 4rem; }
.services-header h2 { font-size: clamp(1.75rem, 4vw, 3rem); margin-bottom: 1rem; }
.services-header p { color: var(--muted); font-size: 1.05rem; max-width: 38rem; line-height: 1.7; }
.services-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  padding: 2.5rem;
  border-radius: var(--radius);
  transition: background 0.3s;
}
.service-card:hover { background: rgba(255,255,255,0.07); }
.service-icon {
  display: inline-flex;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  line-height: 1;
  transition: transform 0.3s;
}
.service-card:hover .service-icon { transform: scale(1.1); }
.service-card h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.service-card p { color: var(--muted); line-height: 1.75; margin-bottom: 1.5rem; font-size: 0.95rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ─── Portfolio ─────────────────────────────────────────── */
#work { background: rgba(0,0,0,0.2); }
.work-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 4rem; flex-wrap: wrap; gap: 1.5rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
@media (max-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .portfolio-grid { grid-template-columns: 1fr; } }
.portfolio-card { cursor: pointer; }
.portfolio-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.4);
  margin-bottom: 0.75rem;
}
.portfolio-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.portfolio-card:hover .portfolio-img-wrap img { transform: scale(1.05); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}
.portfolio-overlay-ring {
  position: absolute; inset: 0;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: border-color 0.3s;
}
.portfolio-card:hover .portfolio-overlay-ring { border-color: rgba(124,58,237,0.45); }
.portfolio-title {
  position: absolute; bottom: 0.85rem; left: 0.85rem;
  font-size: 1rem; font-weight: 700; color: #fff;
}
.portfolio-cat {
  position: absolute; top: 0.6rem; right: 0.6rem;
  font-size: 0.7rem; font-weight: 600;
  padding: 0.25rem 0.65rem; border-radius: 999px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
}
.portfolio-metric { font-size: 0.85rem; color: var(--muted); display: flex; align-items: center; gap: 0.4rem; }
.portfolio-metric span { color: #facc15; }

/* ─── Process ───────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 2rem;
  position: relative;
  max-width: 64rem; margin: 0 auto;
}
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr; max-width: 24rem; } }
.process-line {
  position: absolute; top: 2rem; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
}
@media (max-width: 900px) { .process-line { display: none; } }
.process-step { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 1; }
.process-num {
  width: 4rem; height: 4rem; border-radius: 50%;
  background: #07070f;
  border: 2px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; color: var(--muted);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.process-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

/* ─── Testimonials ──────────────────────────────────────── */
#testimonials { background: rgba(0,0,0,0.2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.testimonials-head { text-align: center; margin-bottom: 3.5rem; }
.reviews-row {
  display: flex; gap: 1.5rem;
  overflow-x: auto;
  padding: 0 3rem 1rem;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
@media (max-width: 768px) { .reviews-row { padding: 0 1.25rem 1rem; } }
.reviews-row::-webkit-scrollbar { display: none; }
.review-card {
  flex-shrink: 0;
  width: 340px;
  min-height: 260px;
  padding: 1.75rem;
  display: flex; flex-direction: column; justify-content: space-between;
}
.stars { display: flex; gap: 0.15rem; margin-bottom: 1rem; color: #facc15; font-size: 0.9rem; }
.review-quote { font-size: 0.9rem; line-height: 1.75; color: var(--muted); margin-bottom: 1.25rem; flex: 1; }
.review-author { display: flex; align-items: center; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.05); }
.review-avatar {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.6), rgba(109,40,217,0.6));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: #fff;
}
.review-name { font-weight: 600; font-size: 0.875rem; }
.review-role { font-size: 0.75rem; color: var(--muted); }

/* ─── Contact ───────────────────────────────────────────── */
#contact { background: linear-gradient(180deg, transparent 0%, rgba(124,58,237,0.04) 50%, transparent 100%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.contact-left h2 { font-size: clamp(1.75rem, 4vw, 3rem); margin-bottom: 1.25rem; line-height: 1.15; }
.contact-left p { color: var(--muted); font-size: 1.05rem; line-height: 1.75; margin-bottom: 2.5rem; max-width: 28rem; }
.contact-perks { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2.5rem; }
.contact-perks li { display: flex; align-items: center; gap: 1rem; }
.perk-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.perk-text { color: var(--muted); font-size: 0.95rem; }
.contact-email { display: flex; align-items: center; gap: 0.75rem; color: var(--muted); font-size: 0.875rem; }
.contact-email-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.calendly-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 60px rgba(124,58,237,0.12);
}

/* ─── Footer ────────────────────────────────────────────── */
footer {
  background: rgba(0,0,0,0.6);
  border-top: 1px solid var(--border);
  padding: 5rem 0 2.5rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.footer-brand img { height: 3rem; width: auto; mix-blend-mode: screen; }
.footer-brand-text strong { font-size: 1rem; color: #fff; display: block; }
.footer-brand-text span { font-size: 0.625rem; color: rgba(255,255,255,0.35); letter-spacing: 0.12em; font-style: italic; }
.footer-desc { color: var(--muted); font-size: 0.9rem; max-width: 22rem; line-height: 1.7; }
.footer-col h4 { font-weight: 700; font-size: 0.9rem; margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.footer-col ul a { font-size: 0.875rem; color: var(--muted); transition: color 0.2s; }
.footer-col ul a:hover { color: #e2e8f0; }
.footer-address { display: flex; align-items: flex-start; gap: 0.6rem; color: var(--muted); font-size: 0.875rem; margin-bottom: 2.5rem; }
.footer-address span { font-size: 0.9rem; color: var(--primary-light); flex-shrink: 0; margin-top: 2px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.8rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8rem; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: #e2e8f0; }
