@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #05070d;
  --panel: rgba(14, 18, 31, .72);
  --text: #f7f9ff;
  --muted: #8d95aa;
  --blue: #4da3ff;
  --cyan: #55f4e6;
  --purple: #9a6cff;
  --border: rgba(255,255,255,.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 75% 15%, rgba(91, 82, 255, .16), transparent 30%),
    radial-gradient(circle at 15% 60%, rgba(0, 188, 255, .1), transparent 27%);
  z-index: -3;
}

.background-grid {
  position: fixed;
  inset: 0;
  opacity: .2;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(rgba(100,140,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,140,255,.08) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.noise {
  position: fixed;
  inset: 0;
  opacity: .035;
  pointer-events: none;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }

.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 40px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(7, 10, 18, .7);
  backdrop-filter: blur(20px);
  z-index: 10;
  transition: .3s ease;
}

.navbar.scrolled { top: 8px; padding-block: 11px; }

.brand {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 800;
  line-height: .9;
  letter-spacing: .2em;
}

.nav-links, .nav-socials { display: flex; align-items: center; gap: 24px; }

.nav-links a, .nav-socials a {
  color: var(--muted);
  font-size: 12px;
  transition: .25s;
}

.nav-links a:hover, .nav-socials a:hover { color: white; }

.menu-toggle { display: none; border: 0; background: none; }

.section {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  padding: 140px 0;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding-top: 160px;
}

.eyebrow, .section-number, small {
  font-family: "DM Mono", monospace;
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: .16em;
}

.pulse, .status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 15px var(--cyan);
}

h1 {
  max-width: 760px;
  margin: 24px 0;
  font-size: clamp(3.5rem, 7vw, 7.5rem);
  line-height: .91;
  letter-spacing: -.08em;
}

h1 span, h2 span { color: var(--blue); }

.hero-copy {
  max-width: 520px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 14px; margin: 35px 0 24px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 52px;
  padding: 0 21px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  transition: .3s;
}

.button-primary {
  color: #06101e;
  background: linear-gradient(110deg, var(--cyan), var(--blue));
  border: 0;
}

.button:hover { transform: translateY(-4px); box-shadow: 0 15px 35px rgba(41, 157, 255, .22); }

.button-ghost { color: white; }

.availability { color: var(--muted); font-size: 12px; }

.hero-visual {
  position: relative;
  min-height: 580px;
  display: grid;
  place-items: center;
}

.profile-frame {
  position: relative;
  width: min(420px, 75vw);
  aspect-ratio: 1;
  padding: 12px;
  border-radius: 42%;
  background: linear-gradient(135deg, var(--cyan), var(--purple), transparent 70%);
  box-shadow: 0 0 100px rgba(67, 142, 255, .25);
  transform: rotate(4deg);
}

.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 40%;
  filter: saturate(.85) contrast(1.05);
}

.scan-line {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
  animation: scan 4s ease-in-out infinite;
}

@keyframes scan { 0%,100% { top: 12%; } 50% { top: 88%; } }

.orbit {
  position: absolute;
  width: 90%;
  aspect-ratio: 1;
  border: 1px solid rgba(92, 220, 255, .27);
  border-radius: 50%;
  transform: rotate(-25deg);
}

.orbit-two { width: 75%; transform: rotate(65deg); border-color: rgba(162, 108, 255, .35); }

.hud, .tech-label {
  position: absolute;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(10, 15, 28, .75);
  color: var(--cyan);
  font: 10px "DM Mono", monospace;
}

.hud { display: flex; gap: 20px; }
.hud-top { top: 13%; right: 2%; }
.hud-bottom { bottom: 14%; left: 2%; }
.label-software { top: 19%; left: 4%; }
.label-hardware { bottom: 18%; right: 0; }
.label-ai { top: 8%; left: 50%; }
.label-iot { bottom: 5%; left: 37%; }
.label-robotics { top: 47%; right: -2%; }

.marquee {
  overflow: hidden;
  padding: 25px 0;
  border-block: 1px solid var(--border);
  color: var(--muted);
  font: 12px "DM Mono", monospace;
  white-space: nowrap;
}

