@font-face {
  font-family: "Fira Code";
  src: url("./fonts/firacode/FiraCode-Regular.woff2") format("woff2"),
    url("./fonts/firacode/FiraCode-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color Palette */
  --color-bg-primary: #1a1b26;
  --color-bg-secondary: #24283b;
  --color-bg-tertiary: #1f2335;
  --color-bg-elevated: #2f3549;

  --color-text-primary: #c0caf5;
  --color-text-secondary: #a9b1d6;
  --color-text-muted: #7d809c;

  --color-accent-blue: #7dcfff;
  --color-accent-purple: #bb9af7;
  --color-accent-green: #9ece6a;

  --color-border-subtle: #2f3549;
  --color-border-muted: #3b4260;
  --color-border-emphasis: #414868;

  --color-accent-blue: #7dcfff;
  --color-accent-purple: #bb9af7;
  --color-accent-red: #f7768e;
  --color-border-elevated: #2f3549;

  /* Gradients */
  --gradient-primary: linear-gradient(
    90deg,
    var(--color-accent-blue),
    var(--color-accent-purple)
  );
  --gradient-bg: linear-gradient(
    135deg,
    var(--color-bg-secondary) 0%,
    var(--color-bg-tertiary) 100%
  );
  --gradient-text: linear-gradient(
    135deg,
    var(--color-text-primary) 0%,
    var(--color-accent-blue) 100%
  );
  --gradient-shine: linear-gradient(
    90deg,
    transparent,
    rgba(125, 207, 255, 0.1),
    transparent
  );
  --gradient-shine-emphasis: linear-gradient(
    90deg,
    transparent,
    rgba(125, 207, 255, 0.15),
    transparent
  );

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 40px;
  --space-3xl: 48px;
  --space-4xl: 64px;

  /* Typography */
  --font-family-primary: "Fira Code", monospace, system-ui, -apple-system,
    sans-serif;
  --font-size-xs: 0.8em;
  --font-size-sm: 0.85em;
  --font-size-base: 0.9em;
  --font-size-md: 0.95em;
  --font-size-lg: 1.2em;
  --font-size-xl: 1.25em;
  --font-size-2xl: 1.5em;
  --font-size-3xl: 2em;
  --font-size-4xl: 2.5em;

  --line-height-tight: 1.25;
  --line-height-base: 1.6;
  --line-height-relaxed: 1.7;
  --line-height-loose: 1.8;

  /* Border Radius */
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(125, 207, 255, 0.2);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-blue: 0 4px 12px rgba(125, 207, 255, 0.2);
  --shadow-purple: 0 4px 12px rgba(187, 154, 247, 0.2);
  --shadow-green: 0 4px 12px rgba(158, 206, 106, 0.2);

  /* Transitions */
  --transition-fast: 0.2s;
  --transition-base: 0.3s;
  --transition-slow: 0.4s;
  --transition-slower: 0.5s;
  --transition-slowest: 0.6s;

  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: ease-out;
  --ease-in-out: ease-in-out;

  /* Animations */
  --animation-duration-base: 0.8s;
  --animation-duration-slow: 1s;
  --animation-duration-slower: 1.5s;
  --animation-duration-slowest: 20s;

  /* Layout */
  --max-width-content: 650px;
  --max-width-header: 700px;
  --border-width-thin: 1px;
  --border-width-thick: 2px;
  --border-width-thicker: 4px;
}

/* ================== BASE STYLES & ACCESSIBILITY ================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* max-width: var(--max-width-content); */
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
  font-family: var(--font-family-primary);
  line-height: var(--line-height-base);
  color: var(--color-text-secondary);
  background: var(--color-bg-primary);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(125, 207, 255, 0.03) 0%,
    transparent 50%
  );
  animation: rotate var(--animation-duration-slowest) linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

::selection {
  background: var(--color-border-emphasis);
  color: var(--color-text-primary);
}

/* ================== HEADINGS ================== */
h1,
h2,
h3 {
  font-weight: 600;
  line-height: var(--line-height-tight);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
  position: relative;
}

