
:root{--bg:#0b1020;--panel:#0f1630;--muted:#a7b1c1;--accent:#4ea8ff;--accent-2:#8ec5ff;--text:#e8eef9;--card:#121a3a;--ring:rgba(78,168,255,.35);--shadow:0 10px 30px rgba(0,0,0,.25)}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;color:var(--text);background:linear-gradient(180deg,#0a0f1e,#0c1225)}
.container{width:min(1140px,92vw);margin-inline:auto}

.site-header{position:relative;overflow:hidden;background:radial-gradient(1200px 500px at 80% 20%,rgba(78,168,255,.08),transparent 60%),linear-gradient(180deg,#0b1020,#0c1225);border-bottom:1px solid rgba(255,255,255,.06)}
.hero{display:grid;grid-template-columns:1.2fr .8fr;gap:32px;align-items:center;padding:72px 0;position:relative}
.hero-text h1{font-size:40px;line-height:1.1;margin:0 0 12px;font-weight:800;letter-spacing:.2px}
.subtext{font-size:18px;color:var(--muted);max-width:48ch}
.cta-row{margin-top:24px;display:flex;gap:12px;flex-wrap:wrap}
.btn{display:inline-block;padding:12px 18px;border-radius:14px;text-decoration:none;font-weight:700;border:1px solid rgba(255,255,255,.16);transition:transform .08s ease, background .2s ease, box-shadow .2s ease}
.btn.primary{background:linear-gradient(180deg,var(--accent),var(--accent-2));color:#05152b;border-color:transparent;box-shadow:0 8px 20px rgba(78,168,255,.3)}
.btn.ghost{background:rgba(255,255,255,.04);color:var(--text)}
.btn:hover{transform:translateY(-1px) scale(1.01)}
.hero-photo{justify-self:end;position:relative}
.hero-photo img{width:min(320px,38vw);height:auto;border-radius:999px;border:6px solid rgba(255,255,255,.08);box-shadow:0 20px 45px rgba(0,0,0,.4)}
.bg-shape{position:absolute;inset:auto -10% -40% -10%;height:320px;background:radial-gradient(60% 120% at 50% 10%,rgba(78,168,255,.18),transparent 60%);filter:blur(30px);pointer-events:none}

.section{padding:72px 0;border-top:1px solid rgba(255,255,255,.06)}
.section.soft{background:linear-gradient(180deg,rgba(255,255,255,.02),transparent 80%)}
.section h2{font-size:28px;margin:0 0 18px}
.section p{color:var(--muted)}

.grid.two{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}
.grid.three{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:6px}
@media (max-width:980px){.hero{grid-template-columns:1fr}.grid.two,.grid.three{grid-template-columns:1fr}}

.card{background:var(--card);border:1px solid rgba(255,255,255,.06);border-radius:18px;padding:18px;box-shadow:var(--shadow)}
.tick{padding-left:18px}
.tick li{margin:8px 0}

.logo-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:16px}
.logo-grid.brand{grid-template-columns:repeat(4,1fr)}
.logo-img{background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08);border-radius:16px;display:flex;align-items:center;justify-content:center;padding:18px;box-shadow:0 6px 20px rgba(0,0,0,.22);transition:transform .15s ease, box-shadow .2s ease, border-color .2s ease}
.logo-img img{max-width:150px;max-height:60px;object-fit:contain}
.logo-img:hover{transform:translateY(-2px);border-color:var(--accent);box-shadow:0 12px 28px rgba(78,168,255,.2)}

.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:12px}
@media (max-width:980px){.card-grid{grid-template-columns:1fr}}
.skill-card{background:var(--card);border:1px solid rgba(255,255,255,.06);border-radius:18px;padding:18px;box-shadow:var(--shadow)}
.skill-card .icon{font-size:22px;display:inline-block;margin-bottom:8px}

.tile{background:var(--panel);border:1px solid rgba(255,255,255,.06);border-radius:18px;padding:18px;min-height:150px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:var(--shadow);cursor:pointer}
.tile:hover{outline:2px solid var(--accent);box-shadow:0 16px 32px rgba(78,168,255,.15)}
.linklike{background:none;border:none;color:var(--accent);padding:0;margin-top:6px;cursor:pointer;font-weight:700}

.site-footer{border-top:1px solid rgba(255,255,255,.06);padding:36px 0;background:#0a0f1f}
.footer-grid{display:flex;justify-content:space-between;gap:16px;align-items:center}
.footnote{color:var(--muted)}

/* Modals */
.modal{position:fixed;inset:0;background:rgba(0,0,0,.6);display:none;align-items:flex-start;justify-content:center;padding:24px;overflow:auto}
.modal[aria-hidden="false"]{display:flex}
.modal-content{max-width:min(780px,96vw);background:var(--panel);border:1px solid rgba(255,255,255,.09);border-radius:18px;padding:22px;box-shadow:0 20px 50px rgba(0,0,0,.5);position:relative;margin-top:32px}
.modal-content.wide{max-width:min(980px,96vw)}
.modal-content h3{margin-top:0}
.modal-content p{color:var(--muted);line-height:1.6}
.close{position:absolute;right:14px;top:10px;background:transparent;border:none;color:#fff;font-size:28px;cursor:pointer}

/* Case study highlights */
.cs-highlights{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}
.cs-box{background:linear-gradient(180deg, rgba(78,168,255,.08), rgba(255,255,255,.02));border:1px solid rgba(255,255,255,.10);border-radius:14px;padding:12px;min-height:92px}
.cs-box h4{margin:0 0 6px}

/* Reports grid */
.reports-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:10px}
@media (max-width:980px){.reports-grid{grid-template-columns:1fr}}
.report-card{background:var(--panel);border:1px solid rgba(255,255,255,.10);border-radius:16px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.28)}
.report-card img{display:block;width:100%;height:auto}
.report-card figcaption{padding:10px 12px;color:var(--muted);font-size:14px}

/* Certifications */
.cert-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:12px}
@media (max-width:980px){.cert-grid{grid-template-columns:1fr}}
.cert-card.v2{display:flex;flex-direction:column;align-items:center;text-align:center;background:var(--card);border:1px solid rgba(255,255,255,.10);border-radius:18px;padding:16px;text-decoration:none;color:var(--text);box-shadow:var(--shadow);transition:border-color .2s ease}
.cert-card.v2:hover{border-color:var(--accent)}
.cert-logo{height:48px;width:auto;object-fit:contain;margin-bottom:10px}

