/* ===============================
   Yugal Soni — Patch Styles (all pages)
   =============================== */

:root{
  --accent: #ffd34d;                 /* yellow */
  --ring: rgba(255,255,255,0.08);    /* subtle borders */
  --card: #202228;                   /* inner cards */
  --panel: #1f2126;                  /* big panels */
  --muted: #a5aab3;                  /* secondary text */

  /* Resume timeline controls */
  --timeline-x: 30px;                /* horizontal position of the vertical line */
  --icon-bubble: 54px;               /* round icon bubble size */
  --dot-size: 8px;                  /* yellow node size */

  /* Avatar */
  --avatar-size: 176px;
}

/* --------- Layout: page + content card --------- */
.page{
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
}
@media (max-width: 900px){
  .page{ grid-template-columns: 1fr; }
}

.content-card{
  background: var(--panel);
  border: 1px solid var(--ring);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}

/* --------- Tabs --------- */
.tabs{
  display:flex; gap:8px; justify-content:flex-end;
  margin:-10px -10px 18px 0;
}
.tab{
  padding:10px 14px; border-radius:12px; text-decoration:none;
  color:#cfd3da; border:1px solid var(--ring); background:#181a1f;
}
.tab.active{
  color:#111; background:var(--accent); border-color:var(--accent); font-weight:600;
}
.tab:hover{ filter: brightness(1.05); }

/* --------- Sidebar: avatar tile + centered CV button --------- */
.avatar-tile{
  width: calc(var(--avatar-size) + 28px);
  height: calc(var(--avatar-size) + 28px);
  border-radius: 24px;
  background: linear-gradient(135deg,#3a3a3a,#2d2d2d);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--ring), 0 10px 28px rgba(0,0,0,.35);
  margin: 0 auto 16px;
}
.avatar-tile .avatar{ width: var(--avatar-size); height: var(--avatar-size); border-radius:50%; display:block; }

.sidebar.sidepanel .cv-btn-center{ display:flex; justify-content:center; }
.sidebar.sidepanel .cv-btn-center .btn{
  display:inline-flex; width:auto !important; margin:16px 0 0 0;
  padding:12px 18px; border-radius:14px; text-decoration:none;
}

/* --------- Section titles (yellow underline) --------- */
.section-title{ position:relative; margin:12px 0 8px; }
.section-title::after{
  content:""; display:block; width:44px; height:4px;
  background:var(--accent); border-radius:999px; margin-top:8px;
}

/* =========================================
   ABOUT — “What I’m Doing” (2×2 grid)
   ========================================= */
.what-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:14px; margin-top:10px;
}
@media (max-width: 760px){
  .what-grid{ grid-template-columns: 1fr; }
}
.what-card{
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--ring);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.what-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
  border-color: rgba(255,211,77,.5);
}
.what-icon svg{ width:28px; height:28px; fill: var(--accent); display:block; }
.what-title{ font-weight:800; color:var(--accent); margin:8px 0 6px; }

/* =========================================
   PROJECTS — grid + yellow titles + centered GitHub
   ========================================= */
.project-grid{ display:grid; grid-template-columns: 1fr; gap:16px; }
@media (min-width: 900px){ .project-grid{ grid-template-columns: repeat(2,1fr); } }

