/* ============================================================
   TANGFAVISH.COM: STYLESHEET
   ============================================================ */

:root {
  --ink: rgba(235, 248, 246, 0.96);
  --ink-soft: rgba(226, 242, 240, 0.72);
  --ink-faint: rgba(210, 230, 228, 0.45);
  --teal: rgba(130, 215, 205, 1);
  --teal-soft: rgba(135, 215, 205, 0.9);
  --teal-faint: rgba(120, 210, 200, 0.14);
  --teal-border: rgba(130, 215, 205, 0.18);
  --teal-link: rgba(150, 225, 215, 0.95);
  --glass: rgba(7, 13, 15, 0.92);
  --glass-widget: rgba(8, 16, 18, 0.6);
  --dot-red: #e5564a;
  --dot-yellow: #e8b94d;
  --dot-aqua: #4db8aa;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
}

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

html, body { height: 100%; }

body {
  font-family: var(--sans);
  background: #030506;
  overflow: hidden;
}

/* ---- Desktop ------------------------------------------------ */
#desktop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(172deg,
      #04060a 0%, #081216 22%, #0c1d22 40%, #0e2329 52%,
      #0a181d 68%, #050a0d 88%, #030506 100%);
  user-select: none;
}
#desktop.has-wallpaper {
  background-size: cover;
  background-position: center;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  pointer-events: none;
}
.glow-1 { width: 42vw; height: 26vh; top: -8vh; left: 12vw; background: rgba(35,150,150,0.14); }
.glow-2 { width: 32vw; height: 22vh; top: 28vh; right: -8vw; background: rgba(25,110,130,0.11); }
.glow-3 { width: 30vw; height: 18vh; bottom: -6vh; left: -6vw; background: rgba(40,130,120,0.09); }
#desktop.has-wallpaper .glow { display: none; }

