:root {
  --bg: #f2efe8;
  --bg-soft: #f5f7f8;
  /* --bg-soft: #f2efe8; */
  --card: #ffffff;
  --border: #e2e6e9;
  --ink: #1c1c20;
  --text: #1c1c20;
  --muted: #5b6770;
  --black: #000000;
  /* --accent: #00838f; */
  --accent: #ffd747;
  --shadow: 0 14px 34px rgba(28, 28, 32, 0.1);
  --radius: 16px;
  --maxw: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.06;
  mask-image: radial-gradient(circle at 70% 10%, black, transparent 70%);
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.brand-name {
  font-size: 15px;
  letter-spacing: 0.3px;
  color: var(--black);
}

.nav {
  display: flex;
  gap: 26px;
}
.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.25s;
}

/* HERO */
main {
  position: relative;
  z-index: 1;
}
.hero {
  padding: 84px 0 64px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--black);
  background-color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 1.8s infinite;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--black);
}
.accent {
  color: var(--accent);
}
.lede {
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 17px;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition:
    transform 0.15s,
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: #006b74;
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.hero-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.hero-tags li {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
}

/* HERO CARD / TERMINAL */
.hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.avatar {
  width: 116px;
  height: 116px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 38px;
  color: #fff;
  letter-spacing: 1px;
  background: var(--accent);
  box-shadow: var(--shadow);
}
.terminal {
  width: 100%;
  max-width: 420px;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #14141a;
}
.term-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.term-bar span:nth-child(1) {
  background: #ff5f57;
}
.term-bar span:nth-child(2) {
  background: #febc2e;
}
.term-bar span:nth-child(3) {
  background: #28c840;
}
.term-bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  color: #9fb0c0;
}
.term-body {
  padding: 16px;
  font-size: 13px;
  color: #fff;
}
.term-body p {
  margin: 6px 0;
}
.prompt {
  color: var(--accent);
  font-weight: 700;
}
.out {
  color: #c4cfd6;
}
.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--accent);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

/* SECTIONS */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.section-title {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 16px;
  color: var(--black);
}
.section-sub {
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 30px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
#about p {
  color: var(--muted);
  margin-bottom: 14px;
}
#about strong {
  color: var(--ink);
}

.quick-facts {
  list-style: none;
  display: grid;
  gap: 12px;
}
.quick-facts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  background: var(--bg-soft);
}
.quick-facts span {
  color: var(--muted);
  font-size: 14px;
}
.quick-facts strong {
  font-weight: 600;
  color: var(--ink);
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.card-icon {
  font-size: 28px;
  margin-bottom: 14px;
  color: var(--accent);
}
.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--ink);
}
.card p {
  color: var(--muted);
  font-size: 14px;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.skill-group {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.skill-group h4 {
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
}

/* TIMELINE */
.timeline {
  list-style: none;
  position: relative;
  padding-left: 22px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline li {
  position: relative;
  margin-bottom: 22px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline strong {
  display: block;
  color: var(--ink);
}
.timeline span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.timeline p {
  color: var(--muted);
  font-size: 14px;
}

.training {
  list-style: none;
  display: grid;
  gap: 14px;
}
.training li {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  background: var(--bg-soft);
  display: grid;
  gap: 2px;
}
.training span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
}
.training strong {
  color: var(--ink);
}
.training em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}
.note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

/* CONTACT */
.contact-list {
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin-bottom: 24px;
}
.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  background: var(--bg-soft);
}
.contact-list span:first-child {
  color: var(--muted);
  font-size: 14px;
}
.contact-list a {
  color: var(--accent);
}
.socials {
  display: flex;
  gap: 14px;
}
.socials a {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 600;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  background: var(--bg-soft);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}
.to-top {
  color: var(--accent);
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

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

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner,
  .two-col {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-card {
    order: -1;
  }
}
@media (max-width: 640px) {
  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav.open {
    max-height: 320px;
  }
  .nav a {
    padding: 14px 24px;
    border-top: 1px solid var(--border);
  }
  .nav-toggle {
    display: flex;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .contact-list li {
    flex-direction: column;
    gap: 4px;
  }
}
