@font-face {
  font-family: "JetBrains Mono";
  src: url("https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-Regular.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Theme Colors --- */
:root {
  --background: #282a36;
  --background-alt: #242633;
  --foreground: #f8f8f2;
  --comment: #6272a4;
  --red: #ff5555;
  --orange: #ffb86c;
  --yellow: #f1fa8c;
  --green: #50fa7b;
  --cyan: #8be9fd;
  --purple: #bd93f9;
  --pink: #ff79c6;
}

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

html {
  scroll-behavior: smooth;
  font-family: "JetBrains Mono", monospace;
}

body {
  background: linear-gradient(
    180deg,
    var(--background) 0%,
    var(--background-alt) 100%
  );
  color: var(--foreground);
  line-height: 1.7;
  font-size: 16px;
}

/* --- Containers --- */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

/* --- Header --- */
header {
  position: sticky;
  top: 0;
  background: rgba(40, 42, 54, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 10;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--green);
  font-weight: 700;
  font-size: 1.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--pink);
}

/* --- Profile --- */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
}

.profile img {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--purple);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(189, 147, 249, 0.3);
}

.profile h1 {
  color: var(--green);
  font-size: 2rem;
}

.profile .subtitle {
  color: var(--comment);
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* --- Sections --- */
section {
  padding: 4rem 0;
  border: none;
}

section + section {
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 3rem;
}

h2 {
  color: var(--purple);
  margin-bottom: 1.5rem;
}

/* --- Timeline --- */
.timeline {
  position: relative;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  top: 10px;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 50px 1fr;
  align-items: start;
  padding: 2rem 0;
}

.timeline-entry::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--background);
  border: 3px solid var(--cyan);
  border-radius: 50%;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-employer {
  grid-column: 1;
  text-align: right;
  padding-right: 45px;
}

.timeline-missions {
  grid-column: 3;
  padding-left: 45px;
}

.mission {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.mission h4 {
  color: var(--cyan);
}

.mission-tech {
  color: var(--comment);
  font-size: 0.9rem;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 3rem;
  color: var(--comment);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Fade-up animation --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Links (Global) --- */
a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  color: var(--pink);
  text-shadow: 0 0 8px var(--pink);
}

/* --- Contact Section --- */
.contact {
  text-align: center;
  margin-top: 4rem;
}

.contact h2 {
  color: var(--green);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  transition: all 0.2s ease;
}

.contact-link:hover {
  background-color: var(--cyan);
  color: var(--background);
  text-shadow: none;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.socials a {
  color: var(--comment);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.socials a:hover {
  color: var(--purple);
}

/* --- About Section --- */
#about {
  margin: 0 auto;
  padding: 3rem 1.5rem;
  line-height: 1.8;
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  color: var(--foreground);
}

#about p {
  width: 100%;
  margin-bottom: 1.6rem;
  text-indent: 2.4rem;
}

#about strong {
  color: var(--green);
  font-weight: 600;
}

#about a {
  color: var(--pink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

#about a:hover {
  color: var(--green);
  border-color: var(--green);
}
