/* ==========================================================================
   Siddhant Gayakwad — DevOps Portfolio
   Design language: the tools a DevOps engineer lives in every day —
   a terminal, a git log, a status dashboard, a YAML manifest.
   ========================================================================== */

:root{
  /* --- Palette (grounded in GitHub's dark UI + CI status colors) --- */
  --bg:            #0D1117;
  --bg-raised:     #131B24;
  --bg-raised-2:   #1B2530;
  --border:        rgba(240,246,252,0.10);
  --border-strong: rgba(240,246,252,0.18);

  --text:          #E6EDF3;
  --text-dim:      #9CA9B5;
  --text-faint:    #6B7684;

  --success:       #3FB950;   /* build passing */
  --success-dim:    rgba(63,185,80,0.14);
  --info:           #58A6FF;  /* links / info */
  --info-dim:       rgba(88,166,255,0.14);
  --warning:        #D29922;  /* pending / running */
  --warning-dim:    rgba(210,153,34,0.14);
  --danger:         #F85149;
  --danger-dim:     rgba(248,81,73,0.14);

  --radius:   10px;
  --radius-lg: 16px;

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--sans);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(88,166,255,0.08), transparent 60%),
    radial-gradient(700px 400px at -10% 10%, rgba(63,185,80,0.06), transparent 60%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
img{ max-width:100%; display:block; }
a{ color: var(--info); text-decoration: none; }
::selection{ background: var(--info-dim); color: var(--text); }

.container{ max-width: 1080px; margin: 0 auto; padding: 0 24px; }

:focus-visible{
  outline: 2px solid var(--info);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---------- Status dot (recurring signature: everything reports health) ---------- */
.dot{
  display:inline-block; width:8px; height:8px; border-radius:50%;
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-dim);
  flex-shrink:0;
}
.dot.warn{ background: var(--warning); box-shadow:0 0 0 3px var(--warning-dim); }
.dot.info{ background: var(--info); box-shadow:0 0 0 3px var(--info-dim); }

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 0;
  gap: 20px;
}
.brand{ display:flex; align-items:center; gap:10px; min-width:0; }
.brand a{ color: var(--text); }
.prompt{
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-dim);
  white-space: nowrap;
}
.prompt .user{ color: var(--success); }
.prompt .at{ color: var(--text-faint); }
.prompt .host{ color: var(--info); }
.prompt .colon{ color: var(--text-faint); }

.site-nav{ display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.nav-link{
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--text-dim);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.nav-link:hover{ color: var(--text); background: rgba(255,255,255,0.05); }
.nav-link.is-active{ color: var(--info); }

.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--mono);
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{
  background: var(--success);
  color: #04170A;
  box-shadow: 0 0 0 0 rgba(63,185,80,0);
}
.btn-primary:hover{ box-shadow: 0 6px 20px -6px rgba(63,185,80,0.55); }
.btn-outline{
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-dim);
}
.btn-outline:hover{ color: var(--text); border-color: var(--info); }

