@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  --vanilla: #FBF2DA;
  --tea: #E8FFDC;
  --sky: #75C3D1;
  --mauve: #A33E43;
  --bordeaux: #450C21;

  --bg: #450C21;
  --terminal-dark: #17040D;
  --terminal-line: rgba(232, 255, 220, 0.26);

  --text: #FBF2DA;
  --text-soft: rgba(251, 242, 218, 0.82);
  --text-dark: #450C21;

  --glow-green: rgba(47, 134, 0, 0.849);
  --glow-cream: rgba(217, 255, 210, 0.42);
  --glow-blue: rgba(117, 195, 209, 0.35);

  --shadow: rgba(23, 4, 13, 0.72);
  --shadow-strong: rgba(23, 4, 13, 0.88);

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  line-height: 1.6;
  overflow-x: hidden;
  letter-spacing: -0.02em;
  position: relative;
}


body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(232, 255, 220, 0.065) 0,
      rgba(232, 255, 220, 0.065) 1px,
      transparent 1px,
      transparent 5px
    );
  mix-blend-mode: screen;
}


body::after {
  content: "";
  position: fixed;
  inset: 14px;
  border: 1px solid rgba(232, 255, 220, 0.24);
  box-shadow:
    inset 0 0 28px rgba(232, 255, 220, 0.06),
    0 0 18px rgba(232, 255, 220, 0.06);
  pointer-events: none;
  z-index: 21;
}

::selection {
  background: var(--tea);
  color: var(--bordeaux);
}

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

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

.navbar {
  width: min(1100px, 90%);
  margin: 0 auto;
  padding: 26px 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(232, 255, 220, 0.26);
}

.logo {
  position: relative;
  display: inline-block;
  font-family: "Space Mono", monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tea);
  text-shadow:
    0 0 6px var(--glow-green),
    0 0 14px var(--glow-green),
    0 0 26px rgba(217, 255, 210, 0.34);
  transition: 0.1s ease;
}

.logo::before,
.logo::after {
  display: inline-block;
  transition: transform 0.1s ease, filter 0.1s ease, text-shadow 0.1s ease;
}

/*.logo::before {
  content: "☾ ";
  color: var(--vanilla);
  text-shadow:
    0 0 6px var(--glow-cream),
    0 0 14px var(--glow-cream);
}*/

/*.logo::after {
  content: " ✦";
  color: var(--sky);
  text-shadow:
    0 0 6px var(--glow-blue),
    0 0 14px var(--glow-blue);
}*/

.logo:hover {
  color: var(--tea);
  text-shadow:
    0 0 8px var(--glow-green),
    0 0 18px var(--glow-green),
    0 0 34px rgba(217, 255, 210, 0.42);
}

.logo:hover::before,
.logo:hover::after {
  animation: twinkle 0.85s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
    filter: brightness(1);
  }

  100% {
    transform: translateY(-1px) scale(1.12) rotate(-5deg);
    filter: brightness(1.2);
  }
}

@keyframes cursorBlink {
  0%, 49% {
    opacity: 1;
  }

  50%, 100% {
    opacity: 0;
  }
}

nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  color: var(--vanilla);
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0.82;
  transition: 0.18s ease;
}

nav a::before {
  content: "> ";
  color: var(--tea);
  opacity: 0;
  transition: 0.18s ease;
}

nav a:hover,
nav a.active {
  color: var(--tea);
  opacity: 1;
  text-shadow: 0 0 10px var(--glow-green);
}

nav a:hover::before,
nav a.active::before {
  opacity: 1;
}

.container {
  width: min(1000px, 90%);
  margin: 0 auto;
}


.hero {
  min-height: 500px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 58px 0 86px;
}

.hero-text {
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--tea);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--glow-green);
}

.eyebrow::before {
  content: "[ ";
  color: var(--sky);
}

.eyebrow::after {
  content: " ]";
  color: var(--sky);
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
  margin-bottom: 24px;
  letter-spacing: -0.07em;
  color: var(--tea);
  text-shadow:
    0 0 8px var(--glow-green),
    0 0 18px rgba(217, 255, 210, 0.36),
    0 0 32px rgba(217, 255, 210, 0.24);
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  line-height: 1.08;
  margin-bottom: 28px;
  letter-spacing: -0.04em;
  color: var(--tea);
  text-shadow:
    0 0 7px var(--glow-green),
    0 0 16px rgba(217, 255, 210, 0.3);
}

h3 {
  font-size: 1.03rem;
  margin-bottom: 8px;
  font-weight: 800;
  color: var(--bordeaux);
}

