body {
  background: #0a1520;
  color: #1a1a1a;
}

/* ── NAVBAR ── */
.site-nav {
  font-family: system-ui, sans-serif;
  background: #0f1923;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  height: 60px;
  gap: 4px;
  position: relative;
  box-shadow: 0 4px 30px #00c6ff33, 0 1px 0 #1a6fc444;
}

.site-nav .nav-brand {
  font-size: 20px;
  font-weight: 700;
  color: #00d4ff;
  text-decoration: none;
  padding-right: 16px;
  margin-right: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  border-right: 1px solid #ffffff22;
  text-shadow: 0 0 10px #00d4ffcc, 0 0 24px #00aaff99, 0 0 48px #0077ff55;
  letter-spacing: 0.01em;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
}

.site-nav li { position: relative; }

.site-nav a {
  display: flex;
  align-items: center;
  padding: 7px 14px;
  font-size: 13px;
  color: #8a9bb0;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  transition: color 0.2s;
  position: relative;
  z-index: 2;
}

.site-nav a:hover { color: #c8d8e8; }
.site-nav a.active { color: #fff; font-weight: 500; }

.site-nav .nav-highlight {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a6fc4 0%, #00c6ff 100%);
  box-shadow: 0 0 16px #00c6ff88, 0 0 32px #1a6fc444;
  transition: left 0.3s cubic-bezier(.4,0,.2,1), width 0.3s cubic-bezier(.4,0,.2,1);
  z-index: 1;
  pointer-events: none;
}

/* hamburger hidden on desktop */
.nav-hamburger { display: none; }

/* ── MOBILE MENU ── */
.nav-mobile-menu {
  position: fixed;
  top: -110%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a1520;
  z-index: 1000;
  flex-direction: column;
  font-family: system-ui, sans-serif;
  opacity: 0;
  transform: translateY(-15px);
  pointer-events: none;
  transition: top 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.nav-mobile-menu.open {
  top: 0;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #ffffff22;
}

.nav-mobile-close {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a4a7a;
  border: none;
  cursor: pointer;
}

.nav-mobile-close::before,
.nav-mobile-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.nav-mobile-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav-mobile-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.nav-mobile-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00d4ff;
  text-shadow: 0 0 10px #00d4ffcc, 0 0 24px #00aaff99, 0 0 48px #0077ff55;
  text-decoration: none;
  text-align: center;
}

@media (max-width: 768px) {
  .site-nav .nav-brand {
    font-size: 1.5rem;
  }
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 0.75rem;
  flex: 1;
}

.nav-mobile-links a {
  display: block;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: #000;
  border: 1.5px solid #1a6fc4;
  box-shadow: 0 0 16px #1a6fc455, 0 0 40px #00c6ff22;
  border-radius: 12px;
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s;

  opacity: 0;
  transform: translateY(18px);
}

.nav-mobile-menu.open .nav-mobile-links a {
  animation: navItemFadeIn 300ms ease forwards;
}

.nav-mobile-menu.open .nav-mobile-links a:nth-child(1) { animation-delay: 0.10s; }
.nav-mobile-menu.open .nav-mobile-links a:nth-child(2) { animation-delay: 0.20s; }
.nav-mobile-menu.open .nav-mobile-links a:nth-child(3) { animation-delay: 0.30s; }
.nav-mobile-menu.open .nav-mobile-links a:nth-child(4) { animation-delay: 0.40s; }
.nav-mobile-menu.open .nav-mobile-links a:nth-child(5) { animation-delay: 0.50s; }
.nav-mobile-menu.open .nav-mobile-links a:nth-child(6) { animation-delay: 0.60s; }
.nav-mobile-menu.open .nav-mobile-links a:nth-child(7) { animation-delay: 0.70s; }
.nav-mobile-menu.open .nav-mobile-links a:nth-child(8) { animation-delay: 0.80s; }

@keyframes navItemFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-mobile-links a:hover,
.nav-mobile-links a.active {
  box-shadow: 0 0 30px #1a6fc488, 0 0 60px #00c6ff44;
  border-color: #00c6ff;
  color: #5ab0f7;
}

/* ── CV PAGE ── */
.cv-outer {
  max-width: 860px;
  margin: 2.5rem auto;
  padding: 0 1.5rem 4rem;
  font-family: system-ui, sans-serif;
}

.cv-card {
  background: #fff;
  border: 1px solid #e4e0d8;
  border-radius: 12px;
  overflow: hidden;
}

.cv-header {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 3px solid #1a5c96;
}

.cv-photo {
  padding: 2rem 1.5rem 2rem 2rem;
}

.cv-photo img {
  width: 120px;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.cv-photo-placeholder {
  width: 120px;
  height: 140px;
  background: #e8e5e0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #888;
  text-align: center;
  line-height: 1.4;
}

.cv-name-block {
  padding: 2rem 2rem 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cv-name {
  font-size: 2.4rem;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.cv-contact {
  font-size: 13.5px;
  color: #444;
  line-height: 1.8;
}

.cv-contact a {
  color: #1a5c96;
  text-decoration: none;
}

.cv-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #1a5c96;
  font-size: 13.5px;
  text-decoration: none;
  margin-top: 4px;
}

.cv-linkedin svg { width: 14px; height: 14px; }

.cv-body {
  padding: 2rem 2.5rem;
}

.cv-section {
  margin-bottom: 2rem;
}

.cv-section-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a5c96;
  border-bottom: 2px solid #1a5c96;
  padding-bottom: 4px;
  margin-bottom: 1.25rem;
}

.cv-entry {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0 1rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

.cv-entry-logo {
  padding-top: 3px;
  align-self: start;
}

.cv-entry-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.cv-entry-logo-placeholder {
  width: 40px;
  height: 40px;
  background: #f0ede8;
  border-radius: 4px;
}

.cv-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 3px;
}

.cv-entry-org {
  font-weight: 500;
  font-size: 14px;
  color: #1a1a1a;
}

.cv-entry-role {
  font-style: italic;
  color: #555;
  font-size: 13.5px;
}

.cv-entry-date {
  font-size: 13px;
  color: #1a5c96;
  white-space: nowrap;
}

.cv-entry-desc {
  font-size: 13.5px;
  color: #333;
  line-height: 1.65;
}

.cv-fields {
  font-size: 13.5px;
  color: #333;
  margin-top: 4px;
  line-height: 1.7;
}

.cv-fields strong {
  font-weight: 500;
  color: #1a1a1a;
}

.cv-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  font-size: 13.5px;
}

.cv-skills-col:first-child {
  border-right: 1px solid #ddd;
}

.cv-skills-header {
  background: #f0ede8;
  font-weight: 500;
  font-size: 13px;
  padding: 8px 14px;
  border-bottom: 1px solid #ddd;
}

.cv-skill-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 14px;
  border-bottom: 1px solid #f0ede8;
  font-size: 13px;
}

.cv-skill-row:last-child { border-bottom: none; }

.cv-skill-level {
  color: #666;
  font-size: 12px;
}

.cv-bullets {
  list-style: none;
  margin-top: 6px;
}

.cv-bullets li {
  font-size: 13.5px;
  color: #333;
  padding: 2px 0 2px 16px;
  position: relative;
  line-height: 1.6;
}

.cv-bullets li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: #1a5c96;
}