/* ---------- Hero (homepage) ---------- */
.hero{
  padding: 72px 0 56px;
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items:center;
}
.hero-eyebrow{
  font-family: var(--mono);
  font-size: 13px;
  color: var(--success);
  display:inline-flex; align-items:center; gap:8px;
  background: var(--success-dim);
  border: 1px solid rgba(63,185,80,0.25);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1{
  font-family: var(--mono);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin: 0 0 14px;
}
.hero h1 .accent{ color: var(--info); }
.hero p.lede{
  color: var(--text-dim);
  font-size: 17px;
  max-width: 46ch;
  margin: 0 0 28px;
}
.hero-ctas{ display:flex; gap: 12px; flex-wrap: wrap; }

/* Terminal widget — the signature element */
.terminal{
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.terminal-bar{
  display:flex; align-items:center; gap:8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised-2);
}
.terminal-bar span{ width:10px; height:10px; border-radius:50%; display:inline-block; }
.terminal-bar .r{ background:#F85149; }
.terminal-bar .y{ background:#D29922; }
.terminal-bar .g{ background:#3FB950; }
.terminal-bar .title{
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}
.terminal-body{
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.85;
  padding: 20px 20px 24px;
  color: var(--text-dim);
  min-height: 260px;
}
.terminal-body .p{ color: var(--success); }
.terminal-body .cmd{ color: var(--text); }
.terminal-body .ok{ color: var(--success); }
.terminal-body .muted{ color: var(--text-faint); }
.terminal-body .cursor{
  display:inline-block; width:8px; height:16px; background: var(--info);
  vertical-align: -2px; animation: blink 1s steps(1) infinite;
}
@keyframes blink{ 50%{ opacity: 0; } }

/* ---------- Sections ---------- */
.section{ padding: 56px 0; }
.section-head{ margin-bottom: 28px; }
.section-tag{
  font-family: var(--mono);
  font-size: 13px;
  color: var(--info);
  display:block;
  margin-bottom: 8px;
}
.section-tag::before{ content: "~/"; color: var(--text-faint); }
.section h2{
  font-family: var(--mono);
  font-size: clamp(22px, 3vw, 28px);
  margin: 0;
  letter-spacing: -0.3px;
}
.section p.section-desc{ color: var(--text-dim); margin: 10px 0 0; max-width: 60ch; }

hr.rule{ border:none; border-top:1px solid var(--border); margin: 0; }

/* ---------- Cards / Projects ---------- */
.cards{ display:grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 18px; }
.card{
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover{
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 40px -24px rgba(0,0,0,0.55);
}
.card-status{
  display:flex; align-items:center; gap:8px;
  font-family: var(--mono); font-size: 12px; color: var(--text-faint);
  margin-bottom: 12px;
}
.card h3{ margin: 0 0 8px; font-size: 17px; color: #fff; }
.card p{ color: var(--text-dim); font-size: 14px; line-height: 1.55; margin: 0 0 14px; }
.tag-row{ display:flex; gap:6px; flex-wrap:wrap; }
.tag{
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 6px;
}

/* ---------- YAML skill cards ---------- */
.yaml-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; }
.yaml-card{
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 13.5px;
  transition: border-color .18s ease;
}
.yaml-card:hover{ border-color: var(--border-strong); }
.yaml-key{ color: var(--info); }
.yaml-dash{ color: var(--text-faint); }
.yaml-val{ color: var(--text-dim); }
.yaml-card .line{ margin: 3px 0; white-space: pre-wrap; }

/* ---------- Git-log timeline (experience) ---------- */
.gitlog{ position: relative; padding-left: 28px; }
.gitlog::before{
  content:""; position:absolute; left:5px; top:6px; bottom:6px; width:2px;
  background: linear-gradient(to bottom, var(--success), var(--border) 90%);
}
.commit{ position: relative; padding-bottom: 30px; }
.commit:last-child{ padding-bottom: 0; }
.commit::before{
  content:""; position:absolute; left:-28px; top:5px;
  width:12px; height:12px; border-radius:50%;
  background: var(--bg); border:2px solid var(--success);
}
.commit-head{
  display:flex; align-items:baseline; gap:10px; flex-wrap:wrap;
  font-family: var(--mono); font-size: 12.5px; color: var(--text-faint);
  margin-bottom: 6px;
}
.commit-hash{ color: var(--warning); }
.commit-date{ color: var(--text-faint); }
.commit h3{ margin: 0 0 4px; font-size: 17px; color:#fff; }
.commit .org{ color: var(--info); font-weight: 600; }
.commit p{ color: var(--text-dim); font-size: 14.5px; margin: 8px 0 0; max-width: 62ch; }

/* ---------- Badges (certifications) ---------- */
.badge-row{ display:flex; gap:10px; flex-wrap: wrap; }
.badge{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--mono); font-size: 12.5px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

/* ---------- Profile strip (about page header) ---------- */
.page-head{
  display:flex; align-items:center; gap:18px;
  padding: 40px 0 8px;
}
.page-head img{
  width: 76px; height:76px; border-radius: 14px; object-fit: cover;
  border: 1px solid var(--border-strong);
}
.page-head .name{ font-family: var(--mono); font-size: 22px; margin:0; }
.page-head .role{ color: var(--text-dim); font-size: 14px; margin: 4px 0 0; }

/* ---------- Contact list ---------- */
.contact-list{ list-style:none; padding:0; margin: 18px 0 0; display:flex; flex-direction:column; gap:8px; }
.contact-list li{
  font-family: var(--mono); font-size: 14px; color: var(--text-dim);
  display:flex; gap: 10px;
}
.contact-list .k{ color: var(--text-faint); min-width: 76px; }

/* ---------- Resume page ---------- */
.resume-toolbar{
  display:flex; gap:8px; align-items:center; flex-wrap:wrap;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.resume-toolbar .spacer{ flex:1; }
.resume-toolbar .page-info{ font-family: var(--mono); font-size:13px; color: var(--text-dim); }
.pdf-canvas-wrap{
  overflow:auto; border:1px solid var(--border); background:#fff;
  padding:12px; border-radius: var(--radius);
}

/* ---------- Prose (about/projects markdown) ---------- */
.prose h2{ font-family: var(--mono); font-size: 20px; margin: 36px 0 14px; }
.prose h2:first-child{ margin-top: 0; }
.prose p{ color: var(--text-dim); }

/* ---------- Footer ---------- */
.site-footer{
  padding: 30px 0 44px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-inner{
  display:flex; justify-content: space-between; align-items:center; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12.5px; color: var(--text-faint);
}
.footer-status{ display:flex; align-items:center; gap:8px; }
.footer-links{ display:flex; gap: 16px; }
.footer-links a{ color: var(--text-faint); }
.footer-links a:hover{ color: var(--info); }

/* ---------- Responsive ---------- */
@media (max-width: 880px){
  .hero{ grid-template-columns: 1fr; padding-top: 40px; }
  .site-nav{ gap:0; }
  .header-inner{ flex-wrap: wrap; row-gap: 10px; }
}
@media (max-width: 560px){
  .prompt{ font-size: 12.5px; }
  .terminal-body{ font-size: 12.5px; }
  .page-head{ flex-wrap: wrap; }
}