h1 {
  font-size: var(--font-size-3xl);
  border-bottom: var(--border-width-thin) solid var(--color-border-muted);
  padding-bottom: 0.3em;
  animation: fadeInDown 0.6s var(--ease-out);
  margin-bottom: var(--space-sm);
}

h1::after {
  content: "";
  position: absolute;
  bottom: calc(-1 * var(--border-width-thin));
  left: 0;
  width: 0;
  height: var(--border-width-thick);
  background: var(--gradient-primary);
  animation: expandWidth var(--animation-duration-slower) var(--ease-out) 0.3s
    forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandWidth {
  to {
    width: 100%;
  }
}

h2 {
  font-size: var(--font-size-2xl);
  /* border-bottom: var(--border-width-thin) solid var(--color-border-muted); */
  padding-bottom: 0.3em;
  transition: color var(--transition-base);
}

h2:hover {
  color: var(--color-accent-blue);
}

h3 {
  font-size: var(--font-size-xl);
  color: var(--color-accent-purple);
}

/* ================== PARAGRAPHS & LISTS ================== */
p {
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeIn var(--animation-duration-base) var(--ease-out) forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

ul,
ol {
  padding-left: 2em;
  margin-bottom: var(--space-md);
}

li {
  margin-bottom: var(--space-xs);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

li:hover {
  transform: translateX(4px);
  color: var(--color-text-primary);
}

/* ================== SITE HEADER ================== */

.site-header {
  max-width: var(--max-width-header);
  margin: 0 auto 4rem auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeInDown 0.6s var(--ease-out);
  position: sticky;
  top: 1rem;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  z-index: 10;

  /* Start completely transparent and seamless */
  background-color: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  box-shadow: none;
  border: 1px solid transparent;

  /* Smooth transition for all properties */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Add frosted glass effect only when scrolled */
.site-header.scrolled {
  background-color: rgba(26, 27, 38, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(47, 53, 73, 0.5);
}

.site-logo {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  font-family: var(--font-family-primary);
  z-index: 11; /* Keep logo above the menu */
}

.site-logo::before {
  content: "~/";
  color: var(--color-accent-blue);
  margin-right: 4px;
}

.site-logo:hover {
  color: var(--color-accent-blue);
  transform: translateX(4px);
}

.site-nav {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.nav-toggle-container {
  display: none;
}

/* Hide the actual checkbox */
#nav-toggle {
  display: none;
}

.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: var(--border-width-thin);
  background: var(--color-accent-blue);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--color-accent-blue);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-accent-blue);
}

.nav-link.active::after {
  width: 100%;
}

@media (max-width: 600px) {
  .site-header {
    margin: 0 auto;
    margin-bottom: 3rem;
    padding: 0;
    /* padding: var(--space-md) var(--space-lg); */
    /* Remove flex-wrap since nav will be positioned absolutely */
  }
  .site-header.scrolled {
    padding: var(--space-md) var(--space-lg);
  }

  .site-nav {
    /* Position absolutely so it doesn't affect header height */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: var(--space-md);

    /* Styling */
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: var(--space-sm) 0;
    border-radius: var(--radius-lg);

    /* Minimal frosted glass effect */
    background-color: rgba(26, 27, 38, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(47, 53, 73, 0.3);

    /* Start hidden */
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;

    /* Smooth animation */
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Show menu when checkbox is checked */
  #nav-toggle:checked ~ .site-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-link {
    font-size: var(--font-size-base);
    padding: var(--space-sm) 0;
    text-align: center;
    width: 100%;
  }

  .nav-toggle-container {
    display: block;
    z-index: 11;
  }

  /* Style the menu button */
  .nav-toggle-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    color: var(--color-text-secondary);
  }

  .nav-toggle-label:hover {
    background-color: rgba(47, 53, 73, 0.3);
    color: var(--color-accent-blue);
  }
}

/* ================== CODE BLOCKS ================== */
code {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-md);
  font-family: var(--font-family-primary);
  font-size: 85%;
  transition: all var(--transition-fast);
  border: var(--border-width-thin) solid transparent;
}

code:hover {
  background: var(--color-bg-elevated);
  border-color: var(--color-border-emphasis);
}

/* ================== LINKS ================== */
a {
  color: var(--color-accent-blue);
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  padding-bottom: 2px;
}

a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: var(--border-width-thin);
  background: var(--color-accent-blue);
  transition: width var(--transition-base);
}

