/* ============================================================
   gedikOS — desktop-OS portfolio for Engin Gedik
   Vanilla CSS, no build step.
   ============================================================ */

:root {
  /* Brand tokens (dark, default) */
  --accent:      #5fbf3d;
  --accent-deep: #1f7a12;
  --bg:          #0e1311;
  --bg2:         #121815;
  --surface:     #161d19;
  --text:        #e8ece6;
  --dim:         #98a29a;
  --line:        rgba(176, 196, 182, .13);
  --line-strong: rgba(176, 196, 182, .22);

  --shadow-win: 0 22px 60px -12px rgba(0,0,0,.62), 0 4px 14px rgba(0,0,0,.4);
  --radius:     14px;
  --radius-sm:  9px;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --menubar-h: 30px;
  --dock-h:    66px;
}

html[data-theme="light"] {
  --bg:          #f4f6f0;
  --bg2:         #eef1e8;
  --surface:     #fbfcf8;
  --text:        #161c14;
  --dim:         #5a6558;
  --line:        rgba(30, 60, 30, .12);
  --line-strong: rgba(30, 60, 30, .20);
  --shadow-win:  0 22px 60px -14px rgba(30,50,25,.28), 0 3px 10px rgba(30,50,25,.14);
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Wallpaper ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 78% 8%,  rgba(95,191,61,.20), transparent 55%),
    radial-gradient(100% 80% at 12% 92%, rgba(31,122,18,.28), transparent 60%),
    radial-gradient(140% 120% at 50% 50%, var(--bg2), var(--bg) 70%);
  transition: background .4s ease;
}
html[data-theme="light"] body::before {
  background:
    radial-gradient(120% 90% at 78% 8%,  rgba(95,191,61,.22), transparent 55%),
    radial-gradient(100% 80% at 12% 92%, rgba(95,191,61,.14), transparent 60%),
    radial-gradient(140% 120% at 50% 50%, var(--bg2), var(--bg) 72%);
}

/* Subtle green mesh line */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(95,191,61,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95,191,61,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 100% at 50% 40%, #000 30%, transparent 75%);
}

/* ---------- Grain ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   BOOT SCREEN
   ============================================================ */
.boot {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
.boot.hidden { opacity: 0; visibility: hidden; }
.boot-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.boot-logo {
  width: 74px; height: 74px; object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(95,191,61,.4));
  animation: bootpulse 1.8s ease-in-out infinite;
}
@keyframes bootpulse { 0%,100%{opacity:.75;transform:scale(1)} 50%{opacity:1;transform:scale(1.06)} }
.boot-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -.02em;
  margin-top: 16px;
  color: var(--text);
}
.boot-bar {
  width: 180px; height: 4px;
  background: var(--line-strong);
  border-radius: 4px;
  margin: 22px 0 12px;
  overflow: hidden;
}
.boot-bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  border-radius: 4px;
  animation: bootload 1.5s ease forwards;
}
@keyframes bootload { to { width: 100%; } }
.boot-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: .02em;
}

/* ============================================================
   MENU BAR
   ============================================================ */
.menubar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--menubar-h);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: rgba(14,19,17,.55);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
html[data-theme="light"] .menubar { background: rgba(251,252,248,.6); }
.menubar-left, .menubar-right { display: flex; align-items: center; gap: 4px; }
.menu-item {
  color: var(--text);
  padding: 3px 8px;
  border-radius: 6px;
  background: none;
  border: none;
  font: inherit;
  cursor: default;
  line-height: 1;
}
.menu-apple {
  width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent), var(--accent-deep));
  box-shadow: 0 0 10px rgba(95,191,61,.5);
  margin-right: 4px;
}
.menu-brand { font-family: var(--font-display); font-weight: 700; cursor: pointer; }
.menu-brand:hover { background: var(--line); }
.menu-dim { color: var(--dim); }
.icon-btn { cursor: pointer; font-size: 14px; }
.icon-btn:hover { background: var(--line); }
.clock { font-family: var(--font-mono); font-size: 12px; letter-spacing: .01em; min-width: 130px; text-align: right; }
.menu-battery { font-family: var(--font-mono); font-size: 11px; }
@media (max-width: 560px) {
  .menu-battery { display: none; }
  .clock { min-width: 62px; }
  .menu-dim.menu-item:not(.clock):not(.menu-battery) { display: none; }
}

/* ============================================================
   DESKTOP
   ============================================================ */
.desktop {
  position: fixed;
  top: var(--menubar-h);
  left: 0; right: 0; bottom: 0;
  overflow: hidden;
}

