@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;700&family=Inter:wght@400;600&display=swap');
* {
  box-sizing: border-box;
  }

html {
scroll-behavior: smooth;
}

body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
background: #050505;
color: #cbd5e1;
line-height: 1.6;
position: relative;
overflow-x: hidden;
}

/* Remove old matrix/grid background */

body::before,
body::after {
content: none;
display: none;
}

/* Page layout */

.page {
display: flex;
min-height: 100vh;
position: relative;
z-index: 1;
}

/* Left panel */

.sidebar {
width: 360px;
height: 100vh;
position: fixed;
left: 80px;
top: 0;
padding: 42px 30px;
background: linear-gradient(145deg, #020617, #04150b, #052e16);
border-right: 1px solid rgba(22, 163, 74, 0.45);
box-shadow: 0 0 30px rgba(22, 163, 74, 0.14);
overflow-y: auto;
z-index: 2;
}

.sidebar-block {
padding-bottom: 26px;
margin-bottom: 26px;
border-bottom: 1px solid rgba(22, 163, 74, 0.25);
}

.sidebar-block:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}

.sidebar h1 {
margin: 0;
font-size: 34px;
line-height: 1.1;
color: #16a34a;
letter-spacing: 1px;
text-shadow: 0 0 14px rgba(22, 163, 74, 0.65);
}

.role {
margin: 10px 0 16px;
color: #86efac;
font-size: 18px;
font-weight: bold;
}

.sidebar .contact p {
margin: 7px 0;
color: #38bdf8;
font-size: 14px;
word-break: break-word;
}

.sidebar h2 {
margin: 0 0 12px;
color: #ffffff;
font-size: 17px;
}

.sidebar p {
color: #cbd5e1;
font-size: 14px;
}

/* Social icons */

.social-icons {
display: flex;
gap: 14px;
margin-top: 12px;
align-items: center;
}

.social-icons a {
color: #22c55e;
font-size: 24px;
text-decoration: none;
transition: transform 0.2s ease, color 0.2s ease;
}

.social-icons a:hover {
color: #4ade80;
transform: scale(1.12);
text-decoration: none;
}

/* Sidebar menu */

.menu {
display: flex;
flex-direction: column;
gap: 4px;
}

.menu a {
display: block;
color: #cbd5e1;
text-decoration: none;
font-weight: bold;
padding: 9px 10px;
border-radius: 6px;
border-left: 2px solid transparent;
}

.menu a:hover,
.menu a.active {
color: #16a34a;
background: rgba(22, 163, 74, 0.08);
border-left: 2px solid #16a34a;
text-decoration: none;
}

/* Main content */

.content {
margin-left: 440px;
width: calc(100% - 520px);
padding: 70px 0 70px 60px;
position: relative;
z-index: 1;
}

.content-section {
max-width: none;
background: transparent;
border: none;
border-radius: 0;
box-shadow: none;
padding: 0 0 42px;
margin-bottom: 42px;
border-bottom: 1px solid rgba(22, 163, 74, 0.25);
position: relative;
z-index: 1;
}

.section-label {
margin: 0 0 8px;
color: #4ade80;
font-size: 13px;
text-transform: uppercase;
letter-spacing: 1.5px;
}

.content-section h2 {
margin: 0 0 20px;
padding-bottom: 12px;
color: #16a34a;
font-size: 28px;
border-bottom: 1px solid rgba(22, 163, 74, 0.35);
}

.content-section h3 {
margin-top: 0;
color: #86efac;
}

p {
color: #cbd5e1;
}

ul {
margin-bottom: 0;
padding-left: 22px;
}

li {
margin-bottom: 10px;
}

/* Cards */

.grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 18px;
}

/* Skills section: 3 cards per row on desktop */

#skills .grid {
grid-template-columns: repeat(3, 1fr);
}

.card {
background: rgba(22, 163, 74, 0.04);
border: 1px solid rgba(22, 163, 74, 0.18);
border-radius: 10px;
padding: 18px;
position: relative;
z-index: 1;
}

.card h3 {
margin-bottom: 8px;
}

.card p {
margin-bottom: 0;
}

/* Projects */

.project {
padding: 18px 0 18px 18px;
margin-bottom: 22px;
border-left: 4px solid #16a34a;
background: rgba(22, 163, 74, 0.04);
position: relative;
z-index: 1;
}

.project:last-child {
margin-bottom: 0;
}

.project p {
margin-right: 18px;
}

.tags {
color: #4ade80;
font-size: 14px;
font-weight: bold;
}

/* Documentation list */

.list p {
padding-bottom: 14px;
margin-bottom: 14px;
border-bottom: 1px solid rgba(22, 163, 74, 0.18);
}

.list p:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}

/* Links and buttons */

a {
color: #22c55e;
font-weight: bold;
text-decoration: none;
}

a:hover {
color: #4ade80;
text-decoration: underline;
}

