/*
Theme Name: Dragnoz
Theme URI: https://serseus.com
Author: Dragnoz / Johan Kruger
Description: Personal site for Dragnoz — Minecraft creator, AI systems architect, Creative Director. Dark, immersive, systems-inspired.
Version: 1.0.0
Requires at least: 6.0
Text Domain: dragnoz
*/

:root {
  --dz-bg: #0f0f12;
  --dz-surface: #1a1a20;
  --dz-card: #22222b;
  --dz-border: #2a2a35;
  --dz-text: #e8e8ed;
  --dz-muted: #88889a;
  --dz-accent: #6c5ce7;
  --dz-accent2: #00cec9;
  --dz-accent3: #fd79a8;
  --dz-gold: #fdcb6e;
  --dz-clay: #e17055;
  --dz-green: #00b894;
  --dz-radius: 12px;
  --dz-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --dz-font: "Inter", system-ui, -apple-system, sans-serif;
  --dz-mono: "JetBrains Mono", "Fira Code", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--dz-text);
  background: var(--dz-bg);
  font-family: var(--dz-font);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Grid overlay ── */
body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 92, 231, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 92, 231, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

a { color: var(--dz-accent); text-decoration: none; transition: color 200ms; }
a:hover { color: var(--dz-accent2); }

img { max-width: 100%; height: auto; display: block; }

/* ── Layout ── */
.dz-page {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.dz-container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* ── Header ── */
.dz-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  background: rgba(15, 15, 18, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--dz-border);
}

.dz-nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dz-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  color: var(--dz-text);
}

.dz-brand .dz-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--dz-accent), var(--dz-accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}

.dz-brand span {
  color: var(--dz-muted);
  font-weight: 400;
  font-size: 13px;
  padding-left: 12px;
  border-left: 1px solid var(--dz-border);
}

.dz-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dz-menu a {
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--dz-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 200ms;
}

.dz-menu a:hover {
  color: var(--dz-text);
  background: var(--dz-surface);
}

.dz-menu .dz-btn {
  background: var(--dz-accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
}

.dz-menu .dz-btn:hover {
  background: #7c6df7;
  color: #fff;
}

/* ── Hero ── */
.dz-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
}

.dz-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.12), transparent 70%);
  pointer-events: none;
}

.dz-hero::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 206, 201, 0.08), transparent 70%);
  pointer-events: none;
}

.dz-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.dz-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.25);
  color: var(--dz-accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.dz-badge .dz-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dz-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.dz-hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
}

.dz-hero h1 .dz-gradient {
  background: linear-gradient(135deg, var(--dz-accent), var(--dz-accent2), var(--dz-accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dz-hero-sub {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--dz-muted);
  margin-top: 20px;
  max-width: 640px;
  line-height: 1.5;
}

.dz-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.dz-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: all 200ms;
  cursor: pointer;
  border: none;
}

.dz-button-primary {
  background: var(--dz-accent);
  color: #fff;
}

.dz-button-primary:hover {
  background: #7c6df7;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.3);
}

.dz-button-secondary {
  background: var(--dz-surface);
  color: var(--dz-text);
  border: 1px solid var(--dz-border);
}

.dz-button-secondary:hover {
  border-color: var(--dz-accent);
  color: var(--dz-accent);
  transform: translateY(-2px);
}

/* ── Stats bar ── */
.dz-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--dz-border);
  border-radius: var(--dz-radius);
  overflow: hidden;
  margin-top: 60px;
}

.dz-stat {
  padding: 28px 20px;
  background: var(--dz-surface);
  text-align: center;
}

.dz-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--dz-accent), var(--dz-accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dz-stat span {
  display: block;
  margin-top: 4px;
  color: var(--dz-muted);
  font-size: 13px;
}

/* ── Sections ── */
.dz-section {
  padding: 100px 0;
}

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

.dz-section-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(108, 92, 231, 0.1);
  color: var(--dz-accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.dz-section h2 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.dz-section-lead {
  max-width: 680px;
  color: var(--dz-muted);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 48px;
}

/* ── Identity Grid ── */
.dz-identity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dz-identity-card {
  padding: 40px;
  border-radius: var(--dz-radius);
  background: var(--dz-card);
  border: 1px solid var(--dz-border);
  position: relative;
  overflow: hidden;
}

.dz-identity-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 0 4px 4px 0;
}

.dz-identity-card:nth-child(1)::before { background: var(--dz-accent); }
.dz-identity-card:nth-child(2)::before { background: var(--dz-accent2); }

.dz-identity-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.dz-identity-card p {
  color: var(--dz-muted);
  font-size: 15px;
  line-height: 1.7;
}

.dz-identity-card .dz-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.dz-tag {
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(108, 92, 231, 0.1);
  color: var(--dz-accent);
  font-size: 12px;
  font-weight: 600;
}

.dz-identity-card:nth-child(2) .dz-tag {
  background: rgba(0, 206, 201, 0.1);
  color: var(--dz-accent2);
}

/* ── Timeline ── */
.dz-timeline {
  position: relative;
}

.dz-timeline::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--dz-border);
}

