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

:root {
  --bg: #060810;
  --bg2: #0c0f1a;
  --bg3: #111629;
  --blue: #4f8ef7;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --text: #f0f4ff;
  --muted: #7a85a3;
  --border: rgba(255, 255, 255, 0.07);
  --grad: linear-gradient(135deg, #4f8ef7, #8b5cf6);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 6%;
  background: rgba(6, 8, 16, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin-left: 5rem;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-cta {
  background: var(--grad);
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.nav-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* HERO */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 6% 5rem;
  overflow: hidden;
}
#canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.25);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  text-transform: uppercase;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.4);
  }
}

h1 {
  font-family: sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}
h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79, 142, 247, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
  text-decoration: none;
}
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-num {
  font-family: sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

/* MARQUEE */
.marquee-wrap {
  overflow: hidden;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 22s linear infinite;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-item span {
  color: var(--blue);
  font-size: 1rem;
}

/* SECTION COMMONS */
section {
  padding: 6rem 6%;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--muted);
  max-width: 500px;
  font-size: 1rem;
  line-height: 1.75;
}
.centered {
  text-align: center;
}
.centered .section-sub {
  margin: 0 auto;
}

/* SERVICES */
#services {
  background: var(--bg2);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 3.5rem;
}
.service-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition:
    border-color 0.3s,
    transform 0.3s;
  cursor: default;
}
.service-card:hover {
  border-color: rgba(79, 142, 247, 0.3);
  transform: translateY(-4px);
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.icon-blue {
  background: rgba(79, 142, 247, 0.12);
}
.icon-violet {
  background: rgba(139, 92, 246, 0.12);
}
.icon-cyan {
  background: rgba(34, 211, 238, 0.12);
}
.icon-pink {
  background: rgba(236, 72, 153, 0.12);
}
.icon-green {
  background: rgba(34, 197, 94, 0.12);
}
.icon-amber {
  background: rgba(251, 191, 36, 0.12);
}
.service-title {
  font-family: sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.service-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1.25rem;
}
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--muted);
}

/* HOW WE WORK */
#process {
  background: var(--bg);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin-top: 3.5rem;
  position: relative;
}
.process-step {
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
  transition: background 0.3s;
}
.process-step:hover {
  background: var(--bg3);
}
.step-num {
  font-family: sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 1rem;
}
.step-title {
  font-family: sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.step-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

/* TECH */
#tech {
  background: var(--bg2);
}
.tech-categories {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}
.tech-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.tech-row-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-width: 100px;
  padding-top: 8px;
}
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tech-pill {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition:
    border-color 0.2s,
    color 0.2s;
}
.tech-pill:hover {
  border-color: rgba(79, 142, 247, 0.4);
  color: var(--blue);
}

/* CTA */
#cta {
  background: var(--bg);
  text-align: center;
}
.cta-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 5rem 3rem;
  position: relative;
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
}
.cta-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(79, 142, 247, 0.12),
    transparent 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-box h2 {
  font-family: sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  position: relative;
}
.cta-box p {
  color: var(--muted);
  margin-bottom: 2rem;
  position: relative;
}
.cta-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.cta-input {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: "Inter", sans-serif;
  width: 280px;
  outline: none;
  transition: border-color 0.2s;
}
.cta-input:focus {
  border-color: rgba(79, 142, 247, 0.5);
}
.cta-input::placeholder {
  color: var(--muted);
}

/* FOOTER */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
  margin-left: 6rem;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--text);
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* MOBILE */
@media (max-width: 768px) {
  nav {
    padding: 1rem 5%;
  }
  .nav-links {
    display: none;
  }
  section {
    padding: 4rem 5%;
  }
  .hero-stats {
    gap: 2rem;
  }
  footer {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem 6%;
    gap: 1.25rem;
  }
  .nav-links.open {
    display: flex;
  }
}

/* PROJECTS */
#projects {
  background: var(--bg2);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.project-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.3s,
    transform 0.3s;
}
.project-card:hover {
  border-color: rgba(79, 142, 247, 0.3);
  transform: translateY(-4px);
}
.project-img {
  width: 100%;
  aspect-ratio: 16/8;
  background: linear-gradient(
    135deg,
    rgba(79, 142, 247, 0.08),
    rgba(139, 92, 246, 0.08)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
}
.project-title {
  font-family: sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.project-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.project-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
  margin-top: auto;
}
.project-link:hover {
  color: var(--cyan);
}

/* CONTACT */
#contact {
  background: var(--bg2);
}
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 1rem;
  margin-top: 3.5rem;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition:
    border-color 0.3s,
    transform 0.2s;
}
.contact-card:hover {
  border-color: rgba(79, 142, 247, 0.3);
  transform: translateX(4px);
}
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 2px;
}
.contact-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

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