a:hover::after {
  width: 100%;
}

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

/* ================== BLOCKQUOTES ================== */
blockquote {
  border-left: var(--border-width-thicker) solid var(--color-border-emphasis);
  padding-left: 1em;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-md) 0;
  font-style: italic;
  position: relative;
  transition: all var(--transition-base);
}

blockquote:hover {
  border-left-color: var(--color-accent-blue);
  padding-left: 1.5em;
  color: #9699b7;
}

/* ================== HORIZONTAL RULE ================== */
hr {
  border: 0;
  height: var(--border-width-thin);
  background: var(--color-border-muted);
  margin: var(--space-xl) 0;
}

/* ================== HEADER & INTRO ================== */
header {
  margin-bottom: var(--space-2xl);
  animation: fadeIn var(--animation-duration-base) var(--ease-out);
}

.subtitle {
  color: var(--color-text-muted);
  font-size: var(--font-size-md);
  display: block;
  margin-top: var(--space-xs);
  margin-bottom: var(--space-md);
  animation: fadeIn var(--animation-duration-slow) var(--ease-out) 0.2s
    backwards;
}

.intro-text {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ================== SOCIAL LINKS ================== */
.social-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  animation: fadeIn var(--animation-duration-slow) var(--ease-out) 0.6s
    backwards;
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 10px var(--space-md);
  background: var(--gradient-bg);
  border: var(--border-width-thin) solid var(--color-border-elevated);
  border-radius: var(--radius-lg);
  color: var(--color-text-secondary);
  transition: all var(--transition-slow) var(--ease-standard);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-shine);
  transition: left var(--transition-slowest);
}

.social-link:hover::before {
  left: 100%;
}

.social-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: var(--border-width-thick);
  background: var(--gradient-primary);
  transition: width var(--transition-slow) var(--ease-standard);
}

.social-link:hover::after {
  width: 100%;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
  border-color: var(--color-accent-blue);
  color: var(--color-text-primary);
}

.social-link i {
  font-size: var(--font-size-lg);
  transition: transform var(--transition-base);
}

.social-link:hover i {
  transform: scale(1.1) rotate(5deg);
}

.social-username {
  font-size: var(--font-size-base);
  font-weight: 500;
}

/* ================== PROJECT & BLOG CARDS ================== */
.card {
  background: var(--gradient-bg);
  border: var(--border-width-thin) solid var(--color-border-elevated);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  transition: all var(--transition-slow) var(--ease-standard);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--border-width-thick);
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow) var(--ease-standard);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: var(--border-width-thin);
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover::after {
  opacity: 1;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-title {
  color: var(--color-text-primary);
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color var(--transition-base);
}

.card:hover .card-title {
  color: var(--color-accent-blue);
}

.card-title::before {
  content: "◆";
  color: var(--color-accent-blue);
  font-size: 0.7em;
  transition: transform var(--transition-base);
}

.card:hover .card-title::before {
  transform: rotate(45deg);
}

.card-desc {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-base);
}

.card-meta {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.card-tag {
  background: rgba(125, 207, 255, 0.1);
  color: var(--color-accent-blue);
  padding: 2px var(--space-xs);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
}

/* ================== TECH STACK ================== */
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.tech-tag {
  background: var(--color-bg-secondary);
  color: var(--color-text-secondary);
  padding: 6px var(--space-sm);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  border: var(--border-width-thin) solid var(--color-border-elevated);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.tech-tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-shine);
  transition: left var(--transition-slower);
}

.tech-tag:hover::before {
  left: 100%;
}

