/* ==========================================================================
   Vibe Folio — OS Desktop Theme
   ========================================================================== */

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

:root {
  --bg: #161618;
  --surface: #222226;
  --surface-light: #2a2a2f;
  --surface-hover: #333338;
  --border: #3a3a40;
  --text: #e0d8da;
  --muted: #8a8286;
  --accent: #f0789a;
  --accent-hover: #ffa0b8;
  --accent-dim: rgba(240,120,154,0.12);
  --red: #f0789a;
  --yellow: #fbbf24;
  --green: #6ee7b7;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'IBM Plex Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  padding-bottom: 56px;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
  pointer-events: none;
  z-index: 9999;
}

a { color: inherit; }

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

/* ---------- TOPBAR ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 36px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.topbar__left { color: var(--muted); }
.topbar__left span { color: var(--accent); }
.topbar__right { color: var(--muted); }
.topbar__nav { display: flex; gap: 1.5rem; list-style: none; }
.topbar__nav a,
.topbar__nav .menu-item a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.04em;
  font-family: var(--mono);
  font-size: 0.7rem;
}
.topbar__nav a:hover,
.topbar__nav .menu-item a:hover { color: var(--accent-hover); }
.topbar__nav a.active { color: var(--text); }
.topbar__nav .menu-item { list-style: none; }

/* ---------- DESKTOP / HOME ---------- */
.desktop {
  padding: 2rem;
  min-height: calc(100vh - 36px - 56px);
  background:
    radial-gradient(circle at 20% 40%, rgba(240,120,154,0.03), transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(99,102,241,0.03), transparent 50%);
}

/* ---------- INTRO SECTION ---------- */
.intro {
  max-width: 700px;
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.1s ease forwards;
}

.intro__terminal {
  margin-bottom: 0.8rem;
}

.intro__prompt {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.intro__prompt::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--accent);
  margin-left: 2px;
}

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

.intro__title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.intro__title span { color: var(--accent); }

.intro__sub {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 1.5rem;
}

.intro__meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.intro__status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.intro__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(52,211,153,0); }
}

/* ---------- BIO CARDS ---------- */
.intro__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.intro-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  transition: border-color 0.2s;
}

.intro-card:hover { border-color: rgba(240,120,154,0.25); }

.intro-card__label {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.intro-card__value {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent);
}

.intro-card__sub {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ---------- SECTION DIVIDER ---------- */
.section-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-label span { color: var(--accent); font-size: 0.55rem; }

/* ---------- ABOUT SECTION ---------- */
.about-section {
  max-width: 720px;
  margin-bottom: 4rem;
}

.about__text {
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.8;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.about__text p { margin-bottom: 1rem; }

.about__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.about__link {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.about__link:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* ---------- FOOTER SECTION ---------- */
.footer-section {
  border-top: 1px solid var(--border);
  padding: 3rem 0 4rem;
  text-align: center;
}

.footer-section__text {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.footer-section__text a {
  color: var(--accent);
  text-decoration: none;
}

/* ---------- WINDOW GRID ---------- */
.window-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.5s ease forwards;
}

.window:nth-child(1) { animation-delay: 0.15s; }
.window:nth-child(2) { animation-delay: 0.25s; }
.window:nth-child(3) { animation-delay: 0.35s; }
.window:nth-child(4) { animation-delay: 0.45s; }
.window:nth-child(5) { animation-delay: 0.55s; }
.window:nth-child(6) { animation-delay: 0.65s; }

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

.window:hover {
  transform: scale(1.015) translateY(-4px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.35);
}

.window__titlebar {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.85rem;
  background: var(--surface-light);
  border-bottom: 1px solid var(--border);
  gap: 0.5rem;
}

.window__dots { display: flex; gap: 5px; }
.window__dot { width: 10px; height: 10px; border-radius: 50%; }
.window__dot--red { background: var(--red); }
.window__dot--yellow { background: var(--yellow); }
.window__dot--green { background: var(--green); }

.window__url {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.window__body { padding: 1.25rem; }

.window__screenshot {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.1);
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
}

.window__screenshot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(240,120,154,0.04), transparent 60%);
  pointer-events: none;
}

.window__screenshot img,
.window__screenshot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.window__name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.window__desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.window__tags { display: flex; gap: 0.35rem; flex-wrap: wrap; }

.window__tag {                                                                                                                  
    font-family: var(--mono);                                                                                                     
    font-size: 0.6rem;                                                                                                            
    padding: 0.2rem 0.5rem;                                                                                                       
    background: rgba(255,255,255,0.06);                                                                                           
    color: var(--muted);                                                                                                          
    border-radius: 3px;                                                                                                           
    border: 1px solid rgba(255,255,255,0.08);                                                                                     
  } 

/* ---------- PROJECT PAGE ---------- */
.project-page {
  min-height: calc(100vh - 36px - 56px);
}

.project-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 32px;
  background: var(--surface-light);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.project-topbar__back {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.project-topbar__back:hover { color: var(--accent-hover); }
.project-topbar__url { color: var(--muted); }

.project-page__content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

/* Hero */
.project-hero { margin-bottom: 3rem; }

.project-hero__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.project-hero__status { display: flex; align-items: center; gap: 0.4rem; }
.project-hero__status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.project-hero__title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--accent);
  margin-bottom: 0.6rem;
  line-height: 1.1;
}

