:root {
  --bg-primary: #0A0A14;
  --bg-secondary: #0F0F1E;
  --bg-card: rgba(18, 14, 30, 0.72);
  --text-primary: #ffffff;
  --text-secondary: #a0a0c0;
  --accent-secondary: #E040FB;
  --accent-primary: #00E5FF;
  --accent-light: #76FFEA;
  --accent-terminal: #00FF41;
  --gradient-primary: linear-gradient(135deg, #E040FB, #00E5FF);
  --border-subtle: rgba(160, 120, 255, 0.12);
  --glow-blue: 0 0 24px rgba(0, 229, 255, 0.28);
  --glow-magenta: 0 0 24px rgba(224, 64, 251, 0.28);
  --tech-color-shopify: #96BF48;
  --tech-color-react: #61DAFB;
  --tech-color-nodejs: #339933;
  --tech-color-typescript: #3178C6;
  --tech-color-python: #3776AB;
  --tech-color-postgresql: #4169E1;
  --tech-color-redis: #DC382D;
  --tech-color-docker: #2496ED;
  --tech-color-aws: #FF9900;
  --tech-color-tailwind: #06B6D4;
  --tech-color-graphql: #E10098;
  --tech-color-rest: #00E5FF; /* matches accent */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(circle at 8% 0%, rgba(224,64,251,.16), transparent 32%), var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; position: relative; }
a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gradient-primary);
  transition: transform .25s ease;
}
a:hover::after { transform: scaleX(1); }

.container { width: min(1160px, 92%); margin-inline: auto; }
.section { padding: 7rem 0; position: relative; }
h1,h2,h3,h4 { line-height: 1.15; margin: 0 0 1rem; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 700; }
h3 { font-weight: 600; }
p { color: var(--text-secondary); margin: 0; font-weight: 400; }
.section-label { font-weight: 500; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-primary); }
.eyebrow { font-weight: 500; letter-spacing: 2px; color: var(--accent-primary); }
.section-label, .eyebrow { font-size: .76rem; margin-bottom: .85rem; display: inline-block; }
.section-subtitle { margin: .5rem 0 2rem; max-width: 620px; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  transition: .3s ease;
  background: transparent;
}
.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #E040FB, #00E5FF);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
  z-index: 1002;
}
.site-header.scrolled {
  background: rgba(10,10,15,.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; padding: .95rem 0; gap: 1rem; }
.site-logo img, .custom-logo-link img { height: 42px; width: auto; }
.nav-menu { display: flex; list-style: none; gap: 1.6rem; margin: 0; padding: 0; }
.nav-menu a { font-weight: 500; opacity: .88; padding: .65rem .25rem; min-height: 44px; display: inline-flex; align-items: center; }
.nav-menu a.active { color: var(--accent-primary); }
.nav-menu a.active::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: var(--glow-blue);
}
.lang-toggle {
  border: 1px solid var(--border-subtle); background: rgba(255,255,255,0.02); color: var(--text-primary);
  border-radius: 999px; padding: .6rem .9rem; min-height: 44px; display: inline-flex; gap: .35rem; cursor: pointer;
}
.mobile-menu-toggle { display: none; background: none; border: 0; padding: .6rem; min-height: 44px; min-width: 44px; }
.lang-toggle .lang-part { opacity: .7; font-weight: 500; transition: .2s ease; }
.lang-toggle .lang-part.active { opacity: 1; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.mobile-menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }
.mobile-menu { border-top: 1px solid var(--border-subtle); background: var(--bg-secondary); }
.mobile-nav-menu { list-style: none; margin: 0; padding: 1rem 4%; }
.mobile-nav-menu li { margin: .45rem 0; }
.mobile-nav-menu a { padding: .7rem 0; display: inline-flex; min-height: 44px; align-items: center; }

.hero-section { min-height: 100vh; display: grid; place-items: center; overflow: hidden; position: relative; }
#hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(8,10,18,.9) 4%, rgba(8,10,18,.22) 48%, rgba(8,10,18,0) 85%),
    radial-gradient(circle at 62% 18%, rgba(0,229,255,.17), transparent 42%);
}
.hero-content { position: relative; text-align: center; z-index: 2; will-change: transform; }
.hero-subtitle { font-size: clamp(1.02rem, 2vw, 1.28rem); max-width: 760px; margin: 1.1rem auto 2.1rem; min-height: 1.8em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px; padding: 1rem 1.45rem; font-weight: 600; border: 0; cursor: pointer; min-height: 46px;
}
.btn-primary, .btn-glow { color: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.btn-hero {
  position: relative;
  padding: 1.1rem 2rem;
  font-size: 1rem;
  background: linear-gradient(160deg, rgba(15,20,32,.9), rgba(16,19,28,.9));
  border: 1px solid rgba(0,229,255,.35);
  box-shadow: 0 10px 35px rgba(0,0,0,.35), var(--glow-blue);
}
.btn-hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, #E040FB, #00E5FF, #76FFEA);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderShift 3s linear infinite;
}
.btn-hero:hover, .btn-glow:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 0 34px rgba(0,229,255,.5); }

