/* =========================================================
   WALLPAPER + DESKTOP GRID
   - Full-screen background image + desktop grid for icons
   ========================================================= */
body {
  background-image: url("img/DSC_0296 3.JPG");
  background-repeat: no-repeat;
  background-size: cover;           /* use 'contain' if you want full image */
  background-position: center;
  background-attachment: fixed;
}
/* lock body scroll when a modal is open */
.body--lock { overflow: hidden; }

/* Desktop area that holds draggable icons/files */
.desktop {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  justify-items: center;
  align-content: start;
  overflow: hidden;
}

/* =========================================================
   BOTTOM DOCK (macOS-like)
   ========================================================= */
.BottemBar {                           /* dock container */
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  height: 60px;
  width: 100%;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  background-color: rgb(28, 28, 28);
  backdrop-filter: blur(10px);
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 15px;
}
.dock-item {                           /* each icon wrapper */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
}
.dock-icon {                           /* the icon image */
  width: 40px; height: 40px;
  object-fit: contain;
  transition: transform 0.2s ease;
  cursor: pointer;
}
.dock-item:hover .dock-icon { transform: scale(1.3); }
.dock-item.is-active .dock-icon {      /* active highlight */
  outline: 2px solid rgba(255,255,255,0.6);
  border-radius: 10px;
}

/* small vertical separators in the dock */
.separator {
  width: 2px; height: 30px;
  background-color: rgba(255,255,255,0.4);
  margin: 0 12px; border-radius: 2px;
}

/* dock tooltips */
.dock-item::after {
  content: attr(data-label);
  position: absolute; bottom: 60px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85); color: #fff;
  font-size: 12px; padding: 4px 8px; border-radius: 6px;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease; z-index: 1100;
}
.dock-item::before {
  content: "";
  position: absolute; bottom: 48px; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.85);
  opacity: 0; transition: opacity 0.2s ease; z-index: 1100;
}
.dock-item:hover::after,
.dock-item:hover::before { opacity: 1; }

/* =========================================================
   MODAL WINDOWS (generic base)
   ========================================================= */
.modal {                                /* modal root (positioned by JS) */
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  position: fixed; display: none; top: 0; left: 0;
  z-index: 2000;
}
.modal.is-open { display: block; }

.modal__panel {                          /* modal card container */
  width: min(520px, 92vw);
  background: #2b2b2b; color: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  overflow: hidden;
  animation: pop 160ms ease-out;
  max-height: 82vh;
  display: flex; flex-direction: column;
}

@keyframes pop {                         /* small entrance animation */
  from { transform: translateY(6px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0)   scale(1);     opacity: 1; }
}

