:root {
    --primary-dark: #0f172a;
    --secondary-dark: #1e293b;
    --accent-light: #8b5cf6;
    --accent-dark: #271a47;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-radius: 10px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* ─── Base ─────────────────────────────────────── */

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    line-height: 1.6;
    background-color: rgb(12, 11, 11);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px;
}

h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
}
.accent {
    color: var(--accent-light);
}
/* ─── Layout ────────────────────────────────────── */

.page-wrapper {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    max-width: 1400px; /* locks the layout, won't collapse below this */
    margin: 0 auto;

}

/* shared across all pages */
main {
    padding: 0 150px;
}

/* ─── Navbar ────────────────────────────────────── */

header {
    display: flex;
    justify-content: center;
}

.navbar {
    display: inline-flex;
    align-items: center;
    padding: 1px 10px;
    background-color: rgb(29, 29, 29);
    justify-content: center;
    border-radius: 10px;
}

.nav-links ul {
    display: flex;
    list-style: none;
    gap: 12px;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-links li {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 4px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

.nav-links li::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--accent-light);
    border-radius: var(--border-radius);
    transform: scale(0);
    transform-origin: center;
    transition: transform 0.2s ease;
    z-index: 0;
}

.nav-links li:hover::before,
.nav-links li.active::before {
    transform: scale(1);
}

.nav-links li i {
    position: relative;
    z-index: 1;
}

.tooltip {
    position: fixed;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    border-radius: 8px;
    background-color: rgb(29, 29, 29);
    padding: 2px 8px;
    z-index: 9998;
}

.nav-links li:hover .tooltip {
    opacity: 1;
}

/* ─── Home page ─────────────────────────────────── */

.content-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    margin-top: 60px;
}

.photocard {
    background-color: rgb(29, 29, 29);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.profile-pic {
    width: 250px;
    height: 250px;
    border-radius: var(--border-radius);
    object-fit: cover;
    margin-bottom: 10px;
    margin-top: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 18px;
    transition: color 0.2s ease;
    margin-top: 10px;
}

.social-links a:hover {
    color: var(--accent-light);
}

/* main content area */
.page-content {
  display: flex;
  flex-direction: column; /* stacks sections vertically */
  gap: 10px;
  padding-bottom: 80px;
  flex: 1; /* takes up remaining space next to the photocard */
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 5px;
}

.hero-greeting {
    color: var(--accent-light);
    font-size: 20px;
    margin-bottom: 4px;
}

.hero-name {
    font-size: 62px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 8px 0;
}

.hero-title {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-muted);
    margin: 0 0 24px 0;
}

.hero-bio {
    color: var(--text-muted);
    max-width: 480px;
    font-size: 16px;
    margin-bottom: 25px;
}

.hero-cta {
    display: flex;
    gap: 12px;
}

