:root {
  --white: #ffffff;
  --evergreen: #1b342b;
  --moss: #2c4a3e;
  --lime: #c5f26e;
  --paper: #f2efe6;

  --font-display: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--evergreen);
  color: var(--paper);
  font-family: var(--font-display);
  line-height: 1.5;
  overflow-x: hidden;
}

::selection {
  background: var(--lime);
  color: var(--evergreen);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* -------- scanline / texture -------- */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.06) 0px,
    rgba(0, 0, 0, 0.06) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.5;
}

/* -------- focus states -------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ================= NAV ================= */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(27, 52, 43, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(242, 239, 230, 0.12);
}

nav.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
}

.logo span {
  color: var(--lime);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.nav-links a {
  color: var(--paper);
  opacity: 0.75;
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
}

.nav-links a::before {
  content: "./";
  color: var(--lime);
  opacity: 0;
  margin-right: 2px;
  transition: opacity 0.15s;
}

.nav-links a:hover::before {
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(242, 239, 230, 0.3);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: var(--radius);
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--evergreen);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid rgba(242, 239, 230, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links.open {
    max-height: 400px;
  }

  .nav-links a {
    padding: 14px 32px;
    width: 100%;
    display: block;
    border-top: 1px solid rgba(242, 239, 230, 0.08);
  }

  .nav-toggle {
    display: block;
  }
}

/* ================= HERO ================= */
.hero {
  padding: 70px 0 90px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: center;
}

.hero-photo {
  position: relative;
  width: 25rem;
  height: 25rem;
  justify-self: end;
}

.hero-photo::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--lime);
  border-radius: 10px;
  z-index: 0;
}

.hero-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(242, 239, 230, 0.15);
  filter: grayscale(20%);
  user-select: none;
}

.hero-photo .tag {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: var(--lime);
  color: var(--evergreen);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.5);
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    justify-self: start;
    width: 160px;
    height: 160px;
    margin-bottom: 8px;
  }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--lime);
  letter-spacing: 1px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: pulse 1.8s ease-in-out infinite;
}

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

  50% {
    opacity: 0.35;
  }
}

.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 700;
  max-width: 900px;
  letter-spacing: -1px;
}

.hero h1 .accent {
  color: var(--lime);
}

.hero p.sub {
  margin-top: 24px;
  max-width: 560px;
  font-size: 17px;
  color: rgba(242, 239, 230, 0.75);
}

.terminal {
  margin-top: 44px;
  max-width: 620px;
  background: var(--moss);
  border: 1px solid rgba(197, 242, 110, 0.18);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid rgba(197, 242, 110, 0.1);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(242, 239, 230, 0.25);
}

.terminal-bar .title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(242, 239, 230, 0.5);
}

.terminal-body {
  padding: 20px 22px 26px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--paper);
}

.terminal-body .line {
  margin-bottom: 6px;
}

.terminal-body .prompt {
  color: var(--lime);
}

.terminal-body .out {
  color: rgba(242, 239, 230, 0.7);
}

.caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--lime);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(242, 239, 230, 0.3);
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn.primary {
  background: var(--lime);
  color: var(--evergreen);
  border-color: var(--lime);
  font-weight: 700;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(197, 242, 110, 0.45);
}

.btn.ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

/* ================= SECTION SHARED ================= */
section {
  padding: 96px 0;
}

.section-head {
  margin-bottom: 48px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--lime);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(197, 242, 110, 0.4), transparent);
}

/* ================= SKILLS ================= */
#skills {
  background: var(--moss);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.skill-card {
  background: var(--evergreen);
  border: 1px solid rgba(242, 239, 230, 0.1);
  border-radius: 6px;
  padding: 20px 16px;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}

.skill-card:hover {
  border-color: var(--lime);
  transform: translateY(-3px);
}

.skill-card .sk-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(242, 239, 230, 0.4);
}

.skill-card .sk-name {
  margin-top: 10px;
  font-weight: 600;
  font-size: 15px;
}

.skill-card .sk-tag {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--lime);
  opacity: 0.85;
}