.modal__header {                         /* draggable header bar */
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #3a3a3a, #2f2f2f);
  cursor: grab; user-select: none; touch-action: none;
}
.modal__header:active { cursor: grabbing; }
.modal__appicon { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.modal__header h3 { font-size: 16px; font-weight: 600; margin: 0; cursor: default; }

.modal__close {                          /* header close button */
  margin-left: auto; background: transparent; border: 0; color: #cfcfcf;
  font-size: 22px; line-height: 1; cursor: pointer;
  padding: 4px 8px; border-radius: 8px;
}
.modal__close:hover { background: rgba(255,255,255,0.08); color: #fff; }

.modal__body {                           /* scrollable body area */
  padding: 16px; font-size: 14px; line-height: 1.5; background: #2b2b2b;
  overflow: auto;
}

.modal__actions{                         /* footer button row */
  margin-top: 12px; display: flex; gap: 8px; justify-content: flex-end;
}

.btn-primary, .btn-secondary {           /* generic buttons */
  display: inline-block; text-decoration: none;
  padding: 8px 12px; border-radius: 8px; font-weight: 600; cursor: pointer;
}
.btn-primary { background: #3b82f6; border: 0; color: #fff; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); color: #fff; }
.btn-secondary:hover{ background: rgba(255,255,255,0.18); }

/* Size variants */
.modal--lg .modal__panel { width: min(900px, 96vw); max-height: 86vh; }
.modal--xl .modal__panel { width: min(1100px, 96vw); max-height: 86vh; }

/* header with small subtitle (used by Spotify/Trash) */
.modal__header--withsub { display: flex; align-items: center; gap: 10px; }
.modal__titleblock { display: flex; flex-direction: column; }
.modal__titleblock h3 { margin: 0; font-size: 16px; font-weight: 600; }
.modal__subtitle { font-size: 13px; color: #aaa; margin: 0; font-weight: 400; }

/* mobile tweaks */
@media (max-width: 768px) {
  .modal__panel { width: 94vw; border-radius: 12px; }
  .modal__header { cursor: default; }
}

/* =========================================================
   TABS (Notes app)
   ========================================================= */
.tabs { display: flex; flex-direction: column; gap: 12px; }
.tabs__triggers {
  display: flex; gap: 8px; flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 8px;
}
.tabs__trigger {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}
.tabs__trigger.is-active { background: #3b82f6; border-color: #3b82f6; }
.tabs__panels { display: block; }
.tabs__panel { display: none; }           /* hidden by default */
.tabs__panel.is-active { display: block; }/* visible tab */

/* guard for Notes tabs specifically */
#modal-notes .tabs__panel { display: none; }
#modal-notes .tabs__panel.is-active { display: block; }

/* simple CV list inside tabs */
.cv-list { margin: 0; padding-left: 18px; }
.cv-list li { margin: 6px 0; }

/* =========================================================
   PHOTOS (one per row list)
   ========================================================= */
.photo-list { display: flex; flex-direction: column; gap: 14px; }
.photo-item img {
  width: 100%; height: auto; display: block;
  border-radius: 10px; object-fit: cover;
}

/* =========================================================
   TRASH (info chips)
   ========================================================= */
.trash-meta {
  margin-top: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 12px;
}
.trash-title { font-weight: 700; margin-bottom: 2px; }
.trash-for   { font-size: 12px; opacity: .85; }

/* =========================================================
   SPOTIFY (horizontal carousel)
   ========================================================= */
.spotify-body { position: relative; }

.hscroll {                                 /* scroll track */
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 8px 6px 4px;
  -webkit-overflow-scrolling: touch;
}
.hscroll::-webkit-scrollbar { height: 8px; }
.hscroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 8px;
}

.album-card {                              /* each album tile */
  flex: 0 0 calc(60%/2);
  width: 260px;
  border-radius: 14px;
  background: #1f1f1f;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  scroll-snap-align: start;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
  position: relative;
}
.album-card:hover { transform: scale(1.05); }

.album-art {                               /* square art holder */
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}
.album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.album-card:hover img { transform: scale(1.08); }

.play-pill {                               /* hover dark overlay + play */
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(0,0,0,0.45);
  opacity: 0; transform: scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.album-art:hover .play-pill { opacity: 1; transform: scale(1); }
.play-pill svg {
  width: 44px; height: 44px; fill: white;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
}

.album-meta {                              /* title + artist text */
  padding: 12px; display: grid; gap: 2px; text-align: center;
}
.album-meta h4 { margin: 0; font-size: 16px; font-weight: 700; }
.album-meta p  { margin: 0; font-size: 13px; opacity: 0.85; }

.scroll-btn {                               /* (optional) side arrows */
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 60px; border: 0; border-radius: 12px;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(2px);
  cursor: pointer; z-index: 5;
}
.scroll-btn--left  { left: 6px; }
.scroll-btn--right { right: 6px; }
.scroll-btn::before {
  content: ""; display: block; width: 0; height: 0; margin: auto;
  border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.scroll-btn--left::before  { border-right: 10px solid #fff; }
.scroll-btn--right::before { border-left: 10px solid #fff; }

@media (max-width: 640px) {
  .album-card { width: 72vw; }
  .album-meta h4 { font-size: 15px; }
  .album-meta p  { font-size: 12px; }
}

/* =========================================================
   DESKTOP FILES (draggable icons/cards)
   ========================================================= */
.desktop-icons {                 /* layer that holds absolute-positioned files */
  position: relative;
  padding-bottom: 88px;          /* clear space above dock */
}

/* each file button (image + label) */
.desk-file {
  position: absolute;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 0; background: transparent;
  border-radius: 14px;
  cursor: grab; user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease;
  padding: 0;
}
.desk-file.dragging { cursor: grabbing; }

/* hover backdrop behind the file */
.desk-file::after {
  content: "";
  position: absolute; inset: -14px;
  border-radius: 16px;
  background: rgba(0,0,0,0);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: background .18s ease, box-shadow .18s ease;
  z-index: -1;
}
.desk-file:hover::after {
  background: rgba(0,0,0,0.35);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}

/* file image */
.desk-file__thumb {
  display: block;
  height: auto; width: auto;
  max-width: 160px; max-height: 160px;
  object-fit: contain;
  border-radius: 6px;
  transform-origin: center;
  transition: transform .18s ease, filter .18s ease;
  -webkit-user-drag: none;
  user-select: none;
}
.desk-file:hover .desk-file__thumb { transform: scale(1.05); }

/* label under the image */
.desk-file__label {
  display: block; margin: 0; padding: 0; text-align: center;
  color: #ffffff; font-weight: 800; letter-spacing: .4px;
  text-shadow: 0 2px 6px rgba(0,0,0,.45);
  white-space: nowrap; pointer-events: none;
}

/* selected state (blue pill) */
.desk-file.is-selected .desk-file__label {
  background: #2b6df8; color: #fff;
  padding: 6px 10px; border-radius: 10px;
  box-shadow: 0 6px 18px rgba(43,109,248,.35);
  text-shadow: none;
}

/* =========================================================
   WORK MODALS (project detail windows)
   ========================================================= */
.info-box {                                  /* gray info block */
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.work-row {                                  /* two-column meta list */
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 16px;
  align-items: start;
  margin: 12px 0;
}
.work-label { margin: 0; font-size: 13px; opacity: .85; font-weight: 700; }
.work-value { margin: 0; }
.work-hero {                                  /* big preview image */
  width: 100%; height: auto; border-radius: 12px; display: block;
}

/* narrower default width; height can grow (resizable windows) */
.modal--work .modal__panel { width: min(400px, 85vw); max-height: none; }

/* collapsible blocks (generic/bubbled style) */
.fold {
  margin: 12px 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 6px 8px;
}
.fold__summary { list-style: none; cursor: pointer; font-weight: 700; padding: 6px 6px; }
.fold__summary::-webkit-details-marker { display: none; }

/* messy (masonry) gallery */
.gallery-messy { margin-top: 8px; columns: 2; column-gap: 12px; }
.gallery-messy img {
  width: 100%; height: auto; margin: 0 0 12px; border-radius: 10px; display: block; break-inside: avoid;
}

/* title + subtitle in modal header */
.modal__titles { display: flex; flex-direction: column; gap: 2px; }
.modal__subtitle { margin: 0; font-size: 12px; opacity: .8; }

/* responsive gallery tweaks */
@media (max-width: 640px) {
  .work-row { grid-template-columns: 1fr; }
  .gallery-messy { columns: 1; }
}

/* =========================================================
   PLAIN DROPDOWNS (Details / Preview – minimal look)
   ========================================================= */
.fold--plain { background: transparent; border: 0; padding: 0; }
.fold--plain .fold__summary {
  position: relative; font-weight: 700; cursor: pointer;
  padding: 6px 0 6px 18px; user-select: none; transition: background-color 0.15s ease;
}
.fold--plain .fold__summary:hover { background-color: rgba(255,255,255,0.06); border-radius: 8px; }
.fold--plain .fold__summary:focus-visible {
  outline: 2px solid rgba(59,130,246,0.8); outline-offset: 2px; border-radius: 8px;
}
.fold--plain .fold__summary::before {
  content: "▸"; position: absolute; left: 0; top: 0; font-size: 14px; line-height: 1.4; transition: transform 0.2s ease;
}
.fold--plain[open] .fold__summary::before { content: "▾"; }
.fold--plain .work-hero { margin-top: 8px; }

/* =========================================================
   PROJECT WINDOW RESIZERS + SCROLLBARS
   ========================================================= */
/* multi-handle resizers on all sides/corners */
.modal__resizer { position: absolute; z-index: 2; opacity: .7; }
.modal__resizer:hover { opacity: 1; }

/* edges */
.modal__resizer--n  { top:-3px; left:10px; right:10px; height:6px; cursor: ns-resize; }
.modal__resizer--s  { bottom:-3px; left:10px; right:10px; height:6px; cursor: ns-resize; }
.modal__resizer--e  { right:-3px; top:10px; bottom:10px; width:6px; cursor: ew-resize; }
.modal__resizer--w  { left:-3px; top:10px; bottom:10px; width:6px; cursor: ew-resize; }

/* corners */
.modal__resizer--ne { right:-4px; top:-4px; width:12px; height:12px; cursor: nesw-resize; }
.modal__resizer--nw { left:-4px; top:-4px; width:12px; height:12px; cursor: nwse-resize; }
.modal__resizer--se { right:-4px; bottom:-4px; width:14px; height:14px; cursor: nwse-resize; }
.modal__resizer--sw { left:-4px; bottom:-4px; width:14px; height:14px; cursor: nesw-resize; }

/* dark slim scrollbar inside work modal bodies */
.modal--work .modal__body {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) transparent;
}
.modal--work .modal__body::-webkit-scrollbar { width: 8px; }
.modal--work .modal__body::-webkit-scrollbar-track { background: transparent; }
.modal--work .modal__body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box;
}
.modal--work .modal__body::-webkit-scrollbar-corner { background: transparent; }

/* media container inside messy gallery (image/video) */
.gallery-messy .gallery-media {
  width: 100%; height: auto; display: block; margin: 0 0 12px; border-radius: 10px; break-inside: avoid; background: #000;
}

/* =========================================================
   NOTES → CV THEME (scoped to #modal-notes > [data-tab="cv"] > #notes-cv)
   ========================================================= */

/* theme palette variables */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv.cv-theme {
  --bg:#f6f8fb; --ink:#0d1b2a; --muted:#5a6b80; --card:#fff;
  --accent:#2c5aa0; --accent-2:#709ad1; --border:#e7ecf4;
  --folder:#5f7da1; --folder-dk:#436185; --tab:#365a86; --paper:#fffdf7;
}

/* root area background + text color */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv { background:var(--bg); color:var(--ink); }

/* GRID WRAP (Left/Right + Bottom row). Also sets the dark stripe behind cards */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-wrap{
  background-color:#2b2b2b;               /* dark band behind the cards */
  align-items: start;                      /* align columns to top */
  max-width:1100px; margin:0 auto;
  padding:28px 18px 20px;
  display:grid; gap:28px;
  grid-template-columns: 320px 1fr;        /* left | right */
  grid-template-areas:
    "left right"
    "bottom bottom";                       /* full-width bottom row */
}
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-left{  grid-area:left;  width:auto; }
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-right{ grid-area:right; }
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-bottom{grid-area:bottom;}

@media (max-width: 960px){
  #modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-wrap{
    grid-template-columns: 1fr;
    grid-template-areas: "left" "right" "bottom";
  }
}

/* generic card look */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-card{
  background:var(--card); border:1px solid var(--border); border-radius:14px;
  padding:16px; margin-top:14px; box-shadow:0 2px 6px rgba(0,0,0,.03);
}
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-card h2{ font-size:20px; margin:0 0 10px; background-color: #fff}
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .item h3{ font-size:16px; margin:0 0 3px; }
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .item .meta{ color:var(--muted); font-size:13px; margin:0 0 6px; }
.cv-name{ color:#2c5aa0; }

/* Photo card (left column) */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-photo{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 16px 12px;
  margin: 0 0 14px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-photo img{
  display: block; width: 100%; max-width: 260px;
  aspect-ratio: 3 / 4; object-fit: cover; object-position: center;
  margin: 0 auto 10px; border-radius: 12px; border: 3px solid #eaf1fb;
}
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-name{ font-size:24px; margin:6px 0 2px; text-align:center; }
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-role{margin:0; text-align:center; }

/* Languages bar list */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .lang{
  display:grid; grid-template-columns: 1fr auto; align-items:center; gap:10px; margin:8px 0;
}
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .lang .bar{
  width:180px; height:8px; border-radius:6px; background-color:#739898; position:relative; overflow:hidden;
}
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .lang .bar span{
  position:absolute; inset:0 auto 0 0; width:var(--val);
  background:linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius:6px;
}

/* right side two-column layout inside cards */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cols{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }

/* hide any legacy skillset that might still exist on right */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-right .cv-skillset{ display:none !important; }

/* =========================================================
   SKILL FILES (folders + lined paper) – LEFT/RIGHT/BOTTOM variants
   ========================================================= */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles{ overflow:visible; padding-top:6px; }
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .skill-title{ font-size:22px; margin:20px 0 8px; color:var(--accent); }

/* flat file row (overlapping folders) */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file-row{
  --w:170px; --h:115px; --overlap:102px; --lift:26px;
  display:flex; align-items:flex-end; justify-content:flex-start; flex-wrap:nowrap; padding:2px 0;
}
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file{
  position:relative; width:var(--w); height:var(--h);
  margin-left: calc(var(--overlap) * -1);
  border:0; background:transparent; padding:0; cursor:pointer; outline-offset:4px;
  transform: translateY(0); transition: transform .25s ease, filter .25s ease;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.2)); z-index:1;
}
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file:first-child{ margin-left: 0; }
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file:hover,
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file.is-open{
  transform: translateY(calc(-1 * var(--lift)));
  filter: drop-shadow(0 22px 28px rgba(0,0,0,.28));
  z-index: 999 !important;
}

/* blue folder layer */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file .folder{
  position:absolute; inset:0;
  background: linear-gradient(180deg, #5d7598, #426084);
  border-radius: 18px 18px 14px 14px; z-index:2;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.18), inset 0 -8px 14px rgba(0,0,0,.15);
}

/* label tab on the RIGHT side */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file .tab{
  position:absolute; right:10px; top:-16px;
  height:26px; line-height:26px; padding:0 10px;
  font:700 12px/26px system-ui, sans-serif; color:#eaf2ff; white-space:nowrap;
  background:#365a86; border-radius:10px 10px 0 0; z-index:3;
  box-shadow: inset 0 -2px 0 #2a4566; text-align:right;
}

/* lined paper peeking from the TOP (with pop-out interaction) */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file .paper{
  position:absolute; left:10px; right:10px; top:-12px;
  height:58%; z-index:1; border-radius:12px;
  box-shadow:0 8px 14px rgba(0,0,0,.18);
  background:
    linear-gradient(90deg, #ff8b87 36px, transparent 36px),   /* red margin */
    repeating-linear-gradient(180deg, #fffdf7 0 22px, #dfe8ff 23px);
  display:flex; align-items:flex-start;
  transform:translateY(0);
  transition:transform .25s ease, height .25s ease;
  overflow:hidden;
}
/* hover/open: rise and get taller */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file:hover .paper,
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file.is-open .paper{
  transform:translateY(-6px); height:76%;
}
/* optional inline note text area inside paper */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file .paper .note{
  padding:14px 14px 14px 46px; width:100%; color:#2a3b55; font:500 12px/1.35 system-ui, sans-serif; overflow:hidden;
}

/* responsive tuning for left column row */
@media (max-width: 960px){
  #modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file-row{
    --w:160px; --h:110px; --overlap:98px; --lift:24px;
  }
}
@media (max-width: 640px){
  #modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file-row{
    --w:150px; --h:105px; --overlap:92px; --lift:22px;
  }
}

/* right-column version (larger, aligned to the right edge) */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles--right .file-row{
  --w:210px; --h:135px; --overlap:122px; --lift:28px;
  justify-content:flex-end;
}

/* bottom full-width version (centered across the window) */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles--bottom{ overflow:visible; }
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles--bottom .file-row{
  --w:220px; --h:140px; --overlap:130px; --lift:32px;
  justify-content:center; flex-wrap:nowrap;
}
/* give section headers headroom above the lifting files */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles h2{ margin-bottom: 44px; }

/* Skill folders — pop-out, but keep paper same width as folder */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file.is-open .paper{
  height: auto;                  /* grow to content */
  max-height: min(42vh, 320px);  /* clamp so it doesn’t get too tall */
  min-height: 140px;
  overflow: auto;

  border-radius: 12px;           /* same as base paper corners */
  box-shadow: 0 28px 44px rgba(0,0,0,.35);
  transform: translateY(0);

  transition:
    top .5s ease,
    max-height .25s ease,
    box-shadow .25s ease,
    transform .25s ease,
    z-index .25s ease;
}

/* === FINAL — Skill folders slide-out from under the blue folder === */
/* Tweak how far it slides using --slide */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles {
  --slide: 160px; /* try 140–180px to taste */
}

/* Keep everything visible while sliding out */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file {
  position: relative;
  overflow: visible;
  z-index: 1; /* raised per-item on open below */
}

/* Folder stays above the paper at the seam to sell the 'from inside' illusion */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file .folder {
  position: absolute; inset: 0;
  z-index: 3;
}

/* Small 'lip' to hide the paper edge while it starts sliding */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file .folder::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; top: -1px;
  height: 10px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #5d7598, #426084);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.08);
  z-index: 4;         /* sits above both folder body and paper edge */
  pointer-events: none;
}

/* Paper starts tucked under folder, same width as folder */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file .paper {
  left: 10px; right: 10px; top: -12px;      /* same insets as base = same width */
  z-index: 2;                               /* UNDER the folder */
  height: 58%;
  transform: translate3d(0, 0, 0);
  transition:
    transform .32s cubic-bezier(.2,.7,.2,1),
    max-height .28s ease,
    box-shadow .28s ease;
  will-change: transform;
  box-sizing: border-box;
  overflow: hidden;                         /* no spill while closed/hover */
}

/* Tiny preview lift on hover (still under the folder lip) */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file:hover .paper {
  transform: translate3d(0, -6px, 0);
}

/* When opened: raise the WHOLE file above neighbors (not above its own folder) */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file.is-open {
  z-index: 1200;                            /* beats siblings; same stacking context */
  filter: drop-shadow(0 22px 28px rgba(0,0,0,.28));
}

/* Slide the paper out from under the folder; grow to content, clamped */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file.is-open .paper {
  transform: translate3d(0, calc(-1 * var(--slide)), 0);
  height: auto;                              /* natural height → grows to text */
  max-height: min(42vh, 320px);              /* clamp so it doesn’t get too tall */
  min-height: 140px;
  overflow: auto;                            /* scroll if content exceeds clamp */
  box-shadow: 0 28px 44px rgba(0,0,0,.35);
}

/* Tab must be positioned + higher z-index than the lip */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file { position: relative; }

#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file .tab{
  position: absolute;          /* not relative */
  top: -16px;                  /* your existing offset */
  right: 10px;                 /* or left:10px if you use left-side tabs */
  z-index: 10;                 /* > lip (4), > folder (3), > paper (2) */
}

/* Lip stays below the tab */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file .folder::after{
  z-index: 4;
  height: 6px;                 /* slimmer so it doesn’t crowd the tab */
  top: 0;
  left: 12px;
  right: 12px;
  pointer-events: none;
}

/* Left-align the whole left column by default */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-left {
  text-align: left;
}

/* Left-align the sliding paper note */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file .paper {
  text-align: left;                /* affects everything inside the paper */
}

/* Ensure the note text itself is left-aligned (highest priority) */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file .paper .note,
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file .paper .note p {
  text-align: left !important;
  margin: 0;
  width: 100%;
}

/* === Always-peek papers (prevents text hiding under the folder) === */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles{
  --peek: 12px;   /* how much is always visible above the folder */
  --slide: 100%; /* your normal open slide distance (keep/tweak) */
}

/* Base: show a small sliver of paper at all times */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file .paper{
  transform: translate3d(0, calc(-1 * var(--peek)), 0);
}

/* Hover: lift a tiny bit more (still under the folder lip) */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file:hover .paper{
  transform: translate3d(0, calc(-1 * (var(--peek) + 6px)), 0);
}

/* Open: full slide (you can tweak --slide above) */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file.is-open .paper{
  transform: translate3d(0, calc(-1 * var(--slide)), 0);
}

/* Keep the first text line safely below the seam/rule */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-skillfiles .file .paper .note{
  padding-top: calc(var(--rule, 28px) * 0.8);  /* nudge first line down */
  text-align: left;
}



/* ==================== CV TYPOGRAPHY SYSTEM (unified) ==================== */
/* Paste at the END of your CSS */

#modal-notes .tabs__panel[data-tab="cv"] #notes-cv{
  /* reuse your theme tokens for clarity */
  --title-color: var(--accent);   /* same blue as "Noor Vermeer" */
  --body-color:  var(--ink);      /* main text */
  --muted-color: var(--muted);    /* subtle/meta text */
}

/* Reset accidental backgrounds on headings inside cards */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-card h1,
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-card h2,
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-card h3{
  background: none !important;
}

/* ===== Headings: same color + hierarchy ===== */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv h1,
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv h2,
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv h3{
  color: var(--title-color);
  font-family: "Montserrat", sans-serif;
  margin-top: 0;
}

/* Name (keep as your main hero size) */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-name{
  color: var(--title-color);
  font-weight: 800;
  font-size: 1.6rem;           /* tweak if you need bigger/smaller */
  line-height: 1.2;
}

/* Section titles: Education, Work Experience, About me */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv h2{
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0 0 .6rem;
}

/* Sub-headers (job titles, diplomas, etc.) */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv h3,
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .item h3{
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  margin: 0 0 .25rem;
  color: var(--title-color);   /* same blue for consistency */
}

/* ===== Paragraphs & meta ===== */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv p{
  color: var(--body-color);
  font-size: .95rem;
  line-height: 1.6;
  margin: 0 0 .6rem;
}

/* “meta” lines such as dates, locations, brief descriptors */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .item .meta,
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .meta,
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .subtitle{
  color: var(--muted-color);
  font-size: .9rem;
  line-height: 1.5;
  margin: 0 0 .4rem;
}

/* Role line under the name */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-role{
  color: var(--muted-color);
  font-size: .95rem;
  font-weight: 400;
  margin-top: .2rem;
}

/* Optional: tighten list spacing inside cards to match paragraph rhythm */
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-card ul{
  margin: 0 0 .6rem;
}
#modal-notes .tabs__panel[data-tab="cv"] #notes-cv .cv-card li{
  margin: .25rem 0;
}

/* =================== Dark, blended scrollbars =================== */
/* Tell the browser this area is dark so default UI (incl. scrollbars) adapts */
.modal__panel,
.modal__body {
  color-scheme: dark;
}

/* Firefox (and any engine that supports it) */
.modal__body,
#modal-notes .cv-skillfiles .file .paper {
  scrollbar-width: thin;                                   /* slim */
  scrollbar-color: rgba(255,255,255,0.18) transparent;     /* thumb / track */
}

/* WebKit (Chrome/Edge/Safari) */
.modal__body::-webkit-scrollbar,
#modal-notes .cv-skillfiles .file .paper::-webkit-scrollbar {
  width: 8px;                                              /* vertical */
  height: 8px;                                             /* horizontal */
}

.modal__body::-webkit-scrollbar-track,
#modal-notes .cv-skillfiles .file .paper::-webkit-scrollbar-track {
  background: transparent;                                 /* no bright track */
}

