@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Bebas+Neue&family=Space+Mono:wght@400;700&display=swap');

:root {
  --orange:     #E8701A;
  --orange-hot: #FF6020;
  --orange-dim: rgba(232,112,26,0.15);
  --orange-mid: rgba(232,112,26,0.4);
  --bg:         #080808;
  --bg-card:    rgba(12,12,12,0.95);
  --line:       rgba(255,255,255,0.04);
  --text:       rgba(255,255,255,0.75);
  --text-dim:   rgba(255,255,255,0.25);
  --text-faint: rgba(255,255,255,0.08);
}

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

html, body {
  height: 100%;
  background-color: var(--bg);
  background-image: repeating-linear-gradient(
    23.5deg,
    transparent,
    transparent 5px,
    rgba(255,255,255,0.025) 5px,
    rgba(255,255,255,0.025) 6px
  );
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ── SCANLINE OVERLAY ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 999;
}

/* ── HEADER ── */
header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 40px 24px;
  border-bottom: 1px solid rgba(232,112,26,0.2);
  position: relative;
}

header::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--orange), transparent 60%);
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  letter-spacing: 6px;
  line-height: 1;
  color: #fff;
}
.logo span { color: var(--orange); }

.header-meta {
  text-align: right;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--text-dim);
  line-height: 2.2;
  margin-top: 4px;
}

.live-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  animation: pulse 2s ease-in-out infinite;
  margin-right: 6px;
  vertical-align: middle;
}

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

/* ── NAV BAR ── */
nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 40px;
}

nav a {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 14px 20px;
  border-right: 1px solid var(--line);
  transition: color 0.2s, background 0.2s;
  position: relative;
}

nav a:first-child { border-left: 1px solid var(--line); }

nav a:hover, nav a.active {
  color: var(--orange);
  background: var(--orange-dim);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
}

/* ── HERO ── */
.hero {
  padding: 80px 40px 60px;
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::before {
  content: 'TB';
  position: absolute;
  right: -20px; top: -40px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 340px;
  color: rgba(232,112,26,0.04);
  letter-spacing: -10px;
  pointer-events: none;
  line-height: 1;
}

.hero-label {
  font-size: 9px;
  letter-spacing: 5px;
  color: var(--orange);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 8vw, 96px);
  letter-spacing: 4px;
  line-height: 0.95;
  color: #fff;
  margin-bottom: 28px;
  max-width: 800px;
}

.hero h1 em {
  color: var(--orange);
  font-style: normal;
}

.hero p {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-dim);
  max-width: 540px;
  line-height: 2.2;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 3px;
  padding: 13px 28px;
  border: 1px solid var(--orange);
  color: var(--orange);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform: translateX(-100%);
  transition: transform 0.2s;
  z-index: -1;
}

.btn:hover { color: #000; }
.btn:hover::before { transform: translateX(0); }

.btn-ghost {
  border-color: rgba(255,255,255,0.15);
  color: var(--text-dim);
}
.btn-ghost:hover { color: #fff; border-color: #fff; }
.btn-ghost::before { background: rgba(255,255,255,0.08); }
.btn-ghost:hover { color: #fff; }

/* ── STATUS BAR ── */
.status-bar {
  display: flex;
  gap: 32px;
  padding: 16px 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(232,112,26,0.03);
  flex-wrap: wrap;
}

.status-item {
  font-size: 8px;
  letter-spacing: 2.5px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-item .val {
  color: var(--orange);
  font-size: 10px;
}

.status-ok::before {
  content: '◆';
  color: #4CAF50;
  font-size: 7px;
}

/* ── MAIN GRID ── */
.main {
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.card {
  background: var(--bg-card);
  padding: 28px 28px 32px;
  position: relative;
  transition: background 0.2s;
}

.card:hover { background: rgba(20,20,20,0.98); }

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--orange);
  transition: height 0.3s;
}

.card:hover::before { height: 100%; }

.card-tag {
  font-size: 7px;
  letter-spacing: 4px;
  color: var(--orange);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-tag::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--orange-dim);
}

.card h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.1;
}

.card p {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  line-height: 2.2;
}

.card-number {
  position: absolute;
  top: 24px; right: 24px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  color: var(--text-faint);
  line-height: 1;
}

/* ── SECTION LABEL ── */
.section-label {
  font-size: 8px;
  letter-spacing: 5px;
  color: var(--text-dim);
  padding: 20px 40px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ── WIDE CARD ── */
.main-wide {
  padding: 0 40px 0;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.wide-card {
  background: var(--bg-card);
  padding: 36px 36px 40px;
}

.wide-card h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 3px;
  color: #fff;
  margin-bottom: 16px;
}

.wide-card h2 span { color: var(--orange); }

/* ── TERMINAL BLOCK ── */
.terminal {
  background: #050505;
  border: 1px solid rgba(232,112,26,0.2);
  padding: 20px 24px;
  margin-top: 20px;
  position: relative;
}

.terminal::before {
  content: '● ● ●';
  font-size: 8px;
  color: rgba(255,255,255,0.15);
  letter-spacing: 4px;
  display: block;
  margin-bottom: 14px;
}

.terminal code {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--orange);
  display: block;
  line-height: 2;
}

.terminal code .dim { color: var(--text-dim); }
.terminal code .ok  { color: #4CAF50; }

/* ── SIDE PANEL ── */
.side-panel {
  background: rgba(232,112,26,0.03);
  border-left: 1px solid rgba(232,112,26,0.12);
  padding: 28px;
}

.side-panel .sp-label {
  font-size: 7px;
  letter-spacing: 4px;
  color: var(--orange);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--orange-dim);
}

.sp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 1.5px;
}

.sp-row .sp-key { color: var(--text-dim); }
.sp-row .sp-val { color: #fff; }
.sp-row .sp-val.ok { color: #4CAF50; }
.sp-row .sp-val.orange { color: var(--orange); }

/* ── FOOTER ── */
footer {
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 12px;
}

footer .f-left {
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--text-faint);
}

footer .f-right {
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--text-faint);
  display: flex;
  gap: 24px;
}

footer .f-right a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

footer .f-right a:hover { color: var(--orange); }

/* ── FADE IN ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-label  { animation: fadeUp 0.5s ease both; }
.hero h1     { animation: fadeUp 0.5s 0.1s ease both; }
.hero p      { animation: fadeUp 0.5s 0.2s ease both; }
.hero-actions{ animation: fadeUp 0.5s 0.3s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .main { grid-template-columns: 1fr 1fr; }
  .main-wide { grid-template-columns: 1fr; }
  header { flex-direction: column; gap: 12px; }
  .hero { padding: 48px 24px 40px; }
  .main, .status-bar, nav { padding-left: 24px; padding-right: 24px; }
  .section-label, .main-wide, footer { padding-left: 24px; padding-right: 24px; }
}

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

/* Projects page grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.project-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--bg-card);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.03);
  transition: transform 0.12s, box-shadow 0.12s;
}
.project-tile:hover { transform: translateY(-6px); box-shadow: 0 8px 30px rgba(0,0,0,0.6); }
.pt-num{font-family:'Bebas Neue',sans-serif;font-size:28px;color:var(--text-faint)}
.pt-title{font-family:'Bebas Neue',sans-serif;font-size:20px;color:#fff}
.pt-desc{font-size:12px;color:var(--text-dim)}

@media (max-width:900px){ .projects-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:600px){ .projects-grid{grid-template-columns:1fr;} }
