:root {
  --bg-void: #03050c;
  --bg-panel: #060a16;
  --cyan: #22d3ee;
  --cyan-bright: #67e8f9;
  --cyan-glow: rgba(34,211,238,0.55);
  --emerald: #34d399;
  --emerald-bright: #6ee7b7;
  --emerald-glow: rgba(52,211,153,0.4);
  --white: #f8fafc;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* Light panel */
  --card-bg: rgba(255,255,255,0.04);
  --card-blur: none;
  --card-text: #f1f5f9;
  --card-muted: #94a3b8;
  --card-border: rgba(255,255,255,0.12);
  --card-input-bg: rgba(255,255,255,0.07);
  --card-input-border: rgba(255,255,255,0.1);
  --card-input-focus: rgba(34,211,238,0.6);
  --btn-bg: linear-gradient(135deg, #34d399, #059669);
  --btn-text: #ffffff;
  --btn-hover-bg: linear-gradient(135deg, #6ee7b7, #34d399);
  --btn-glow: rgba(52,211,153,0.5);
  --card-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

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

html, body {
  height: 100%;
  background: var(--bg-void) url('/desktop_bg.png') no-repeat center center fixed;
  background-size: cover;
  color: var(--slate-400);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* ── AMBIENT GLOW ── */
.ambient-glow {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(95vw, 1300px); height: 85vh;
  background: radial-gradient(ellipse at center, rgba(34,211,238,0.028) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.03); }
}

/* ── CANVAS PARTICLES ── */
canvas#particles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

/* ── DEPTH LAYERS ── */
.bg-depth {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.bg-depth::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 45% at 22% 35%, rgba(34,211,238,0.045) 0%, transparent 68%),
    radial-gradient(ellipse 45% 35% at 78% 62%, rgba(52,211,153,0.035) 0%, transparent 62%),
    radial-gradient(ellipse 100% 90% at 50% 50%, rgba(6,10,22,0.6) 0%, rgba(3,5,12,0.85) 100%);
}
.bg-depth::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(34,211,238,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ── SCANLINES ── */
.scanlines {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.028) 2px, rgba(0,0,0,0.028) 4px);
}

/* ── TERMINAL WINDOW ── */
.terminal-window {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; flex-direction: column;
  max-width: 1300px; margin: 0 auto;
  padding: clamp(1rem, 3vw, 3rem) clamp(1rem, 3vw, 3rem) 1.5rem;
}
.terminal-window:focus-visible { outline: none; }

/* ── CHROME ── */
.window-chrome {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 1.25rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.08));
  border: 1px solid rgba(34,211,238,0.25);
  border-bottom: 1px solid rgba(0,0,0,0.4);
  border-radius: 14px 14px 0 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.15), 0 -5px 20px rgba(0,0,0,0.3);
}
.chrome-dots { display: flex; gap: 0.5rem; }
.chrome-dot {
  width: 11px; height: 11px; border-radius: 50%;
  transition: box-shadow 0.3s;
}
.chrome-dot:nth-child(1) { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,0.3); }
.chrome-dot:nth-child(2) { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.3); }
.chrome-dot:nth-child(3) { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.3); }
.chrome-title {
  flex: 1; text-align: center;
  font-family: var(--mono); font-size: 0.66rem;
  color: var(--slate-500); letter-spacing: 0.07em;
}

/* ── TAB BAR ── */
.tab-bar {
  display: flex; gap: 0.3rem;
  padding: 0.4rem 1.25rem 0;
  background: rgba(255,255,255,0.04);
  border-left: 1px solid rgba(34,211,238,0.25);
  border-right: 1px solid rgba(34,211,238,0.25);
  border-bottom: 1px solid rgba(34,211,238,0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.tab {
  padding: 0.5rem 1.4rem;
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--slate-400); text-decoration: none;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.05);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  margin-bottom: -1px;
  position: relative; z-index: 1;
  transition: all 0.2s var(--ease);
}
.tab:hover {
  color: var(--white);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}
.tab.active {
  color: var(--cyan);
  background: rgba(255,255,255,0.09);
  border-color: rgba(34,211,238,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.09);
  z-index: 2;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.05);
}

/* ── BODY ── */
.terminal-body {
  flex: 1; display: flex;
  background: linear-gradient(175deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(34,211,238,0.25);
  border-top: none;
  border-radius: 0;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: inset 0 -1px 2px rgba(255,255,255,0.05), inset 0 2px 15px rgba(0,0,0,0.5), 0 20px 50px rgba(0,0,0,0.7), 0 0 20px rgba(34,211,238,0.1);
  min-height: 74vh;
  position: relative;
  overflow: hidden;
}
.terminal-body::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.014) 0%, transparent 25%, transparent 78%, rgba(34,211,238,0.01) 100%);
}

