/*
Theme Name: XDMEDIA — No Portfolio
Theme URI: https://xdmedia.nl
Author: Duy Nguyen
Description: Custom theme for xdmedia.nl — capabilities-focused, no project showcase
Version: 1.0
*/

/* ── Reset & base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      #8ACA44;
  --green-light:#b2e05a;
  --green-dark: #3a7010;
  --black:      #0a0a0a;
  --surface:    #141414;
  --surface2:   #1c1c1c;
  --border:     #242424;
  --text:       #ffffff;
  --text-muted: #666;
  --text-dim:   #333;
}

html { scroll-behavior: smooth; }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

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

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon { display: block; flex-shrink: 0; width: 44px; height: 44px; }

.logo-wordmark {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.5px;
  color: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}

.site-nav a:hover { color: #fff; }

.site-nav .nav-cta {
  color: var(--green);
  font-weight: 700;
}

.site-nav .nav-cta:hover { color: var(--green-light); }

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: #111;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 14px 28px;
  border-radius: 6px;
  transition: background 0.15s;
}

.btn-primary:hover { background: var(--green-light); }

/* ── Section label ─────────────────────────────────────── */
.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 48px;
}

/* ── Hero ──────────────────────────────────────────────── */
@keyframes glowPulse {
  0%, 100% { opacity: 0.18; transform: scale(1);   }
  50%       { opacity: 0.28; transform: scale(1.08); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 0;
  border-bottom: 1px solid var(--border);
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #5bbf1e 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: glowPulse 5s ease-in-out infinite;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-bottom: 80px;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2.5px;
  color: #fff;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 420px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.btn-ghost {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.15s;
}

.btn-ghost:hover { color: #fff; }

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-number {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
  max-width: 100px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Metrics card ──────────────────────────────────────── */
@keyframes livePulse {
  0%, 100% { opacity: 1;   transform: scale(1);   box-shadow: 0 0 0 0 rgba(138,202,68,0.5); }
  50%       { opacity: 0.7; transform: scale(1.15); box-shadow: 0 0 0 6px rgba(138,202,68,0); }
}

@keyframes barGrow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.metrics-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}

.metrics-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.metrics-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.5px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: livePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.metrics-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.metrics-period {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
}

.metrics-rows {
  padding: 8px 0;
}

.metrics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.metrics-row--highlight {
  background: rgba(138,202,68,0.05);
}

.metrics-label {
  font-size: 13px;
  color: var(--text-muted);
}

.metrics-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.metrics-value {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
}

.metrics-row--highlight .metrics-value {
  font-size: 17px;
  color: var(--green);
}

.metrics-delta {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: rgba(138,202,68,0.1);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Bar chart */
.metrics-chart {
  padding: 16px 20px 12px;
  border-top: 1px solid var(--border);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 52px;
}

.chart-bar {
  flex: 1;
  height: var(--h);
  background: var(--surface2);
  border-radius: 3px 3px 0 0;
  transform-origin: bottom;
  animation: barGrow 0.8s cubic-bezier(0.22,1,0.36,1) both;
}

.chart-bar:nth-child(1)  { animation-delay: 0.05s; }
.chart-bar:nth-child(2)  { animation-delay: 0.10s; }
.chart-bar:nth-child(3)  { animation-delay: 0.15s; }
.chart-bar:nth-child(4)  { animation-delay: 0.20s; }
.chart-bar:nth-child(5)  { animation-delay: 0.25s; }
.chart-bar:nth-child(6)  { animation-delay: 0.30s; }
.chart-bar:nth-child(7)  { animation-delay: 0.35s; }
.chart-bar:nth-child(8)  { animation-delay: 0.40s; }
.chart-bar:nth-child(9)  { animation-delay: 0.45s; }
.chart-bar:nth-child(10) { animation-delay: 0.50s; }
.chart-bar:nth-child(11) { animation-delay: 0.55s; }
.chart-bar:nth-child(12) { animation-delay: 0.60s; }
.chart-bar:nth-child(13) { animation-delay: 0.65s; }
.chart-bar:nth-child(14) { animation-delay: 0.70s; }

.chart-bar--today { background: var(--green); opacity: 0.7; }

/* Footer tags */
.metrics-footer {
  display: flex;
  gap: 6px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
}

.metrics-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ── Hero card stack ───────────────────────────────────── */
.hero-card-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s;
}

.hero-card:hover { border-color: #333; }

.hero-card--mid {
  border-color: var(--green);
  background: rgba(138,202,68,0.06);
}

.hero-card--back {
  opacity: 0.45;
}

.hero-card-icon {
  width: 36px;
  height: 36px;
  background: var(--surface2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-card-icon svg { width: 18px; height: 18px; color: #666; }

.hero-card-icon--green { background: rgba(138,202,68,0.12); }
.hero-card-icon--green svg { color: var(--green); }

.hero-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.hero-card-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-card-tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface2);
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.hero-card-tag--green {
  color: var(--green);
  background: rgba(138,202,68,0.1);
}

/* Marquee */
.marquee-wrap {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  overflow: hidden;
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-track span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.marquee-track .dot {
  color: var(--green);
  font-weight: 900;
  letter-spacing: 0;
}

/* ── About ─────────────────────────────────────────────── */
.about {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.about-lead {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.3px;
  color: #fff;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-body p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ── Stack section ─────────────────────────────────────── */
.stack {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.stack-group {
  background: var(--surface);
  padding: 36px 32px;
  border-left: 3px solid transparent;
  transition: border-color 0.2s;
}

.stack-group:hover { border-left-color: var(--green); }
.stack-group:first-child { border-radius: 8px 0 0 8px; }
.stack-group:last-child  { border-radius: 0 8px 8px 0; }

.stack-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-tags span {
  font-size: 12px;
  font-weight: 600;
  color: #aaa;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 4px;
}

/* ── Services ──────────────────────────────────────────── */
.services {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

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

.service-card {
  background: var(--surface);
  border-left: 3px solid transparent;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s;
}

.service-card:hover {
  border-left-color: var(--green);
}

.service-card:first-child { border-radius: 8px 0 0 8px; }
.service-card:last-child  { border-radius: 0 8px 8px 0; }

.service-icon {
  width: 28px;
  height: 28px;
  color: var(--green);
  flex-shrink: 0;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Availability badge ────────────────────────────────── */
.hero-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-eyebrow-row .hero-eyebrow { margin-bottom: 0; }

.available-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: rgba(138,202,68,0.1);
  border: 1px solid rgba(138,202,68,0.25);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

/* ── Service price tag ─────────────────────────────────── */
.service-price {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
  margin-top: auto;
  letter-spacing: 0.3px;
}

/* ── Process / How I work ──────────────────────────────── */
.process {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: start;
  gap: 0;
  margin-bottom: 40px;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.process-number {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--green);
}

.process-step h3 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.process-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.process-divider {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 28px;
}

.process-divider::after {
  content: '→';
  font-size: 18px;
  color: var(--border);
}

.process-note {
  font-size: 13px;
  color: var(--text-muted);
  border-left: 2px solid var(--green);
  padding-left: 16px;
}

/* ── Contact ───────────────────────────────────────────── */
.contact {
  padding: 80px 0;
}

.contact-intro {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--green);
}

.form-field select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-field select option { background: var(--surface2); }

.form-field textarea { resize: vertical; min-height: 120px; }

.form-success {
  max-width: 620px;
  background: rgba(138,202,68,0.1);
  border: 1px solid rgba(138,202,68,0.3);
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  padding: 16px 20px;
  border-radius: 6px;
}

.form-error {
  max-width: 620px;
  background: rgba(255,80,80,0.08);
  border: 1px solid rgba(255,80,80,0.25);
  color: #ff6b6b;
  font-size: 14px;
  font-weight: 600;
  padding: 16px 20px;
  border-radius: 6px;
  margin-bottom: 16px;
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-logo {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 1px;
  color: #fff;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}

.footer-email {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
}

.footer-email:hover { color: var(--green-light); }

/* ── Legal pages ───────────────────────────────────────── */
.legal-page {
  padding: 80px 0 100px;
}

.legal-header {
  max-width: 720px;
  margin-bottom: 64px;
}

.legal-header h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  margin: 16px 0 12px;
}

.legal-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.legal-body {
  max-width: 720px;
}

.legal-body h2 {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  margin: 40px 0 12px;
  letter-spacing: -0.2px;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-body ul {
  margin: 0 0 12px 20px;
}

.legal-body li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 4px;
}

.legal-body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body strong { color: #fff; font-weight: 600; }

/* ── Anchor scroll offset (accounts for sticky header) ─── */
section[id] {
  scroll-margin-top: 72px;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 0;
  }

  .hero-card-stack { width: 100%; }
}

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

  .process-divider { display: none; }

  .form-row { grid-template-columns: 1fr; }

  .services-grid,
  .stack-grid { grid-template-columns: 1fr; }

  .service-card:first-child { border-radius: 8px 8px 0 0; }
  .service-card:last-child  { border-radius: 0 0 8px 8px; }

  .stack-group:first-child { border-radius: 8px 8px 0 0; }
  .stack-group:last-child  { border-radius: 0 0 8px 8px; }

  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat-divider { display: none; }

  .site-nav a:not(.nav-cta) { display: none; }

  .site-footer .container { flex-direction: column; text-align: center; }
}
