/* style.css */
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
  --rosewater: #dc8a78;
  --flamingo:  #dd7878;
  --pink:      #ea76cb;
  --mauve:     #8839ef;
  --red:       #d20f39;
  --maroon:    #e64553;
  --peach:     #fe640b;
  --yellow:    #df8e1d;
  --green:     #40a02b;
  --teal:      #179299;
  --sky:       #04a5e5;
  --sapphire:  #209fb5;
  --blue:      #1e66f5;
  --lavender:  #7287fd;
  --text:      #4c4f69;
  --subtext1:  #5c5f77;
  --subtext0:  #6c6f85;
  --overlay2:  #7c7f93;
  --overlay1:  #8c8fa1;
  --overlay0:  #9ca0b0;
  --surface2:  #acb0be;
  --surface1:  #bcc0cc;
  --surface0:  #ccd0da;
  --base:      #eff1f5;
  --mantle:    #e6e9ef;
  --crust:     #dce0e8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; height: 100%; }

body {
  background: var(--base);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--lavender); }

/* ── Header ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  width: 100%;
}

.header-name {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--lavender);
}

.cv-box {
  /* 1. Center the box itself in the header */
  position: absolute;
  left: 50%;
  transform: translate(-50%);

  /* 2. Box dimensions and border */
  border: 1px solid var(--lavender);
  border-radius: 4px;
  
  /* 3. Center the text inside the box */
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* 4. Sizing (Use width/height or padding for a consistent look) */
  padding: 6px 16px; 
  min-width: 60px; /* Optional: ensures the box doesn't look too cramped */
  
  /* 5. Typography */
  color: var(--lavender);
  text-decoration: none;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1; /* Prevents text from shifting up or down */
  
  transition: all 0.2s ease;
}

.cv-box:hover {
  background-color: var(--crust);
}

.header-name:hover { color: var(--lavender); opacity: 0.8; }

.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a { color: var(--subtext0); font-size: 0.85rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* ── Main ── */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 3rem;
}

/* Home two-column */
.container {
  max-width: 900px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ── Profile ── */
.profile { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; }
.avatar-wrap { width: 72px; height: 72px; margin-bottom: 0.75rem; }
.avatar-wrap svg { width: 72px; height: 72px; }

.profile-name {
  font-family: 'Lora', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--lavender);
  line-height: 1.2;
}

.profile-tagline {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--overlay2);
  margin-bottom: 0.75rem;
}

.profile-bio {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.social-row { display: flex; gap: 0.75rem; }
.social-row a { color: var(--overlay0); font-size: 1.1rem; transition: color 0.2s, transform 0.15s; }
.social-row a:hover { color: var(--text); transform: translateY(-1px); }

.stack-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 1.25rem; }
.stack-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  background: var(--mantle);
  border: 1px solid var(--surface0);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  color: var(--subtext0);
}

/* ── Projects column ── */
.projects-col { display: flex; flex-direction: column; }

.section-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.project-list { display: flex; flex-direction: column; gap: 0.4rem; }

.project {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  transition: background 0.2s;
  gap: 1rem;
}
.project:hover { background: var(--mantle); }

.project-left { display: flex; flex-direction: column; min-width: 0; }

.project-name {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--subtext1);
}

.project-name.color-mauve    { color: var(--mauve); }
.project-name.color-peach    { color: var(--peach); }
.project-name.color-green    { color: var(--green); }
.project-name.color-pink     { color: var(--pink); }
.project-name.color-sky      { color: var(--sky); }
.project-name.color-yellow   { color: var(--yellow); }
.project-name.color-red      { color: var(--red); }
.project-name.color-teal     { color: var(--teal); }
.project-name.color-lavender { color: var(--lavender); }
.project-name.color-sapphire { color: var(--sapphire); }
.project-name.color-maroon   { color: var(--maroon); }
.project-name.color-flamingo { color: var(--flamingo); }
.project-name.color-blue     { color: var(--blue); }
.project-name.color-rosewater{ color: var(--rosewater); }

