:root {
  --bg: #0a0e14;
  --bg-alt: #0d131c;
  --panel: #10161f;
  --border: #1f2833;
  --border-strong: #2b3742;
  --text: #e7ecf2;
  --text-dim: #8695a7;
  --text-faint: #526176;
  --amber: #ffb020;
  --amber-dim: #4a3a1a;
  --teal: #52d6c8;
  --sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  --maxw: 1060px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  background-image: linear-gradient(var(--bg) 0%, var(--bg-alt) 100%);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; }

::selection { background: var(--amber-dim); color: var(--amber); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}



header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 20, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-content {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: 0.01em;
}

.header-content .shape {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(82, 214, 200, 0.15);
  flex-shrink: 0;
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}


.title-section {
  padding: 84px 0 72px;
  max-width: 640px;
}

.mini-title {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--teal);
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

h1 .h1sub {
  font-size: 0.5em;
  font-weight: 400;
  letter-spacing: 0em;
  line-height: 1.2;
}

.title-section p.subtitle {
  font-size: 1.08rem;
  color: var(--text-dim);
  max-width: 46ch;
  margin-bottom: 30px;
}

.top-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-button {
  font-family: var(--mono);
  font-size: 13.5px;
  padding: 11px 20px;
  border-radius: 3px;
  border: 1px solid var(--border-strong);
  display: inline-block;
  text-decoration: none;
  transition: all 0.15s ease;
  background: var(--amber);
  color: #16110a;
  border-color: var(--amber);
  font-weight: 500;
}

.cta-button:hover {
  background: var(--amber-dim);
  color: var(--amber);
  border-color: var(--amber-dim);
}

.cta-button-clear {
  font-family: var(--mono);
  font-size: 13.5px;
  padding: 11px 20px;
  border-radius: 3px;
  border: 1px solid var(--border-strong);
  display: inline-block;
  text-decoration: none;
  transition: all 0.15s ease;
  background: transparent;
  color: var(--text);
}

.cta-button-clear:hover {
  border-color: var(--text-dim);
}



section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 34px;
  gap: 20px;
}

.section-head h2 {
  font-size: 1.5rem;
  font-weight: 600;
}



.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
}

.about-grid p {
  color: var(--text-dim);
  margin-bottom: 16px;
}

.about-grid p:last-child {
  margin-bottom: 0;
}

.about-grid strong {
  color: var(--text);
  font-weight: 500;
}



.timeline {
  position: relative;
  padding-left: 26px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border-strong);
}

.timeline-item {
  position: relative;
  padding-bottom: 34px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--teal);
}

.timeline-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.timeline-title {
  font-weight: 500;
  margin-bottom: 4px;
}

.timeline-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 60ch;
}


.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

@media (max-width: 700px) {
  .projects-grid { grid-template-columns: 1fr; }
}

.project-card {
  background: var(--panel);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.project-top h3 {
  font-size: 1.02rem;
  font-weight: 600;
}

.type {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
  border: 1px solid var(--border-strong);
  color: var(--text-faint);
}

.project-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
}


.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

@media (max-width: 760px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

.skill-category h3 {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--amber);
  margin-bottom: 14px;
  font-weight: 400;
}

.skill-category ul { list-style: none; }

.skill-category li {
  font-size: 0.92rem;
  color: var(--text-dim);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.skill-category li:last-child { border-bottom: none; }


.certs-panel {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel);
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.status-active {
  color: var(--teal);
  border-color: rgba(82, 214, 200, 0.35);
}

.certs-panel .name {
  font-weight: 500;
  margin-bottom: 4px;
}

.certs-panel .issuer {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 12px;
}


.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-grid p {
  color: var(--text-dim);
  max-width: 48ch;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-links a {
  font-family: var(--mono);
  font-size: 13.5px;
  text-decoration: none;
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.contact-links a:hover {
  color: var(--amber);
  border-color: var(--amber);
}