#stars { position: absolute; inset: 0; pointer-events: none; }
#desktop.has-wallpaper #stars { display: none; }
.star { position: absolute; background: #fff; border-radius: 50%; }

/* ---- Menubar ------------------------------------------------- */
#menubar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 30px;
  background: rgba(5, 9, 11, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid rgba(120, 210, 200, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 2000;
}
.menubar-left, .menubar-right { display: flex; gap: 16px; align-items: center; }
.menubar-nav { display: flex; gap: 16px; }
.menu-item {
  font-size: 13px;
  font-family: var(--sans);
  color: rgba(225, 240, 238, 0.75);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 2px;
}
.menu-item:hover, .menu-item:focus-visible { color: var(--teal-link); }
.menubar-right { font-size: 12px; color: var(--ink-faint); }

/* Tangerine — the colored original */
.tangerine {
  width: 17px; height: 17px;
  position: relative;
  background: none; border: none;
  cursor: pointer;
  padding: 0;
}
.tangerine .fruit {
  position: absolute; bottom: 0; left: 1px;
  width: 14px; height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffb04d, #f08a1d 60%, #d9731a);
  box-shadow: inset -1px -1.5px 2px rgba(150, 70, 0, 0.4);
}
.tangerine .leaf {
  position: absolute; top: 0; left: 8.5px;
  width: 7.5px; height: 4.5px;
  background: linear-gradient(120deg, #5cba6e, #2e8a45);
  border-radius: 0 100% 0 100%;
  transform: rotate(-18deg);
}
.tangerine .stem {
  position: absolute; top: 2.5px; left: 7.5px;
  width: 1.5px; height: 3.5px;
  background: #7a5a2e;
  border-radius: 1px;
}
.tangerine:hover .fruit, .tangerine:focus-visible .fruit { filter: brightness(1.12); }

.tangerine-tooltip {
  position: absolute;
  top: 34px; left: 8px;
  background: rgba(7, 13, 15, 0.96);
  backdrop-filter: blur(20px);
  border: 0.5px solid rgba(130, 215, 205, 0.25);
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 11.5px;
  color: rgba(226, 242, 240, 0.85);
  max-width: 300px;
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2100;
}
.tangerine-tooltip.show { opacity: 1; }

/* ---- Signature ------------------------------------------------ */
.signature {
  position: absolute;
  top: 48px; left: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 13px;
}
.headshot-mini {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(140deg, #3a5a55, #1a2e2a);
  background-size: cover;
  background-position: center;
  border: 1.5px solid rgba(130, 215, 205, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(180, 235, 228, 0.7);
  flex-shrink: 0;
}
.signature-text h1 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
}
.signature-text p {
  font-size: 9.5px;
  color: rgba(130, 215, 205, 0.7);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 4px;
}

.wallpaper-credit {
  position: absolute;
  bottom: 12px; right: 16px;
  z-index: 4;
  font-size: 9.5px;
  color: rgba(200, 230, 226, 0.35);
}

/* ---- Widgets --------------------------------------------------- */
#widgets {
  position: absolute;
  top: 118px; left: 28px;
  width: 184px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  z-index: 5;
}
.widget {
  background: var(--glass-widget);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 0.5px solid var(--teal-faint);
  border-radius: 13px;
  padding: 12px 14px;
  text-align: left;
  font-family: var(--sans);
  transition: border-color 0.18s, transform 0.18s;
}
button.widget { cursor: pointer; width: 100%; }
.widget.clickable:hover, .widget.clickable:focus-visible {
  border-color: rgba(140, 220, 210, 0.4);
  transform: translateY(-1.5px);
}
.widget-label {
  font-size: 8.5px;
  color: rgba(135, 215, 205, 0.7);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}
.widget-arrow { font-size: 9px; color: rgba(135, 215, 205, 0.5); }
.widget-big {
  font-size: 22px;
  font-weight: 300;
  color: rgba(238, 250, 248, 0.95);
  font-variant-numeric: tabular-nums;
}
.widget-sub { font-size: 10.5px; color: rgba(215, 235, 232, 0.48); margin-top: 2px; }
.widget-rows { display: flex; flex-direction: column; }
.widget-row {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: rgba(222, 240, 237, 0.7);
  padding: 2.5px 0;
}
.widget-row .val { color: rgba(140, 220, 210, 0.85); font-variant-numeric: tabular-nums; }

.mini-carousel {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  border: 0.5px solid rgba(120, 210, 200, 0.18);
  margin-top: 2px;
}
.mini-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.mini-slide.on { opacity: 1; }
.mini-cap {
  width: 100%;
  padding: 5px 8px;
  font-size: 8.5px;
  color: rgba(238, 250, 248, 0.92);
  background: linear-gradient(transparent, rgba(2, 6, 8, 0.85));
}
.mini-dots { display: flex; gap: 4px; justify-content: center; margin-top: 7px; }
.mini-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(140, 220, 210, 0.25); transition: background 0.3s; }
.mini-dot.on { background: rgba(140, 220, 210, 0.9); }

/* ---- Folders ---------------------------------------------------- */
#folders {
  position: absolute;
  top: 48px; right: 24px;
  display: grid;
  grid-template-columns: repeat(2, 90px);
  gap: 17px 11px;
  z-index: 10;
  justify-items: center;
}
.folder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 5px 3px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
  width: 88px;
  background: none;
  border: none;
  font-family: var(--sans);
}
.folder:hover, .folder:focus-visible { background: rgba(120, 210, 200, 0.10); }
.folder-icon { width: 48px; height: 38px; position: relative; transition: transform 0.15s; }
.folder:hover .folder-icon, .folder:focus-visible .folder-icon { transform: scale(1.08); }
.folder-tab { position: absolute; top: 0; left: 0; width: 20px; height: 7px; border-radius: 3px 3px 0 0; }
.folder-body {
  position: absolute;
  top: 4px; left: 0; right: 0; bottom: 0;
  border-radius: 3px 5px 5px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.folder-label {
  font-size: 10px;
  color: rgba(232, 246, 244, 0.92);
  text-shadow: 0 1px 3px rgba(2, 6, 8, 0.9);
  background: rgba(4, 10, 12, 0.55);
  border-radius: 3px;
  padding: 1px 6px;
  text-align: center;
  line-height: 1.25;
}

/* ---- Windows ----------------------------------------------------- */
.window {
  position: absolute;
  width: 480px;
  max-width: calc(100vw - 32px);
  background: var(--glass);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border: 0.5px solid var(--teal-border);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 2, 3, 0.7);
  opacity: 0;
  transform: scale(0.93);
  transition: transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.16s,
              width 0.25s ease, height 0.25s ease, top 0.25s ease, left 0.25s ease;
  z-index: 100;
}
.window.open { opacity: 1; transform: scale(1); }
.window.dragging { transition: opacity 0.16s; }
.window.closing { opacity: 0; transform: scale(0.93); pointer-events: none; }
.window.minimizing { opacity: 0; transform: scale(0.4) translateY(40vh); pointer-events: none; }
.window.fullscreen {
  top: 38px !important;
  left: 8px !important;
  width: calc(100vw - 16px) !important;
  height: calc(100vh - 46px) !important;
}
.window.fullscreen .window-body { max-height: calc(100vh - 90px); }