/* General Layouts */
.terminal-output {
  flex: 1 1 54%;
  padding: clamp(2rem, 4.5vw, 4.5rem) clamp(1.5rem, 3.5vw, 3.5rem);
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid rgba(34,211,238,0.04);
  position: relative; z-index: 1;
}

/* Line numbers */
.output-ln {
  position: absolute; left: clamp(0.5rem, 1.2vw, 1rem);
  top: clamp(2rem, 4.5vw, 4.5rem);
  bottom: clamp(2rem, 4.5vw, 4.5rem);
  width: 1.8rem;
  font-family: var(--mono); font-size: 0.6rem;
  color: var(--slate-700); text-align: right;
  line-height: 1.48; user-select: none; pointer-events: none;
}
.output-ln span { display: block; }
.output-ln span.hi { color: var(--slate-600); }

.output-content { margin-left: 1.4rem; }

.terminal-form-area {
  flex: 1 1 46%;
  padding: clamp(2rem, 4.5vw, 4.5rem) clamp(1.5rem, 3.5vw, 3.5rem);
  display: flex; align-items: center;
  position: relative; z-index: 1;
}

.about-body, .privacy-body, .container, .thank-you {
  padding: clamp(2rem, 4.5vw, 4.5rem) clamp(1.5rem, 3.5vw, 3.5rem);
  max-width: 900px; margin: 0 auto;
  position: relative; z-index: 1;
  width: 100%;
}

.blog-container {
  max-width: 800px; margin: 0 auto;
  width: 100%;
  padding: clamp(2rem, 4.5vw, 4.5rem) clamp(1.5rem, 3.5vw, 3.5rem);
}

/* Prompt */
.prompt-line {
  display: flex; align-items: center; gap: 0.3rem;
  margin-bottom: clamp(2rem, 4vw, 4rem);
  font-family: var(--mono); font-size: clamp(0.72rem, 1vw, 0.9rem);
  opacity: 0;
  animation: appear 0.5s var(--ease) 0.25s forwards;
}
.prompt-sign { color: var(--emerald); font-weight: 500; }
.prompt-cmd { color: var(--white); }
.prompt-cursor-line {
  display: inline-block; width: 8px; height: 1.15em;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Title */
.output-title {
  margin-bottom: clamp(2rem, 3.5vw, 3.5rem);
  opacity: 0;
  animation: appear 0.7s var(--ease) 2.1s forwards;
}
.output-title .word {
  display: block;
  font-family: var(--mono);
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  font-weight: 800;
  line-height: 0.93;
  letter-spacing: -0.05em;
}
.word-cyan  { color: var(--cyan);   text-shadow: 0 0 70px var(--cyan-glow), 0 0 140px rgba(34,211,238,0.18); }
.word-white { color: var(--white);  text-shadow: 0 0 50px rgba(248,250,252,0.22); }
.word-green { color: var(--emerald); text-shadow: 0 0 70px var(--emerald-glow), 0 0 140px rgba(52,211,153,0.18); }

/* Description */
.output-desc {
  display: flex; flex-direction: column; gap: 0.1rem;
  margin-bottom: clamp(2rem, 3vw, 3rem);
  opacity: 0;
  animation: appear 0.6s var(--ease) 2.6s forwards;
}
.desc-line {
  font-family: var(--sans);
  font-size: clamp(0.88rem, 1.15vw, 1.04rem);
  line-height: 1.75;
  color: var(--slate-400);
}
.desc-line strong { color: var(--white); font-weight: 600; }
.desc-line .c { color: var(--cyan); font-weight: 600; }
.desc-line .g { color: var(--emerald); font-weight: 600; }

.section-subhead {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.terminal-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 1.5rem 0;
  display: flex; flex-direction: column; gap: 0.8rem;
}
.terminal-list li {
  position: relative;
  padding-left: 1.5rem;
  font-family: var(--sans);
  font-size: clamp(0.88rem, 1.15vw, 1.04rem);
  line-height: 1.6;
  color: var(--slate-300);
}
.terminal-list li::before {
  content: '>';
  position: absolute; left: 0; top: 0;
  color: var(--cyan);
  font-family: var(--mono);
  font-weight: bold;
}

article ul, article ol {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 1.5rem 0;
  display: flex; flex-direction: column; gap: 0.8rem;
}
article ul li, article ol li {
  position: relative;
  padding-left: 1.5rem;
  font-family: var(--sans);
  font-size: clamp(0.88rem, 1.15vw, 1.04rem);
  line-height: 1.6;
  color: var(--slate-300);
}
article ul li::before {
  content: '>';
  position: absolute; left: 0; top: 0;
  color: var(--cyan);
  font-family: var(--mono);
  font-weight: bold;
}
article ol {
  counter-reset: article-counter;
}
article ol li::before {
  counter-increment: article-counter;
  content: counter(article-counter) '.';
  position: absolute; left: 0; top: 0;
  color: var(--cyan);
  font-family: var(--mono);
  font-weight: bold;
}

.output-divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, rgba(34,211,238,0.2), transparent 75%);
  margin-bottom: 1rem;
  opacity: 0;
  animation: appear 0.5s ease 3s forwards;
}

