/*
Theme Name: Cassimus Neon
Theme URI: https://cassimus.net
Author: Michael Cassimus + ChatGPT
Description: A modern black and neon green WordPress theme for a ServiceNow developer / system architect portfolio.
Version: 1.0.0
License: GPLv2 or later
Text Domain: cassimus-neon
*/

:root {
  --bg: #050805;
  --bg-soft: #0b120d;
  --panel: rgba(12, 20, 14, 0.78);
  --panel-solid: #0b120d;
  --text: #f3fff6;
  --muted: #a7b8aa;
  --neon: #39ff14;
  --neon-soft: rgba(57, 255, 20, 0.18);
  --line: rgba(57, 255, 20, 0.28);
  --shadow: 0 0 35px rgba(57, 255, 20, 0.22);
  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(57,255,20,0.16), transparent 34rem),
    radial-gradient(circle at 80% 20%, rgba(57,255,20,0.08), transparent 26rem),
    linear-gradient(180deg, #020402 0%, var(--bg) 45%, #020402 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--neon);
  text-decoration: none;
}

a:hover {
  text-shadow: 0 0 14px rgba(57,255,20,0.8);
}

.site-wrap {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(2, 4, 2, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(57,255,20,0.25), rgba(57,255,20,0.03));
  box-shadow: var(--shadow);
  color: var(--neon);
}

.menu {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu a {
  color: var(--muted);
  font-size: .95rem;
  padding: .45rem .75rem;
  border-radius: 999px;
}

.menu a:hover {
  color: var(--text);
  background: var(--neon-soft);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 7rem 1.25rem 5rem;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  color: var(--neon);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.9rem);
  line-height: .92;
  letter-spacing: -0.075em;
  margin: 0;
}

.glow {
  color: var(--neon);
  text-shadow: 0 0 22px rgba(57,255,20,0.62);
}

.hero p {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin: 1.5rem 0 0;
}

.hero-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(14,24,16,.92), rgba(3,7,4,.82));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card:before {
  content: "";
  position: absolute;
  inset: -35%;
  background: conic-gradient(from 90deg, transparent, rgba(57,255,20,0.18), transparent);
  animation: spin 12s linear infinite;
}

.hero-card-inner {
  position: relative;
  background: rgba(3, 7, 4, .72);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 22px;
  padding: 1.25rem;
}

.stat {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(57,255,20,.18);
}

.stat:last-child { border-bottom: 0; }

.stat strong {
  display: block;
  font-size: 1.6rem;
  color: var(--neon);
}

.stat span {
  color: var(--muted);
  font-size: .95rem;
}

.actions {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button,
.wp-block-button__link,
input[type="submit"],
button {
  border: 1px solid var(--neon);
  border-radius: 999px;
  background: var(--neon);
  color: #020402;
  padding: .85rem 1.15rem;
  font-weight: 800;
  box-shadow: 0 0 22px rgba(57,255,20,0.28);
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--neon);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.055em;
  margin: 0 0 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.card,
.post-card,
article,
.wp-block-group {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  padding: 1.25rem;
  box-shadow: 0 18px 65px rgba(0,0,0,.32);
}

.card h3,
.post-card h2 {
  margin-top: 0;
}

.card p,
.post-card p,
.entry-content {
  color: var(--muted);
}

.content {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.entry-title {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: .95;
  letter-spacing: -0.065em;
  margin: 0 0 1.5rem;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
}

input, textarea, select {
  width: 100%;
  background: #060a07;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .8rem 1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  color: var(--muted);
  background: rgba(0,0,0,.35);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 4.5rem;
  }

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

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

  .menu {
    justify-content: flex-start;
  }
}
