* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: #e8e3d9; font-family: 'IBM Plex Serif', serif; color: #2c3e2c; }

/* --- Sticky Nav --- */
.sticky-nav {
  position: sticky; top: 0; z-index: 100;
  background: #0d1a12;
  padding: 0 40px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #2a5a3a;
}
.sticky-nav .brand {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 3px;
  color: #6b8b6b; text-transform: uppercase; text-decoration: none;
  padding: 14px 0; white-space: nowrap;
}
.nav-links { display: flex; gap: 0; }
.nav-links a {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 2px;
  color: #6b8b6b; text-decoration: none; padding: 16px 14px;
  text-transform: uppercase; cursor: pointer; white-space: nowrap;
  transition: color 0.2s;
}
.nav-dot { color: #6b8b6b; display: flex; align-items: center; transform: translateY(-1px); }
.nav-short { display: none; }
.nav-full { display: inline; }
.nav-links a:hover, .nav-links a.active { color: #f4efe6; }

.lang-switch {
  display: flex; gap: 0; align-items: center;
  margin-left: 8px; padding-left: 14px;
  border-left: 1px solid #2a5a3a;
}
.lang-switch a {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 1px;
  color: #6b8b6b; text-decoration: none; padding: 16px 6px;
  text-transform: uppercase; transition: color 0.2s;
}
.lang-switch a:hover { color: #f4efe6; }
.lang-switch a.active-lang { color: #f4efe6; }

/* --- Hero --- */
.hero {
  background: #1a3a2a; padding: 56px 0 44px;
  position: relative; overflow: hidden;
}
.hero-lines {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0.03;
  background-image: repeating-linear-gradient(90deg, transparent, transparent 19px, #fff 19px, #fff 20px);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 820px; margin: 0 auto; padding: 0 40px; }
.hero-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 4px;
  color: #6b8b6b; margin: 0 0 18px; text-transform: uppercase;
}
.hero-name {
  font-size: 40px; color: #f4efe6; font-weight: 400;
  line-height: 1.1; letter-spacing: -0.5px; margin: 0 0 6px -2px;
}
.hero-title { font-size: 16px; color: #8aab8a; margin: 10px 0 0; font-style: italic; }
.hero-contact { display: flex; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.hero-contact span {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #8aab8a;
}
.hero-contact a { color: inherit; text-decoration: none; }
.hero-contact .sep { color: #2a5a3a; }

/* --- Section wrapper --- */
.section {
  max-width: 820px; margin: 0 auto;
  padding: 44px 40px;
}
.section-bg { background: #f4efe6; }
.section-alt { background: #ebe5d9; }
.section-dark { background: #1a3a2a; }
.full-width { max-width: none; }

.section-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 3px;
  color: #1a3a2a; margin: 0 0 28px; text-transform: uppercase; opacity: 1; font-weight: 700;
}
.section-dark .section-label { color: #8aab8a; opacity: 1; }

/* --- Grid layouts --- */
.grid-2col { display: grid; grid-template-columns: 5fr 3fr; gap: 40px; }
.grid-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.grid-2even { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* --- Education entry --- */
.edu-entry { margin-bottom: 24px; padding-left: 14px; border-left: 2px solid #1a3a2a; }
.edu-entry:last-child { margin-bottom: 0; }
.edu-entry h3 { font-size: 15px; color: #2c3e2c; font-weight: 500; margin: 0; }
.edu-entry .meta { font-size: 12px; color: #6b8b6b; margin: 3px 0 0; }
.edu-entry .grade { font-size: 12px; color: #3a7a4a; margin: 4px 0 0; font-weight: 500; }
.edu-entry .thesis {
  font-size: 12px; color: #4a5a4a; margin: 8px 0 0;
  font-style: italic; line-height: 1.5;
}

/* --- Field entry --- */
.field-entry {
  margin-bottom: 24px; padding-left: 14px;
  border-left: 2px solid #1a3a2a;
}
.field-entry:last-child { margin-bottom: 0; }
.field-header { position: relative; }
.field-entry h3 { font-size: 15px; color: #2c3e2c; font-weight: 500; margin: 0; }
.field-entry .role { font-size: 13px; color: #3a7a4a; margin: 2px 0 0; font-style: italic; }
.field-entry .meta { font-size: 12px; color: #6b8b6b; margin: 3px 0 0; }
.field-entry ul {
  margin: 10px 0 0; padding-left: 16px;
  list-style: none;
}
.field-entry ul li {
  font-size: 12px; color: #4a5a4a; line-height: 1.6;
  margin-bottom: 4px; padding-left: 12px; position: relative;
}
.field-entry ul li::before {
  content: '·'; position: absolute; left: 0;
  color: #1a3a2a; font-weight: bold;
}
.badge-current {
  font-family: 'IBM Plex Mono', monospace; font-size: 9px;
  color: #f4efe6; background: #1a3a2a;
  padding: 3px 10px; border-radius: 3px; letter-spacing: 1px;
  white-space: nowrap; position: absolute; top: 0; right: 0;
}

/* --- Panels (sidebar-style) --- */
.panel { border-radius: 8px; padding: 24px; }
.panel + .panel { margin-top: 20px; }
.panel-dark { background: #1a3a2a; }
.panel-light { background: #f4efe6; }
.panel-sand { background: #ebe5d9; }
.panel-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 2px;
  margin: 0 0 16px; text-transform: uppercase; font-weight: 700;
}
.panel-label-green { color: #8aab8a; }
.panel-label-dark { color: #1a3a2a; opacity: 0.75; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11px; color: #d4e8d4; background: #2a5a3a;
  padding: 5px 12px; border-radius: 16px;
}
.panel-dark .tag { opacity: 0; transform: scale(0.85); }
.tag-dark { background: #1a3a2a; }

/* --- Language bars --- */
.lang-row { margin-bottom: 10px; }
.lang-row:last-child { margin-bottom: 0; }
.lang-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.lang-name { font-size: 13px; color: #2c3e2c; }
.lang-level { font-size: 11px; color: #6b8b6b; }
.lang-track { height: 3px; background: #d4cfc4; border-radius: 2px; }
.lang-fill { height: 3px; background: #1a3a2a; border-radius: 2px; width: 0%; }

/* --- Experience entries --- */
.exp-entry { margin-bottom: 24px; padding-left: 14px; border-left: 2px solid #1a3a2a; }
.exp-entry:last-child { margin-bottom: 0; }
.exp-entry h3 { font-size: 15px; color: #2c3e2c; font-weight: 500; margin: 0; }
.exp-entry .role { font-size: 13px; color: #3a7a4a; margin: 2px 0 0; font-style: italic; }
.exp-entry .meta { font-size: 12px; color: #6b8b6b; margin: 2px 0 0; }
.exp-entry ul { margin: 10px 0 0; padding-left: 16px; list-style: none; }
.exp-entry ul li {
  font-size: 12px; color: #4a5a4a; line-height: 1.6;
  margin-bottom: 4px; padding-left: 12px; position: relative;
}
.exp-entry ul li::before {
  content: '·'; position: absolute; left: 0;
  color: #1a3a2a; font-weight: bold;
}

/* --- Skills / Awards list items --- */
.info-item {
  font-size: 13px; color: #d4e8d4; line-height: 1.7;
  margin-bottom: 8px; padding-left: 14px; position: relative;
}
.info-item::before {
  content: '—'; position: absolute; left: 0;
  color: #5a8a6a;
}
.info-item:last-child { margin-bottom: 0; }

/* --- Footer --- */
.footer-bar {
  background: #0d1a12;
}
.footer-inner {
  max-width: 820px; margin: 0 auto; padding: 24px 40px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-bar p {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  letter-spacing: 1px; color: #5a8a6a; text-transform: uppercase;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  color: #8aab8a; text-decoration: none;
}

/* --- About text --- */
.about-text { font-size: 15px; line-height: 1.8; color: #2c3e2c; margin-bottom: 20px; }
.about-text:last-child { margin-bottom: 0; }

/* --- Award / certification items --- */
.award-item { margin-bottom: 10px; }
.award-item:last-child { margin-bottom: 0; }
.award-title { font-size: 13px; color: #2c3e2c; font-weight: 500; margin: 0; }
.award-desc { font-size: 11px; color: #4a5a4a; margin: 2px 0 0; }

/* --- Contact section --- */
.contact-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 2px;
  color: #5a8a6a; text-transform: uppercase; margin-bottom: 8px;
}
.contact-value { font-size: 14px; color: #d4e8d4; text-decoration: none; }

/* --- Divider --- */
.divider { height: 1px; background: #d4cfc4; margin: 0; }

/* ============================
   TABLET
   ============================ */
@media (max-width: 700px) {
  .sticky-nav { padding: 0 20px; }
  .sticky-nav .brand { font-size: 10px; letter-spacing: 2px; }
  .nav-links a { padding: 14px 8px; font-size: 10px; letter-spacing: 1.5px; }

  .lang-switch { padding-left: 8px; margin-left: 4px; }
  .lang-switch a { padding: 14px 4px; font-size: 10px; }

  .hero { padding: 36px 0 32px; }
  .hero-inner { padding: 0 20px; }
  .hero-name { font-size: 28px; }
  .section-label { letter-spacing: 2px; }
  .hero-title { font-size: 14px; }
  .hero-contact { flex-direction: column; gap: 6px; }
  .hero-contact .sep { display: none; }

  .section { padding: 32px 20px; }
  .grid-2col { grid-template-columns: 1fr; gap: 28px; }
  .grid-3col { grid-template-columns: 1fr; gap: 16px; }
  .grid-2even { grid-template-columns: 1fr; gap: 16px; }

  .footer-inner { padding: 20px 20px 40px; flex-direction: column; align-items: flex-start; }
}

/* ============================
   SMALL PHONE
   ============================ */
@media (max-width: 600px) {
  .sticky-nav { padding: 0 12px; flex-wrap: wrap; justify-content: space-between; gap: 0; }
  .sticky-nav .brand { padding: 10px 0; font-size: 10px; }
  .nav-links { width: 100%; justify-content: space-between; border-top: 1px solid #2a5a3a; order: 1; }
  .nav-links a { padding: 10px 6px; letter-spacing: 1px; }
  .nav-links a:first-child { padding-left: 0; }
  .nav-links a:last-child { padding-right: 0; }

  .nav-full { display: none; }
  .nav-short { display: inline; }

  .lang-switch { border-left: none; padding-left: 0; margin-left: 0; }
  .lang-switch a { padding: 10px 4px; }
  .lang-switch a:last-child { padding-right: 0; }

  .hero { padding: 28px 0 24px; }
  .hero-inner { padding: 0 16px; }
  .hero-name { font-size: 24px; }
  .section { padding: 28px 16px; }
  .panel { padding: 18px; }
  .footer-inner { padding: 20px 16px 44px; }
}

/* --- Animations --- */
@keyframes heroFadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-label, .hero-name, .hero-title, .hero-contact {
  opacity: 0;
  animation: heroFadeDown 0.6s ease forwards;
}
.hero-label { animation-delay: 0.1s; }
.hero-name { animation-delay: 0.25s; }
.hero-title { animation-delay: 0.4s; }
.hero-contact { animation-delay: 0.55s; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