.tech-tag:hover {
  border-color: var(--color-accent-blue);
  color: var(--color-text-primary);
  transform: translateY(-2px);
}

/* ================== FOOTER ================== */
footer {
  margin-top: var(--space-3xl);
  padding-top: var(--space-lg);
  border-top: var(--border-width-thin) solid var(--color-border-muted);
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

footer:hover {
  opacity: 1;
}

/* ================== PROJECT PAGE ================== */
.project {
  animation: fadeIn var(--animation-duration-base) var(--ease-out);
}

.project header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  /* border-bottom: var(--border-width-thin) solid var(--color-border-muted); */
  position: relative;
}

.project h1 {
  margin-top: 0;
  margin-bottom: var(--space-md);
  font-size: var(--font-size-4xl);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project .meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeIn var(--animation-duration-slow) var(--ease-out) 0.4s
    backwards;
}

.project .meta .tech {
  background: var(--gradient-bg);
  color: var(--color-accent-blue);
  padding: 6px 14px;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-weight: 500;
  border: var(--border-width-thin) solid var(--color-border-elevated);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.project .meta .tech::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-shine-emphasis);
  transition: left var(--transition-slower);
}

.project .meta .tech:hover::before {
  left: 100%;
}

.project .meta .tech:hover {
  border-color: var(--color-accent-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.project .meta .status {
  background: var(--gradient-bg);
  color: var(--color-accent-green);
  padding: 6px 14px;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-weight: 500;
  border: var(--border-width-thin) solid var(--color-border-elevated);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.project .meta .status::before {
  content: "●";
  margin-right: 6px;
  animation: pulse 2s var(--ease-in-out) infinite;
}

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

.project .meta .status:hover {
  border-color: var(--color-accent-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

.project .meta a {
  color: var(--color-accent-purple);
  font-size: var(--font-size-base);
  font-weight: 500;
  padding: 6px 14px;
  border: var(--border-width-thin) solid var(--color-border-elevated);
  border-radius: var(--radius-lg);
  background: var(--gradient-bg);
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project .meta a::after {
  content: "→";
  transition: transform var(--transition-base);
  background: none;
  position: static;
  width: auto;
  height: auto;
}

.project .meta a:hover {
  border-color: var(--color-accent-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple);
}

.project .meta a:hover::after {
  transform: translateX(4px);
}

.project .content {
  margin-bottom: var(--space-3xl);
  line-height: var(--line-height-loose);
  animation: fadeIn var(--animation-duration-slow) var(--ease-out) 0.6s
    backwards;
}

.project .content > *:first-child {
  margin-top: 0;
}

.project .content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: 20px;
  color: var(--color-text-primary);
  font-size: 1.75em;
}

.project .content h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--color-accent-purple);
  font-size: 1.35em;
}

.project .content p:has(img) {
  margin: 0 auto;
  max-width: fit-content;
}

.project .content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  margin: var(--space-lg) 0;
  border: var(--border-width-thin) solid var(--color-border-elevated);
  transition: all var(--transition-base);
}

.project .content img:hover {
  border-color: var(--color-accent-blue);
  box-shadow: var(--shadow-blue);
  transform: scale(1.02);
}

.project .content pre {
  background: var(--color-bg-secondary);
  border: var(--border-width-thin) solid var(--color-border-elevated);
  border-radius: var(--radius-xl);
  padding: 20px;
  overflow-x: auto;
  margin: var(--space-lg) 0;
  transition: all var(--transition-base);
}

.project .content pre:hover {
  border-color: var(--color-border-emphasis);
  box-shadow: var(--shadow-sm);
}

.project .content pre code {
  background: none;
  padding: 0;
  border: none;
  font-size: var(--font-size-base);
  line-height: 1.5;
}

.project footer {
  margin-top: var(--space-4xl);
  padding-top: var(--space-lg);
  border-top: var(--border-width-thin) solid var(--color-border-muted);
  animation: fadeIn var(--animation-duration-slow) var(--ease-out) 0.8s
    backwards;
}

.project footer a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) 20px;
  background: var(--gradient-bg);
  border: var(--border-width-thin) solid var(--color-border-elevated);
  border-radius: var(--radius-lg);
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: all var(--transition-slow) var(--ease-standard);
  position: relative;
  overflow: hidden;
}