.project-card{
  background: var(--card);
  border:1px solid var(--ring);
  border-radius:16px; overflow:hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.project-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
  border-color: rgba(255,211,77,.5);
}
.project-card img{ width:100%; height:180px; object-fit:cover; display:block; background:#111; }
.project-card h4{ margin:12px 12px 4px; color: var(--accent); font-weight:700; }
.project-card p{ margin:0 12px 12px; color:#cfd3da; }
.project-actions{ display:flex; justify-content:center; padding:10px 0 16px; }
.gh-icon{
  width:46px; height:46px; display:grid; place-items:center;
  border-radius:999px; background:#2a2b30; border:1px solid var(--ring);
  transition: transform .15s ease, box-shadow .15s ease;
}
.gh-icon svg{ width:22px; height:22px; fill: var(--accent); }
.gh-icon:hover{ transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,.35); }

/* =========================================
   RESUME — timeline
   (icon bubble + vertical spine + centered dots)
   ========================================= */

/* Section wrapper and icon bubble */
.resume-section{
  position: relative;
  padding-left: calc(var(--timeline-x) + 40px);  /* text sits right of the spine */
  margin: 24px 0;
}
.resume-section .section-icon{
  position: absolute;
  left: calc(var(--timeline-x) - (var(--icon-bubble) / 2));  /* bubble centered on spine */
  top: -10px;                                                 /* aligns with h2 row */
  width: var(--icon-bubble); height: var(--icon-bubble);
  border-radius: 50%;
  background: #1a1c20;
  border: 1px solid var(--ring);
  display: grid; place-items:center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 8px 24px rgba(0,0,0,.35);
  z-index: 2;
}
.resume-section .section-icon svg{ width:22px; height:22px; fill:var(--accent); }

/* Single vertical spine that touches the bubble */
.resume-section::after{
  content:"";
  position:absolute;
  left: var(--timeline-x);
  top: var(--icon-bubble);    /* starts at the bubble bottom */
  bottom: 0;
  width: 2px; background: var(--ring);
  z-index: 1;
}

/* Remove any old spine styles from base CSS */
.resume-timeline,
.resume-timeline::before,
.resume-timeline::after{
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

/* Timeline list and entries */
.resume-timeline{
  list-style: none;
  margin: 8px 0 0;
  padding: 0;                 /* spacing handled by .resume-section */
}
.resume-timeline li{
  position: relative;
  padding: 14px 0 14px calc(var(--timeline-x) + 26px);
}

/* Yellow dots — small & centered on the spine */
.resume-timeline .dot{
  position: absolute;
  left: calc(var(--timeline-x) - (var(--dot-size) / 2));
  top: 22px;                   /* aligns with entry title row */
  width: var(--dot-size); height: var(--dot-size);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,211,77,.16);
  z-index: 2;
}

/* Entry title row and right-aligned italic dates */
.resume-entry .entry-row{
  display:flex; align-items:baseline; justify-content:space-between; gap:12px;
}
.resume-entry .right-date{ font-style:italic; color:var(--muted); white-space:nowrap; }

/* Yellow emphasis lines */
.degree, .job-title{ color: var(--accent); font-weight:600; margin: 2px 0 4px; }

/* Bulleted lists (skills & experience points) */
.skills-bullets{ list-style:none; margin:8px 0 0; padding:0; }
.skills-bullets li{
  position:relative; padding-left:18px; margin:8px 0;
  font-size:16px; line-height:1.5;
}
.skills-bullets li::before{
  content:"›"; position:absolute; left:0; top:0.2em;
  color:var(--accent); font-weight:700;
}

/* Small-screen tweak so nothing overlaps */
@media (max-width: 860px){
  :root{ --timeline-x: 24px; }
  .resume-section{ padding-left: calc(var(--timeline-x) + 32px); }
}
/* ===== Experience bullets: perfectly aligned (grid) ===== */
.resume-timeline .skills-bullets{
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.resume-timeline .skills-bullets li{
  display: grid;
  grid-template-columns: 14px 1fr;   /* chevron | text */
  gap: 12px;
  margin: 10px 0;
  padding: 0;                         /* remove any hanging indent */
  font-size: 16px;
  line-height: 1.5;
}

.resume-timeline .skills-bullets li::before{
  content: "›";
  color: var(--accent);
  font-weight: 800;
  line-height: 1;
  transform: translateY(2px);         /* nudge to vertical center of first line */
}

/* If any bullets were wrapped in <p>, kill the default margins */
.resume-timeline .skills-bullets li > p{
  margin: 0;
}
/* ===== Fix: Experience bullets wrap correctly (use flex, full width) ===== */
.resume-timeline .skills-bullets{
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.resume-timeline .skills-bullets li{
  display: flex !important;          /* override earlier grid */
  align-items: flex-start;
  gap: 12px;
  margin: 10px 0;
  padding: 0;
  width: 100%;
  min-width: 0;                       /* allow natural line wrapping */
  white-space: normal;
  word-break: normal;
}

.resume-timeline .skills-bullets li::before{
  content: "›";
  color: var(--accent);
  font-weight: 800;
  line-height: 1;
  flex: 0 0 16px;                     /* fixed column for chevron */
  display: inline-block;
  margin-top: 2px;                    /* slight vertical align */
}

.resume-timeline .skills-bullets li > *{
  margin: 0;                          /* if any <p> inside li, remove default margins */
}
/* ===== Experience bullets — final (block + absolute chevron) ===== */
.resume-timeline .skills-bullets{
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.resume-timeline .skills-bullets li{
  position: relative;
  display: block !important;     /* override any previous grid/flex */
  padding-left: 26px;            /* space for chevron column */
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.55;
  white-space: normal;
  word-break: normal;
}

.resume-timeline .skills-bullets li::before{
  content: "\203A";              /* › chevron; change to "▸" if you prefer */
  position: absolute;
  left: 0;
  top: 0.25em;                   /* visually centered on first line */
  width: 18px;                   /* fixed column width for the chevron */
  text-align: center;
  color: var(--accent);
  font-weight: 800;
  line-height: 1;
}

/* Remove default margins if bullets contain <p> or other blocks */
.resume-timeline .skills-bullets li > *{
  margin: 0;
}