.floating-code-snippets { display: none; }
.hero-code-block {
  margin: 1.1rem auto 1.6rem;
  max-width: 640px;
  text-align: left;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: #0D1117;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(0,0,0,.35);
}
.code-header { display: flex; align-items: center; gap: .4rem; padding: .65rem .85rem; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.08); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.code-filename { margin-left: .45rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; color: #9eb8ff; }
.hero-code-block pre { margin: 0; padding: .9rem 1rem 1rem; }
.hero-code-block code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92rem; color: #d6deff; line-height: 1.7; }
.code-line { display: block; opacity: 0; transform: translateY(4px); }
.code-line.visible { opacity: 1; transform: translateY(0); transition: .25s ease; }
.terminal-green { color: var(--accent-terminal); }
.terminal-cursor { color: var(--accent-terminal); animation: terminalBlink .9s step-end infinite; }
.hero-title.scramble-complete { animation: titlePulse .45s ease; }
.hero-title .scramble-active { color: var(--accent-primary); text-shadow: 0 0 12px rgba(0,229,255,.45); }

.scroll-indicator {
  position: absolute;
  bottom: 1.3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  display: grid;
  place-items: center;
  z-index: 3;
}
.scroll-indicator span {
  width: 5px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-primary);
  animation: scrollBounce 1.4s infinite;
}

.services-grid, .tech-grid, .case-grid { display: grid; gap: 1.1rem; }
.services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2rem; }
.service-card {
  padding: 1.8rem;
  background: linear-gradient(160deg, rgba(22,22,34,.8), rgba(16,16,24,.7));
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: .3s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(130deg, transparent 30%, rgba(224,64,251,.65), rgba(0,229,255,.8));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: .3s ease;
}
.service-card:hover { transform: translateY(-7px); box-shadow: var(--glow-blue); }
.service-card:hover::before { opacity: 1; }
.service-icon { font-size: 2rem; display: inline-block; margin-bottom: .75rem; text-shadow: 0 0 16px rgba(0,229,255,.45); transition: transform .25s ease; }
.service-card:hover .service-icon { animation: iconBounce .9s ease; }
.service-card h3 { margin-bottom: .65rem; }

.parallax-banner {
  min-height: 60vh;
  width: 100%;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.parallax-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--parallax-bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  animation: kenBurns 20s ease-in-out infinite alternate;
  transform-origin: center;
  z-index: -2;
}
.parallax-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10,10,15,.4);
  z-index: -1;
}
.parallax-inner { text-align: center; }
.parallax-inner h2 { font-size: clamp(2rem, 5vw, 4rem); max-width: 900px; margin: 0 auto; }

.counters-section {
  background: #0d1018;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 3.8rem 0;
}
.counters-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.1rem; }
.counter-item { text-align: center; }
.counter-value {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: .6rem;
  background: linear-gradient(135deg, #E040FB, #00E5FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tech-section { isolation: isolate; }
.tech-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--tech-bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
}
.tech-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10,10,15,.85);
  z-index: -1;
}
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem 1.1rem;
  background: rgba(17,17,28,.72);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  cursor: default;
  transition: transform .25s ease, border-color .3s ease, box-shadow .3s ease;
  text-decoration: none;
}
.tech-pill::after { display: none; }
.tech-pill:hover {
  transform: translateY(-3px);
  border-color: var(--tc);
  box-shadow: 0 0 16px color-mix(in srgb, var(--tc) 40%, transparent);
}
.tech-pill-icon svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform .25s ease;
}
.tech-pill:hover .tech-pill-icon svg { transform: scale(1.15); }
.tech-pill .tech-name {
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.process-section::before {
  content: "";
  position: absolute;
  left: 8%; right: 8%; top: calc(50% + 14px);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,.6), transparent);
}
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; margin-top: 2rem; }
.process-step {
  position: relative;
  z-index: 2;
  background: rgba(20,20,32,.85);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.25rem;
  opacity: .35;
  transform: translateY(16px);
  transition: transform .5s ease, opacity .5s ease;
}
.process-step.in-view { opacity: 1; transform: translateY(0); }
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--gradient-primary);
  font-weight: 700;
  margin-bottom: .9rem;
  animation: badgePulse 2.2s ease-in-out infinite;
}