/* Timeline */
.timeline{position:relative;margin-top:32px;border-left:3px solid var(--accent);padding-left:24px;display:flex;flex-direction:column;gap:28px}
.timeline-item{position:relative;padding-left:8px;display:flex;gap:18px;align-items:flex-start}
.timeline-item::before{content:"";position:absolute;left:-11px;top:8px;width:16px;height:16px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px var(--ring)}
.timeline-logo{flex:0 0 60px;display:flex;align-items:center;justify-content:center}
.timeline-logo img{max-width:60px;max-height:60px;object-fit:contain;border-radius:8px;background:#fff;padding:4px}
.timeline-content h3{margin:0 0 6px;font-size:18px;color:var(--text)}
.timeline-content p{margin:0;color:var(--muted)}

.skill-card.hot{outline:2px solid var(--accent); box-shadow:0 12px 30px rgba(78,168,255,.18)}

/* --- Sliders --- */
.slider{position:relative;overflow:hidden;margin-top:14px}
.slider .track{display:flex;gap:16px;will-change:transform}
.slider .slide{flex:0 0 auto}
.logo-tile{width:220px;height:120px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08);border-radius:16px;display:flex;align-items:center;justify-content:center;padding:18px;box-shadow:0 6px 20px rgba(0,0,0,.22)}
.logo-tile img{max-height:80px;max-width:100%;object-fit:contain;filter:saturate(.98) contrast(1.05)}
@media (max-width:980px){.logo-tile{width:180px;height:96px}.logo-tile img{max-height:64px}}