/* ================= PROJECTS ================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--moss);
  border: 1px solid rgba(242, 239, 230, 0.08);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 242, 110, 0.4);
}

.project-card .repo-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--lime);
  word-break: break-word;
}

.project-card .repo-desc {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(242, 239, 230, 0.75);
  flex-grow: 1;
}

.project-card .repo-meta {
  margin-top: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(242, 239, 230, 0.55);
}

.repo-meta .lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  display: inline-block;
  margin-right: 6px;
}

.projects-status {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(242, 239, 230, 0.5);
  margin-bottom: 20px;
}

.view-all {
  margin-top: 32px;
  display: inline-flex;
}

/* ================= YOUTUBE + CERTS ================= */
#experience {
  background: var(--moss);
}

.exp-columns {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}

@media (max-width: 820px) {
  .exp-columns {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: var(--evergreen);
  border: 1px solid rgba(242, 239, 230, 0.1);
  border-radius: 8px;
  padding: 32px;
}

.panel h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.panel p {
  color: rgba(242, 239, 230, 0.72);
  font-size: 14.5px;
  margin-bottom: 20px;
}

.yt-thumb {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
}

.yt-play {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-play svg {
  width: 16px;
  height: 16px;
  fill: var(--evergreen);
}

.yt-thumb .yt-name {
  font-weight: 600;
  font-size: 14.5px;
}

.yt-thumb .yt-handle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--lime);
}

.cert-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cert-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.16);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 14px;
}

.cert-item .cert-org {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--lime);
  display: block;
  margin-top: 3px;
}

.cert-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  border: 1px solid rgba(197, 242, 110, 0.4);
  color: var(--lime);
  padding: 4px 8px;
  border-radius: 20px;
  cursor: pointer;
}

.popUp {
  width: 100%;
  height: 100%;
  margin: auto;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  background: var(--evergreen);
  overflow-y: auto;
}

.popUp .buttons {
  max-width: 50vw;
  height: fit-content;
  margin: auto;
  padding: 10px;
  transform: translateY(100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.popUp .buttons span {
  display: block;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  background-color: var(--lime);
  color: var(--evergreen);
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.popUp .buttons .span:hover {
  transform: translateY(-5px);
  transition: 0.1s linear;
}

/* ================= EDUCATION ================= */
.edu-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  max-width: 760px;
}

.edu-year {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--lime);
  border-left: 2px solid var(--lime);
  padding-left: 14px;
  height: fit-content;
}

.edu-block h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 10px;
}

.edu-block p {
  color: rgba(242, 239, 230, 0.75);
  font-size: 15px;
  margin-bottom: 10px;
}

.edu-wink {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--lime);
  display: inline-block;
  margin-top: 6px;
}

/* ================= LANGUAGES ================= */
#languages {
  background: var(--moss);
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.lang-card {
  background: var(--evergreen);
  border-radius: 8px;
  padding: 24px;
  border: 1px solid rgba(242, 239, 230, 0.08);
}

.lang-card .lang-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.lang-card .lang-level {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--lime);
  margin-bottom: 16px;
}

.lang-bar {
  height: 6px;
  border-radius: 4px;
  background: rgba(242, 239, 230, 0.1);
  overflow: hidden;
}

.lang-bar > i {
  display: block;
  height: 100%;
  background: var(--lime);
  border-radius: 4px;
}

/* ================= CONTACT ================= */
#contact {
  padding-top: 110px;
}

.contact-title {
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 700;
  max-width: 680px;
  letter-spacing: -1px;
}

.contact-title .accent {
  color: var(--lime);
}

.contact-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.contact-card {
  background: var(--moss);
  border: 1px solid rgba(242, 239, 230, 0.1);
  border-radius: 8px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}

.contact-card:hover {
  border-color: var(--lime);
  transform: translateY(-3px);
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(197, 242, 110, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--lime);
  fill: none;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(242, 239, 230, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-value {
  font-size: 14.5px;
  font-weight: 600;
  word-break: break-all;
}

footer {
  padding: 36px 0 48px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(242, 239, 230, 0.45);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid rgba(242, 239, 230, 0.08);
  margin-top: 60px;
}

footer .accent {
  color: var(--lime);
}


/* Very small & Small screens */
@media (max-width: 500px) {
  .popUp .buttons {
    max-width: 90vw;
  }
}
