:root{color-scheme:dark;--bg:#0b1114;--panel:rgba(20,32,34,.88);--panel2:#172629;--line:rgba(169,198,188,.16);--text:#f1f6f1;--muted:#a1b3ad;--purple:#66d1b5;--blue:#79b9c7;--orange:#e8b978;--green:#83d5a6;--pink:#dba5a0;--shadow:0 22px 70px rgba(0,0,0,.32)}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,Tajawal,sans-serif;font-size:14px;line-height:1.6;min-height:100vh}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit}.ambient{position:fixed;z-index:-2;width:520px;height:520px;border-radius:50%;filter:blur(110px);opacity:.2;pointer-events:none}.ambient-one{top:-220px;left:28%;background:#6048e8}.ambient-two{right:-240px;top:42%;background:#168cc8}.ambient-grid{position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.2;background-image:linear-gradient(rgba(142,157,199,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(142,157,199,.045) 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(to bottom,black,transparent 92%)}
.app-shell{width:min(1540px,100%);margin:auto;display:grid;grid-template-columns:250px minmax(0,1fr);gap:22px;padding:22px;align-items:start}.glass{background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border-radius:18px}
.sidebar{position:sticky;top:22px;min-height:calc(100vh - 44px);padding:23px 17px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;padding:0 6px 24px;border-bottom:1px solid var(--line)}.brand-icon{width:39px;height:39px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(140deg,#52c5a5,#3b8793);font-weight:900;color:white;box-shadow:0 8px 24px #7867ef55}.brand b{display:block;font-size:12px;letter-spacing:.12em}.brand small{display:block;color:var(--muted);font:9px 'Fira Code',monospace;letter-spacing:.11em;margin-top:2px}.profile-mini{display:flex;align-items:center;gap:12px;padding:23px 5px}.avatar{position:relative;width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#5145a9,#1f91ba);font-weight:800}.online{position:absolute;width:9px;height:9px;border-radius:50%;background:#5cdbb0;border:2px solid #151d32;right:-2px;bottom:0}.profile-mini b,.profile-mini small{display:block}.profile-mini b{font-size:12px}.profile-mini small{color:var(--muted);font-size:11px}.nav-label,.section-kicker{font:10px 'Fira Code',monospace;letter-spacing:.15em;color:#8f9cbd}.nav-label{padding:10px 10px}.side-nav{display:grid;gap:5px}.side-nav a{display:flex;align-items:center;gap:13px;padding:11px 12px;border-radius:10px;color:#aab5d0;transition:.2s}.side-nav a span{width:20px;text-align:center;color:#8998c0;font-size:17px}.side-nav a i{font-style:normal;font-size:12px}.side-nav a:hover,.side-nav a.active{background:linear-gradient(90deg,rgba(128,105,255,.2),rgba(76,155,255,.07));color:white}.side-nav a.active{box-shadow:inset 2px 0 #9b87ff}.side-nav a.active span{color:#b5a7ff}.sidebar-bottom{margin-top:auto;padding-top:25px}.location-pill{display:flex;align-items:center;gap:10px;padding:12px;background:rgba(255,255,255,.035);border:1px solid var(--line);border-radius:12px;margin-bottom:15px}.location-pill>span{width:8px;height:8px;background:#5cdbb0;border-radius:50%;box-shadow:0 0 12px #5cdbb0}.location-pill b,.location-pill small{display:block}.location-pill b{font-size:11px}.location-pill small{font-size:10px;color:var(--muted)}.side-link{display:flex;gap:10px;padding:8px 5px;color:#aab5d0;font-size:12px}.side-link span{font-size:11px}.main-area{min-width:0}.topbar{height:66px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;margin-bottom:22px}.crumb{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--muted)}.crumb b{color:#56617f}.crumb strong{color:var(--text);font-weight:600}.crumb-dot{width:7px;height:7px;background:var(--purple);border-radius:50%;box-shadow:0 0 12px var(--purple)}.top-actions{display:flex;align-items:center;gap:9px}.availability{display:flex;align-items:center;gap:7px;color:#8ddbbf;font-size:10px;margin-right:8px}.availability i,.profile-footer i{width:6px;height:6px;background:#5cdbb0;border-radius:50%;box-shadow:0 0 10px #5cdbb0}.control-btn{border:1px solid var(--line);background:rgba(255,255,255,.035);border-radius:9px;padding:8px 12px;font-size:11px;cursor:pointer}.control-btn:hover{border-color:#8b78ff;color:#c3baff}.menu-btn{display:none}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,.8fr);gap:18px}.hero-card,.profile-card{padding:clamp(24px,3vw,38px);min-height:330px;position:relative;overflow:hidden}.hero-card:after{content:"</>";position:absolute;right:18px;bottom:-42px;font:900 180px 'Fira Code',monospace;color:rgba(132,117,255,.045);pointer-events:none}.eyebrow{display:flex;align-items:center;gap:9px;font:10px 'Fira Code',monospace;letter-spacing:.12em;color:#a99aff}.pulse{width:7px;height:7px;border-radius:50%;background:#5cdbb0;box-shadow:0 0 12px #5cdbb0}.hero-card h1{font-size:clamp(32px,4vw,53px);line-height:1.12;letter-spacing:-.055em;margin:22px 0 8px}.hero-card h1 em{font-style:normal;background:linear-gradient(100deg,#75dfbb,#e5bd79);background-clip:text;color:transparent}.hero-role{font-size:14px;color:#c6cfff;font-weight:600;margin:0 0 13px}.hero-text{max-width:650px;color:#aab5d0;font-size:12px;line-height:1.9;margin:0}.hero-actions{display:flex;gap:9px;margin-top:23px}.btn{display:inline-flex;align-items:center;gap:18px;padding:10px 15px;border-radius:9px;font-size:11px;font-weight:700;transition:.2s}.btn.primary{background:linear-gradient(110deg,#279c7d,#367e88);color:white;box-shadow:0 9px 25px #6b63e344}.btn.primary:hover{transform:translateY(-2px);filter:brightness(1.1)}.btn.secondary{border:1px solid var(--line);color:#c6cfff}.btn.secondary:hover{border-color:#8b78ff}.hero-meta{display:flex;flex-wrap:wrap;gap:13px;margin-top:25px;padding-top:17px;border-top:1px solid var(--line);color:#8290b1;font-size:9px}.profile-card{display:flex;flex-direction:column;align-items:center;text-align:center;min-height:330px}.card-top{display:flex;justify-content:space-between;width:100%;font:9px 'Fira Code',monospace;letter-spacing:.14em;color:#8c9abd}.more{letter-spacing:3px}.profile-visual{height:150px;width:100%;position:relative;display:grid;place-items:center}.portrait-photo{position:relative;z-index:3;width:118px;height:148px;object-fit:cover;object-position:center 16%;border-radius:16px;border:2px solid rgba(116,221,190,.55);box-shadow:0 12px 38px rgba(0,0,0,.4)}.profile-visual:has(.portrait-photo){height:175px}.profile-visual:has(.portrait-photo) .avatar-large{display:none}.avatar-large{position:relative;z-index:2;width:100px;height:100px;border-radius:30px;display:grid;place-items:center;font-size:32px;font-weight:800;background:linear-gradient(140deg,#7868ec,#36a5cb);border:1px solid #c5baff66;box-shadow:0 0 50px #6d68ed55,inset 0 1px 20px #ffffff24}.orbit{position:absolute;width:145px;height:70px;border:1px solid #8d7dff55;border-radius:50%;transform:rotate(-25deg)}.orbit2{transform:rotate(55deg);border-color:#56c5ff55}.spark{position:absolute;width:6px;height:6px;background:#73d6ff;border-radius:50%;box-shadow:0 0 12px #73d6ff}.s1{top:23px;left:34%}.s2{right:29%;bottom:24px;background:#b29cff}.profile-card h2{font-size:17px;margin:0}.profile-card>p{font-size:11px;color:var(--muted);margin:3px 0 13px}.profile-tags{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}.profile-tags span,.chips span{font-size:9px;padding:5px 8px;border:1px solid var(--line);border-radius:6px;color:#b6c1df;background:#ffffff06}.profile-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;margin-top:auto;padding-top:15px;border-top:1px solid var(--line);font-size:9px;color:#9aa8c9}.profile-footer>span:first-child{display:flex;align-items:center;gap:7px}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-top:16px}.stat-card{display:flex;align-items:center;gap:12px;padding:15px}.stat-icon,.skill-symbol{width:37px;height:37px;border-radius:11px;display:grid;place-items:center;font-size:17px}.purple{background:#806df326;color:#a99aff}.blue{background:#50b7ff24;color:#69c6ff}.orange{background:#ffad7924;color:#ffb98c}.green{background:#5cdbb022;color:#65dfb7}.pink{background:#e58bce24;color:#e89bd2}.stat-card b{display:block;font-size:19px;line-height:1.3}.stat-card small{display:block;color:#8e9bbb;font-size:9px}.content-section{margin-top:35px}.section-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:15px}.section-head h2{font-size:22px;letter-spacing:-.04em;margin:5px 0 0}.section-note{font-size:10px;color:var(--muted)}.career-switch{display:flex;gap:5px;padding:4px;border:1px solid var(--line);border-radius:10px;background:#ffffff05}.career-tab{border:0;background:transparent;color:#98a4c2;padding:7px 11px;border-radius:7px;font-size:10px;cursor:pointer}.career-tab.active{background:#7b69e936;color:#d4ccff}.timeline{padding:7px 24px}.timeline-item{display:grid;grid-template-columns:155px 1fr;gap:22px;padding:22px 0;border-bottom:1px solid var(--line)}.timeline-item:last-child{border-bottom:0}.timeline-date{font:9px 'Fira Code',monospace;color:#8c9abd;padding-top:5px}.timeline-main h3{font-size:14px;margin:0}.current,.live-tag{font-size:8px;color:#65dcb5;border:1px solid #5cdbb044;background:#5cdbb014;padding:3px 7px;border-radius:5px;margin-left:7px;font-weight:600}.company{font-size:10px;color:#a99aff;margin:4px 0 9px}.company span{color:#7f8dad}.timeline-main ul{margin:0;padding-left:17px;color:#9eabc9;font-size:10px;line-height:1.85}.skills-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}.skill-card{padding:17px}.skill-heading{display:flex;align-items:center;gap:11px;margin-bottom:14px}.skill-heading h3{font-size:12px;margin:0}.skill-heading small{font-size:9px;color:var(--muted)}.chips{display:flex;flex-wrap:wrap;gap:6px}.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.project-card{overflow:hidden}.project-visual{height:160px;position:relative;padding:15px 17px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}.project-visual:after{content:"";position:absolute;width:180px;height:180px;border:1px solid #ffffff35;border-radius:50%;right:-38px;top:5px;box-shadow:0 0 0 22px #ffffff08,0 0 0 48px #ffffff06}.project-visual>span{font:9px 'Fira Code',monospace;letter-spacing:.12em;color:#ffffffbd;z-index:1}.project-visual b{font-size:32px;line-height:.9;letter-spacing:-.06em;color:#fff;z-index:1}.project-visual b span{color:#b9aaff}.project-visual i{font:8px 'Fira Code',monospace;letter-spacing:.08em;color:#ffffffc4;z-index:1}.docvelio{background:linear-gradient(130deg,#37308b,#267caa)}.applinovo{background:linear-gradient(130deg,#7b4c35,#b77c4e)}.asan{background:linear-gradient(130deg,#285f59,#418f81)}.project-info{padding:17px}.project-title-row{display:flex;align-items:center;justify-content:space-between}.project-title-row h3{font-size:14px;margin:0}.project-info p{min-height:65px;color:#9eabc9;font-size:10px;line-height:1.8}.project-info .chips{margin:12px 0 15px}.project-info>a{font-size:10px;color:#b6aaff;font-weight:700}.text-link{font-size:10px;color:#b6aaff}.education-card,.cert-empty{display:flex;align-items:center;gap:17px;padding:20px}.edu-icon,.cert-icon{width:47px;height:47px;flex:0 0 47px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(140deg,#7e6cf0,#399bca);font-weight:800}.education-card h3,.cert-empty h3{font-size:14px;margin:5px 0}.education-card p,.cert-empty p{font-size:10px;color:#9eabc9;margin:0}.education-card small{display:block;font-size:9px;color:#8291b2;margin-top:5px}.edu-badge{margin-left:auto;font:9px 'Fira Code',monospace;color:#61dcb3}.cert-icon{background:#8b78ff1f;color:#b6aaff;font-size:19px}.cert-empty a{display:inline-block;margin-top:10px;color:#b6aaff;font-size:10px}.contact-card{padding:26px;display:grid;grid-template-columns:1fr 1fr;gap:25px;align-items:center;background:linear-gradient(120deg,#171d39cc,#142b40cc)}.contact-card h2{font-size:25px;letter-spacing:-.04em;margin:8px 0}.contact-card p{font-size:11px;color:#a3b0ce;max-width:490px}.contact-links{display:grid;grid-template-columns:1fr 1fr;gap:9px}.contact-links a{padding:11px;border:1px solid var(--line);border-radius:9px;font-size:10px;color:#c4cfff;background:#ffffff05}.contact-links a:hover{border-color:#8b78ff}.contact-links .whatsapp-link{color:#6ce0b5}.footer{display:flex;justify-content:space-between;gap:12px;padding:22px 3px;color:#7180a2;font-size:9px}.whatsapp-float{position:fixed;right:22px;bottom:22px;z-index:50;display:flex;align-items:center;gap:8px;padding:12px 16px;border-radius:99px;background:#19b978;color:#fff;font-size:11px;font-weight:700;box-shadow:0 10px 35px #19b97855}
[hidden]{display:none!important}
html[dir=rtl] body{font-family:Tajawal,Inter,sans-serif}html[dir=rtl] .timeline-main ul{padding-left:0;padding-right:17px}html[dir=rtl] .side-nav a.active{box-shadow:inset -2px 0 #9b87ff}html[dir=rtl] .timeline-item{direction:rtl}html[dir=rtl] .hero-meta{direction:rtl}
html[data-theme=light]{color-scheme:light;--bg:#eef1f8;--panel:rgba(255,255,255,.78);--panel2:#fff;--line:rgba(54,66,105,.13);--text:#202842;--muted:#6d7896;--shadow:0 18px 55px rgba(48,60,104,.09)}html[data-theme=light] body{background:var(--bg);color:var(--text)}html[data-theme=light] .ambient{opacity:.13}html[data-theme=light] .hero-text,html[data-theme=light] .timeline-main ul,html[data-theme=light] .project-info p,html[data-theme=light] .education-card p,html[data-theme=light] .cert-empty p,html[data-theme=light] .contact-card p{color:#65718e}html[data-theme=light] .hero-role,html[data-theme=light] .project-info>a,html[data-theme=light] .text-link{color:#6354c7}html[data-theme=light] .profile-mini small,html[data-theme=light] .section-note,html[data-theme=light] .stat-card small{color:#6d7896}html[data-theme=light] .profile-footer,html[data-theme=light] .crumb{color:#687492}html[data-theme=light] .contact-card{background:linear-gradient(120deg,#fff,#e6eaff)}html[data-theme=light] .contact-links a{color:#384260}
@media(max-width:1100px){.app-shell{grid-template-columns:215px minmax(0,1fr);padding:14px;gap:14px}.project-grid{grid-template-columns:repeat(2,1fr)}.hero-grid{grid-template-columns:minmax(0,1.3fr) minmax(230px,.8fr)}}
@media(max-width:820px){.app-shell{display:block;padding:12px}.sidebar{display:none;position:fixed;z-index:80;inset:10px auto 10px 10px;width:min(285px,calc(100vw - 30px));min-height:auto}.sidebar.open{display:flex}.topbar{margin-bottom:14px}.menu-btn{display:block}.hero-grid{grid-template-columns:1fr}.profile-card{min-height:285px}.stats-grid{grid-template-columns:repeat(2,1fr)}.availability{display:none}}
@media(max-width:580px){.app-shell{padding:9px}.topbar{padding:0 12px;height:58px}.crumb{font-size:9px}.top-actions{gap:5px}.control-btn{padding:7px 9px}.hero-card,.profile-card{padding:22px}.hero-card h1{font-size:35px}.hero-meta{gap:8px}.stats-grid{gap:8px}.stat-card{padding:11px;gap:8px}.stat-icon{width:31px;height:31px}.stat-card b{font-size:16px}.section-head{align-items:flex-start;flex-direction:column}.section-head h2{font-size:20px}.timeline{padding:5px 15px}.timeline-item{grid-template-columns:1fr;gap:7px}.timeline-date{font-size:8px}.skills-grid,.project-grid{grid-template-columns:1fr}.project-visual{height:145px}.project-info p{min-height:0}.contact-card{grid-template-columns:1fr;padding:21px}.contact-links{grid-template-columns:1fr 1fr}.education-card{align-items:flex-start;flex-wrap:wrap}.edu-badge{margin-left:0}.footer{flex-wrap:wrap}.whatsapp-float{right:13px;bottom:13px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}

.degree-details{min-width:0}.degree-details h3{font-size:15px;margin:5px 0}.degree-details p{font-size:11px;color:#b3c2bc;margin:0 0 6px}.degree-details small{display:block;font-size:10px;color:#93aaa2;margin-top:3px}.education-card{align-items:flex-start}.education-card .edu-icon{flex:0 0 47px}

/* Portfolio page intentionally ends without a footer. */
#home~.footer,.portfolio-footer{display:none!important}


/* High-contrast, readable portfolio palette */
:root{
 --bg:#0b1220;--panel:rgba(21,33,52,.96);--panel2:#1b2b43;
 --line:rgba(190,207,230,.22);--text:#f8fafc;--muted:#c1ccda;
 --purple:#8b9cff;--blue:#67c7f5;--orange:#f3c477;--green:#62ddb2;--pink:#e6a6d2;
 --shadow:0 20px 60px rgba(0,0,0,.32)
}
body{color:#f8fafc}
.nav-label,.section-kicker,.card-top,.timeline-date,.section-note,.stat-card small,
.profile-mini small,.location-pill small,.brand small,.hero-meta,.crumb,.side-link,
.timeline-main ul,.project-info p,.education-card p,.education-card small,
.cert-empty p,.contact-card p,.profile-footer{color:#c1ccda}
.side-nav a,.side-link{color:#d5deea}
.side-nav a span{color:#aebbd0}
.side-nav a:hover,.side-nav a.active{background:rgba(93,117,190,.24);color:#fff}
.side-nav a.active{box-shadow:inset 3px 0 #62ddb2}
.side-nav a.active span{color:#62ddb2}
.hero-card h1 em{background-image:linear-gradient(100deg,#72e4c0,#8bd6f5);background-clip:text;-webkit-background-clip:text;color:transparent}
.hero-role{color:#d9e7ff}
.hero-text{color:#d0dae7}
.eyebrow{color:#b9c8ff}
.profile-tags span,.chips span{color:#e2eaf5;background:rgba(255,255,255,.07);border-color:rgba(190,207,230,.24)}
.stat-icon.purple,.skill-symbol.purple{background:#353d70;color:#d5dcff}
.stat-icon.blue,.skill-symbol.blue{background:#164b68;color:#b8e9ff}
.stat-icon.orange,.skill-symbol.orange{background:#654a24;color:#ffe0a8}
.stat-icon.green,.skill-symbol.green{background:#15513f;color:#a9f5d7}
.stat-icon.pink,.skill-symbol.pink{background:#603b59;color:#ffd1f0}
.career-switch{background:#111e30;border-color:#50617b}
.career-tab{color:#d0d9e7;border-radius:7px}
.career-tab:hover{background:rgba(255,255,255,.08);color:#fff}
.career-tab.active{background:#176d5c;color:#fff;box-shadow:inset 0 0 0 1px #62ddb2}
.current,.live-tag{color:#9af0d0;border-color:#3b9d7e;background:#123f35}
.company{color:#b9c8ff}.company span{color:#c1ccda}
.project-info>a,.text-link,.cert-empty a{color:#9edcff}
.contact-links a{color:#edf4ff;background:rgba(255,255,255,.07);border-color:rgba(190,207,230,.25)}
.contact-links .whatsapp-link{color:#8df0c7}
.btn.secondary{color:#f0f5ff;border-color:#65758e;background:rgba(255,255,255,.06)}
.control-btn{color:#f1f5f9;border-color:#64748b;background:#1b2b43}
.control-btn:hover{border-color:#62ddb2;color:#a9f5d7}
.btn.primary{background:linear-gradient(110deg,#087f68,#176b78);color:#fff}
.btn.primary:hover{filter:brightness(1.14)}
button:focus-visible,a:focus-visible{outline:3px solid #62ddb2!important;outline-offset:3px;box-shadow:0 0 0 2px #0b1220!important}
.career-tab:focus-visible{outline:3px solid #62ddb2!important;outline-offset:2px}
html[data-theme=light]{
 color-scheme:light;--bg:#f1f5f9;--panel:rgba(255,255,255,.98);--panel2:#fff;
 --line:rgba(30,48,74,.2);--text:#142238;--muted:#42536b;
 --purple:#514fc2;--blue:#126b9a;--orange:#865000;--green:#08785b;--pink:#914b7b;
 --shadow:0 18px 50px rgba(30,48,74,.10)
}
html[data-theme=light] body{color:#142238}
html[data-theme=light] .nav-label,html[data-theme=light] .section-kicker,
html[data-theme=light] .card-top,html[data-theme=light] .timeline-date,
html[data-theme=light] .section-note,html[data-theme=light] .stat-card small,
html[data-theme=light] .profile-mini small,html[data-theme=light] .location-pill small,
html[data-theme=light] .brand small,html[data-theme=light] .hero-meta,
html[data-theme=light] .crumb,html[data-theme=light] .side-link,
html[data-theme=light] .timeline-main ul,html[data-theme=light] .project-info p,
html[data-theme=light] .education-card p,html[data-theme=light] .education-card small,
html[data-theme=light] .cert-empty p,html[data-theme=light] .contact-card p,
html[data-theme=light] .profile-footer{color:#42536b}
html[data-theme=light] .side-nav a{color:#33445d}
html[data-theme=light] .side-nav a span{color:#526782}
html[data-theme=light] .side-nav a:hover,html[data-theme=light] .side-nav a.active{background:#e4eaff;color:#1b2c46}
html[data-theme=light] .side-nav a.active{box-shadow:inset 3px 0 #08785b}
html[data-theme=light] .side-nav a.active span{color:#08785b}
html[data-theme=light] .hero-role{color:#243c5d}
html[data-theme=light] .hero-text{color:#344861}
html[data-theme=light] .profile-tags span,html[data-theme=light] .chips span{color:#263b55;background:#f1f5fa;border-color:#c5d0df}
html[data-theme=light] .career-switch{background:#e6edf5;border-color:#b9c6d7}
html[data-theme=light] .career-tab{color:#344861}
html[data-theme=light] .career-tab.active{background:#08785b;color:#fff;box-shadow:none}
html[data-theme=light] .control-btn{color:#24364f;background:#fff;border-color:#9aabc0}
html[data-theme=light] .btn.secondary{color:#24364f;border-color:#9aabc0;background:#fff}
html[data-theme=light] .contact-card{background:linear-gradient(120deg,#fff,#e7f1f4)}
html[data-theme=light] .contact-links a{color:#24364f;background:#fff;border-color:#c5d0df}
html[data-theme=light] .contact-links .whatsapp-link{color:#08785b}
html[data-theme=light] .current,html[data-theme=light] .live-tag{color:#075c46;border-color:#6db99f;background:#e1f6ed}
html[data-theme=light] button:focus-visible,html[data-theme=light] a:focus-visible{outline-color:#08785b!important;box-shadow:0 0 0 2px #fff!important}
@media(prefers-contrast:more){:root{--line:rgba(220,232,248,.42)}body{color:#fff}.hero-text,.timeline-main ul,.project-info p,.education-card p,.cert-empty p,.contact-card p{color:#fff}}


/* Accessible semantic theme layer, following shadcn/ui token conventions.
   Components consume role-based tokens instead of hard-coded theme-specific text colours. */
:root{
 --page-bg:#0b1220;
 --surface:#121d2e;
 --surface-raised:#19283c;
 --foreground:#f8fafc;
 --muted-foreground:#b8c4d6;
 --border-strong:#46566e;
 --accent:#aFC5ff;
 --accent-foreground:#101a2a;
 --success-foreground:#6ee7b7;
 --focus-ring:#6ee7b7;
 --link:#afc5ff;
 --page-bg: #0b1220;
}
html[data-theme=light]{
 --page-bg:#f5f7fb;
 --surface:#ffffff;
 --surface-raised:#edf2f8;
 --foreground:#172033;
 --muted-foreground:#52627a;
 --border-strong:#aab8ca;
 --accent:#3549a8;
 --accent-foreground:#ffffff;
 --success-foreground:#08785b;
 --focus-ring:#08785b;
 --link:#275dad;
}
body{background:var(--page-bg);color:var(--foreground)}
.glass{background:var(--surface);border-color:var(--line)}
.nav-label,.section-kicker,.card-top,.timeline-date,.section-note,
.stat-card small,.profile-mini small,.location-pill small,.brand small,
.hero-meta,.crumb,.side-link,.timeline-main ul,.project-info p,
.education-card p,.education-card small,.cert-empty p,.contact-card p,
.profile-footer,.skill-heading small,.company span,.profile-card>p{
 color:var(--muted-foreground)!important
}
.side-nav a{color:var(--muted-foreground)}
.side-nav a span{color:var(--muted-foreground)}
.hero-role,.company{color:var(--accent)}
.hero-card h1 em{background:none;color:var(--accent);-webkit-text-fill-color:var(--accent)}
.eyebrow,.project-info>a,.text-link,.cert-empty a{color:var(--link)}
.profile-tags span,.chips span{color:var(--foreground);background:var(--surface-raised);border-color:var(--line)}
.career-switch{background:var(--surface-raised);border-color:var(--line)}
.career-tab{color:var(--muted-foreground)}
.career-tab.active{background:var(--accent);color:var(--accent-foreground);box-shadow:none}
.current,.live-tag{color:var(--success-foreground);border-color:var(--success-foreground);background:color-mix(in srgb,var(--success-foreground) 12%,transparent)}
.control-btn{color:var(--foreground);background:var(--surface-raised);border-color:var(--border-strong)}
.btn.secondary{color:var(--foreground);background:var(--surface-raised);border-color:var(--border-strong)}
.contact-links a{color:var(--foreground);background:var(--surface-raised);border-color:var(--line)}
.contact-links .whatsapp-link{color:var(--success-foreground)}
.edu-badge{color:var(--success-foreground)}
button:focus-visible,a:focus-visible{outline:3px solid var(--focus-ring)!important;outline-offset:3px;box-shadow:0 0 0 2px var(--page-bg)!important}
html[dir=rtl] .side-nav a.active{box-shadow:inset -3px 0 var(--success-foreground)}
/* Improve legibility: avoid tiny metadata and low-contrast captions. */
.nav-label,.section-kicker,.card-top,.timeline-date,.section-note,
.hero-meta,.crumb,.side-link,.location-pill small,.profile-mini small,
.brand small,.stat-card small,.skill-heading small,.company span,
.education-card small,.profile-footer,.project-visual>span,.project-visual i{
 font-size:12px
}
.timeline-main ul,.project-info p,.education-card p,.cert-empty p,
.contact-card p,.hero-text{font-size:14px;line-height:1.75}
.profile-tags span,.chips span{font-size:12px}
@media(max-width:580px){
 .nav-label,.section-kicker,.timeline-date,.section-note,.hero-meta,
 .crumb,.side-link,.location-pill small,.profile-mini small,.brand small,
 .stat-card small,.skill-heading small,.company span,.education-card small,
 .profile-footer{font-size:12px}
 .timeline-main ul,.project-info p,.education-card p,.cert-empty p,
 .contact-card p,.hero-text{font-size:14px}
}

/* Recruiter-focused portfolio refinements */
.hero-card .hero-actions{align-items:center;flex-wrap:wrap;gap:11px}
.hero-card .hero-actions .text-link{padding:9px 3px;font-size:11px}
.project-info p{min-height:unset;line-height:1.85}
.project-info p strong{display:inline-block;color:var(--text);font-weight:700;margin-top:5px}
.project-info p br+strong{margin-top:7px}
#techTimeline .timeline-item:last-child{border-top:1px solid var(--line);margin-top:5px;padding-top:19px}
#techTimeline .timeline-item:last-child .timeline-date{color:#72cdb1}
.contact-links a[href^="tel:"]{display:none}
.whatsapp-float{left:22px;right:auto}
@media(max-width:700px){.hero-card .hero-actions{align-items:stretch}.hero-card .hero-actions .btn{justify-content:center}.hero-card .hero-actions .text-link{align-self:center}.whatsapp-float{left:12px;right:auto;bottom:14px}.ai-recruit-launcher{right:12px;bottom:14px}.ai-recruit-panel{right:8px;bottom:74px}}

/* Original profile portrait: transparent full-body cutout */
.profile-visual:has(.portrait-photo){height:235px;min-height:235px;overflow:hidden;align-items:end}
.profile-visual .portrait-photo{width:auto;height:225px;max-width:100%;object-fit:contain;object-position:center bottom;border:0;border-radius:0;box-shadow:0 12px 34px rgba(0,0,0,.22)}
.profile-mini .avatar{overflow:hidden;background:transparent;border:1px solid rgba(116,221,190,.42);border-radius:13px;flex:0 0 42px}
.profile-mini .avatar-photo{display:block;width:100%;height:100%;object-fit:cover;object-position:center 12%;border-radius:12px}
.profile-mini .avatar .online{z-index:2}
@media(max-width:700px){.profile-visual:has(.portrait-photo){height:220px;min-height:220px}.profile-visual .portrait-photo{height:212px}}

/* Portrait visibility fix: do not rely on :has() or the initials placeholder */
.profile-visual{height:245px!important;min-height:245px!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;overflow:hidden!important;position:relative!important}
.profile-visual .portrait-photo{display:block!important;visibility:visible!important;opacity:1!important;position:relative!important;z-index:5!important;width:auto!important;height:235px!important;max-width:90%!important;max-height:none!important;object-fit:contain!important;object-position:center bottom!important;border:0!important;border-radius:0!important;box-shadow:0 10px 28px rgba(0,0,0,.2)!important}
.profile-mini .avatar-photo{display:block!important;visibility:visible!important;opacity:1!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 12%!important}
@media(max-width:700px){.profile-visual{height:230px!important;min-height:230px!important}.profile-visual .portrait-photo{height:220px!important}}

/* Use the same crisp illustrated avatar in the hero and sidebar profile */
.profile-visual{height:250px!important;min-height:250px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
.profile-visual .portrait-photo.avatar-hero{display:block!important;width:210px!important;height:210px!important;max-width:80%!important;max-height:210px!important;object-fit:cover!important;object-position:center!important;border:3px solid rgba(116,221,190,.72)!important;border-radius:50%!important;box-shadow:0 12px 34px rgba(0,0,0,.24),0 0 0 8px rgba(116,221,190,.09)!important;z-index:5!important}
.profile-mini .avatar-photo{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;border-radius:12px!important}
@media(max-width:700px){.profile-visual{height:225px!important;min-height:225px!important}.profile-visual .portrait-photo.avatar-hero{width:190px!important;height:190px!important;max-height:190px!important}}

.portfolio-subheading {
  margin: 24px 0 12px;
  color: inherit;
  font-size: 18px;
}
.portfolio-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.portfolio-entry {
  min-width: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.portfolio-entry h3,
.portfolio-entry h4 {
  margin: 0;
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.portfolio-entry p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.6;
}
.credential-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin-block-start: auto;
}
.credential-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14px;
  font-weight: 600;
}
