/* =====================================================
     CHANGE BRAND COLOR HERE:
   --brand controls buttons, glow, links and particles.
   Example colors: #00d9ff, #7c3aed, #22c55e, #ff7a18
   ===================================================== */

:root {
  --brand: #22c55e;
  --brand-2: #7c3aed;
  --bg: #05070a;
  --surface: rgba(12, 18, 24, 0.78);
  --surface-2: rgba(16, 24, 32, 0.92);
  --text: #f4f7fb;
  --muted: #9aa7b7;
  --line: rgba(255, 255, 255, 0.09);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 24px;
  --font: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --display: "Manrope", sans-serif;
}

html[data-theme="light"] {
  --bg: #f6fbff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-2: rgba(255, 255, 255, 0.95);
  --text: #07111f;
  --muted: #526174;
  --line: rgba(7, 17, 31, 0.12);
  --shadow: 0 24px 80px rgba(15, 30, 50, 0.14);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(
      circle at 70% 10%,
      color-mix(in srgb, var(--brand) 17%, transparent),
      transparent 24rem
    ),
    var(--bg);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.35;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.section-pad {
  padding: 110px 0;
  position: relative;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 clamp(20px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(18px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.82rem;
}
.brand-mark {
  color: var(--brand);
  font-weight: 800;
}
.brand-line {
  width: 1px;
  height: 24px;
  background: var(--line);
}
.brand-text {
  color: var(--muted);
}
.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 38px);
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: color 0.25s;
}
.nav-links a:hover {
  color: var(--brand);
}
.theme-toggle,
.mobile-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand);
  border-radius: 999px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  font-size: 1.1rem;
}
.mobile-toggle {
  display: none;
}
html[data-theme="dark"] .moon,
html[data-theme="light"] .sun {
  display: none;
}

.hero {
  min-height: 92vh;
  padding-top: 120px;
  display: grid;
  align-items: center;
  overflow: hidden;
}
#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}
.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  right: 6%;
  top: 20%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--brand) 22%, transparent),
    transparent 65%
  );
  filter: blur(20px);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 20px;
  align-items: center;
}
.hero-copy {
  max-width: 900px;
}
.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  color: var(--brand);
  letter-spacing: 0.18em;
  font-weight: 800;
  font-size: 0.82rem;
}
.eyebrow span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  margin-right: 10px;
}
h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.04em;
}

h1 {
  font-family: var(--display);
  font-size: clamp(3.2rem, 4.4vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  max-width: 100%;
}

h2 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 700;
}

h3 {
  font-size: 1.6rem;
  font-weight: 700;
}
h1 em {
  color: var(--brand);
  font-style: normal;
  font-weight: 800;
}
.section-head h2,
.about-grid h2,
.toolbox-grid h2,
.contact-grid h2 {
  font-family: var(--display);
  font-weight: 800;
}
.hero-text,
.lead,
.section-head p {
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 650px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 10px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  font-size: 0.82rem;
  border: 1px solid var(--line);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.btn:hover {
  transform: translateY(-3px);
}
.btn-primary {
  background: var(--brand);
  color: #001118;
  box-shadow: 0 18px 55px color-mix(in srgb, var(--brand) 28%, transparent);
}
.btn-ghost {
  background: transparent;
}
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.hero-stats strong {
  display: block;
  font-size: 1.65rem;
  font-family: var(--mono);
}
.hero-stats span {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.hero-orbit {
  min-height: 560px;
  position: relative;
}
.orbit-card {
  position: absolute;
  width: 260px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    var(--surface-2),
    color-mix(in srgb, var(--brand) 8%, transparent)
  );
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  animation: float 6s ease-in-out infinite;
}
.orbit-card small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 800;
}
.orbit-card strong {
  display: block;
  font-size: 2rem;
  margin: 8px 0;
}
.orbit-card span {
  color: #27f0a6;
  font-size: 0.8rem;
  font-weight: 800;
}
.trend-line {
  fill: none;
  stroke: var(--brand);
  stroke-width: 4;
}
.card-a {
  right: 0;
  top: 0;
}

.card-b {
  left: -40px;
  top: 28%;
}

.card-c {
  right: -20px;
  top: 52%;
}

.card-d {
  left: 40px;
  bottom: 2%;
}

@keyframes float {
  50% {
    translate: 0 -18px;
  }
}
.mini-line {
  height: 60px;
  margin-top: 15px;
}

.mini-line svg {
  width: 100%;
  height: 100%;
}
.bars {
  display: flex;
  gap: 10px;
  align-items: end;
  height: 88px;
  margin-top: 16px;
}
.bars i {
  flex: 1;
  border-radius: 8px 8px 2px 2px;
  background: var(--brand);
  opacity: 0.55;
}
.bars i:nth-child(2) {
  height: 85%;
}
.bars i:nth-child(1) {
  height: 58%;
}
.bars i:nth-child(3) {
  height: 42%;
}
.bars i:nth-child(4) {
  height: 70%;
}
.bars i:nth-child(5) {
  height: 96%;
  opacity: 1;
}
.ring {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 16px;
  background: conic-gradient(var(--brand) 63%, rgba(255, 255, 255, 0.08) 0);
}
.ring span {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 1.2rem;
}
.section-head {
  margin-bottom: 44px;
}
.gallery-wrap {
  position: relative;
  width: min(1320px, calc(100% - 24px));
  margin: 0 auto;
}
.project-gallery {
  display: flex;
  scrollbar-width: none;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 12px 24px;
}
.project-gallery::-webkit-scrollbar {
  display: none;
}
.project-card {
  scroll-snap-align: start;
  flex: 0 0 min(430px, 82vw);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  position: relative;
  transition: 0.35s;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}