.cv-lang-native {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13.5px;
  color: #333;
}

.cv-flag {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
}

.cv-flag-ro {
  background: linear-gradient(to right, #002B7F 33%, #FCD116 33%, #FCD116 66%, #CE1126 66%);
}

table.cv-lang-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.cv-lang-table th {
  background: #f0ede8;
  font-weight: 500;
  padding: 7px 12px;
  text-align: center;
  border: 1px solid #ddd;
  font-size: 12.5px;
}

table.cv-lang-table td {
  border: 1px solid #ddd;
  padding: 6px 12px;
  text-align: center;
  vertical-align: middle;
  line-height: 1.4;
}

.lang-level {
  font-size: 12px;
  color: #777;
  display: block;
}

.cv-awards ul {
  list-style: none;
  padding: 0;
}

.cv-awards li {
  font-size: 13.5px;
  color: #333;
  padding: 3px 0 3px 16px;
  position: relative;
}

.cv-awards li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: #1a5c96;
}

.cv-hobbies {
  font-size: 13.5px;
  color: #444;
}

.cv-download-bar {
  text-align: center;
  margin-top: 2rem;
}

.cv-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a5c96;
  color: #fff;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.18s;
}

.cv-download-btn:hover { background: #154d80; }
.cv-download-btn svg { width: 16px; height: 16px; }

.cv-entry-logo a {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid #e4e0d8;
  box-shadow: 0 2px 4px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: box-shadow 0.18s, transform 0.18s;
  background: #fff;
}

.cv-entry-logo a:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.10);
  transform: translateY(-1px);
}

.cv-entry-logo a:active {
  box-shadow: 0 1px 2px rgba(0,0,0,0.10);
  transform: translateY(1px);
}

.cv-entry-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

@media (max-width: 600px) {
  /* nav: hamburger left, brand centered */
  .site-nav {
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
    padding: 0 1rem;
  }
  .site-nav .nav-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: 700;
    color: #00d4ff;
    text-shadow: 0 0 10px #00d4ffcc, 0 0 24px #00aaff99, 0 0 48px #0077ff55;
    border-right: none;
    padding-right: 0;
    margin-right: 0;
  }
  .site-nav ul { display: none; }
  .site-nav .nav-highlight { display: none; }

  /* hamburger: just three plain lines, no box */
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    outline: none;
    flex-shrink: 0;
    order: -1;
  }
  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
  }

  /* CV mobile */
  .cv-header { grid-template-columns: 1fr; }
  .cv-photo { padding: 1.5rem 1.5rem 0; }
  .cv-name-block { padding: 1rem 1.5rem 1.5rem; }
  .cv-name { font-size: 1.8rem; }
  .cv-body { padding: 1.25rem; }
  .cv-entry {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px;
  }
  .cv-entry-logo { display: block; }
  .cv-skills-grid { grid-template-columns: 1fr; }
  .cv-skills-col:first-child { border-right: none; border-bottom: 1px solid #ddd; }
  table.cv-lang-table { font-size: 11px; }
  table.cv-lang-table th,
  table.cv-lang-table td { padding: 4px 4px; }
  .lang-level { display: none; }
  table.cv-lang-table th:first-child,
  table.cv-lang-table td:first-child { width: 70px; }
  .cv-entry-logo a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px;
    height: 40px;
  }
  .cv-entry-logo a img {
    width: 40px !important;
    height: 40px !important;
    display: block;
  }
}