.project footer a::before {
  content: "←";
  transition: transform var(--transition-base);
  background: none;
  position: static;
  width: auto;
  height: auto;
}

.project footer a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-shine);
  transform: translateX(-100%);
  transition: transform var(--transition-slowest);
  width: 100%;
  height: 100%;
}

.project footer a:hover::before {
  transform: translateX(-4px);
}

.project footer a:hover::after {
  transform: translateX(100%);
}

.project footer a:hover {
  border-color: var(--color-accent-blue);
  color: var(--color-text-primary);
  transform: translateX(-4px);
  box-shadow: var(--shadow-blue);
}

/* ================== RESPONSIVE DESIGN ================== */
@media (max-width: 600px) {
  .project h1 {
    font-size: var(--font-size-3xl);
  }

  .project .meta {
    gap: var(--space-sm);
  }

  .project .meta .tech,
  .project .meta .status,
  .project .meta a {
    font-size: var(--font-size-sm);
    padding: 5px var(--space-sm);
  }

  .project .content h2 {
    font-size: var(--font-size-2xl);
  }

  .project .content h3 {
    font-size: var(--font-size-lg);
  }
}

/* ================== SCROLL INDICATOR ================== */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #7dcfff, #bb9af7);
  z-index: 1000;
  transition: width 0.1s;
}

.error-code {
  font-size: 8rem;
  font-weight: 600;
  background: linear-gradient(
    135deg,
    var(--color-accent-blue),
    var(--color-accent-purple)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  animation: glitch 3s infinite;
  position: relative;
  line-height: 1;
}

@keyframes glitch {
  0%,
  100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
}

.terminal {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-elevated);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.terminal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(
    90deg,
    var(--color-accent-red) 0%,
    var(--color-accent-red) 12px,
    transparent 12px,
    transparent 24px,
    #f7768e 24px,
    #f7768e 36px,
    transparent 36px
  );
  border-bottom: 1px solid var(--color-border-elevated);
}

.terminal-header {
  margin-top: 30px;
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.terminal-body {
  font-size: 0.9rem;
  line-height: 1.6;
}

.prompt {
  color: var(--color-accent-blue);
  margin-right: 0.5rem;
}

.error-line {
  color: var(--color-accent-red);
  animation: blink 1s step-end infinite;
}

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

.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--color-accent-blue);
  animation: blink-cursor 1s step-end infinite;
  margin-left: 4px;
}

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

.actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeIn 0.8s ease-out 0.6s backwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--color-bg-secondary), #1f2335);
  border: 1px solid var(--color-border-elevated);
  border-radius: 6px;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(125, 207, 255, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(125, 207, 255, 0.2);
  border-color: var(--color-accent-blue);
  color: var(--color-text-primary);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-accent-blue),
    var(--color-accent-purple)
  );
  color: var(--color-bg-primary);
  font-weight: 500;
  border: none;
}

.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(125, 207, 255, 0.3);
  transform: translateY(-2px) scale(1.02);
}

.suggestions {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-elevated);
  border-radius: 8px;
  animation: fadeIn 0.8s ease-out 0.8s backwards;
}

.suggestions h3 {
  color: var(--color-text-primary);
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.suggestions ul {
  list-style: none;
  text-align: left;
}

.suggestions li {
  margin-bottom: 0.5rem;
  transition: transform 0.2s;
}

.suggestions li:hover {
  transform: translateX(4px);
}

.suggestions a {
  color: var(--color-accent-blue);
  text-decoration: none;
  transition: color 0.2s;
}

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

.suggestions a::before {
  content: "→ ";
  margin-right: 0.5rem;
}

@media (max-width: 600px) {
  .error-code {
    font-size: 5rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Timeline Styles */
.timeline {
  position: relative;
  padding-left: var(--space-xl);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-2xl);
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}

.timeline-item:nth-child(1) {
  animation-delay: 0.1s;
}
.timeline-item:nth-child(2) {
  animation-delay: 0.2s;
}
.timeline-item:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -41px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-bg-primary);
  border: 3px solid var(--color-accent-blue);
  z-index: 2;
  transition: all var(--transition-base);
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(125, 207, 255, 0.2);
}