/* --- Cert cards v3 --- */
.cert-clean.cert-grid{grid-template-columns:repeat(4,1fr)}
@media (max-width:980px){.cert-clean.cert-grid{grid-template-columns:1fr}}
.cert-card.v3{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;background:var(--card);border:1px solid rgba(255,255,255,.10);border-radius:18px;padding:16px;box-shadow:var(--shadow)}
.cert-card.v3 .cert-logo{height:56px;width:auto;object-fit:contain}
.cert-card.v3 h3{margin:4px 0 2px;font-size:16px}
.btn.verify{padding:10px 14px;border-radius:12px}

/* Hobbies */
.card-grid.hobbies{grid-template-columns:repeat(2,1fr)}
@media (max-width:980px){.card-grid.hobbies{grid-template-columns:1fr}}
.hobby-card{display:flex;gap:12px;align-items:center;background:var(--card);border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:14px;box-shadow:var(--shadow)}
.hobby-logo img, .hobby-logo svg{height:48px;width:auto;display:block}

/* Logo tile sizing for all sliders */
.logo-tile{width:220px;height:120px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:16px;display:flex;align-items:center;justify-content:center;padding:18px;box-shadow:0 6px 20px rgba(0,0,0,.22)}
.logo-tile img{max-height:80px;max-width:100%;object-fit:contain}
@media (max-width:980px){.logo-tile{width:180px;height:96px}.logo-tile img{max-height:64px}}

/* Attractive theme & animations */
:root{
  --bg:#070b1a;--bg2:#0d1430;--panel:#0f1630;--muted:#a7b1c1;--accent:#5bb2ff;--accent-2:#8ec5ff;--text:#eaf2ff;--card:#121a3a;--ring:rgba(91,178,255,.35);--shadow:0 10px 30px rgba(0,0,0,.25)
}
body{background:radial-gradient(1200px 500px at 80% 0%,rgba(91,178,255,.06),transparent 55%),linear-gradient(180deg,var(--bg),var(--bg2));}

/* Hero polish */
.eyebrow{letter-spacing:.16em;text-transform:uppercase;font-size:12px;color:#93c7ff;background:rgba(91,178,255,.12);padding:6px 10px;border-radius:999px;display:inline-block;margin-bottom:10px;border:1px solid rgba(91,178,255,.25)}
.hero-title{font-size:44px;line-height:1.05;margin:0 0 10px;font-weight:800}
.photo-wrap{position:relative}
.photo-wrap::after{content:"";position:absolute;inset:-10px;z-index:-1;border-radius:40px;background:conic-gradient(from 90deg at 50% 50%, rgba(91,178,255,.25), rgba(255,255,255,0) 40%, rgba(91,178,255,.18));filter:blur(24px)}

/* Animated background blob */
.bg-shape.animated{position:absolute;inset:auto -10% -40% -10%;height:360px;background:radial-gradient(40% 80% at 60% 0%,rgba(91,178,255,.20),transparent 60%);filter:blur(32px);animation:floaty 12s ease-in-out infinite}
@keyframes floaty{0%{transform:translateY(0)}50%{transform:translateY(12px)}100%{transform:translateY(0)}}

/* Floating particles */
.particles{position:absolute;inset:0;pointer-events:none;list-style:none;margin:0;padding:0}
.particles li{position:absolute;width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.25);animation:rise 12s linear infinite;filter:blur(.5px)}
@keyframes rise{from{transform:translateY(40px)}to{transform:translateY(-600px)}}

/* Reveal on scroll */
.reveal{opacity:0;transform:translateY(12px);transition:opacity .6s ease, transform .6s ease}
.reveal.show{opacity:1;transform:none}

/* Buttons hover micro-interaction */
.btn.primary{transition:transform .12s ease, box-shadow .2s ease}
.btn.primary:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(91,178,255,.35)}

/* Section headings with subtle underline */
.section h2{position:relative;padding-bottom:6px}
.section h2::after{content:"";position:absolute;left:0;bottom:0;width:52px;height:3px;background:linear-gradient(90deg,var(--accent),transparent)}

