@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,700;1,400&display=swap');

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

html { scroll-behavior: smooth; }

body {
  background: #0d0d0d;
  color: #00ff41;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* CRT scanlines */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.07) 2px, rgba(0,0,0,0.07) 4px);
  pointer-events: none;
  z-index: 9999;
}

/* NAV */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #000;
  border-bottom: 1px solid #004d18;
  padding: 0 2rem;
  height: 48px;
  display: flex; align-items: center; gap: 2rem;
}

.nav-logo {
  color: #00ff41; text-decoration: none; font-weight: 700; font-size: 13px;
  white-space: nowrap;
}
.nav-logo::before { content: '[vpesut@resume]$ '; color: #555; font-weight: 400; }

.nav-toggle-input { display: none; }
.nav-hamburger { display: none; }

.nav-links { list-style: none; display: flex; gap: 1.5rem; flex: 1; }
.nav-links a { color: #888; text-decoration: none; font-size: 12px; transition: color 0.15s; }
.nav-links a::before { content: './'; color: #00aa2d; }
.nav-links a:hover { color: #00ff41; }

#theme-switcher {
  background: #000; border: 1px solid #004d18; color: #00ff41;
  font-family: inherit; font-size: 11px; padding: 4px 8px; cursor: pointer;
  outline: none;
}
#theme-switcher:focus { border-color: #00ff41; }

/* HERO */
#hero {
  min-height: 100vh; padding-top: 48px;
  display: flex; align-items: center;
  background: #0d0d0d;
  border-bottom: 1px solid #001a08;
}

.hero-photo {
  flex: 0 0 42%;
  display: flex; align-items: center; justify-content: center;
  padding: 4rem 2rem;
}

#profile-photo {
  width: 260px; height: 260px; object-fit: cover;
  border: 2px solid #00ff41;
  box-shadow: 0 0 24px rgba(0,255,65,0.4), 0 0 80px rgba(0,255,65,0.1);
  filter: saturate(0.2) brightness(1.1) contrast(1.1);
  display: block;
}

.hero-text { flex: 1; padding: 4rem 4rem 4rem 0; }

.hero-eyebrow {
  color: #555; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 0.75rem;
}
.hero-eyebrow::before { content: '> '; color: #00ff41; }

h1 {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 700; color: #00ff41;
  text-shadow: 0 0 18px rgba(0,255,65,0.45);
  margin-bottom: 1rem; letter-spacing: 0.02em; line-height: 1.1;
}
h1::after {
  content: '\25AE';
  font-size: 0.75em; margin-left: 6px; vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-sub { color: #888; font-size: 13px; margin-bottom: 0.5rem; }
.hero-sub::before { content: '# '; color: #00aa2d; }

.hero-location { color: #444; font-size: 12px; margin-bottom: 2rem; }
.hero-location::before { content: '// '; }

.hero-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.btn-primary, .btn-secondary {
  text-decoration: none; font-family: inherit; font-size: 12px;
  padding: 8px 18px; border: 1px solid; transition: background 0.15s, color 0.15s;
  display: inline-block;
}
.btn-primary { border-color: #00ff41; color: #00ff41; }
.btn-primary:hover { background: #00ff41; color: #000; }
.btn-secondary { border-color: #444; color: #888; }
.btn-secondary:hover { border-color: #00ff41; color: #00ff41; }

.hero-scroll {
  display: inline-block; color: #004d18; text-decoration: none;
  font-size: 1.8rem;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }

/* SECTIONS */
.section-inner { max-width: 1160px; margin: 0 auto; padding: 5rem 2rem; }
section { border-bottom: 1px solid #001a08; }
main > section:last-child { border-bottom: none; }

h2 {
  font-size: 1rem; color: #00ff41; margin-bottom: 2.5rem;
  letter-spacing: 0.12em; text-transform: lowercase;
}
h2::before { content: '$ '; color: #555; font-weight: 400; }
h2::after { content: '()'; color: #00aa2d; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 260px 1fr; gap: 3rem; }

.about-stats {
  border: 1px solid #001a08; background: #0a0a0a; padding: 1.5rem;
}
.stat-item {
  margin-bottom: 1.5rem; padding-bottom: 1.25rem;
  border-bottom: 1px dashed #001a08;
}
.stat-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.stat-number {
  display: block; font-size: 2.2rem; font-weight: 700; color: #00ff41;
  text-shadow: 0 0 12px rgba(0,255,65,0.4); line-height: 1;
}
.stat-label {
  display: block; font-size: 10px; color: #555;
  letter-spacing: 0.12em; text-transform: uppercase; margin-top: 2px;
}
.stat-list { list-style: none; margin-top: 0.5rem; }
.stat-list li { color: #666; font-size: 11px; line-height: 1.8; }
.stat-list li::before { content: '> '; color: #00aa2d; }
.stat-langs { color: #666; font-size: 12px; margin-top: 0.4rem; }

.about-summary p { color: #888; margin-bottom: 1.25rem; font-size: 13px; line-height: 1.85; }
.about-summary p:last-child { margin-bottom: 0; }

/* EXPERIENCE */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, #00ff41, #001a08 90%);
}

.timeline-item { position: relative; margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px dashed #001a08; }
.timeline-item:last-child { border-bottom: none; margin-bottom: 0; }

.timeline-marker {
  position: absolute; left: -2.9rem; top: 4px;
  width: 12px; height: 12px;
  background: #00ff41;
  box-shadow: 0 0 10px rgba(0,255,65,0.6);
  clip-path: polygon(50% 0%,100% 50%,50% 100%,0% 50%);
}

.timeline-header {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 0.5rem 1rem; margin-bottom: 0.6rem;
}
.timeline-header h3 { font-size: 13px; color: #00ff41; font-weight: 700; }
.timeline-company { color: #888; font-size: 12px; }
.timeline-company::before { content: '@ '; color: #00aa2d; }
.timeline-date { color: #444; font-size: 11px; }
.timeline-date::before { content: '['; }
.timeline-date::after { content: ']'; }
.timeline-location { color: #444; font-size: 11px; font-style: italic; }
.timeline-content p { color: #666; font-size: 12px; line-height: 1.75; }

/* SKILLS */
.skills-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2.5rem; }
.skill-group h3 {
  font-size: 10px; color: #00aa2d;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid #001a08;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tag {
  color: #666; font-size: 11px;
  border: 1px solid #001a08; padding: 3px 8px;
  transition: border-color 0.15s, color 0.15s; cursor: default;
}
.skill-tag::before { content: '['; color: #00aa2d; }
.skill-tag::after { content: ']'; color: #00aa2d; }
.skill-tag:hover { border-color: #00ff41; color: #00ff41; }

/* CERTIFICATIONS */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px,1fr)); gap: 1rem; }
.cert-card {
  border: 1px solid #001a08; background: #0a0a0a;
  padding: 1.25rem; display: flex; gap: 1rem; align-items: flex-start;
  transition: border-color 0.15s;
}
.cert-card:hover { border-color: #00aa2d; }
.cert-icon { font-size: 1.2rem; flex-shrink: 0; line-height: 1; }
.cert-card h3 { font-size: 11px; color: #888; font-weight: 400; margin-bottom: 0.25rem; line-height: 1.4; }
.cert-issuer { font-size: 10px; color: #444; }

/* CONTACT */
#contact { background: #0a0a0a; }
.contact-grid { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-bottom: 2.5rem; }
.contact-item {
  display: flex; align-items: center; gap: 0.75rem;
  color: #666; text-decoration: none; font-size: 13px; transition: color 0.15s;
}
.contact-item:hover { color: #00ff41; }
.contact-icon { color: #00aa2d; font-style: normal; font-weight: 700; min-width: 1.4rem; text-align: center; }
.contact-icon-in { font-family: sans-serif; font-size: 11px; font-weight: 900; }

.resume-download { margin-bottom: 3rem; }
.btn-download {
  display: inline-block; padding: 12px 32px;
  border: 2px solid #00ff41; color: #00ff41;
  text-decoration: none; font-family: inherit; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}
.btn-download:hover { background: #00ff41; color: #000; }

footer {
  padding-top: 2rem; border-top: 1px dashed #001a08;
  color: #333; font-size: 11px; text-align: center;
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  #site-nav {
    height: auto; padding: 0.75rem 1rem;
    flex-wrap: wrap; position: sticky; gap: 0.5rem;
  }
  .nav-logo { flex: 1; }
  .nav-hamburger {
    display: flex; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 4px; border: 1px solid #004d18;
  }
  .nav-hamburger span { display: block; width: 18px; height: 1px; background: #00ff41; }
  .nav-links {
    display: none; flex-direction: column; width: 100%;
    padding: 0.5rem 0; gap: 0.25rem;
    order: 10;
  }
  .nav-toggle-input:checked ~ .nav-links { display: flex; }
  #theme-switcher { order: 5; }

  #hero { flex-direction: column; padding-top: 0; min-height: auto; padding-bottom: 3rem; }
  .hero-photo { padding: 3rem 2rem 1.5rem; flex: none; }
  #profile-photo { width: 180px; height: 180px; }
  .hero-text { padding: 1rem 2rem 2rem; }

  .section-inner { padding: 3rem 1.25rem; }
  .contact-grid { flex-direction: column; gap: 1.25rem; }
}