.timeline-item.current .timeline-marker {
  background: var(--color-accent-green);
  border-color: var(--color-accent-green);
  box-shadow: 0 0 0 4px rgba(158, 206, 106, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(158, 206, 106, 0.2);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(158, 206, 106, 0.1);
  }
}

/* Timeline Styles - Minimalist Approach */
.timeline {
  position: relative;
  padding-left: 0;
  max-width: 100%;
}

.timeline::before {
  display: none;
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-xl);
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
  border-left: 2px solid var(--color-border-subtle);
  padding-left: var(--space-lg);
  margin-left: var(--space-xs);
}

.timeline-item:nth-child(1) {
  animation-delay: 0.1s;
}
.timeline-item:nth-child(2) {
  animation-delay: 0.2s;
}
.timeline-item:nth-child(3) {
  animation-delay: 0.3s;
}

.timeline-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline-item:hover {
  border-left-color: var(--color-accent-blue);
}

.timeline-item.current {
  border-left-color: var(--color-accent-green);
}

.timeline-marker {
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border-muted);
  transition: all var(--transition-base);
}

.timeline-item:hover .timeline-marker {
  background: var(--color-accent-blue);
  transform: scale(1.4);
}

.timeline-item.current .timeline-marker {
  background: var(--color-accent-green);
  transform: scale(1.4);
  box-shadow: 0 0 0 3px rgba(158, 206, 106, 0.2);
}

.timeline-content {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  transition: all var(--transition-base);
}

.timeline-content::before {
  display: none;
}

.timeline-item:hover .timeline-content {
  transform: translateX(4px);
  box-shadow: none;
  border-color: transparent;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-xs);
  gap: var(--space-md);
}

.timeline-title {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  transition: color var(--transition-base);
}

.timeline-item:hover .timeline-title {
  color: var(--color-accent-blue);
}

.timeline-title i {
  display: none;
}

.timeline-date {
  font-size: 0.8em;
  color: var(--color-text-muted);
  white-space: nowrap;
  font-weight: 400;
}

.timeline-date i {
  display: none;
}

.timeline-company {
  color: var(--color-text-muted);
  font-size: 0.9em;
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

.timeline-description {
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
  font-size: 0.9em;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.tag {
  background: transparent;
  color: var(--color-text-muted);
  padding: 0;
  border-radius: 0;
  font-size: 0.8em;
  border: none;
  transition: color var(--transition-base);
}

.tag::after {
  content: "·";
  margin-left: var(--space-xs);
  color: var(--color-border-muted);
}

.tag:last-child::after {
  display: none;
}

.tag:hover {
  color: var(--color-accent-blue);
  background: transparent;
  transform: none;
  border: none;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border-radius: 0;
  font-size: 0.8em;
  font-weight: 400;
  margin-top: var(--space-xs);
  background: transparent;
  border: none;
}

.status-badge.current {
  background: transparent;
  color: var(--color-accent-green);
  border: none;
}

.status-badge i {
  font-size: 0.6em;
}

@media (max-width: 600px) {
  .timeline {
    padding-left: 0;
  }

  .timeline-item {
    padding-left: var(--space-md);
    margin-left: 6px;
  }

  .timeline-marker {
    left: -5px;
  }

  .timeline-header {
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }

  .timeline-date {
    white-space: normal;
  }
}

.site-footer {
  width: 100%;
  max-width: var(--max-width-content);
  margin: 0 auto;
  margin-top: var(--space-4xl);
  padding-top: var(--space-lg);
  border-top: var(--border-width-thin) solid var(--color-border-muted);
  opacity: 0.7;
  transition: opacity var(--transition-base);
  display: flex;
  justify-content: center;
}