.project-desc {
  font-size: 0.78rem;
  color: var(--subtext0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-arrow {
  color: var(--surface1);
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}
.project:hover .project-arrow {
  color: var(--lavender);
  transform: translateX(3px);
}

/* ── Detail page ── */
.detail-page {
  max-width: 640px;
  width: 100%;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--overlay0);
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--text); }
.back-link .arrow { transition: transform 0.2s; display: inline-block; }
.back-link:hover .arrow { transform: translateX(-3px); }

.detail-header { margin-bottom: 1.75rem; }

.detail-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.detail-subtitle {
  font-size: 0.9rem;
  color: var(--overlay2);
  margin-bottom: 1rem;
}

.detail-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.detail-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  background: var(--mantle);
  border: 1px solid var(--surface0);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  color: var(--subtext0);
}

.detail-links {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.detail-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  border: 1px solid var(--surface0);
  background: var(--mantle);
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}
.detail-btn:hover {
  background: var(--crust);
  border-color: var(--surface1);
  color: var(--text);
}
.detail-btn i { font-size: 0.75rem; }

.detail-divider {
  border: none;
  border-top: 1px solid var(--surface0);
  margin: 0 0 1.75rem;
}

.detail-body {}

.detail-body h2 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--overlay0);
  margin-bottom: 0.65rem;
  margin-top: 1.75rem;
}
.detail-body h2:first-child { margin-top: 0; }

.detail-body p {
  font-size: 0.88rem;
  color: var(--subtext0);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.detail-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 0.75rem;
}
.detail-body ul li {
  font-size: 0.85rem;
  color: var(--subtext0);
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.35rem;
}
.detail-body ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--surface2);
}

.detail-body img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--surface0);
  margin: 1rem 0;
}

/* ── Detail title colors ── */
.detail-title.color-mauve    { color: var(--mauve); }
.detail-title.color-peach    { color: var(--peach); }
.detail-title.color-green    { color: var(--green); }
.detail-title.color-pink     { color: var(--pink); }
.detail-title.color-sky      { color: var(--sky); }
.detail-title.color-yellow   { color: var(--yellow); }
.detail-title.color-red      { color: var(--red); }
.detail-title.color-teal     { color: var(--teal); }
.detail-title.color-lavender { color: var(--lavender); }
.detail-title.color-sapphire { color: var(--sapphire); }
.detail-title.color-maroon   { color: var(--maroon); }
.detail-title.color-flamingo { color: var(--flamingo); }
.detail-title.color-blue     { color: var(--blue); }
.detail-title.color-rosewater{ color: var(--rosewater); }

/* ── Detail section heading colors ── */
.detail-body h2.color-mauve    { color: var(--mauve); }
.detail-body h2.color-peach    { color: var(--peach); }
.detail-body h2.color-green    { color: var(--green); }
.detail-body h2.color-pink     { color: var(--pink); }
.detail-body h2.color-sky      { color: var(--sky); }
.detail-body h2.color-yellow   { color: var(--yellow); }
.detail-body h2.color-red      { color: var(--red); }
.detail-body h2.color-teal     { color: var(--teal); }
.detail-body h2.color-lavender { color: var(--lavender); }
.detail-body h2.color-sapphire { color: var(--sapphire); }
.detail-body h2.color-maroon   { color: var(--maroon); }
.detail-body h2.color-flamingo { color: var(--flamingo); }
.detail-body h2.color-blue     { color: var(--blue); }
.detail-body h2.color-rosewater{ color: var(--rosewater); }

/* ── Footer ── */
footer {
  padding: 1.25rem 3rem;
  font-size: 0.78rem;
  color: var(--overlay0);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

footer a { color: var(--overlay0); font-size: 0.78rem; }
footer a:hover { color: var(--subtext0); }

.dot { font-size: 0.5rem; opacity: 0.5; }

#clock {
  font-family: 'IBM Plex Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  background: var(--mantle);
  border: 1px solid var(--surface0);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  color: var(--subtext0);
}

/* ── Responsive ── */
@media (max-width: 700px) {
  header { padding: 1rem 1.5rem; }
  main { padding: 2rem 1.5rem; }
  .container { grid-template-columns: 1fr; gap: 2.5rem; }
  .profile { align-items: center; text-align: center; }
  .social-row { justify-content: center; }
}