.hero-text p {
  max-width: 700px;
  margin-bottom: 18px;
  color: var(--text-soft);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 30px;
}


.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--tea);
  font-weight: 800;
  box-shadow: none;
  transition: 0.18s ease;
  text-shadow:
    0 0 8px var(--glow-green),
    0 0 14px rgba(217, 255, 210, 0.22);
}

.button::before {
  content: "$ ";
  margin-right: 8px;
  color: var(--sky);
}

.button::after {
  content: "_";
  margin-left: 4px;
  color: var(--tea);
  animation: cursorBlink 1s steps(1) infinite;
}

.button:hover {
  transform: translateX(4px);
  background: transparent;
  color: var(--vanilla);
  text-shadow:
    0 0 8px var(--glow-cream),
    0 0 16px var(--glow-green);
}

.button:hover::before {
  color: var(--tea);
}

.button:active {
  transform: translateX(2px);
  box-shadow: none;
}

.button-secondary {
  background: transparent;
  color: var(--text-soft);
  border: none;
  box-shadow: none;
}

.button-secondary::before {
  content: "./ ";
  color: var(--sky);
}

.button-secondary:hover {
  background: transparent;
  color: var(--tea);
  box-shadow: none;
}



.section {
  padding: 46px 0 70px;
}

.about-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: start;
}


.about-card,
.feature-card,
.card,
.project-card,
.timeline-card,
.contact-card {
  border-radius: var(--radius-md);
  border: 2px solid var(--bordeaux);
  box-shadow:
    8px 8px 0 var(--shadow),
    inset 0 0 0 1px rgba(69, 12, 33, 0.08);
  padding: 26px;
  transition: 0.2s ease;
}

.about-card:hover,
.feature-card:hover,
.card:hover,
.project-card:hover,
.timeline-card:hover,
.contact-card:hover {
  transform: translate(-3px, -3px);
  box-shadow:
    12px 12px 0 var(--shadow-strong),
    inset 0 0 0 1px rgba(69, 12, 33, 0.12);
}


.about-card {
  background: rgba(251, 242, 218, 0.94);
}

.feature-card {
  background: rgba(217, 255, 210, 0.94);
  display: grid;
  gap: 18px;
}

.about-card p,
.feature-card p,
.card p,
.project-card p,
.contact-card p {
  color: var(--text-dark);
  font-weight: 560;
}

.about-card p + p {
  margin-top: 16px;
}


.skills-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: rgba(251, 242, 218, 0.92);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "./";
  position: absolute;
  top: 12px;
  right: 14px;
  color: var(--mauve);
  font-size: 0.7rem;
  font-weight: 800;
  opacity: 0.85;
}

.card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 100%;
  background: var(--bordeaux);
}

.card:nth-child(2) {
  background: rgba(217, 255, 210, 0.92);
}

.card:nth-child(3) {
  background: rgba(117, 195, 209, 0.92);
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover::before {
  color: var(--bordeaux);
}


.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tags span {
  padding: 6px 12px;
  border: none;
  border-radius: 0;
  background: var(--terminal-dark);
  color: var(--tea);
  font-size: 0.74rem;
  font-weight: 800;
  box-shadow:
    0 0 10px rgba(217, 255, 210, 0.1),
    inset 0 0 12px rgba(217, 255, 210, 0.06);
}

.tags span::before {
  content: "#";
  color: var(--sky);
  margin-right: 2px;
}


.project-card {
  background: rgba(251, 242, 218, 0.92);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "~/project";
  position: absolute;
  top: 12px;
  right: 14px;
  color: var(--mauve);
  font-size: 0.7rem;
  font-weight: 800;
  opacity: 0.85;
}

.project-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 100%;
  background: var(--bordeaux);
}

.project-card:nth-child(2) {
  background: rgba(217, 255, 210, 0.92);
}

.project-card:nth-child(3) {
  background: rgba(117, 195, 209, 0.92);
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-card:hover::before {
  color: var(--bordeaux);
}

.project-icon {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: var(--terminal-dark);
  border: none;
  color: var(--tea);
  margin-bottom: 18px;
  padding: 7px 10px;
  font-size: 1rem;
  font-weight: 800;
  box-shadow:
    0 0 10px rgba(217, 255, 210, 0.14),
    inset 0 0 12px rgba(217, 255, 210, 0.08);
}

.project-icon::before {
  content: "$ ";
  color: var(--sky);
  margin-right: 4px;
}

.project-card p {
  margin-bottom: 18px;
}


.project-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 8px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--bordeaux);
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
  transition: 0.18s ease;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.project-card a::before {
  content: "$ ";
  color: var(--mauve);
  margin-right: 6px;
}

