/* ══════════════════════════════════════════
   TOKENS & RESET
══════════════════════════════════════════ */
:root {
  --bg:        #0d0f12;
  --bg2:       #131619;
  --bg3:       #1a1e24;
  --border:    #252b33;
  --border-hi: #2e3840;
  --text:      #c8d0dc;
  --text-muted:#5e6b78;
  --text-dim:  #8a97a5;
  --accent:    #00c9a7;
  --accent2:   #0088ff;
  --accent3:   #ff6b35;
  --green:     #39d353;
	--red:       #ff3333;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Barlow', sans-serif;
  --radius:    4px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ══════════════════════════════════════════
   SCANLINES OVERLAY
══════════════════════════════════════════ */
.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.07) 2px,
    rgba(0,0,0,0.07) 4px
  );
  opacity: 0.5;
}

/* ══════════════════════════════════════════
   CONTAINER
══════════════════════════════════════════ */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.site-header {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  position: relative;
}

.header-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 20px;
  opacity: 0.85;
}

.name {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #edf0f5;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.name-accent {
  color: var(--accent);
}

.title-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent2);
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}

.header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-bottom: 24px;
}

.meta-item {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.label {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  border: 1px solid var(--border-hi);
  padding: 1px 5px;
  border-radius: 2px;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.dot--green {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: blink 2.4s ease-in-out infinite;
}
.dot--red {
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 2px;
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.contact-chip:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0,201,167,0.05);
}

/* ══════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════ */
.resume-section {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.section-toggle {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: var(--text-dim);
  transition: color var(--transition);
}
.section-toggle:hover {
  color: var(--text);
}
.section-toggle:hover .section-title {
  color: #edf0f5;
}

.toggle-icon {
  font-size: 10px;
  color: var(--accent);
  transition: transform var(--transition);
  font-family: var(--font-mono);
  width: 12px;
  display: inline-block;
}

.section-toggle[aria-expanded="false"] .toggle-icon {
  transform: rotate(-90deg);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  min-width: 44px;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
  transition: color var(--transition);
}

/* Collapsible body */
.section-body {
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.28s ease,
              padding 0.28s ease;
  max-height: 2000px;
  opacity: 1;
  padding-bottom: 28px;
}
.section-body.is-collapsed {
  max-height: 0;
  opacity: 0;
  padding-bottom: 0;
}

/* ══════════════════════════════════════════
   SUMMARY
══════════════════════════════════════════ */
.summary-text {
  color: var(--text-dim);
  max-width: 72ch;
  line-height: 1.8;
  font-size: 15px;
  border-left: 2px solid var(--accent);
  padding-left: 18px;
}

/* ══════════════════════════════════════════
   SKILLS
══════════════════════════════════════════ */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.skill-group-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent2);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-list li {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
}

.skill-bar {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--border-hi);
  border-radius: 2px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.skill-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-bar.skill-bar--animated::after {
  width: var(--pct, 0%);
}

/* ══════════════════════════════════════════
   EXPERIENCE
══════════════════════════════════════════ */
.job {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.job:first-child {
  border-top: none;
  padding-top: 0;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.job-title {
  font-size: 16px;
  font-weight: 600;
  color: #edf0f5;
  margin-bottom: 2px;
}

.job-company {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

.job-location {
  color: var(--text-muted);
}

.job-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 2px;
}

.job-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.job-points li {
  color: var(--text-dim);
  font-size: 14px;
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}
.job-points li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 16px;
  line-height: 1.4;
}

/* ══════════════════════════════════════════
   PROJECTS
══════════════════════════════════════════ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}
.project-card:hover {
  border-color: var(--border-hi);
  background: var(--bg3);
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 10px;
}

.project-card:nth-child(1) .project-tag,
.project-card:nth-child(5) .project-tag,
.project-card:nth-child(6) .project-tag { background: rgba(0,136,255,0.12); color: var(--accent2); }
.project-card:nth-child(2) .project-tag,
.project-card:nth-child(3) .project-tag,
.project-card:nth-child(4) .project-tag { background: rgba(255,107,53,0.12); color: var(--accent3); }

.project-name {
  font-size: 14px;
  font-weight: 600;
  color: #edf0f5;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tech span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 2px;
}

/* ══════════════════════════════════════════
   EDUCATION
══════════════════════════════════════════ */
.edu-item { padding: 4px 0; }

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.edu-degree {
  font-size: 16px;
  font-weight: 600;
  color: #edf0f5;
  margin-bottom: 2px;
}

.edu-school {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

.edu-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════
   CERTIFICATIONS
══════════════════════════════════════════ */
.cert-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: border-color var(--transition);
}
.cert-item:hover { border-color: var(--border-hi); }

.cert-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.cert-logo.aws { background: rgba(255,153,0,0.15); color: #ff9900; border: 1px solid rgba(255,153,0,0.3); }
.cert-logo.gcp { background: rgba(66,133,244,0.15); color: #4285f4; border: 1px solid rgba(66,133,244,0.3); }
.cert-logo.tf  { background: rgba(124,77,255,0.15); color: #7c4dff; border: 1px solid rgba(124,77,255,0.3); }
.cert-logo.cka { background: rgba(0,201,167,0.12); color: var(--accent); border: 1px solid rgba(0,201,167,0.3); }

.cert-name {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
}

.cert-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════
   INTERESTS
══════════════════════════════════════════ */
.interest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ichip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 100px;
  transition: color var(--transition), border-color var(--transition);
}
.ichip:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  padding-top: 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 600px) {
  .header-meta { flex-direction: column; gap: 10px; }
  .job-header, .edu-header { flex-direction: column; }
  .job-date { align-self: flex-start; }
  .skill-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .project-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   ANIMATIONS — fade in on load
══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.site-header      { animation: fadeUp 0.5s ease both; }
.resume-section   { animation: fadeUp 0.5s ease both; }

.resume-section:nth-child(1) { animation-delay: 0.10s; }
.resume-section:nth-child(2) { animation-delay: 0.17s; }
.resume-section:nth-child(3) { animation-delay: 0.24s; }
.resume-section:nth-child(4) { animation-delay: 0.31s; }
.resume-section:nth-child(5) { animation-delay: 0.38s; }
.resume-section:nth-child(6) { animation-delay: 0.45s; }
.resume-section:nth-child(7) { animation-delay: 0.52s; }

/* Print */
@media print {
  .scanlines { display: none; }
  .section-body.is-collapsed { max-height: unset !important; opacity: 1 !important; padding-bottom: 28px !important; }
  .section-toggle .toggle-icon { display: none; }
  body { background: white; color: black; }
}