.marquee div { animation: marquee 25s linear infinite; }

.marquee span { color: var(--blue); margin: 0 30px; }

@keyframes marquee { to { transform: translateX(-30%); } }

.section-heading { margin-bottom: 65px; }

.section-heading h2 {
  margin-top: 16px;
  font-size: clamp(3rem, 6vw, 6.5rem);
  line-height: .92;
  letter-spacing: -.07em;
}

.centered { text-align: center; }

.centered p { margin-top: 20px; color: var(--muted); }

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}

.large-text { font-size: 27px; line-height: 1.35; margin-bottom: 28px; }
.about-text p:not(.large-text) { color: var(--muted); line-height: 1.8; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stat-card, .universe-card, .service {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(19,27,48,.8), rgba(8,11,20,.7));
  border-radius: 20px;
}

.stat-card { padding: 28px; }
.stat-card strong { font-size: 42px; }
.stat-card span { color: var(--cyan); }
.stat-card small { display: block; margin-top: 18px; color: var(--muted); }

.universe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.universe-card {
  position: relative;
  min-height: 230px;
  padding: 28px;
  transition: .35s;
}

.universe-card:hover {
  transform: translateY(-8px);
  border-color: var(--blue);
  box-shadow: 0 20px 50px rgba(53, 128, 255, .13);
}

.card-icon { color: var(--cyan); font-size: 30px; margin-bottom: 35px; }
.universe-card h3 { font-size: 21px; }
.universe-card p, .service p { color: var(--muted); line-height: 1.6; margin-top: 13px; font-size: 13px; }
.card-arrow { position: absolute; right: 25px; top: 25px; color: var(--muted); }

.services-list { border-top: 1px solid var(--border); }
.service {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 27px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}
.service b { color: var(--cyan); font: 12px "DM Mono"; }
.service h3 { font-size: 22px; }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.filter {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: transparent;
  color: var(--muted);
  font: 10px "DM Mono";
  cursor: pointer;
}
.filter.active, .filter:hover { color: #06101e; background: var(--cyan); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--panel);
  transition: .35s;
}

.project-card:hover { transform: translateY(-8px); border-color: var(--blue); }
.project-card.hidden { display: none; }

.project-visual {
  display: grid;
  place-items: center;
  min-height: 300px;
  color: rgba(255,255,255,.6);
  position: relative;
  overflow: hidden;
}

.project-visual::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: repeating-radial-gradient(circle, transparent 0 35px, rgba(255,255,255,.06) 36px 37px);
  animation: spin 20s linear infinite;
}