.modal__body::-webkit-scrollbar-thumb,
#modal-notes .cv-skillfiles .file .paper::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);                      /* subtle thumb */
  border-radius: 8px;
  border: 2px solid transparent;                           /* inset look */
  background-clip: padding-box;
}

.modal__body::-webkit-scrollbar-thumb:hover,
#modal-notes .cv-skillfiles .file .paper::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.28);                      /* a bit brighter on hover */
}




/* =========================================================
   ABOUT TAB — checklist component
   ========================================================= */
.tabs__panel[data-tab="about"] {
  --about-text: var(--text, #0f0f0f);
  --about-accent: var(--brand-yellow, #F2B01B);
}
.tabs__panel[data-tab="about"] .cv-about__heading {
  font-weight: 700; font-size: inherit; margin: 1.25rem 0 .5rem;
}
.tabs__panel[data-tab="about"] .cv-checklist {
  list-style: none; padding: 0; margin: .25rem 0 0; display: grid; gap: .5rem;
}
@media (min-width: 900px) {
  .tabs__panel[data-tab="about"] .cv-checklist { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
}
.cv-check {
  display: grid; grid-template-columns: 1.35rem 1fr; align-items: center; gap: .6rem;
  font-size: inherit; line-height: 1.6; color: #fff(--about-text);
}
.cv-check__icon { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; }
.cv-check__svg { width: 100%; height: 100%; }
.cv-check__svg circle { fill: var(--about-accent); }
.cv-check__svg path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   "WHAT ARE YOU LOOKING FOR" — interactive ticks
   ========================================================= */
.tabs__panel[data-tab="looking-for"] .cv-checklist {
  list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; justify-items: start;
}
@media (min-width: 900px) {
  .tabs__panel[data-tab="looking-for"] .cv-checklist { grid-template-columns: 1fr; }
}
.tabs__panel[data-tab="looking-for"] .cv-check {
  display: grid; grid-template-columns: 1.35rem 1fr; align-items: center; gap: .6rem;
  font-size: inherit; line-height: 1.6; color: #fff; cursor: pointer; user-select: none;
}
.tabs__panel[data-tab="looking-for"] .cv-check__icon {
  display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; background: transparent;
}
.tabs__panel[data-tab="looking-for"] .cv-check__svg { width: 100%; height: 100%; display: block; }

/* state visuals: dot + tick */
.cv-check .dot { fill: #fff; transition: fill .2s ease, stroke .2s ease; }
.cv-check .tick { fill: none; opacity: 0; transition: opacity .15s ease; }
.cv-check:hover .dot { fill: var(--brand-yellow, #F2B01B); }
.cv-check:hover .tick { opacity: 1; }
.cv-check.is-checked .dot { fill: var(--brand-yellow, #F2B01B); }
.cv-check.is-checked .tick { opacity: 1; }

/* CTA button shows only when JS adds .is-visible */
.tabs__panel[data-tab="looking-for"] .looking-for__cta { display: none; margin-top: 1.5rem; }
.tabs__panel[data-tab="looking-for"] .looking-for__cta.is-visible { display: inline-block !important; }
.looking-for__cta .btn {
  display: inline-block; background: var(--brand-blue, #4A81FF); color: #fff; font-weight: 700; text-decoration: none;
  border: 0; border-radius: .6rem; padding: .6rem 1.2rem; font-size: .95rem; transition: background .2s, transform .1s;
}
.looking-for__cta .btn:hover { background: #3c6ce6; transform: translateY(-1px); }


.work-details {
  white-space: pre-line;
}

.btn--sm {
  background: var(--accent, #0078ff);
  color: white;
  border: none;
  padding: 0.4em 0.8em;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem; 
  min-width: fit-content;
  white-space: nowrap;
  padding: 0.5em 1em;
}
.btn--sm:hover {
  background: #005fcc;
}
