/* ═══════════════════════════════════════════
   GOANTA MIHAI — CYBERSECURITY PORTFOLIO
   Dark industrial / terminal aesthetic
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

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

:root {
  --bg:       #0d0f14;
  --bg2:      #13161e;
  --bg3:      #1a1e29;
  --border:   #252a38;
  --red:      #e8412a;
  --red-dim:  rgba(232,65,42,0.15);
  --red-glow: rgba(232,65,42,0.08);
  --text:     #c8cdd8;
  --text-dim: #6b7385;
  --text-hi:  #eef0f5;
  --green:    #3ddc84;
  --blue:     #4a9eff;
  --yellow:   #f5c842;
  --mono:     'IBM Plex Mono', monospace;
  --sans:     'DM Sans', sans-serif;
  --display:  'Syne', sans-serif;
  --sidebar-w: 280px;
  --radius:   6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: #ff6b54; }

/* ── Layout ── */
#sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  overflow-y: auto;
}

#main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  max-width: 860px;
  padding: 3.5rem 3rem 5rem;
}

/* ── Sidebar ── */
.sidebar-top {
  padding: 2rem 1.6rem 1.4rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-hi);
  letter-spacing: .02em;
  line-height: 1.2;
  margin-bottom: .3rem;
}

.sidebar-logo span { color: var(--red); }

.sidebar-role {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--text-dim);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sidebar-nav {
  padding: 1.4rem 0;
  flex: 1;
}

.nav-section-label {
  font-family: var(--mono);
  font-size: .6rem;
  color: var(--text-dim);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .6rem 1.6rem .3rem;
}

.sidebar-nav ul { list-style: none; }

.sidebar-nav ul li a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem 1.6rem;
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: all .18s;
  border-left: 3px solid transparent;
  position: relative;
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
  color: var(--text-hi);
  background: var(--red-glow);
  border-left-color: var(--red);
}

.sidebar-nav ul li a .nav-icon {
  font-size: .85rem;
  width: 1.1rem;
  text-align: center;
  flex-shrink: 0;
}

/* Project sub-items */
.sidebar-nav ul.project-list li a {
  padding-left: 2.8rem;
  font-size: .82rem;
}

.sidebar-nav ul.project-list li a::before {
  content: '›';
  position: absolute;
  left: 2rem;
  color: var(--border);
  font-size: 1rem;
}

.sidebar-nav ul.project-list li a:hover::before,
.sidebar-nav ul.project-list li a.active::before {
  color: var(--red);
}

.sidebar-bottom {
  padding: 1.2rem 1.6rem;
  border-top: 1px solid var(--border);
}

.social-links {
  display: flex;
  gap: .8rem;
  margin-bottom: .8rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: .85rem;
  transition: all .18s;
}

.social-links a:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-dim);
}

.sidebar-location {
  font-size: .72rem;
  color: var(--text-dim);
  font-family: var(--mono);
}

/* ── Page header ── */
.page-header {
  margin-bottom: 2.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--border);
}

.page-eyebrow {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--red);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}

.page-header h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--text-hi);
  line-height: 1.15;
  letter-spacing: -.01em;
}

.page-header p {
  margin-top: .8rem;
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 520px;
}

/* ── Section headings ── */
.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-hi);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}

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

/* ── Terminal prompt decoration ── */
.prompt {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--text-dim);
}
.prompt .p-user { color: var(--green); }
.prompt .p-dir  { color: var(--blue); }
.prompt .p-sym  { color: var(--red); }

/* ── Cards ── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.card:hover {
  border-color: rgba(232,65,42,.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 0 1px rgba(232,65,42,.1);
}

/* ── Tags / Pills ── */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .22em .7em;
  border-radius: 3px;
  margin: .15em .2em .15em 0;
}
.tag-red    { background: rgba(232,65,42,.2); color: #ff7a66; border: 1px solid rgba(232,65,42,.3); }
.tag-blue   { background: rgba(74,158,255,.15); color: #6eb5ff; border: 1px solid rgba(74,158,255,.25); }
.tag-green  { background: rgba(61,220,132,.12); color: #5eed9d; border: 1px solid rgba(61,220,132,.2); }
.tag-yellow { background: rgba(245,200,66,.12); color: #f5d060; border: 1px solid rgba(245,200,66,.2); }
.tag-gray   { background: rgba(255,255,255,.06); color: var(--text-dim); border: 1px solid var(--border); }

/* ── Timeline ── */
.timeline { list-style: none; }
.timeline > li {
  position: relative;
  padding: 0 0 2.4rem 2rem;
  border-left: 1px solid var(--border);
}
.timeline > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline > li::before {
  content: '';
  position: absolute;
  left: -5px; top: 8px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px rgba(232,65,42,.3);
}

.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .7rem;
}

.tl-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-hi);
}

.tl-company {
  font-size: .85rem;
  color: var(--red);
  font-weight: 500;
  margin-top: .1rem;
}

.tl-period {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text-dim);
  background: var(--bg3);
  padding: .25em .7em;
  border-radius: 20px;
  white-space: nowrap;
  border: 1px solid var(--border);
  align-self: flex-start;
  margin-top: .15rem;
}