@keyframes appear { to { opacity: 1; } }

h1, h2, h3 {
  font-family: var(--sans);
  color: var(--white);
  font-weight: 700;
}
h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin: 2.5rem 0 1rem;
  color: var(--cyan);
}
p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--slate-300);
  margin-bottom: 1.2rem;
}
a {
  color: var(--cyan);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── FORM CARD ── */
.form-card {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: clamp(1.5rem, 2.5vw, 2.75rem);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  box-shadow: var(--card-shadow), inset 0 1px 0 rgba(255,255,255,0.1);
  color: var(--card-text);
  overflow: hidden;
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
  opacity: 0;
  animation: appear 0.6s var(--ease) 2.4s forwards;
  position: relative;
}
.form-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: 17px;
  background: linear-gradient(145deg, rgba(34,211,238,0.15), transparent 35%, transparent 72%, rgba(52,211,153,0.1));
  z-index: -1;
  transition: opacity 0.5s var(--ease);
}
.form-card:hover {
  border-color: rgba(34,211,238,0.35);
  box-shadow: 0 12px 48px rgba(0,0,0,0.35), 0 0 0 1px rgba(34,211,238,0.08);
}
.form-card:hover::before { opacity: 1.6; }

/* Glass shimmer — on hover */
.form-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(180,230,255,0.0) 35%,
    rgba(255,255,255,0.4) 50%,
    rgba(180,230,255,0.0) 65%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
  transform: translateX(0);
}
.form-card:hover::after {
  transform: translateX(200%);
}

.form-label {
  display: flex; align-items: center; gap: 0.35rem;
  font-family: var(--mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 0.4rem; margin-top: 1.4rem;
  color: var(--card-muted);
}
.form-label:first-of-type { margin-top: 0; }
.form-label .dollar { color: var(--emerald); font-weight: 600; }
.form-label .cmd   { color: var(--card-text); font-weight: 600; }

.form-input, .form-textarea {
  width: 100%;
  background: var(--card-input-bg);
  border: 1px solid var(--card-input-border);
  border-radius: 8px;
  padding: 0.9rem 1.05rem;
  color: var(--card-text);
  font-family: var(--mono); font-size: 0.85rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s, transform 0.15s;
}
.form-input::placeholder, .form-textarea::placeholder {
  color: rgba(148,163,184,0.5); font-style: italic;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--card-input-focus);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.15), 0 0 20px rgba(34,211,238,0.08);
  background: rgba(255,255,255,0.12);
  transform: scale(1.005);
}
.form-textarea { resize: vertical; min-height: 110px; }

.form-submit {
  width: 100%; margin-top: 1.8rem;
  padding: 1.05rem 1.5rem;
  background: var(--btn-bg);
  border: none;
  border-radius: 8px;
  color: var(--btn-text);
  font-family: var(--mono); font-size: 0.92rem;
  font-weight: 700; letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  position: relative;
  box-shadow: 0 4px 20px var(--btn-glow);
}
.form-submit:hover {
  background: var(--btn-hover-bg);
  box-shadow: 0 6px 32px var(--btn-glow), 0 0 0 3px rgba(52,211,153,0.15);
  transform: translateY(-2px);
}
.form-submit:active { transform: translateY(1px) scale(0.99); }
.form-submit::after { content: ' ↵'; opacity: 0.7; }

.form-phone {
  text-align: center; margin-top: 1.35rem;
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--card-muted);
}
.form-phone span { color: var(--card-text); font-weight: 600; }