.project-hero__tagline {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 1.5rem;
}

.project-hero__tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 2rem; }
.project-hero__tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  padding: 0.3rem 0.65rem;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 3px;
}

.project-hero__actions { display: flex; gap: 0.75rem; }

.btn {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border);
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--surface-light); }

/* Screenshots */
.project-screenshots { margin-bottom: 3rem; }

.project-screenshots__main {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.project-screenshots__main img,
.project-screenshots__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Single image — no thumbs strip */
.project-screenshots__main:only-child {
  margin-bottom: 0;
}

.project-screenshots__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.project-screenshots__thumb {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.project-screenshots__thumb:hover,
.project-screenshots__thumb.active { border-color: var(--accent); }

.project-screenshots__thumb-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.project-screenshots__thumb-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--muted);
  text-align: center;
  padding: 0.3rem 0.25rem;
  letter-spacing: 0.04em;
}

/* Details */
.project-details {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.project-about__heading,
.project-sidebar__heading {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.project-about__text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.75;
  opacity: 0.85;
}

.project-about__text p { margin-bottom: 1rem; }

.project-sidebar__block { margin-bottom: 1.5rem; }

.project-sidebar__label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.project-sidebar__value {
  font-size: 0.85rem;
  color: var(--text);
}

.project-sidebar__value a {
  color: var(--accent);
  text-decoration: none;
}

.project-sidebar__value a:hover { text-decoration: underline; }

.project-stack { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.project-stack__item {
  font-family: var(--mono);
  font-size: 0.6rem;
  padding: 0.25rem 0.55rem;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
}

/* Features */
.project-features { margin-bottom: 3rem; }

.project-features__heading {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.project-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem;
  transition: border-color 0.2s;
}

.feature-card:hover { border-color: rgba(240,120,154,0.3); }

.feature-card__icon {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.feature-card__title {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}

.feature-card__desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Next project */
.project-next {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  padding-bottom:2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.project-next:hover { opacity: 0.8; }

.project-next__label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.project-next__name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
}

.project-next__arrow {
  font-size: 1.5rem;
  color: var(--muted);
}

/* ---------- DOCK ---------- */
.dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  z-index: 600;
}

.dock__item {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
  background: var(--surface-light);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  position: relative;
}

.dock__item:hover {
  transform: scale(1.2) translateY(-4px);
  background: var(--accent-hover);
  color: var(--bg);
  border-color: var(--accent-hover);
}

.dock__item.is-active {
  background: var(--accent-dim);
  border-color: rgba(240,120,154,0.3);
  color: var(--accent);
}

.dock__item::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: var(--surface-light);
  color: var(--text);
  font-size: 0.6rem;
  font-weight: 400;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  border: 1px solid var(--border);
}

.dock__item:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.dock__sep {
  width: 1px;
  height: 26px;
  background: var(--border);
  margin: 0 0.4rem;
}

.dock__clock {
  position: absolute;
  right: 1.2rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
}

.dock__user {
  position: absolute;
  left: 1.2rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
}

.dock__user em { font-style: normal; color: var(--accent); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .desktop { padding: 1.5rem; }
  .window-grid { grid-template-columns: 1fr; }
  .project-details { grid-template-columns: 1fr; gap: 2rem; }
  .project-page__content { padding: 2rem 1.5rem 3rem; }
  .project-screenshots__thumbs { grid-template-columns: repeat(2, 1fr); }
  .dock__user, .dock__clock { display: none; }
  .topbar__nav { gap: 1rem; }
  .intro__title { font-size: 1.6rem; }
}