/* Slider polish retained */

/* Inline icons for CTAs */
.ico{display:inline-block;vertical-align:-2px;margin-right:8px;width:16px;height:16px;mask-size:contain;mask-repeat:no-repeat;background:#0b172e}
.btn.primary .ico, .btn.ghost .ico{background:currentColor}
.ico.mail{mask-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M20 4H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2Zm0 4-8 5L4 8V6l8 5 8-5v2Z"/></svg>');}
.ico.whatsapp{mask-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M20.52 3.48A11.77 11.77 0 0 0 12.03 0C5.43 0 .1 5.33.1 11.93c0 2.1.57 4.05 1.57 5.75L0 24l6.5-1.7a11.85 11.85 0 0 0 5.53 1.4h.01c6.6 0 11.93-5.33 11.93-11.93c0-3.19-1.24-6.18-3.45-8.39ZM12.04 21.5h-.01a9.57 9.57 0 0 1-4.87-1.34l-.35-.21l-3.86 1.01l1.03-3.76l-.23-.38a9.54 9.54 0 1 1 8.29 4.68Zm5.26-7.19c-.29-.15-1.71-.84-1.98-.94c-.27-.1-.47-.15-.67.15s-.77.94-.95 1.13s-.35.22-.64.07c-.29-.15-1.22-.45-2.32-1.42c-.86-.77-1.43-1.71-1.6-2c-.17-.29-.02-.45.13-.6c.13-.13.29-.34.44-.51c.15-.17.2-.29.29-.48c.1-.19.05-.36-.02-.5c-.07-.15-.67-1.61-.92-2.2c-.24-.58-.49-.5-.67-.51l-.57-.01c-.19 0-.5.07-.76.36s-1 1-1 2.43s1.02 2.82 1.16 3.01c.15.19 2 3.04 4.86 4.26c.68.3 1.21.48 1.62.62c.68.22 1.3.19 1.79.12c.54-.08 1.71-.7 1.95-1.39c.24-.68.24-1.26.17-1.39c-.07-.13-.26-.2-.55-.35Z"/></svg>');}
.ico.linkedin{mask-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M20.451 20.451H16.9v-5.569c0-1.328-.025-3.037-1.852-3.037c-1.853 0-2.136 1.447-2.136 2.943v5.663H9.362V9h3.4v1.561h.049c.474-.9 1.635-1.852 3.366-1.852c3.6 0 4.266 2.37 4.266 5.455v6.287ZM5.337 7.433a1.971 1.971 0 1 1 0-3.942a1.971 1.971 0 0 1 0 3.942ZM6.949 20.451H3.72V9h3.229v11.451Z"/></svg>');}
.ico.resume{mask-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Zm0 2l4 4h-4Z"/></svg>');}

/* Selectable skill cards */
.skill-card.selectable{cursor:pointer;user-select:none}
.skill-card.selectable.selected{outline:2px solid var(--accent);box-shadow:0 12px 28px rgba(91,178,255,.24)}

/* Footer professional look */
.site-footer{border-top:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,#0a0f1f,#080c18);padding:36px 0 24px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:18px;align-items:start}
.footer-title{font-weight:700;margin:0 0 8px}
.footer-links a{display:block;color:var(--muted);text-decoration:none;margin:4px 0}
.footer-links a:hover{color:#cfe7ff}
.footnote{grid-column:1/-1;margin-top:10px;color:var(--muted);font-size:14px;opacity:.8}

/* Top navigation */
.topnav{position:sticky;top:0;z-index:50;background:rgba(7,11,26,.75);backdrop-filter:blur(8px);border-bottom:1px solid rgba(255,255,255,.06)}
.nav-inner{display:flex;justify-content:space-between;align-items:center;padding:10px 0}
.brand{font-weight:900;letter-spacing:.1em;color:#cfe7ff}
.nav-links a{color:var(--muted);text-decoration:none;margin-left:14px;font-weight:600}
.nav-links a:hover{color:#eaf2ff}
@media (max-width:980px){.nav-links{display:none}}

/* Testimonials Slider */
.t-slider{position:relative;overflow:hidden;margin-top:10px}
.t-track{display:flex;gap:0;transition:transform .6s ease}
.t-slide{flex:0 0 100%;display:flex;justify-content:center;align-items:center}
.t-card{max-width:min(880px,92vw);background:var(--panel);border:1px solid rgba(255,255,255,.08);border-radius:20px;padding:22px;box-shadow:0 18px 42px rgba(0,0,0,.28);position:relative;isolation:isolate}
.t-logo{display:flex;justify-content:center;margin-bottom:10px}
.t-logo img{max-height:54px;object-fit:contain;filter:saturate(.98) contrast(1.05)}
.t-quote{font-size:20px;line-height:1.6;font-style:italic;position:relative;padding:6px 0;color:#eaf2ff}
.t-quote::before{content:'“';position:absolute;left:-8px;top:-8px;font-size:44px;color:rgba(255,255,255,.18)}
.t-author{margin-top:10px;color:var(--muted);font-weight:600;text-align:right}
.t-dots{display:flex;gap:8px;justify-content:center;margin-top:14px}
.t-dots button{width:8px;height:8px;border-radius:999px;background:rgba(255,255,255,.25);border:none;cursor:pointer;transition:transform .15s ease, background .2s ease}
.t-dots button[aria-selected="true"]{background:var(--accent);transform:scale(1.2)}
@media (max-width:980px){.t-quote{font-size:18px}}



/* === Fixed Left Sidebar (added) === */
:root{
  --sidebar-w: 260px;
  --sidebar-bg: #ffffff;
  --sidebar-border: #e5e7eb;
  --accent: #0f766e;
  --accent-bg: #ecfeff;
  --shadow: 0 10px 30px rgba(2,12,27,.08);
}

html { scroll-behavior: smooth; }

.sidebar{
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  z-index: 1000;
}
.sidebar__logo{ padding: 24px 20px 8px; text-align: center; }
.sidebar__logo img{
  width: 80px; height: 80px; object-fit: cover;
  border-radius: 50%; box-shadow: var(--shadow);
}
.sidebar__nav{ padding: 12px 12px 24px 12px; overflow-y: auto; }
#sidebarMenu{ list-style: none; margin: 0; padding: 0; }
#sidebarMenu li{ margin-bottom: 6px; }
#sidebarMenu a{
  display: block; padding: 10px 14px; border-radius: 12px;
  color: #334155; text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
#sidebarMenu a:hover{ background: #f8fafc; transform: translateX(2px); }
#sidebarMenu a.active{ background: var(--accent-bg); color: var(--accent); font-weight: 600; }

/* Push content to the right of sidebar */
.with-sidebar{ margin-left: var(--sidebar-w); }

/* Responsive: collapse to top bar if desired */
@media (max-width: 900px){
  .sidebar{ width: 100%; height: 64px; flex-direction: row; align-items: center; padding: 0 10px; }
  .sidebar__logo{ padding: 0 10px; }
  .sidebar__logo img{ width: 40px; height: 40px; }
  .sidebar__nav{ padding: 0 8px; overflow-x: auto; }
  #sidebarMenu{ display: flex; gap: 6px; }
  #sidebarMenu a{ white-space: nowrap; }
  .with-sidebar{ margin-left: 0; padding-top: 64px; }
}



/* === Dark Sidebar Theme Fix === */
.sidebar{
  background: #0b1120;
  color: #f1f5f9;
}
#sidebarMenu a{ color: #cbd5e1; }
#sidebarMenu a:hover{ background: rgba(255,255,255,0.05); color: #fff; }
#sidebarMenu a.active{ background: #1e293b; color: #38bdf8; }



/* === Sidebar theme & layout fixes (update) === */
:root{
  --sidebar-w: 260px;
  --sidebar-bg: #0b1220;       /* dark navy to match black/blue theme */
  --sidebar-border: #0e1a2b;
  --accent: #7dd3fc;           /* light blue for active text */
  --accent-bg: #10233f;        /* deep blue for active background */
  --shadow: 0 10px 30px rgba(2,12,27,.35);
}
.sidebar{ background: var(--sidebar-bg); border-right: 1px solid var(--sidebar-border); }
#sidebarMenu a{ color: #cbd5e1; }
#sidebarMenu a:hover{ background: rgba(255,255,255,.04); }
#sidebarMenu a.active{ background: var(--accent-bg); color: var(--accent); }

/* Offset hero header and footer to avoid overlap with sidebar */
.site-header, footer, .site-footer{ margin-left: var(--sidebar-w); }
.with-sidebar{ margin-left: var(--sidebar-w); }
@media (max-width: 900px){
  .site-header, footer, .site-footer, .with-sidebar{ margin-left: 0; }
}


/* --- Sidebar profile & socials --- */
.sidebar__name{
  color:#e5f0ff; font-size:1.05rem; font-weight:700; margin:12px 0 6px; text-align:center;
}
.sidebar__socials{ display:flex; justify-content:center; gap:10px; margin:6px 0 10px; }
.icon-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:9999px;
  background:rgba(255,255,255,.06); color:#cbd5e1; text-decoration:none;
  font-weight:700; font-size:.85rem; letter-spacing:.2px;
  transition:transform .15s ease, background .2s ease, color .2s ease;
}
.icon-btn:hover{ transform:translateY(-1px); background:rgba(255,255,255,.14); color:#ffffff; }

/* Menu icons spacing */
#sidebarMenu a .mi{ opacity:.9; margin-right:.5rem; }

/* --- Icon color to white (menu & socials) --- */
#sidebarMenu a .mi svg,
.sidebar__socials .icon-btn svg{
  width:18px; height:18px; fill:#ffffff; display:block;
}
#sidebarMenu a{ color:#e5e7eb; } /* ensure link text is light too */

/* Sidebar avatar spacing and border */
.sidebar__logo{ padding-top: 28px; } /* space from top */
.sidebar__logo img{
  border: 3px solid rgba(125,211,252,.35); /* soft blue border */
  border-radius: 9999px;
}
\n
/* --- Force monochrome icons + alignment fixes --- */
#sidebarMenu a{
  display:flex; align-items:center; gap:10px;
}
#sidebarMenu a .mi{ display:inline-flex; width:20px; height:20px; align-items:center; justify-content:center; }
#sidebarMenu a .mi svg{ width:18px; height:18px; fill:#ffffff; }

/* --- Modals centered within content area (not full screen including sidebar) --- */
@media (min-width: 901px){
  .modal{ left: var(--sidebar-w); right:0; top:0; bottom:0; }
}

/* === Sidebar link icon/text alignment & outline icons === */
#sidebarMenu a{ display:flex; align-items:center; gap:12px; padding:10px 14px; line-height:1.2; }
#sidebarMenu a .mi{ display:inline-flex; width:22px; height:22px; align-items:center; justify-content:center; }
#sidebarMenu a .mi svg{ width:20px; height:20px; }
#sidebarMenu a .mi svg path, 
#sidebarMenu a .mi svg circle, 
#sidebarMenu a .mi svg line, 
#sidebarMenu a .mi svg polyline, 
#sidebarMenu a .mi svg rect { fill:none; stroke:#ffffff; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

/* Social icons -> outline white too */
.sidebar__socials .icon-btn svg path,
.sidebar__socials .icon-btn svg circle,
.sidebar__socials .icon-btn svg line,
.sidebar__socials .icon-btn svg polyline{ fill:none; stroke:#ffffff; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* Modal: scroll inside the popup, not the page */
body.modal-open{ overflow:hidden; }
.modal{ overflow:hidden; } /* container doesn't scroll */
.modal-content{ max-height: calc(100dvh - 96px); overflow:auto; }

/* Social icons back to filled white */
.sidebar__socials .icon-btn svg *{ fill:#ffffff !important; stroke:none !important; }
.sidebar__socials .icon-btn svg{ width:18px; height:18px; }
/* Keep menu icons outline (already set); ensure vertical alignment */
#sidebarMenu a{ display:flex; align-items:center; gap:12px; }
#sidebarMenu a .mi{ display:inline-flex; width:22px; height:22px; align-items:center; justify-content:center; }
#sidebarMenu a .mi svg *{ fill:none; stroke:#ffffff; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

/* === Mobile Sidebar Fixes === */
@media (max-width: 900px){
  .sidebar{ 
    width: 100%; 
    height: 70px; 
    flex-direction: row; 
    align-items: center; 
    padding: 0 16px; 
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
  }
  
  .sidebar__logo{ 
    padding: 0; 
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
  }
  
  .sidebar__logo img{ 
    width: 45px; 
    height: 45px; 
    border: 2px solid rgba(125,211,252,.35);
  }
  
  .sidebar__name{
    font-size: 1rem;
    margin: 0;
    text-align: left;
  }
  
  .sidebar__socials{ 
    display: none; /* Hide socials on mobile to save space */
  }
  
  .sidebar__nav{ 
    padding: 0; 
    margin-left: auto; /* Push hamburger to the right */
    flex-shrink: 0;
  }
  
  #sidebarMenu{ 
    display: none; /* Hide by default on mobile */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sidebar-bg);
    border-top: 1px solid var(--sidebar-border);
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    flex-direction: column;
    padding: 12px;
    gap: 4px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  
  #sidebarMenu.show{
    display: flex;
  }
  
  #sidebarMenu a{ 
    white-space: nowrap; 
    padding: 12px 16px;
    border-radius: 8px;
  }
  
  /* Hamburger menu button - properly positioned on the right */
  .hamburger{
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    margin-left: 0; /* Remove margin to prevent overflow */
    flex-shrink: 0;
  }
  
  .hamburger span{
    width: 20px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
  }
  
  .hamburger.active span:nth-child(1){
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2){
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3){
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  /* Adjust main content for mobile */
  .with-sidebar{ 
    margin-left: 0; 
    padding-top: 70px; 
  }
  
  .site-header, 
  footer, 
  .site-footer{ 
    margin-left: 0; 
  }
  
  /* Ensure header doesn't overlap */
  .site-header{
    padding-top: 32px;
  }
  
  /* Fix horizontal scrolling issues */
  body {
    overflow-x: hidden;
    width: 100%;
  }
  
  .container {
    width: 92vw;
    max-width: none;
    padding: 0 4vw;
  }
  
  /* Fix footer grid overflow */
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }
  
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .footnote {
    grid-column: 1;
    margin-top: 16px;
    text-align: center;
  }
  
  /* Mobile hero adjustments */
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 48px 0;
  }
  
  .hero-photo {
    justify-self: center;
    order: -1; /* Move photo to top on mobile */
  }
  
  .hero-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,.08);
  }
  
  .hero-text {
    text-align: center;
  }
  
  .hero-title {
    font-size: 32px;
    line-height: 1.1;
  }
  
  .subtext {
    font-size: 16px;
  }
  
  .cta-row {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .btn {
    padding: 10px 14px;
    font-size: 14px;
  }
  
  /* KPI tiles mobile adjustment */
  .kpi-tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 16px;
  }
  
  .kpi {
    padding: 10px 12px;
  }
  
  .kpi-k {
    font-size: 20px;
  }
  
  .kpi-l {
    font-size: 11px;
  }
  
  /* Fix any horizontal overflow in sections */
  .section {
    padding: 48px 0;
    overflow-x: hidden;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .grid.three {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Logo tiles mobile adjustment */
  .logo-tile {
    width: 160px;
    height: 90px;
  }
  
  .logo-tile img {
    max-height: 50px;
  }
  
  /* Cert grid mobile */
  .cert-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  /* Timeline mobile */
  .timeline {
    padding-left: 16px;
  }
  
  .timeline-item {
    gap: 12px;
  }
  
  .timeline-logo {
    flex: 0 0 50px;
  }
  
  .timeline-logo img {
    max-width: 50px;
    max-height: 50px;
  }
}
