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

/* ─── Dark grid background (keep exactly as-is) ─────────────────────────── */
.dark-graph {
  min-height: 100vh;
  background-color: #0b0d0e;
  background-image:
    linear-gradient(to right,  rgba(0, 200, 120, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 200, 120, 0.03) 1px, transparent 1px),
    linear-gradient(to right,  rgba(0, 200, 120, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 200, 120, 0.06) 1px, transparent 1px),
    radial-gradient(700px 700px at 6% 8%, rgba(0, 160, 110, 0.08), rgba(0,0,0,0) 35%),
    linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.25));
  background-size:
    48px 48px,
    48px 48px,
    240px 240px,
    240px 240px,
    cover,
    cover;
  background-repeat: repeat, repeat, repeat, repeat, no-repeat, no-repeat;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  color: #e6f7ea;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Gradient helpers ───────────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(90deg, #00ff7f, #7fff00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.gradient-icon {
  background: linear-gradient(90deg, #00ff7f, #7fff00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ─── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0px;
}

.nav-logo {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-icon {
  width: 52px;
  height: 52px;
}

.nav-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: #00ff88;
  text-decoration: none;
  border: 1px solid rgba(0, 255, 136, 0.3);
  padding: 8px 20px;
  border-radius: 999px;
  transition: background 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  background: rgba(0, 255, 136, 0.08);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.2);
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 100px 48px 80px;
  max-width: 820px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00cc66;
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #9bbfa8;
  max-width: 560px;
  margin: 0 auto 40px;
}

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

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #00ff7f, #7fff00);
  color: #0b0d0e;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 24px rgba(0, 255, 120, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 255, 120, 0.5);
}

/* ─── Features ───────────────────────────────────────────────────────────── */
.features {
  padding: 80px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: radial-gradient(circle, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 136, 0.35);
  box-shadow:
    0 0 12px rgba(0, 255, 136, 0.15),
    0 0 28px rgba(0, 255, 136, 0.08);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #7da88a;
}

/* ─── Download CTA section ───────────────────────────────────────────────── */
.download-section {
  text-align: center;
  padding: 100px 48px;
  border-top: 1px solid rgba(0, 255, 136, 0.06);
}

.download-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.download-sub {
  font-size: 1.1rem;
  color: #7da88a;
  margin-bottom: 36px;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 28px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: #4a6654;
}

.footer-sep { opacity: 0.4; }

.footer-link {
  color: #4a6654;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover { color: #00ff88; }

.footer-note { opacity: 0.6; }

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

@media (max-width: 600px) {
  .navbar { padding: 16px 24px; justify-content: center; }
  .nav-cta { display: none; }
  .hero { padding: 64px 24px 56px; }
  .hero-headline { font-size: 2.4rem; }
  .hero-sub { font-size: 1rem; }
  .features { padding: 56px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .download-section { padding: 64px 24px; }
  .footer { padding: 24px; text-align: center; }
}

/* ─── Nav links (extends existing .navbar) ───────────────────────────────── */
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 500;
  color: #5a8468;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-link:hover { color: #00ff88; }

/* ─── Terminal Hero ──────────────────────────────────────────────────────── */
.terminal-hero {
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: calc(100vh - 73px);
}

.terminal-window {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: calc(100vh - 180px);
  display: flex;
  flex-direction: column;
  background: #060708;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 136, 0.1);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.5),
    0 24px 64px rgba(0,0,0,0.7),
    0 0 60px rgba(0, 255, 100, 0.05);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  overflow: hidden;
  cursor: text;
}

.terminal-window::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.012) 3px,
    rgba(0,0,0,0.012) 4px
  );
  pointer-events: none;
  border-radius: 12px;
  z-index: 5;
}

.terminal-bar {
  display: flex;
  align-items: center;
  padding: 11px 16px;
  background: #0e1012;
  border-bottom: 1px solid rgba(0, 255, 136, 0.06);
}

.terminal-dots {
  display: flex;
  gap: 6px;
  margin-right: 10px;
}