.tl-bullets {
  list-style: none;
  font-size: .88rem;
  line-height: 1.75;
}

.tl-bullets li {
  padding-left: 1.1rem;
  position: relative;
  color: var(--text);
  margin-bottom: .2rem;
}

.tl-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: .7rem;
  top: .15em;
}

.tl-bullets li strong { color: var(--text-hi); }

/* ── Skills grid ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .6rem;
}

.skill-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .6rem .9rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: border-color .2s, color .2s;
}

.skill-item:hover {
  border-color: rgba(232,65,42,.4);
  color: var(--text-hi);
}

.skill-item .skill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ── Stat boxes ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .8rem;
  margin: 1.5rem 0;
}

.stat-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  text-align: center;
}

.stat-box .stat-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: .3rem;
}

.stat-box .stat-label {
  font-size: .72rem;
  color: var(--text-dim);
  font-family: var(--mono);
  letter-spacing: .05em;
}

/* ── Project page specific ── */
.project-hero {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.project-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), rgba(232,65,42,0));
}

.project-hero-icon {
  font-size: 2.5rem;
  margin-bottom: .8rem;
  display: block;
}

.project-hero h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text-hi);
  margin-bottom: .5rem;
}

.project-hero p {
  color: var(--text);
  font-size: .95rem;
  max-width: 580px;
}

.project-links {
  display: flex;
  gap: .8rem;
  margin-top: 1.3rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55em 1.2em;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  font-family: var(--sans);
  transition: all .18s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: #d63420; color: #fff; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }

/* ── Code block ── */
.code-block {
  background: #080a0f;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--text);
  overflow-x: auto;
  margin: 1rem 0;
  line-height: 1.6;
}

.code-block .c-green  { color: var(--green); }
.code-block .c-yellow { color: var(--yellow); }
.code-block .c-blue   { color: var(--blue); }
.code-block .c-red    { color: #ff6b54; }
.code-block .c-dim    { color: var(--text-dim); }

/* ── Feature list ── */
.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .8rem;
}

.feature-list li {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  font-size: .85rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}

.feature-list li .fi { color: var(--red); flex-shrink: 0; margin-top: .1rem; }

/* ── About page specifics ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

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

.interest-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  transition: border-color .2s;
}

.interest-card:hover { border-color: rgba(232,65,42,.4); }

.interest-card .ic-icon { font-size: 1.5rem; margin-bottom: .6rem; }
.interest-card h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--text-hi);
  margin-bottom: .4rem;
}
.interest-card p { font-size: .83rem; color: var(--text-dim); line-height: 1.6; }

/* ── Prose ── */
.prose { max-width: 640px; }
.prose p { font-size: .95rem; color: var(--text); margin-bottom: 1rem; line-height: 1.8; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text-hi); font-weight: 600; }

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

.fade-up {
  animation: fadeUp .5s ease both;
}
.fade-up:nth-child(1) { animation-delay: .05s; }
.fade-up:nth-child(2) { animation-delay: .12s; }
.fade-up:nth-child(3) { animation-delay: .19s; }
.fade-up:nth-child(4) { animation-delay: .26s; }
.fade-up:nth-child(5) { animation-delay: .33s; }
.fade-up:nth-child(6) { animation-delay: .4s; }

/* ── Responsive ── */
@media (max-width: 820px) {
  body { display: block; }
  #sidebar {
    position: relative;
    width: 100%;
    min-height: unset;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  #main {
    margin-left: 0;
    padding: 2rem 1.4rem 4rem;
  }
  .sidebar-nav ul.project-list { display: none; }
}

/* ── Misc ── */
hr.sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .9rem;
}

.contact-item .ci-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: .9rem;
  flex-shrink: 0;
}

.contact-item a { color: var(--text); }
.contact-item a:hover { color: var(--red); }