.project-visual i { position: relative; font-size: 80px; font-style: normal; color: white; }
.project-visual span { position: absolute; left: 24px; top: 22px; font: 10px "DM Mono"; z-index: 1; }
.visual-purple { background: linear-gradient(135deg, #301657, #10172f); }
.visual-blue { background: linear-gradient(135deg, #073d70, #0c172c); }
.visual-cyan { background: linear-gradient(135deg, #075c64, #081d32); }
.visual-pink { background: linear-gradient(135deg, #502346, #15152e); }

@keyframes spin { to { transform: rotate(360deg); } }

.project-info { padding: 25px; }
.project-info h3 { font-size: 29px; margin: 10px 0; }
.project-info p { color: var(--muted); line-height: 1.6; }
.tags { display: flex; gap: 7px; flex-wrap: wrap; margin: 20px 0; }
.tags span { padding: 7px 9px; border-radius: 5px; background: rgba(255,255,255,.07); color: var(--muted); font: 10px "DM Mono"; }
.text-link { color: var(--cyan); font-size: 12px; }

.split-section { display: grid; grid-template-columns: 1fr 1fr; }
.split-panel { min-height: 600px; padding: 100px max(40px, calc((100vw - 1180px)/2)); }
.software-panel { background: #080d19; }
.hardware-panel { background: #0b1020; }
.split-panel h2 { margin: 25px 0 50px; font-size: clamp(2.7rem, 5vw, 5rem); line-height: .95; letter-spacing: -.07em; }

.code-window {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #05070c;
}
.window-bar { display: flex; gap: 6px; padding: 12px; border-bottom: 1px solid var(--border); }
.window-bar i { width: 8px; height: 8px; border-radius: 50%; background: #ff667d; }
.window-bar i:nth-child(2) { background: #ffc65c; }
.window-bar i:nth-child(3) { background: #57e6b0; }
pre { padding: 25px; color: var(--cyan); line-height: 1.8; font: 13px "DM Mono"; }

.circuit {
  position: relative;
  height: 220px;
  margin-bottom: 20px;
  border: 1px solid rgba(85,244,230,.22);
  background-image: linear-gradient(rgba(85,244,230,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(85,244,230,.08) 1px, transparent 1px);
  background-size: 25px 25px;
}
.node { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 20px var(--cyan); }
.n1 { left: 15%; top: 30%; }.n2 { right: 15%; top: 25%; }.n3 { left: 45%; bottom: 20%; }.n4 { right: 30%; bottom: 35%; }
.circuit-line { position: absolute; height: 1px; background: var(--cyan); transform-origin: left; }
.line-one { width: 35%; left: 16%; top: 33%; transform: rotate(-10deg); }
.line-two { width: 30%; left: 46%; top: 75%; transform: rotate(-35deg); }
.line-three { width: 35%; left: 48%; top: 42%; transform: rotate(-15deg); }

.timeline { max-width: 850px; margin: auto; border-left: 1px solid var(--blue); }
.timeline-item { position: relative; padding: 28px 35px; border-bottom: 1px solid var(--border); }
.timeline-item::before { content: ""; position: absolute; left: -5px; top: 37px; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.timeline-item span { color: var(--cyan); font: 11px "DM Mono"; }
.timeline-item h3 { margin-top: 10px; font-size: 27px; }

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.contact-copy p { max-width: 470px; color: var(--muted); line-height: 1.7; margin: 25px 0; }
.email-link { color: var(--cyan); font: 14px "DM Mono"; }

.contact-form { display: grid; gap: 18px; }
.contact-form label { color: var(--muted); font: 11px "DM Mono"; }
input, textarea, select {
  width: 100%;
  margin-top: 8px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  color: white;
  background: rgba(255,255,255,.04);
  font: 14px Inter;
}
textarea { min-height: 130px; resize: vertical; }

footer {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr 1fr;
  gap: 20px;
  align-items: end;
  padding: 50px max(20px, calc((100vw - 1180px)/2));
  border-top: 1px solid var(--border);
}
footer p, footer small, .footer-links a { color: var(--muted); font-size: 11px; }
.footer-links { display: flex; gap: 20px; justify-content: center; }

.reveal { opacity: 0; transform: translateY(35px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.cursor, .cursor-follower { position: fixed; pointer-events: none; border-radius: 50%; z-index: 30; }
.cursor { width: 6px; height: 6px; background: white; }
.cursor-follower { width: 30px; height: 30px; border: 1px solid var(--cyan); transition: transform .1s; }

@media (max-width: 800px) {
  .navbar { width: calc(100% - 24px); }
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(7,10,18,.95);
  }
  .nav-links.open { display: flex; }
  .nav-socials { display: none; }
  .menu-toggle { display: grid; gap: 4px; cursor: pointer; }
  .menu-toggle span { width: 22px; height: 2px; background: white; }

  .section { padding: 95px 0; }
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 150px; }
  .hero-visual { min-height: 430px; order: -1; }
  .hero-content { text-align: center; }
  .hero-copy { margin: auto; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  .availability { margin-top: 20px; }
  .profile-frame { width: 290px; }

  .about-content, .contact { grid-template-columns: 1fr; gap: 45px; }
  .universe-grid, .projects-grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 45px 1fr; }
  .service p { grid-column: 2; }
  .split-section { grid-template-columns: 1fr; }
  .split-panel { min-height: auto; padding: 80px 20px; }
  footer { grid-template-columns: 1fr 1fr; }
  .footer-links { justify-content: flex-start; flex-wrap: wrap; }
  .cursor, .cursor-follower { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