.project-card a::after {
  content: "_";
  margin-left: 4px;
  color: var(--mauve);
  animation: cursorBlink 1s steps(1) infinite;
}

.project-card a:hover {
  background: transparent;
  color: var(--mauve);
  transform: translateX(4px);
  text-shadow: none;
}


.timeline {
  position: relative;
  display: grid;
  gap: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 36px;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: var(--terminal-line);
  box-shadow:
    0 0 8px var(--glow-green),
    0 0 16px rgba(217, 255, 210, 0.18);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  align-items: start;
}

.year {
  width: 72px;
  height: auto;
  min-height: 34px;
  border-radius: 0;
  background: transparent;
  border: none;
  color: var(--tea);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-weight: 800;
  font-size: 0.88rem;
  z-index: 1;
  box-shadow: none;
  text-shadow:
    0 0 8px var(--glow-green),
    0 0 14px rgba(217, 255, 210, 0.24);
}

.year::before {
  content: "[";
  color: var(--sky);
  margin-right: 2px;
}

.year::after {
  content: "]";
  color: var(--sky);
  margin-left: 2px;
}


.timeline-card {
  background: rgba(23, 4, 13, 0.72);
  border-color: var(--terminal-line);
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: "log.entry";
  position: absolute;
  top: 12px;
  right: 14px;
  color: var(--tea);
  font-size: 0.7rem;
  font-weight: 800;
  opacity: 0.75;
  text-shadow: 0 0 8px var(--glow-green);
}

.timeline-card > * {
  position: relative;
  z-index: 1;
}

.timeline-card:hover {
  border-color: var(--tea);
  box-shadow:
    12px 12px 0 var(--shadow-strong),
    0 0 18px rgba(232, 255, 220, 0.18),
    inset 0 0 0 1px rgba(232, 255, 220, 0.12);
}

.timeline-card h3 {
  color: var(--tea);
  text-shadow: 0 0 8px var(--glow-green);
}

.timeline-card p {
  color: var(--text-soft);
}

.timeline-card .place {
  color: var(--sky) !important;
  text-shadow: 0 0 8px var(--glow-blue);
}

.place {
  color: var(--mauve) !important;
  margin-bottom: 14px;
  font-weight: 800;
}


.contact-section {
  padding-bottom: 86px;
}

.contact-card {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  background: rgba(23, 4, 13, 0.72);
  border-color: var(--terminal-line);
  box-shadow:
    8px 8px 0 var(--shadow),
    0 0 18px rgba(232, 255, 220, 0.12),
    inset 0 0 0 1px rgba(232, 255, 220, 0.08);
}

.contact-card h2 {
  color: var(--tea);
}

.contact-card p {
  max-width: 560px;
  margin: 0 auto 24px;
  color: var(--text-soft);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.contact-links a {
  padding: 8px 0;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--tea);
  font-weight: 900;
  box-shadow: none;
  transition: 0.18s ease;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-shadow:
    0 0 8px var(--glow-green),
    0 0 14px rgba(217, 255, 210, 0.22);
}

.contact-links a::before {
  content: "> ";
  color: var(--sky);
  
}

.contact-links a::after {
  
  margin-left: 4px;
  color: var(--tea);
  
}

.contact-links a:hover {
  background: transparent;
  color: var(--vanilla);
  transform: translateX(4px);
  box-shadow: none;
  text-shadow:
    0 0 8px var(--glow-cream),
    0 0 16px var(--glow-green);
}

.footer {
  width: min(1000px, 90%);
  margin: 0 auto;
  padding: 28px 0 42px;
  text-align: center;
  border-top: 1px solid rgba(217, 255, 210, 0.25);
}

.footer p {
  font-size: 0.88rem;
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .navbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    gap: 14px;
  }

  .hero {
    padding-top: 38px;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body::after {
    inset: 8px;
  }

  .container,
  .navbar,
  .footer {
    width: 92%;
  }

  nav a {
    font-size: 0.84rem;
  }

  .hero {
    min-height: 430px;
  }

  .timeline-item {
    grid-template-columns: 62px 1fr;
    gap: 18px;
  }

  .timeline::before {
    left: 30px;
  }

  .year {
    width: 58px;
    font-size: 0.78rem;
  }

  .about-card,
  .feature-card,
  .card,
  .project-card,
  .timeline-card,
  .contact-card {
    padding: 22px;
  }

  .contact-links {
    flex-direction: column;
    gap: 12px;
  }
}