.titlebar {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border-bottom: 0.5px solid rgba(130, 215, 205, 0.12);
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px 12px 0 0;
  cursor: grab;
  touch-action: none;
}
.titlebar:active { cursor: grabbing; }
.window-control {
  width: 12px; height: 12px;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  padding: 0;
  flex-shrink: 0;
  transition: transform 0.12s, filter 0.12s;
}
.window-control:hover, .window-control:focus-visible { transform: scale(1.15); filter: brightness(1.1); }
.wc-close { background: var(--dot-red); }
.wc-min { background: var(--dot-yellow); }
.wc-zoom { background: var(--dot-aqua); }
.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11.5px;
  color: rgba(218, 238, 235, 0.58);
  pointer-events: none;
  white-space: nowrap;
}

.window-body {
  padding: 18px 24px 24px;
  max-height: min(62vh, 520px);
  overflow-y: auto;
  user-select: text;
}
.window-body::-webkit-scrollbar { width: 3px; }
.window-body::-webkit-scrollbar-thumb { background: rgba(120, 210, 200, 0.35); border-radius: 2px; }

.window-body h1 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  color: rgba(240, 250, 248, 0.97);
  margin-bottom: 3px;
}
.window-body h2 {
  font-size: 11.5px;
  color: var(--teal-soft);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.window-body p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 10px;
}
.window-body a { color: var(--teal-link); text-underline-offset: 2px; }
.closer { color: rgba(150, 225, 215, 0.9); }

.badge {
  display: inline-block;
  font-size: 9.5px;
  padding: 2.5px 8px;
  border-radius: 10px;
  background: rgba(110, 205, 195, 0.12);
  color: rgba(165, 230, 222, 0.95);
  border: 0.5px solid rgba(120, 210, 200, 0.28);
  margin: 0 4px 5px 0;
}