.tdot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tdot-r { background: #ff5f57; }
.tdot-y { background: #febc2e; }
.tdot-g { background: #28c840; }

.terminal-bar-title {
  font-size: 0.72rem;
  color: #3a5444;
  flex: 1;
  text-align: center;
  margin-right: 58px;
  letter-spacing: 0.06em;
}

.terminal-body {
  padding: 18px 22px 6px;
  flex: 1;
  overflow-y: auto;
  font-size: 0.855rem;
  line-height: 1.65;
  color: #00e872;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,255,100,0.12) transparent;
}

.terminal-body::-webkit-scrollbar { width: 4px; }
.terminal-body::-webkit-scrollbar-track { background: transparent; }
.terminal-body::-webkit-scrollbar-thumb { background: rgba(0,255,100,0.18); border-radius: 2px; }

.t-line {
  display: block;
  min-height: 1.4em;
  white-space: pre-wrap;
  word-break: break-word;
  animation: tLine 0.12s ease;
}

@keyframes tLine {
  from { opacity: 0; transform: translateX(-3px); }
  to   { opacity: 1; transform: translateX(0); }
}

.t-ok  { color: #00ff88; }
.t-dim { color: #2e5238; }
.t-hl  { color: #ffffff; font-weight: 700; }
.t-key { color: #7fff00; }
.t-dir { color: #5599ff; font-weight: 600; }
.t-cmd { color: #e0ffe8; }
.t-err { color: #ff5555; }
.t-hr  { color: #162b1e; }

.terminal-input-row {
  display: flex;
  align-items: center;
  padding: 2px 22px 18px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.855rem;
}

.t-prompt {
  color: #00e872;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}

.t-input {
  background: transparent;
  border: none;
  outline: none;
  color: #00ff88;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.855rem;
  flex: 1;
  width: 100%;
  caret-color: #00ff88;
}

.terminal-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #1e3828;
  letter-spacing: 0.06em;
}

/* ─── Page sections ──────────────────────────────────────────────────────── */
.page-section {
  padding: 90px 48px;
  border-top: 1px solid rgba(0, 255, 136, 0.04);
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 44px;
  letter-spacing: -0.5px;
}

.fn-paren {
  color: #1e3828;
  font-weight: 400;
}

/* ─── About ──────────────────────────────────────────────────────────────── */
.about-body {
  max-width: 960px;
}

.about-body p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #8ab49a;
  margin-bottom: 18px;
}

.hl { color: #00ff88; font-weight: 700; text-decoration: none; }
a.hl:hover { text-decoration: underline; }

/* ─── Skills ─────────────────────────────────────────────────────────────── */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.83rem;
  font-weight: 500;
  padding: 8px 18px;
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: 6px;
  color: #00bb5c;
  background: rgba(0, 255, 100, 0.03);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s;
  cursor: default;
}

.skill-tag:hover {
  border-color: rgba(0, 255, 136, 0.45);
  background: rgba(0, 255, 100, 0.08);
  box-shadow: 0 0 10px rgba(0, 255, 100, 0.08);
  color: #00ff88;
}

/* ─── Projects ───────────────────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.proj-card {
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 14px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.proj-card:hover {
  border-color: rgba(0, 255, 136, 0.28);
  box-shadow: 0 0 28px rgba(0, 255, 100, 0.07);
  transform: translateY(-4px);
}

.proj-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.proj-folder {
  font-size: 1.45rem;
  color: #00bb5c;
  opacity: 0.7;
}

.proj-icons { display: flex; gap: 14px; }

.proj-icon-link {
  color: #3a5444;
  font-size: 1.05rem;
  text-decoration: none;
  transition: color 0.2s;
}

.proj-icon-link:hover { color: #00ff88; }

.proj-icon-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.proj-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #dff5e6;
}

.proj-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #6a9878;
  flex: 1;
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.proj-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #00aa55;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(0, 200, 100, 0.07);
  border: 1px solid rgba(0, 200, 100, 0.14);
}

/* ─── Contact ────────────────────────────────────────────────────────────── */
.contact-section .section-heading { text-align: center; }

.contact-sub {
  font-size: 1rem;
  color: #6a9878;
  margin-bottom: 36px;
  text-align: center;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #6a9878;
  text-decoration: none;
  padding: 14px 28px;
  border: 1px solid rgba(0, 255, 136, 0.09);
  border-radius: 10px;
  width: 300px;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.contact-link:hover {
  color: #00ff88;
  border-color: rgba(0, 255, 136, 0.38);
  box-shadow: 0 0 18px rgba(0, 255, 100, 0.09);
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .terminal-hero { display: none; }
  .nav-resume { display: none; }
  .terminal-body { font-size: 0.78rem; }
  .terminal-input-row { font-size: 0.78rem; }
  .t-input { font-size: 0.78rem; }
  .page-section { padding: 60px 20px; }
  .projects-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .contact-link { width: 100%; max-width: 300px; }
}