.project-card img {
  height: 270px;
  width: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.8);
}
.project-metrics {
  position: absolute;
  top: 190px;
  left: 28px;
  display: flex;
  gap: 18px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid var(--line);
  border-radius: 10px;
  opacity: 0;
  transform: translateY(12px);
  transition: 0.3s;
}
.project-card:hover .project-metrics {
  opacity: 1;
  transform: none;
}
.project-metrics strong {
  color: var(--brand);
}
.project-body {
  padding: 28px;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.tag-row span {
  font-family: var(--mono);
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  padding: 7px 10px;
  border-radius: 7px;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
}
h3 {
  font-size: 1.35rem;
  margin: 0 0 12px;
}
.project-body p,
.case-card p,
.tool-cards p,
blockquote,
.modal-section p {
  color: var(--muted);
  line-height: 1.75;
}
.project-link,
.case-open {
  color: var(--brand);
  font-weight: 800;
  font-family: var(--mono);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.gallery-btn {
  position: absolute;
  z-index: 3;
  top: 42%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-size: 2rem;
}
.gallery-btn.prev {
  left: -5px;
}
.gallery-btn.next {
  right: -5px;
}
.toolbox-grid,
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.tool-cards {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}
.tool-cards article,
.case-card,
blockquote,
.contact-form,
.about-card,
.code-window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tool-cards article {
  padding: 22px;
}
.tool-cards span,
.case-number {
  color: var(--brand);
  font-family: var(--mono);
  font-weight: 800;
}
.code-window {
  padding: 28px;
  overflow: hidden;
}
.window-dots {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.window-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 45%, transparent);
}
pre {
  margin: 0;
  overflow: auto;
  font-family: var(--mono);
  line-height: 1.65;
  color: var(--text);
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.case-card {
  padding: 28px;
}
.about-card {
  padding: 20px;
}
.skills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.skills span {
  padding: 12px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
}
.stars {
  color: #ffc107;
  font-size: 1.2rem;
  margin-bottom: 15px;
  letter-spacing: 3px;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
blockquote {
  margin: 0;
  padding: 28px;
  font-size: 1.05rem;
}
blockquote cite {
  display: block;
  margin-top: 20px;
  color: var(--brand);
  font-style: normal;
  font-weight: 800;
}

.testimonial-author {
  margin-top: 30px;
}

.testimonial-author h4 {
  margin: 0;
  font-size: 1.4rem;
  color: #fff;
  font-weight: 700;
}

.testimonial-author span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 1rem;
}
.contact-list {
  padding: 0;
  margin: 35px 0 0;
  list-style: none;
  display: grid;
  gap: 18px;
  color: var(--muted);
}
.contact-list a:hover {
  color: var(--brand);
}
.contact-form {
  padding: 30px;
  display: grid;
  gap: 22px;
}
label {
  display: grid;
  gap: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--mono);
  font-size: 0.75rem;
}
input,
textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  padding: 14px 0;
  font: inherit;
  outline: none;
}
input:focus,
textarea:focus {
  border-color: var(--brand);
}
/* ===================== FOOTER ===================== */

.footer {
  margin-top: 100px;
  border-top: 1px solid var(--line);
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
}

.footer-about h3 {
  color: var(--brand);
  margin-bottom: 16px;
  font-size: 2rem;
}

.footer-about p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 420px;
}

.footer-links,
.footer-social {
  display: flex;
  flex-direction: column;
}

.footer-links h4,
.footer-social h4 {
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--muted);
  margin-bottom: 12px;
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--brand);
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons a {
  width: 54px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  border: 1px solid var(--line);

  background: var(--surface);

  color: var(--muted);

  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: var(--brand);

  border-color: var(--brand);

  transform: translateY(-4px);
}

.social-icons svg {
  width: 22px;
  height: 22px;
}

.footer-bottom {
  margin-top: 60px;
  padding: 30px 0;

  border-top: 1px solid var(--line);

  display: flex;
  justify-content: space-between;

  color: var(--muted);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}
.modal {
  width: min(760px, calc(100% - 30px));
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 24px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-section {
  margin: 24px 0;
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (max-width: 980px) {
  .mobile-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 78px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    padding: 26px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 20px;
  }
  .nav-links.open {
    display: flex;
  }
  .hero-grid,
  .toolbox-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-orbit {
    min-height: 700px;
    position: relative;
  }
  .case-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .section-pad {
    padding: 80px 0;
  }
  .site-header {
    padding: 0 16px;
  }
  .hero-stats {
    gap: 22px;
  }
  .orbit-card {
    width: 220px;
  }
  .card-a {
    right: 0;
  }
  .card-b {
    left: 0;
  }
  .card-c {
    right: 0;
    top: 55%;
  }
  .card-d {
    display: none;
  }
  .footer-inner {
    flex-direction: column;
  }
}

/* ===================== SERVICES ===================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  min-height: 260px;

  display: flex;
  flex-direction: column;

  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);

  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.service-icon {
  width: 46px;
  height: 46px;

  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: color-mix(in srgb, var(--brand) 10%, transparent);

  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));

  color: var(--brand);

  margin-bottom: 20px;
}

.service-icon svg {
  width: 18px;
  height: 18px;

  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.service-card h3 {
  font-size: 1.45rem;
  margin-bottom: 16px;
  line-height: 1.3;
}

.service-card p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

.service-card:hover .service-icon {
  background: color-mix(in srgb, var(--brand) 18%, transparent);

  border-color: var(--brand);
}

/* Tablet */

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