/* ── FOOTER ── */
.terminal-footer {
  display: flex; justify-content: center; align-items: center; gap: 0.6rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(175deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(34,211,238,0.25);
  border-top: 1px solid rgba(0,0,0,0.4);
  border-radius: 0 0 14px 14px;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: inset 0 -1px 2px rgba(255,255,255,0.05), 0 10px 30px rgba(0,0,0,0.5);
  margin-top: -1px; /* overlap the terminal-body bottom border */
  z-index: 2; position: relative;
}
.terminal-footer a {
  font-family: var(--mono); font-size: 0.66rem;
  color: var(--slate-500); text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
}
.terminal-footer a:hover { color: var(--cyan); text-shadow: 0 0 12px rgba(34,211,238,0.3); text-decoration: none; }
.terminal-footer .sep { color: var(--slate-700); font-family: var(--mono); font-size: 0.66rem; }
.terminal-footer .nd-link { color: var(--slate-400); letter-spacing: 0.06em; }
.terminal-footer .brace { color: var(--cyan); }

/* Thank You Specific */
.check {
  font-size: 3.5rem; margin-bottom: 1.5rem; color: var(--emerald); text-shadow: 0 0 30px var(--emerald-glow);
}
.thank-you h1 { font-family: var(--mono); font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1rem;}
.thank-you h1 .c { color: var(--cyan); }
.back-link {
  display: inline-block; margin-top: 2rem; padding: 0.8rem 1.8rem;
  font-family: var(--mono); font-size: 0.85rem; color: var(--cyan);
  border: 1px solid rgba(34,211,238,0.3); border-radius: 8px; transition: all 0.3s;
}
.back-link:hover { background: rgba(34,211,238,0.1); text-decoration: none;}

/* Blog Specific */
article { max-width: 760px; margin: 0 auto; }
pre { background: rgba(0,0,0,0.4); border: 1px solid rgba(34,211,238,0.15); border-radius: 8px; padding: 1.25rem; overflow-x: auto; margin-bottom: 1.5rem; }
code { font-family: var(--mono); font-size: 0.85rem; color: var(--cyan-bright); }
pre code { color: var(--slate-300); }
.site-header { margin-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 1.5rem; }
.site-header a { font-family: var(--mono); font-size: 0.8rem; color: var(--cyan); }
.page-title { font-family: var(--mono); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.page-title .c { color: var(--cyan); }
.intro { font-size: 1.05rem; line-height: 1.7; color: var(--slate-300); margin-bottom: 3rem; }
.post-item { border-bottom: 1px solid rgba(255,255,255,0.04); padding: 1.5rem 0; }
.post-item:first-child { padding-top: 0; }
.post-meta { font-family: var(--mono); font-size: 0.8rem; color: var(--slate-500); margin-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 1rem; }
.post-date { font-family: var(--mono); font-size: 0.75rem; color: var(--slate-500); margin-bottom: 0.4rem; }
.post-title { font-family: var(--mono); font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }
.post-title a { color: var(--white); }
.post-title a:hover { color: var(--cyan); text-decoration: none;}
.post-excerpt { font-size: 0.95rem; line-height: 1.6; color: var(--slate-400); }
.empty-state { text-align: center; padding: 4rem 0; font-family: var(--mono); color: var(--slate-500); }
.blog-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.04); font-family: var(--mono); font-size: 0.7rem; color: var(--slate-500); text-align: center; }
.blog-footer a { color: var(--slate-400); }

/* About page specifics */
.stack-tags {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-top: 1rem;
}
.stack-tag {
  font-family: var(--mono); font-size: 0.75rem;
  padding: 0.35rem 0.8rem;
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: 6px;
  color: var(--cyan);
  transition: all 0.3s;
}
.stack-tag:hover {
  background: rgba(34,211,238,0.15);
  box-shadow: 0 0 12px rgba(34,211,238,0.15);
}

/* Privacy and About page specifics */
.privacy-divider, .about-divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, rgba(34,211,238,0.15), transparent 60%);
  margin: 2rem 0;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .ambient-glow { animation: none; }
  .prompt-cursor-line { animation: none; opacity: 1; }
  .output-title, .output-desc, .output-divider, .form-card, .terminal-footer {
    animation: none; opacity: 1;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 920px) {
  .terminal-body { flex-direction: column; min-height: auto; }
  .terminal-output {
    border-right: none;
    border-bottom: 1px solid rgba(34,211,238,0.04);
  }
  .output-ln { left: 0.3rem; }
}
@media (max-width: 520px) {
  .terminal-window { padding: 0.6rem 0.6rem 0.4rem; }
  .window-chrome { padding: 0.5rem 0.7rem; border-radius: 10px 10px 0 0; }
  .chrome-dot { width: 8px; height: 8px; }
  .chrome-title { font-size: 0.52rem; }
  .terminal-body { border-radius: 0; }
  .terminal-footer { border-radius: 0 0 10px 10px; }
  .output-ln { display: none; }
  .output-content { margin-left: 0; }
  .form-card { border-radius: 12px; }
  .output-title .word { font-size: 1.45rem; }
  .prompt-line { margin-bottom: 1.5rem; }
}
