/* ─────────────────────────────────────────
   Ghjost_ — style.css
   ───────────────────────────────────────── */

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

:root {
  --bg: #0d0a07;
  --bg2: #120e09;
  --bg3: #1a1208;
  --border: rgba(253,126,20,0.14);
  --border-bright: rgba(253,126,20,0.38);
  --accent: #fd7e14;
  --accent2: #ff9a45;
  --accent-dim: rgba(253,126,20,0.08);
  --text: #f0e6d8;
  --text-muted: #7a587a;
  --text-dim: #a89880;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Syne', sans-serif;
  --glow: 0 0 40px rgba(253,126,20,0.15);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── SCANLINES overlay ─── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
  pointer-events: none;
  z-index: 9999;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(8,12,16,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo span { color: var(--text-muted); }

.nav-links {
  display: flex; gap: 2rem; list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.nav-cta {
  font-size: 0.75rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 3rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  z-index: -1;
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(253,126,20,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(253,126,20,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253,126,20,0.09) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 2rem; height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--sans);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-title .ghost {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.hero-title .ghost::after {
  content: '_';
  animation: blink 1.1s step-end infinite;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-title .sub {
  display: block;
  color: var(--text-muted);
  font-size: 0.45em;
  font-weight: 400;
  font-family: var(--mono);
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

.hero-desc {
  max-width: 520px;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-tags {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.tag {
  font-size: 0.7rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-dim);
  transition: border-color 0.2s, color 0.2s;
}

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

.hero-btns {
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}

.btn-primary {
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.8rem 2rem;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.2s, transform 0.15s;
  display: inline-block;
}

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

.btn-ghost {
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.8rem 2rem;
  border: 1px solid var(--border-bright);
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s;
  display: inline-block;
}

.btn-ghost:hover { background: var(--accent-dim); }

.hero-status {
  margin-top: 3rem;
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.status-dot-green {
  width: 6px; height: 6px; border-radius: 50%;
  background: #28c864;
  box-shadow: 0 0 8px #28c864;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

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

/* ─── SECTION BASE ─── */
section { padding: 6rem 3rem; }

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
}

.section-label::before {
  content: '//';
  opacity: 0.5;
}

.section-title {
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-title em {
  font-style: normal;
  color: var(--accent);
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ─── SERVICES ─── */
#services {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--bg2);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover { background: var(--bg3); }
.service-card:hover::before { transform: scaleX(1); }

.card-num {
  font-size: 0.65rem;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 1.25rem;
  letter-spacing: 0.1em;
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  display: block;
}

.card-title {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.card-stack {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}

.stack-tag {
  font-size: 0.62rem;
  padding: 0.2rem 0.5rem;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--border);
  letter-spacing: 0.06em;
}

/* ─── STACK ─── */
#stack { background: var(--bg); }

.stack-categories {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.stack-cat-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}

.stack-item {
  border: 1px solid var(--border);
  padding: 1.25rem 1rem;
  text-align: center;
  background: var(--accent-dim);
  transition: border-color 0.2s, transform 0.2s;
  cursor: default;
}

.stack-item:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.stack-item .icon { font-size: 1.5rem; margin-bottom: 0.5rem; display: block; }
.stack-item .name { font-size: 0.68rem; color: var(--text-dim); letter-spacing: 0.08em; }

/* ─── TERMINAL BIO ─── */
#about { background: var(--bg2); border-top: 1px solid var(--border); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.terminal {
  background: #0a0e14;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  overflow: hidden;
}

.terminal-bar {
  background: #0f161f;
  padding: 0.6rem 1rem;
  display: flex; align-items: center; gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.t-dot {
  width: 10px; height: 10px; border-radius: 50%;
}

.t-red    { background: #ff5f57; }
.t-yellow { background: #febc2e; }
.t-green  { background: #28c840; }

.terminal-body {
  padding: 1.5rem;
  line-height: 2;
}

.t-comment { color: #3d5166; }
.t-key     { color: var(--accent); }
.t-val     { color: #f8c878; }
.t-str     { color: #b0c4f0; }
.t-num     { color: #f07070; }
.t-prompt  { color: var(--text-muted); }

/* ─── CONTACT ─── */
#contact {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.contact-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex; align-items: flex-start; gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.contact-detail strong {
  color: var(--accent);
  min-width: 80px;
  display: inline-block;
}

.status-block {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(40,200,100,0.2);
  background: rgba(40,200,100,0.06);
}

.status-block-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #28c864;
  margin-bottom: 0.5rem;
}

.status-block-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-block-text {
  font-size: 0.8rem;
  color: #28c864;
}

form {
  display: flex; flex-direction: column; gap: 1rem;
}

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

.field {
  display: flex; flex-direction: column; gap: 0.4rem;
}

label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

input, textarea, select {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.82rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(253,126,20,0.08);
}

textarea { resize: vertical; min-height: 130px; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fd7e14' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

select option { background: var(--bg2); }

.form-submit {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}

.form-note {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.submit-btn {
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 0.85rem 2.5rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.2s, transform 0.15s;
}

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

.form-success {
  display: none;
  padding: 1.5rem;
  /* border: 1px solid var(--accent); */
  /* background: rgba(253,126,20,0.05); */
  font-size: 0.82rem;
  /* color: var(--accent); */
  color: #28c864;
  text-align: center;

  border: 1px solid rgba(40,200,100,0.2);
  background: rgba(40,200,100,0.06);
}

.form-error {
  display: none;
  padding: 1.5rem;
  border: 1px solid var(--accent);
  background: rgba(253, 20, 59, 0.05);
  font-size: 0.82rem;
  color: var(--accent);
  text-align: center;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
  flex-wrap: wrap; gap: 1rem;
  background: var(--bg2);
}

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

/* ─── ANIMATIONS ─── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
}

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

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  section { padding: 4rem 1.5rem; }
  #hero { padding: 7rem 1.5rem 3rem; }
  footer { padding: 1.5rem; }
}

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