/* =====================
   CUSTOM PROPERTIES
   ===================== */
:root {
  --bg:        #0a0a0c;
  --bg-alt:    #0f0f12;
  --surface:   #141418;
  --surface-2: #1c1c22;
  --border:    #222228;
  --text:      #e8e8f0;
  --text-muted:#7a7a8c;
  --accent:    #00f5d4;
  --accent-dim:#00f5d420;

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  --radius: 6px;
  --transition: 200ms ease;

  --max-w: 1100px;
  --nav-h: 64px;
}

/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* =====================
   UTILITIES
   ===================== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.accent {
  color: var(--accent);
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: opacity var(--transition), transform var(--transition);
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* =====================
   NAV
   ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--transition), border-bottom var(--transition);
}

.nav.scrolled {
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: 36px;
}

.nav__links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.nav__links a:hover {
  color: var(--text);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 20px;
  background: rgba(10, 10, 12, 0.97);
  border-bottom: 1px solid var(--border);
}

.nav__mobile a {
  padding: 12px 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover { color: var(--text); }
.nav__mobile.open { display: flex; }

/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Dot grid background */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
  background-size: 36px 36px;
  opacity: 0.6;
}

/* Radial vignette over the dots */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 20% 50%, transparent 30%, var(--bg) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding-block: 80px;
}

.hero__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero__headline {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 36px;
  line-height: 1.7;
}

/* =====================
   SECTIONS (shared)
   ===================== */
.section {
  padding-block: 100px;
}

.section--alt {
  background: var(--bg-alt);
}

.section__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}

.section__title {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

/* =====================
   SERVICES
   ===================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color var(--transition), transform var(--transition);
}

.card:hover {
  border-color: var(--accent);
}

.card__icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 20px;
}

.card__icon svg {
  width: 100%;
  height: 100%;
}

.card__title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =====================
   WORK
   ===================== */
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.work-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.work-card__image {
  height: 160px;
  background: linear-gradient(135deg, var(--surface-2) 0%, #1a1a24 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle abstract pattern per card */
.work-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 12px,
    var(--border) 12px,
    var(--border) 13px
  );
  opacity: 0.4;
}

.work-card__image--2 {
  background: linear-gradient(135deg, #0f1a1a 0%, #0d1520 100%);
}

.work-card__image--3 {
  background: linear-gradient(135deg, #14100f 0%, #1a1510 100%);
}

.work-card__body {
  padding: 24px;
}

.work-card__title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.work-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 4px;
  border: 1px solid #00f5d430;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 32px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__contact li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

.footer__contact a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__contact a:hover {
  color: var(--accent);
}

.footer__copy {
  display: flex;
  height: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.copyright {
  font-size: 1rem;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
  .services__grid,
  .work__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .services__grid,
  .work__grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 72px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