/* Hero carousel */
.hero-carousel {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 0.5px solid rgba(130, 215, 205, 0.2);
  margin: 10px 0 8px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.hero-slide.on { opacity: 1; }
.hero-cap {
  width: 100%;
  padding: 9px 13px;
  font-size: 11px;
  color: rgba(240, 250, 248, 0.95);
  background: linear-gradient(transparent, rgba(2, 5, 7, 0.88));
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.hero-cap em { font-style: normal; font-size: 9.5px; color: rgba(160, 228, 220, 0.8); white-space: nowrap; }

/* Role / link cards */
.roles { display: flex; flex-direction: column; gap: 7px; margin: 11px 0 5px; }
.role {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(110, 205, 195, 0.06);
  border: 0.5px solid rgba(120, 210, 200, 0.16);
  border-radius: 9px;
  padding: 9px 12px;
  text-decoration: none;
  transition: border-color 0.15s;
}
a.role:hover, a.role:focus-visible { border-color: rgba(140, 220, 210, 0.45); }
.role-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.role-main { flex: 1; }
.role-title { font-size: 12px; color: rgba(235, 248, 246, 0.92); }
.role-org { font-size: 10.5px; color: rgba(210, 235, 230, 0.5); margin-top: 1px; }
.role-when { font-size: 9.5px; color: rgba(150, 222, 213, 0.8); white-space: nowrap; }

/* Stats card */
.stats-card {
  background: rgba(110, 205, 195, 0.08);
  border: 0.5px solid rgba(120, 210, 200, 0.22);
  border-radius: 10px;
  padding: 13px 16px;
  margin: 12px 0 5px;
}
.stats-title {
  font-size: 9px;
  color: rgba(135, 215, 205, 0.9);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 9px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.stats-updated { font-size: 8.5px; color: rgba(200, 230, 226, 0.4); font-weight: 400; letter-spacing: 0; text-transform: none; }
.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: rgba(230, 242, 240, 0.72);
  padding: 5px 0;
  border-bottom: 0.5px solid rgba(120, 210, 200, 0.1);
}
.stat-row:last-of-type { border-bottom: none; }
.stat-val { color: rgba(150, 225, 215, 0.95); font-weight: 500; font-variant-numeric: tabular-nums; }

/* About header w/ headshot */
.about-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.headshot-lg {
  width: 88px; height: 88px;
  border-radius: 14px;
  flex-shrink: 0;
  background: linear-gradient(140deg, #3a5a55, #1a2e2a);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(130, 215, 205, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(180, 235, 228, 0.6);
  text-align: center;
  line-height: 1.4;
}
.about-head p { margin: 0; font-size: 12.5px; }

/* Photography portfolio */
.chips { display: flex; gap: 6px; margin: 4px 0 13px; flex-wrap: wrap; }
.chip {
  font-size: 11px;
  padding: 5px 13px;
  border-radius: 15px;
  cursor: pointer;
  background: rgba(110, 205, 195, 0.07);
  color: rgba(210, 238, 234, 0.75);
  border: 0.5px solid rgba(120, 210, 200, 0.2);
  transition: all 0.15s;
  font-family: var(--sans);
}
.chip:hover, .chip:focus-visible { border-color: rgba(140, 220, 210, 0.5); }
.chip.on {
  background: rgba(110, 205, 195, 0.2);
  color: rgba(190, 240, 233, 1);
  border-color: rgba(140, 220, 210, 0.6);
}

.viewer {
  margin-top: 4px;
  border-radius: 10px;
  overflow: hidden;
  border: 0.5px solid rgba(130, 215, 205, 0.22);
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a1214;
}
.viewer-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.45s ease;
}
.viewer-img.fading { opacity: 0; }
.viewer-cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(2, 5, 7, 0.92));
}
.viewer-cap.slide-in { animation: capIn 0.45s ease; }
@keyframes capIn {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.viewer-title { font-size: 12.5px; color: rgba(242, 250, 249, 0.96); }
.viewer-meta { font-size: 10px; color: rgba(160, 228, 220, 0.85); margin-top: 2px; }
.viewer-count {
  position: absolute;
  top: 9px; right: 11px;
  font-size: 9.5px;
  color: rgba(220, 240, 237, 0.7);
  background: rgba(3, 8, 9, 0.6);
  padding: 2px 9px;
  border-radius: 9px;
}
.viewer-hint { font-size: 10px; color: rgba(200, 232, 228, 0.5); margin: 7px 0 9px; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.photo-thumb {
  aspect-ratio: 4 / 5;
  border-radius: 7px;
  position: relative;
  overflow: hidden;
  border: 0.5px solid rgba(130, 215, 205, 0.16);
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  transition: transform 0.15s, border-color 0.15s;
  background-size: cover;
  background-position: center;
  padding: 0;
  font-family: var(--sans);
}
.photo-thumb:hover, .photo-thumb:focus-visible, .photo-thumb.sel {
  transform: scale(1.03);
  border-color: rgba(150, 225, 215, 0.6);
}
.thumb-cap {
  width: 100%;
  padding: 4px 7px;
  font-size: 8.5px;
  color: rgba(238, 250, 248, 0.9);
  background: linear-gradient(transparent, rgba(2, 5, 7, 0.85));
  text-align: left;
}

/* ---- Minimized pills --------------------------------------------- */
#minibar {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 1500;
}
.mini-pill {
  background: rgba(7, 13, 15, 0.85);
  backdrop-filter: blur(20px);
  border: 0.5px solid rgba(130, 215, 205, 0.3);
  border-radius: 16px;
  padding: 6px 15px;
  font-size: 11px;
  color: rgba(218, 238, 235, 0.85);
  cursor: pointer;
  font-family: var(--sans);
  display: flex;
  align-items: center;
  gap: 7px;
  animation: pillIn 0.25s ease;
  transition: border-color 0.15s, transform 0.15s;
}
.mini-pill:hover, .mini-pill:focus-visible {
  border-color: rgba(150, 225, 215, 0.6);
  transform: translateY(-2px);
}
.mini-pill .pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dot-yellow); }
@keyframes pillIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Focus & motion ----------------------------------------------- */
:focus-visible { outline: 2px solid rgba(150, 225, 215, 0.7); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Mobile --------------------------------------------------------- */
@media (max-width: 760px) {
  .signature { top: 42px; left: 18px; }
  .signature-text h1 { font-size: 21px; }
  #widgets {
    position: absolute;
    top: auto;
    bottom: 54px;
    left: 18px;
    width: 160px;
  }
  #widget-clock { display: none; }
  #widget-stats { display: none; }
  #folders {
    top: 110px;
    right: 14px;
    grid-template-columns: repeat(2, 82px);
    gap: 12px 8px;
  }
  .window {
    width: calc(100vw - 20px) !important;
    left: 10px !important;
    top: 40px !important;
  }
  .window-body { max-height: calc(100vh - 180px); }
  .wallpaper-credit { display: none; }
  .menubar-right #menubar-city { display: none; }
}