.btn-primary {
    background-color: var(--accent-light);
    color: var(--text-light);
    padding: 10px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.btn-primary:hover {
    opacity: 0.85;
}

.btn-secondary {
    border: 1px solid var(--accent-light);
    color: var(--accent-light);
    padding: 10px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

.btn-secondary:hover {
    background-color: var(--accent-dark);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgb(29, 29, 29);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 6px 14px;
  border-radius: 999px; /* pill shape */
  font-size: 13px;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e; /* green */
  box-shadow: 0 0 6px #22c55e; /* glow */
  animation: pulse 2s infinite;
}
/*

|       Status       | Color |  Hex  |
|--------------------|------ |-------|
|Open to work        |Green  |#22c55e|
|Busy / not available|Red    |#ef4444|
|Freelancing         |Yellow |#eab308|
|Currently building  |Blue   |#3b82f6|
|On vacation         |Orange |#f97316|

*/
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.stack-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: rgb(29, 29, 29);
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  padding: 16px 8px;
  font-size: 13px;
  color: var(--text-muted);
  position: relative;
  cursor: default;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.stack-card i {
  font-size: 28px;
  color: var(--text-light);
  transition: color 0.2s ease;
}

.stack-card:hover {
  border-color: var(--accent-light);
  color: var(--text-light);
  transform: translateY(-4px); /* floats up on hover */
}

.stack-card:hover i {
  color: var(--accent-light);
}

/* learning tag */
.stack-card.learning {
  border-color: rgba(139, 92, 246, 0.2);
}

.learning-tag {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--accent-dark);
  border: 1px solid var(--accent-light);
  color: var(--accent-light);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 999px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.see-all {
  color: var(--accent-light);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.see-all:hover {
  gap: 10px; /* arrow slides right on hover */
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.project-card {
  background-color: rgb(29, 29, 29);
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--accent-light);
  transform: translateY(-4px);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-top > i {
  font-size: 24px;
  color: var(--accent-light);
}

.project-links {
  display: flex;
  gap: 12px;
}

.project-links a {
  color: var(--text-muted);
  font-size: 16px;
  transition: color 0.2s ease;
}

.project-links a:hover {
  color: var(--accent-light);
}

.project-name {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.project-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
  flex: 1; /* pushes tags to the bottom */
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  background-color: var(--accent-dark);
  color: var(--accent-light);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
}

.wip-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--text-muted);
  color: var(--text-muted);
}

/* ─── Experience ────────────────────────────────── */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 16px;
  border-left: 2px solid rgba(139, 92, 246, 0.3);
}

.timeline-item {
  display: flex;
  gap: 20px;
  padding-bottom: 36px;
  position: relative;
}

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

.timeline-dot {
  position: absolute;
  left: -25px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent-light);
  border: 2px solid rgb(12, 11, 11);
  box-shadow: 0 0 8px var(--accent-light);
  flex-shrink: 0;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-role {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.timeline-date {
  font-size: 13px;
  color: var(--accent-light);
  white-space: nowrap;
}

.timeline-company {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
  max-width: 520px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.timeline-tags span {
  background-color: var(--accent-dark);
  color: var(--accent-light);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
}

/* ─── Thoughts ──────────────────────────────────── */

.thoughts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.thought-card {
  background-color: rgb(29, 29, 29);
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--text-light);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.thought-card:hover {
  border-color: var(--accent-light);
  transform: translateY(-4px);
}

.thought-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.thought-tag {
  background-color: var(--accent-dark);
  color: var(--accent-light);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
}

.thought-date {
  font-size: 12px;
  color: var(--text-muted);
}

.thought-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

.thought-excerpt {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
  flex: 1;
}

.thought-read {
  color: var(--accent-light);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.thought-card:hover .thought-read {
  gap: 10px; /* arrow slides on hover */
}

/* ─── Footer ────────────────────────────────────── */

.footer {
  display: flex;
  justify-content: center;
  padding: 40px 0 32px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.footer-content {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--text-muted);
  font-size: 18px;
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--accent-light);
}

.footer-copy {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

.footer-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.footer-quote {
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
  margin: 0;
  text-align: center;
}

.footer-quote-author {
  font-size: 12px;
  color: var(--accent-light);
  margin: 0;
}

.footer-quote-meta {
  color: var(--text-muted); /* slightly more subtle for the meta joke */
  font-size: 11px;
}

/* ─── Responsive Design ─────────────────────────── */

/* Large screens (1400px+) — content stays centered */
@media (min-width: 1400px) {
  main {
    padding: 0 200px;
  }
}

/* Small desktop / large tablet (768px - 1100px) */
@media (max-width: 1100px) {
  .page-wrapper {
    min-width: unset;
  }

  body {
    overflow-x: hidden;
  }

  main {
    padding: 0 32px;
  }

  .content-layout {
    gap: 24px;
  }

  .photocard {
    width: 200px;
    padding: 14px;
  }

  .profile-pic {
    width: 172px;
    height: 172px;
  }

  .hero-name {
    font-size: 42px;
  }

  .hero-bio {
    max-width: 100%;
  }

  .stack-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* Tablet (768px) — stack layout vertically */
@media (max-width: 768px) {
  main {
    padding: 0 20px;
  }

  .content-layout {
    flex-direction: column;
    align-items: center;
    margin-top: 32px;
    gap: 32px;
  }

  /* photocard goes full width and unsticks */
  .photocard {
    position: static;
    width: 100%;
    max-width: 340px;
  }

  .profile-pic {
    width: 160px;
    height: 160px;
  }

  /* page content takes full width */
  .page-content {
    width: 100%;
    gap: 48px;
  }

  .hero {
    align-items: center;
    text-align: center;
  }

  .hero-name {
    font-size: 36px;
  }

  .hero-bio {
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  .status-badge {
    align-self: center;
  }

  .stack-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }

  .projects-grid {
    grid-template-columns: 1fr; /* single column on tablet */
  }

  .section-title {
    font-size: 22px;
  }
}

/* Mobile (480px) */
@media (max-width: 480px) {
  main {
    padding: 0 16px;
  }

  .navbar {
    padding: 1px 6px;
  }

  .nav-links ul {
    gap: 4px;
  }

  .nav-links li {
    width: 30px;
    height: 30px;
    margin: 2px;
  }

  .hero-name {
    font-size: 28px;
  }

  .hero-greeting {
    font-size: 16px;
  }

  .hero-title {
    font-size: 18px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 8px 16px;
    font-size: 14px;
  }

  .stack-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on mobile */
  }

  .photocard {
    max-width: 100%;
  }

  .profile-pic {
    width: 130px;
    height: 130px;
  }
}