/* ---------- Desktop icons ---------- */
.desktop-icons {
  position: absolute;
  top: 16px; right: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}
.dicon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 88px;
  padding: 9px 4px;
  background: none;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-body);
  transition: background .12s, border-color .12s;
}
.dicon:hover, .dicon:focus-visible { background: rgba(95,191,61,.10); border-color: var(--line); outline: none; }
.dicon:active { transform: scale(.97); }
.dicon-glyph {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: block;
  position: relative;
  box-shadow: 0 6px 16px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.14);
}
.dicon-label {
  font-size: 12px;
  color: var(--text);
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
  max-width: 84px;
  text-align: center;
}
html[data-theme="light"] .dicon-label { text-shadow: none; }

/* icon art (pure CSS) */
.di-about  { background: linear-gradient(150deg,#2c6cff,#153a8a); }
.di-about::after { content:"👤"; }
.di-folder { background: linear-gradient(150deg,#5fbf3d,#1f7a12); }
.di-folder::after { content:"📁"; }
.di-doc    { background: linear-gradient(150deg,#e9edf2,#c4ccd6); }
.di-doc::after { content:"📄"; }
.di-term   { background: linear-gradient(150deg,#20272b,#0c1013); border:1px solid rgba(95,191,61,.4); }
.di-term::after { content:">_"; font-family:var(--font-mono); color:var(--accent); font-weight:700; font-size:17px; }
.di-mail   { background: linear-gradient(150deg,#e05a5a,#a52222); }
.di-mail::after { content:"✉"; color:#fff; }
.dicon-glyph::after {
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-size: 24px;
}

/* ---------- Hint chip ---------- */
.hint-chip {
  position: absolute;
  bottom: calc(var(--dock-h) + 22px);
  left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: rgba(22,29,25,.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 12.5px;
  color: var(--dim);
  z-index: 5;
  transition: opacity .5s;
  pointer-events: none;
}
html[data-theme="light"] .hint-chip { background: rgba(251,252,248,.78); }
.hint-chip.gone { opacity: 0; }
.hint-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: blink 1.4s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

/* ============================================================
   WINDOWS
   ============================================================ */
.win {
  position: absolute;
  min-width: 300px;
  min-height: 180px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-win);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: winopen .22s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes winopen { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }
.win.closing { animation: winclose .16s ease forwards; }
@keyframes winclose { to { opacity: 0; transform: scale(.95); } }
.win.minimizing { animation: winmin .28s ease forwards; }
@keyframes winmin { to { opacity: 0; transform: scale(.3) translateY(60vh); } }
.win.maximized {
  top: 0 !important; left: 0 !important;
  width: 100% !important; height: 100% !important;
  border-radius: 0;
}

.win-titlebar {
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: linear-gradient(var(--surface), var(--bg2));
  border-bottom: 1px solid var(--line);
  cursor: grab;
}
.win-titlebar:active { cursor: grabbing; }
.win.maximized .win-titlebar { cursor: default; }

.traffic { display: flex; gap: 8px; align-items: center; }
.tl {
  width: 13px; height: 13px; border-radius: 50%;
  border: none; cursor: pointer; padding: 0;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; line-height: 1; color: rgba(0,0,0,.5); font-weight: 700;
}
.tl-red    { background: #ff5f57; }
.tl-yellow { background: #febc2e; }
.tl-green  { background: #28c840; }
.tl span { opacity: 0; }
.traffic:hover .tl span { opacity: 1; }

.win-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.win-title .wt-ico { margin-right: 6px; }
.win-spacer { width: 52px; flex: 0 0 52px; }

.win-body {
  flex: 1;
  overflow: auto;
  position: relative;
}
.win-body::-webkit-scrollbar { width: 10px; height: 10px; }
.win-body::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.win-body::-webkit-scrollbar-track { background: transparent; }

/* resize handle */
.win-resize {
  position: absolute; right: 0; bottom: 0;
  width: 18px; height: 18px;
  cursor: nwse-resize; z-index: 5;
}

/* ============================================================
   WINDOW CONTENT
   ============================================================ */
.pane { padding: 26px 28px; line-height: 1.62; }
.pane h1 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; font-size: 26px; line-height: 1.1; }
.pane h2 { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin: 22px 0 8px; color: var(--accent); letter-spacing: .01em; text-transform: uppercase; }
.pane h2:first-of-type { margin-top: 4px; }
.pane p { color: var(--text); font-size: 14.5px; margin: 8px 0; }
.pane p.dim { color: var(--dim); }
.pane a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(95,191,61,.35); }
.pane a:hover { border-bottom-color: var(--accent); }
.pane ul { margin: 6px 0 6px 2px; list-style: none; }
.pane li { position: relative; padding-left: 18px; margin: 5px 0; font-size: 14px; color: var(--text); }
.pane li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }

/* About header */
.about-head { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; flex-wrap: wrap; }
.about-avatar {
  width: 84px; height: 84px; border-radius: 18px; object-fit: cover;
  border: 2px solid var(--line-strong);
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
  flex: 0 0 auto;
}
.about-head .about-meta { min-width: 180px; }
.about-role { color: var(--accent); font-weight: 600; font-size: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--accent);
  background: rgba(95,191,61,.12);
  border: 1px solid rgba(95,191,61,.3);
  padding: 3px 10px; border-radius: 999px;
  margin-top: 8px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.4s infinite; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 4px; }
.tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--dim);
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 9px;
}
.tag.accent { color: var(--accent); border-color: rgba(95,191,61,.35); background: rgba(95,191,61,.08); }

/* Project folder grid */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 14px 6px;
  padding: 22px 20px;
}
.folder-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 10px 4px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; background: none; color: var(--text); font-family: var(--font-body);
  transition: background .12s, border-color .12s;
}
.folder-item:hover, .folder-item:focus-visible { background: rgba(95,191,61,.10); border-color: var(--line); outline: none; }
.folder-item:active { transform: scale(.96); }
.folder-ico {
  width: 52px; height: 52px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 25px;
  box-shadow: 0 6px 16px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.14);
  position: relative;
}
.folder-ico.flagship { box-shadow: 0 0 0 2px rgba(95,191,61,.55), 0 6px 18px rgba(95,191,61,.3); }
.folder-star { position: absolute; top: -6px; right: -6px; font-size: 15px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.folder-name { font-size: 12px; text-align: center; line-height: 1.25; max-width: 92px; }

/* Project detail */
.proj-hero { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 6px; }
.proj-hero .folder-ico { flex: 0 0 auto; }
.proj-title { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; line-height: 1.1; }
.proj-flag { display:inline-block; font-size: 11px; font-weight: 700; color: #0e1311; background: var(--accent); border-radius: 5px; padding: 2px 8px; margin-top: 7px; }
.proj-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 9px;
  border: 1px solid var(--line-strong);
  color: var(--text); text-decoration: none; background: var(--bg2);
  transition: border-color .12s, background .12s;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: linear-gradient(120deg, var(--accent-deep), var(--accent)); color: #0a1408; border-color: transparent; }
.btn.primary:hover { filter: brightness(1.08); }

.metrics { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 4px; }
.metric { flex: 1; min-width: 120px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.metric b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--accent); }
.metric span { font-size: 12px; color: var(--dim); }

/* Resume */
.cv-head { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 4px; }
.cv-name { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -.02em; }
.cv-contact { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 13px; color: var(--dim); }
.cv-contact a { font-size: 13px; }
.cv-entry { margin: 4px 0 10px; }
.cv-entry .row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.cv-entry .role { font-weight: 700; font-size: 15px; }
.cv-entry .org { color: var(--accent); font-size: 14px; }
.cv-entry .when { font-family: var(--font-mono); font-size: 12px; color: var(--dim); white-space: nowrap; }
.cv-note { margin-top: 20px; padding: 12px 14px; background: rgba(95,191,61,.07); border: 1px solid rgba(95,191,61,.25); border-radius: 10px; font-size: 13px; color: var(--dim); }
.cv-note a { font-size: 13px; }

/* ============================================================
   TERMINAL
   ============================================================ */
.term {
  height: 100%;
  background: #0a0f0c;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.55;
  color: #cfe8c4;
  padding: 14px 16px;
  overflow: auto;
  cursor: text;
}
html[data-theme="light"] .term { background: #0c110e; }
.term::-webkit-scrollbar { width: 9px; }
.term::-webkit-scrollbar-thumb { background: rgba(95,191,61,.3); border-radius: 6px; }
.term-line { white-space: pre-wrap; word-break: break-word; }
.term .t-green  { color: var(--accent); }
.term .t-deep   { color: #4a9c2f; }
.term .t-dim    { color: #6f8467; }
.term .t-white  { color: #eaf3e6; }
.term .t-yellow { color: #f2d24b; }
.term .t-cyan   { color: #6fd0c8; }
.term .t-red    { color: #ff6b5e; }
.term a { color: var(--accent); text-decoration: underline; }
.term-inputline { display: flex; align-items: baseline; flex-wrap: wrap; }
.term-prompt { color: var(--accent); flex: 0 0 auto; margin-right: 8px; white-space: nowrap; }
.term-input {
  flex: 1;
  min-width: 40px;
  background: none; border: none; outline: none;
  color: #eaf3e6; font-family: var(--font-mono); font-size: 13.5px;
  caret-color: var(--accent);
  padding: 0;
}
.term-input:focus { caret-color: var(--accent); }
/* fake block caret shown only on the empty prompt for that classic terminal look;
   once typing starts the native accent caret takes over */
.term-caret {
  position: absolute;
  top: 2px; left: 0;
  display: inline-block; width: 8px; height: 15px;
  background: var(--accent);
  animation: caret 1.06s steps(1) infinite;
  pointer-events: none;
}
.term-inputline.typed .term-caret { display: none; }
.term-input:not(:focus) ~ .term-caret { opacity: .35; }
@keyframes caret { 0%,50%{opacity:1} 51%,100%{opacity:0} }
.neofetch { display: flex; gap: 18px; flex-wrap: wrap; }
.neofetch pre { color: var(--accent); }
.neo-info b { color: var(--accent); }

/* ============================================================
   DOCK
   ============================================================ */
.dock {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8000;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 12px;
  height: var(--dock-h);
  background: rgba(22,29,25,.5);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
}
html[data-theme="light"] .dock { background: rgba(251,252,248,.6); }
.dock-item {
  position: relative;
  width: 48px; height: 48px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; padding: 0;
  transition: transform .16s cubic-bezier(.2,.9,.3,1.3);
}
.dock-item:hover { transform: translateY(-10px) scale(1.14); }
.dock-item:active { transform: translateY(-4px) scale(1.04); }
.dock-item::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  background: rgba(10,14,11,.94); color: var(--text);
  font-family: var(--font-body); font-size: 12px;
  padding: 4px 10px; border-radius: 7px; white-space: nowrap;
  border: 1px solid var(--line);
  opacity: 0; pointer-events: none; transition: opacity .12s;
}
.dock-item:hover::after { opacity: 1; }
.dock-sep { width: 1px; height: 40px; background: var(--line-strong); margin: 0 4px; align-self: center; }

.dock-glyph {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  box-shadow: 0 5px 14px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.16);
}
.dg-github   { background: linear-gradient(150deg,#3a4148,#171b1f); }
.dg-github::after   { content:""; width:26px; height:26px; background:#fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0016 8c0-4.42-3.58-8-8-8z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0016 8c0-4.42-3.58-8-8-8z'/%3E%3C/svg%3E") center/contain no-repeat; }
.dg-linkedin { background: linear-gradient(150deg,#3a8bd6,#0a66c2); }
.dg-linkedin::after { content:"in"; color:#fff; font-family:var(--font-display); font-weight:800; font-size:19px; }
.dg-mail     { background: linear-gradient(150deg,#e05a5a,#a52222); }
.dg-mail::after     { content:"✉"; color:#fff; font-size:22px; }
.dg-term     { background: linear-gradient(150deg,#20272b,#0c1013); border:1px solid rgba(95,191,61,.4); }
.dg-term::after     { content:">_"; color:var(--accent); font-family:var(--font-mono); font-weight:700; font-size:18px; }
.dg-dash     { background: linear-gradient(150deg,#5fbf3d,#1f7a12); }
.dg-dash::after     { content:"◧"; color:#fff; font-size:22px; }
.dg-www      { background: linear-gradient(150deg,#4a9c2f,#123f0a); }
.dg-www::after      { content:"◍"; color:#dfffd0; font-size:22px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .win {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: calc(100dvh - var(--menubar-h) - var(--dock-h) - 14px) !important;
    border-radius: 12px 12px 0 0;
    animation: winopenmob .24s ease;
  }
  @keyframes winopenmob { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
  .win-titlebar { cursor: default; }
  .win-resize { display: none; }
  .desktop-icons { top: 10px; right: 8px; gap: 2px; }
  .dicon { width: 74px; padding: 7px 2px; }
  .dicon-glyph { width: 42px; height: 42px; }
  .dock { gap: 4px; padding: 6px 8px; height: 58px; bottom: 6px; border-radius: 16px; }
  .dock-item { width: 42px; height: 42px; }
  .dock-glyph { width: 40px; height: 40px; font-size: 21px; }
  .dock-item:hover { transform: translateY(-6px) scale(1.08); }
  .dock-sep { height: 34px; margin: 0 1px; }
  .pane { padding: 20px 18px; }
  .hint-chip { font-size: 11px; padding: 6px 11px; max-width: 92vw; }
}
@media (max-width: 420px) {
  .dock-item::after { display: none; }
  .about-avatar { width: 66px; height: 66px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .05ms !important; }
}
