/* ===== Tema: negru + portocaliu ===== */
:root {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --surface: #171717;
  --border: #262626;
  --text: #ededed;
  --muted: #9a9a9a;
  --accent: #ff7a1a;
  --accent-strong: #ff5f00;
  --accent-soft: rgba(255, 122, 26, 0.12);
  --radius: 12px;
  --max: 1100px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #000; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 32px; } }

.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.muted { color: var(--muted); }

/* ===== Butoane ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 600;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255, 95, 0, .25); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent); }
.btn--small { padding: 8px 16px; font-size: .9rem; }

/* ===== Navigație ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--mono); font-weight: 600; font-size: 1.2rem; }
.logo__bracket { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { color: var(--muted); font-size: .95rem; transition: color .15s; }
.nav__links a:not(.btn):hover { color: var(--accent); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--text); transition: .2s; }

@media (max-width: 720px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 18px; padding: 24px 16px;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav__links.open { display: flex; }
}

/* ===== Hero ===== */
.hero { position: relative; min-height: calc(100vh - 64px); display: flex; align-items: center; overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 10%, transparent 70%);
  opacity: .6;
}
.hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: 10%;
  background: radial-gradient(circle, rgba(255, 122, 26, .28), transparent 65%);
  filter: blur(20px); pointer-events: none;
}
.hero__content { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 48px; }
.eyebrow { color: var(--accent); margin: 0 0 12px; font-size: .95rem; }
.hero__title { font-size: clamp(2.6rem, 8vw, 5rem); line-height: 1.05; margin: 0 0 20px; font-weight: 700; letter-spacing: -0.02em; }
.hero__subtitle { max-width: 620px; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); margin: 0 0 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Secțiuni ===== */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__title { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 40px; display: flex; align-items: center; gap: 12px; }
.section__title::after { content: ""; flex: 1; max-width: 260px; height: 1px; background: var(--border); }
.section__title--center { justify-content: center; }
.section__title--center::after { display: none; }

/* ===== Despre ===== */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.about__text p { margin: 0 0 16px; color: #cfcfcf; }
.about__text strong { color: var(--accent); }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

.terminal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.terminal__bar { display: flex; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.terminal__bar span { width: 11px; height: 11px; border-radius: 50%; background: #333; }
.terminal__bar span:first-child { background: var(--accent); }
.terminal pre { margin: 0; padding: 18px 20px; font-size: .9rem; line-height: 1.7; color: #d4d4d4; overflow-x: auto; }
.cursor { color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ===== Proiecte ===== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter {
  font-family: var(--mono); font-size: .85rem;
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); border: 1px solid var(--border);
  transition: .15s;
}
.filter:hover { color: var(--accent); border-color: var(--accent); }
.filter.active { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
@media (max-width: 400px) { .projects { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  position: relative;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 40px rgba(255, 95, 0, .12); }
.card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card__icon { font-size: 1.8rem; line-height: 1; }
.card__status { font-family: var(--mono); font-size: .75rem; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.card__title { font-size: 1.2rem; margin: 0 0 10px; }
.card__desc { color: var(--muted); margin: 0 0 20px; flex: 1; font-size: .95rem; }
.card__links { display: flex; gap: 16px; margin-top: 18px; }
.card__links a { font-family: var(--mono); font-size: .85rem; color: var(--accent); }
.card__links a:hover { text-decoration: underline; }
.card--placeholder { border-style: dashed; align-items: center; justify-content: center; text-align: center; min-height: 220px; }
.card--placeholder:hover { transform: none; box-shadow: none; }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--mono); font-size: .78rem; padding: 4px 10px; border-radius: 6px; background: #1f1f1f; color: #cfcfcf; border: 1px solid var(--border); }

/* ===== Competențe ===== */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.skill-group { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 24px; }
.skill-group h3 { margin: 0 0 16px; font-size: 1.05rem; }

/* ===== Contact ===== */
.contact { text-align: center; }
.contact__text { max-width: 540px; margin: 0 auto 32px; color: var(--muted); font-size: 1.1rem; }
.contact__links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ===== Footer ===== */
.footer { padding: 32px 0; text-align: center; border-top: 1px solid var(--border); }
.footer p { margin: 0; color: var(--muted); font-size: .8rem; }

/* ===== Animație la scroll ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor { animation: none; }
}