.case-grid { grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 2rem; }
.case-card {
  position: relative; min-height: 250px; padding: 1.4rem;
  border-radius: 18px; border: 1px solid var(--border-subtle);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .25s ease;
  isolation: isolate;
}
.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--case-bg);
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform .45s ease;
  z-index: -2;
}
.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,9,16,.88), rgba(7,9,16,.2));
  z-index: -1;
  transition: background .35s ease;
}
.case-card:hover::before { background: linear-gradient(to top, rgba(7,9,16,.7), rgba(7,9,16,.12)); }
.case-card:hover::after { transform: scale(1.05); }
.case-card > * { position: relative; z-index: 1; }
.badge {
  display: inline-block; font-size: .68rem; text-transform: uppercase; padding: .32rem .68rem; border-radius: 100px;
  background: rgba(0,229,255,.2); color: var(--accent-primary); margin-bottom: .8rem; letter-spacing: .08em;
  animation: softPulse 2.2s ease-in-out infinite;
}

.contact-section { isolation: isolate; }
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--contact-bg);
  background-size: cover;
  background-position: center;
  z-index: -3;
}
.contact-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(rgba(0,229,255,.17) 1px, transparent 1px),
    rgba(10,10,15,.9);
  background-size: 18px 18px, auto;
  z-index: -2;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: stretch; }
.contact-copy { display: flex; flex-direction: column; justify-content: center; }
.contact-copy h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.contact-form-wrap {
  background: rgba(15,16,24,.86);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 1.4rem;
  backdrop-filter: blur(8px);
}
.field-group { position: relative; margin-bottom: 1rem; }
.field-group input, .field-group textarea, .field-group select {
  width: 100%; background: #10101a; border: 1px solid rgba(255,255,255,.12); color: #fff;
  padding: 1rem .9rem; border-radius: 12px; outline: none; transition: .2s ease;
}
.field-group input:focus, .field-group textarea:focus, .field-group select:focus {
  border-color: rgba(0,229,255,.65); box-shadow: var(--glow-blue);
}
.field-group label {
  position: absolute; left: .75rem; top: .92rem; color: #8d8dad; pointer-events: none;
  transition: .2s ease; background: #10101a; padding: 0 .3rem;
}
.field-group input:focus + label,
.field-group input:not(:placeholder-shown) + label,
.field-group textarea:focus + label,
.field-group textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.35rem) scale(.88); color: var(--accent-primary);
}
.btn-submit { width: 100%; background: var(--gradient-primary); font-size: 1rem; }
.form-status { min-height: 1.4rem; font-size: .92rem; margin-top: .65rem; }

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 1.4rem;
  background: var(--bg-secondary);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,.9), transparent);
}
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 1.5rem; }
.footer-logo { height: 34px; width: auto; margin-bottom: .8rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .45rem; }
.social-links { display: flex; flex-direction: column; gap: .55rem; }
.social-links a { color: var(--text-secondary); transition: color .25s ease; }
.social-links a:hover { color: var(--accent-primary); }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.1rem; border-top: 1px solid var(--border-subtle); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(0,229,255,.45);
  background: rgba(11,15,24,.85);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .3s ease;
  z-index: 1001;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.content-card, .not-found { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 2rem; }

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .process-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .process-section::before { display: none; }
  .case-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .nav-menu { display: none; }
  .mobile-menu-toggle { display: block; }
  .contact-grid, .footer-grid, .counters-grid { grid-template-columns: 1fr; }
  .parallax-banner::before,
  .tech-section::before { background-attachment: scroll; }
}
@media (max-width: 768px) {
  .section { padding: 5.5rem 0; }
  .tech-pills { gap: .5rem; }
}
@media (max-width: 480px) {
  .services-grid, .process-grid { grid-template-columns: 1fr; }
  .btn-hero { width: 100%; max-width: 290px; }
  .hero-subtitle { padding-inline: .4rem; }
}


@media (min-width: 1024px) {
  .floating-code-snippets { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
  .floating-snippet {
    position: absolute;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: rgba(178,203,255,.55);
    background: rgba(13,17,23,.46);
    border: 1px solid rgba(0,229,255,.24);
    border-radius: 10px;
    padding: .45rem .7rem;
    animation: floatCode 18s ease-in-out infinite alternate;
  }
  .snippet-one { top: 18%; left: 7%; transform: rotate(-7deg); }
  .snippet-two { top: 58%; right: 9%; transform: rotate(6deg); animation-duration: 22s; }
  .snippet-three { top: 30%; right: 18%; transform: rotate(-4deg); animation-duration: 20s; }
}