.button {
display: inline-block;
margin-top: 8px;
padding: 10px 16px;
border: 1px solid #f59e0b;
border-radius: 8px;
color: #f59e0b;
background: rgba(245, 158, 11, 0.06);
}

.button:hover {
background: #f59e0b;
color: #020617;
text-decoration: none;
}

/* Guide card layout */

.guide-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 18px;
margin-top: 10px;
}

.guide-card {
display: flex;
align-items: center;
gap: 16px;
min-height: 120px;
padding: 16px;
border: 1px solid rgba(22, 163, 74, 0.16);
border-radius: 10px;
background: rgba(255, 255, 255, 0.03);
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
text-decoration: none;
transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
position: relative;
z-index: 1;
}

.guide-card:hover {
transform: translateY(-2px);
border-color: rgba(22, 163, 74, 0.45);
background: rgba(255, 255, 255, 0.05);
text-decoration: none;
}

.guide-icon-box {
width: 48px;
height: 48px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
border-radius: 8px;
background: rgba(22, 163, 74, 0.08);
color: #22c55e;
font-size: 22px;
}

.guide-text h3 {
margin: 0 0 6px;
font-size: 18px;
color: #f59e0b;
}

.guide-text p {
margin: 0;
color: #cbd5e1;
font-size: 13px;
}

/* Code blocks */

pre {
background: #020617;
border: 1px solid rgba(22, 163, 74, 0.28);
border-radius: 8px;
padding: 16px;
overflow-x: auto;
box-shadow: 0 0 14px rgba(22, 163, 74, 0.08);
}

code {
color: #4ade80;
font-family: "Courier New", Courier, monospace;
font-size: 14px;
}

/* Medium screens */

@media (max-width: 1400px) {
.guide-grid {
grid-template-columns: repeat(3, 1fr);
}
}

@media (max-width: 1200px) {
#skills .grid,
.guide-grid {
grid-template-columns: repeat(2, 1fr);
}
}

/* Mobile */

@media (max-width: 900px) {
.page {
flex-direction: column;
}

.sidebar {
position: relative;
left: 0;
width: 100%;
height: auto;
border-right: none;
border-bottom: 1px solid rgba(22, 163, 74, 0.45);
}

.content {
margin-left: 0;
width: 100%;
padding: 22px;
}

.grid,
#skills .grid,
.guide-grid {
grid-template-columns: 1fr;
}

.content-section {
max-width: 100%;
padding: 0 0 36px;
}

.guide-card {
min-height: 110px;
}
}


/* ---- refreshed look: fonts, dividers, links, skill tag-bars ---- */
body { font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif; }
h1, h2, h3, .section-label, .role { font-family: 'Chakra Petch', system-ui, sans-serif; letter-spacing: 0.2px; }
.content-section { border-bottom: 1px solid rgba(148,163,184,0.14); padding-bottom: 32px; margin-bottom: 20px; }
.content-section:last-child { border-bottom: none; }
a { color: #f59e0b; }
.tags {
  color: #86efac;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.9;
  background: rgba(22,163,74,0.06);
  border: 1px solid rgba(22,163,74,0.22);
  border-radius: 6px;
  padding: 8px 12px;
  display: inline-block;
}

.section-label { color: #38bdf8; }

.sidebar h2 { color: #38bdf8; }
.menu a:hover,
.menu a.active { color: #38bdf8; border-left-color: #38bdf8; background: rgba(56, 189, 248, 0.08); }

/* Series strip: links the three Windows Endpoint Security pages */
.series-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 22px;
  padding: 10px 14px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.06);
  font-size: 14px;
}
.series-strip .series-name {
  width: 100%;
  color: #38bdf8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.series-strip a { color: #f59e0b; text-decoration: none; }
.series-strip a:hover { text-decoration: underline; }
.series-strip .series-current { color: #bbf7d0; font-weight: 600; }
.series-strip .series-sep { color: #64748b; }
.series-strip .series-step {
  display: inline-block;
  min-width: 18px;
  margin-right: 4px;
  padding: 0 5px;
  border-radius: 9px;
  background: rgba(56, 189, 248, 0.18);
  color: #bae6fd;
  font-size: 12px;
  text-align: center;
}

/* Narrow screens: spec tables scroll inside their own box instead of widening the page */
@media (max-width: 700px) {
  .content table.spec {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .content table.spec td:first-child { white-space: normal; }
}

/* Guide grid: let columns shrink to fit the content column. Plain 1fr columns
   cannot go narrower than their longest word, which pushed the grid past the
   right edge. auto-fill picks the column count from the space available. */
.guide-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.guide-card, .guide-text { min-width: 0; }
.guide-text h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: normal; }

/* Code and reference tables stay inside the content column on phones */
.content pre { overflow-x: auto; max-width: 100%; }
.content code { overflow-wrap: anywhere; }
.content pre code { overflow-wrap: normal; }
.content .grid > * { min-width: 0; }
@media (max-width: 700px) {
  .content table.ref {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