.dz-timeline-item {
  position: relative;
  padding-left: 64px;
  padding-bottom: 40px;
}

.dz-timeline-item:last-child {
  padding-bottom: 0;
}

.dz-timeline-dot {
  position: absolute;
  left: 16px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--dz-accent);
  border: 4px solid var(--dz-bg);
  box-shadow: 0 0 0 2px var(--dz-accent);
}

.dz-timeline-item:nth-child(2) .dz-timeline-dot { background: var(--dz-accent2); box-shadow: 0 0 0 2px var(--dz-accent2); }
.dz-timeline-item:nth-child(3) .dz-timeline-dot { background: var(--dz-gold); box-shadow: 0 0 0 2px var(--dz-gold); }
.dz-timeline-item:nth-child(4) .dz-timeline-dot { background: var(--dz-clay); box-shadow: 0 0 0 2px var(--dz-clay); }
.dz-timeline-item:nth-child(5) .dz-timeline-dot { background: var(--dz-green); box-shadow: 0 0 0 2px var(--dz-green); }

.dz-timeline-year {
  font-size: 13px;
  font-weight: 700;
  color: var(--dz-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.dz-timeline-item:nth-child(2) .dz-timeline-year { color: var(--dz-accent2); }
.dz-timeline-item:nth-child(3) .dz-timeline-year { color: var(--dz-gold); }
.dz-timeline-item:nth-child(4) .dz-timeline-year { color: var(--dz-clay); }
.dz-timeline-item:nth-child(5) .dz-timeline-year { color: var(--dz-green); }

.dz-timeline h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.dz-timeline p {
  color: var(--dz-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Project Grid ── */
.dz-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dz-project-card {
  padding: 28px;
  border-radius: var(--dz-radius);
  background: var(--dz-card);
  border: 1px solid var(--dz-border);
  transition: all 300ms;
}

.dz-project-card:hover {
  border-color: var(--dz-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(108, 92, 231, 0.15);
}

.dz-project-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.dz-project-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.dz-project-card p {
  color: var(--dz-muted);
  font-size: 14px;
  line-height: 1.6;
}

.dz-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.dz-project-tags span {
  padding: 2px 10px;
  border-radius: 4px;
  background: rgba(108, 92, 231, 0.08);
  color: var(--dz-muted);
  font-size: 11px;
  font-weight: 500;
}

/* ── Contact ── */
.dz-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dz-contact-card {
  padding: 32px;
  border-radius: var(--dz-radius);
  background: var(--dz-card);
  border: 1px solid var(--dz-border);
  text-align: center;
  transition: all 300ms;
}

.dz-contact-card:hover {
  border-color: var(--dz-accent);
  transform: translateY(-2px);
}

.dz-contact-card .dz-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.dz-contact-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.dz-contact-card p {
  color: var(--dz-muted);
  font-size: 14px;
}

.dz-contact-card a {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--dz-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: all 200ms;
}

.dz-contact-card a:hover {
  background: #7c6df7;
}

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

.dz-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dz-footer p {
  color: var(--dz-muted);
  font-size: 13px;
}

.dz-footer-links {
  display: flex;
  gap: 20px;
}

.dz-footer-links a {
  color: var(--dz-muted);
  font-size: 13px;
}

.dz-footer-links a:hover {
  color: var(--dz-accent);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .dz-identity-grid,
  .dz-contact-grid {
    grid-template-columns: 1fr;
  }

  .dz-project-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dz-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .dz-menu a:not(.dz-btn) {
    display: none;
  }
}

@media (max-width: 600px) {
  .dz-project-grid {
    grid-template-columns: 1fr;
  }

  .dz-stats {
    grid-template-columns: 1fr 1fr;
  }

  .dz-hero h1 {
    font-size: 40px;
  }

  .dz-section {
    padding: 60px 0;
  }
}
