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

:root {
  --bg: #06000d;
  --surface: #0d0018;
  --line: #1e1e2e;
  --purple: #b87fff;
  --green: #4dffaa;
  --dim: #555566;
  --text: #f0edf8;
  --muted: #8888a0;
  --font: 'Iosevka', 'Courier New', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

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

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* ─── LAYOUT ─────────────────────────────────────── */
.layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding: 2rem;
}

.layout-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0;
}

.wordmark {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
}

.wordmark-dot {
  color: var(--purple);
}

.hero-tagline {
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 1rem;
}

/* ─── TERMINAL WINDOW ────────────────────────────── */
.term {
  width: 100%;
  font-size: 0.85rem;
  border: 1px solid var(--purple);
  border-top-right-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(184, 127, 255, 0.2);
}

.term-titlebar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.win-title {
  font-size: 0.7rem;
  color: var(--purple);
  letter-spacing: 0.12em;
}

.term-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.25rem;
}

.stack-entry {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.stack-entry dt {
  color: var(--text);
}

.stack-entry dd {
  color: var(--muted);
}

.win-section-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--purple);
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.3rem;
  margin-bottom: 0.25rem;
}

.term-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.75rem;
}

.term-key {
  color: var(--purple);
  font-size: 0.8rem;
}

.term-val {
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.md-p {
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 0.6rem;
}

.md-p:last-child {
  margin-bottom: 0;
}

.term-service {
  padding: 0.25rem 0;
}

.term-service-desc {
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ─── CONTACT CARD ───────────────────────────────── */
.contact-card {
  display: flex;
  align-items: stretch;
  margin: -1rem;
}

.contact-fields {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: flex-start;
  flex: 1;
  padding: 1rem;
}

.contact-photo {
  width: 130px;
  flex-shrink: 0;
  overflow: hidden;
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ─── FOOTER ─────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer-mid {
  color: var(--dim);
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .term-row {
    grid-template-columns: 80px 1fr;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    gap: 0.25rem;
  }

  .footer-mid {
    display: none;
  }
}
