/* Najeeb Yousefzad — DevPortfolio-inspired static adaptation.
   Design reference: https://github.com/RyanFitzgerald/devportfolio (MIT).
   Intentional differences: much shorter hero and tighter vertical/card spacing. */
:root{--accent:#1d4ed8;--blue-dark:#1e40af;--ink:#111827;--muted:#4b5563;--subtle:#64748b;--line:#e4e8ef;--light:#f8fafc;--white:#fff;--radius:13px}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:78px}body{margin:0;background:#fff;color:var(--ink);font-family:'IBM Plex Mono',ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',monospace;font-size:14px;line-height:1.7;-webkit-font-smoothing:antialiased}a{color:inherit}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #2563eb;outline-offset:3px}.skip-link{position:fixed;left:12px;top:-80px;z-index:200;background:#fff;border:2px solid var(--accent);padding:10px 14px}.skip-link:focus{top:12px}.site-header{position:sticky;top:0;z-index:90;background:rgba(255,255,255,.94);border-bottom:1px solid rgba(226,232,240,.7);backdrop-filter:blur(14px)}.header-inner{max-width:1240px;margin:auto;padding:0 32px;height:64px;display:flex;align-items:center;gap:32px}.brand{text-decoration:none;font-size:22px;font-weight:700;letter-spacing:-.09em;color:#172033}.brand-dot{color:var(--accent)}.nav-links{margin:0 auto;display:flex;align-items:center;gap:25px}.nav-links a{font-size:12px;text-decoration:none;font-weight:500;color:#475569;transition:color .2s}.nav-links a:hover,.nav-links a.active{color:var(--accent)}.nav-cv{background:var(--ink);color:#fff;font-size:11px;text-decoration:none;border-radius:7px;padding:9px 12px;font-weight:600;white-space:nowrap}.nav-cv:hover{background:var(--blue-dark)}.menu-toggle{display:none;border:0;background:transparent;color:var(--ink);padding:7px}
.hero{min-height:370px;position:relative;isolation:isolate;overflow:hidden;background:#fff;border-bottom:1px solid var(--line)}.hero:before{content:"";position:absolute;inset:0;z-index:-2;background:radial-gradient(ellipse 760px 600px at -12% -20%,rgba(29,78,216,.18) 0%,rgba(29,78,216,.115) 24%,rgba(29,78,216,.04) 51%,rgba(255,255,255,0) 82%)}.hero-shapes{position:absolute;inset:0;z-index:-1;opacity:.55;background-image:linear-gradient(90deg,rgba(29,78,216,.075) 1px,transparent 1px),linear-gradient(0deg,rgba(29,78,216,.075) 1px,transparent 1px);background-size:78px 78px;mask-image:linear-gradient(to right,black,transparent 75%)}.hero-inner{max-width:1240px;margin:0 auto;min-height:298px;padding:42px 68px 26px;display:flex;align-items:center;justify-content:space-between;gap:30px}.hero-content{max-width:850px}.greeting{font-weight:700;color:#334155;font-size:22px;line-height:1.25;margin:0 0 12px}.hero h1{font-size:clamp(40px,5.1vw,72px);line-height:1.17;letter-spacing:-.072em;font-weight:700;margin:0}.hero h1 span{color:var(--accent)}.hero-role{font-size:clamp(14px,1.7vw,18px);color:var(--muted);font-weight:500;margin:16px 0 0;line-height:1.55}.hero-separator{color:#94a3b8;margin:0 2px}.hero-location{display:flex;align-items:center;gap:6px;color:#64748b;font-size:12px;margin:8px 0 0}.hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:21px}.hero-actions a{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;padding:9px 13px;border-radius:8px;font-size:12px;font-weight:600;transition:background .2s,transform .2s}.hero-actions a:hover{transform:translateY(-2px)}.action-primary{background:var(--accent);color:white}.action-primary:hover{background:var(--blue-dark)}.action-secondary{background:#fff;color:#1e293b;border:1px solid #d7dfeb}.hero-logo{width:100px;height:100px;flex:none;border-radius:24px;background:#fff;display:flex;align-items:center;justify-content:center;border:1px solid #edf0f7;box-shadow:0 18px 40px #0f172a0d}.hero-logo img{width:74px;height:74px;object-fit:contain}.hero-bottom{max-width:1240px;margin:0 auto;padding:0 68px 21px;display:flex;align-items:center;gap:17px;color:#334155}.hero-bottom a{display:flex;align-items:center;justify-content:center;color:#334155;transition:color .2s}.hero-bottom a:hover{color:var(--accent)}.hero-meta{margin-left:auto;color:#64748b;font-size:11px;letter-spacing:.02em}
.content-section{border-bottom:1px solid #edf0f4}.section-container{max-width:1240px;margin:0 auto;padding:48px 68px;display:grid;grid-template-columns:minmax(190px,31%) minmax(0,1fr);gap:45px}.section-label h2{font-size:clamp(29px,3.2vw,46px);line-height:1.2;letter-spacing:-.065em;margin:0;font-weight:700;color:#111827}.section-label i{display:block;width:58px;height:4px;background:var(--accent);border-radius:999px;margin-top:11px}.section-body{min-width:0}.about-paragraph{font-size:15px;color:#475569;line-height:1.95;margin:0 0 12px;max-width:760px}.skill-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:20px}.skill-tags span{border:1px solid #e5e7eb;border-radius:30px;background:#f8fafc;padding:5px 10px;color:#374151;font-size:11px;font-weight:500}.section-lead{color:#64748b;margin:0 0 17px;font-size:13px}.project-filters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}.project-filters button{border:1px solid #e2e8f0;background:#fff;color:#526070;border-radius:7px;font-size:11px;padding:6px 10px;transition:background .2s,border-color .2s}.project-filters button.active,.project-filters button:hover{border-color:var(--accent);background:#eff6ff;color:var(--blue-dark)}.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}.project-card{background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;padding:18px;transition:background .2s,border-color .2s,transform .2s,box-shadow .2s;min-width:0;display:flex;flex-direction:column}.project-card:hover{background:#fff;border-color:#cad5e6;box-shadow:0 10px 26px #33415512;transform:translateY(-2px)}.project-card[hidden]{display:none!important}.project-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.project-number{color:var(--accent);font-size:12px;font-weight:700}.category-label{font-size:10px;color:#64748b}.project-card h3{margin:0 0 8px;font-size:16px;font-weight:700;line-height:1.45;letter-spacing:-.038em}.project-card>p{color:#536075;font-size:11.5px;line-height:1.7;margin:0 0 14px;flex:1}.project-tags{display:flex;gap:5px;flex-wrap:wrap}.project-tags span{font-size:10px;color:#fff;background:#1e293b;border-radius:5px;padding:3px 7px}.project-details{font-size:11px;margin-top:11px;color:#526070;border-top:1px solid #e3e7ed;padding-top:8px}.project-details summary{cursor:pointer;font-weight:600;color:#334155}.project-details ul{padding-left:19px;margin:7px 0 0}.projects-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:16px;flex-wrap:wrap}.show-projects{background:#fff;color:var(--accent);border:1px solid #cbd5e1;border-radius:7px;padding:8px 12px;font-size:12px;font-weight:600}.show-projects:hover{background:#eff6ff}.show-projects[hidden]{display:none}.projects-actions #project-count{font-size:11px;color:#64748b}
.timeline{position:relative;display:grid;gap:13px}.timeline:before{content:"";position:absolute;left:10px;top:20px;bottom:25px;background:#d9e2ef;width:2px}.experience-card{position:relative;margin-left:36px;background:#fff;border:1px solid #e5e7eb;border-radius:11px;padding:18px 20px;box-shadow:0 2px 9px #1e293b06}.timeline-dot{position:absolute;left:-31px;top:22px;width:12px;height:12px;background:var(--accent);border:3px solid #fff;box-shadow:0 0 0 2px var(--accent);border-radius:50%}.job-title-row{display:flex;justify-content:space-between;gap:14px;align-items:baseline}.job-title-row h3{font-size:15px;line-height:1.5;letter-spacing:-.02em;margin:0;font-weight:700}.job-dates{font-size:11px;color:#64748b;text-align:right;flex-shrink:0}.job-company{color:var(--accent);font-weight:600;font-size:12px;margin:4px 0 9px}.job-description{font-size:12px;color:#475569;line-height:1.75;margin:0}.job-bullets{font-size:11.5px;line-height:1.8;color:#64748b;padding-left:18px;margin:8px 0 0}.job-bullets li+li{margin-top:3px}.education-card{border:1px solid #e5e7eb;background:#fff;border-radius:11px;padding:20px;display:flex;justify-content:space-between;align-items:start;gap:16px}.education-card h3{font-size:16px;letter-spacing:-.02em;margin:0}.education-card p{margin:5px 0 0;color:var(--accent);font-size:13px}.education-card>span{color:#64748b;font-size:12px;white-space:nowrap}.contact-links{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.contact-links a{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--accent);text-decoration:none;font-weight:600;border:1px solid #e2e8f0;border-radius:8px;padding:10px 12px}.contact-links a:hover{background:#eff6ff}
.site-footer{background:#f8fafc;border-top:1px solid #e5e7eb}.footer-inner{max-width:1240px;margin:0 auto;padding:30px 68px;display:flex;justify-content:space-between;align-items:center;gap:20px}.footer-inner>div{display:grid;gap:5px}.footer-inner strong{font-size:19px}.footer-inner span{font-size:11px;color:#64748b}.footer-side{text-align:right}.footer-side a{font-size:11px;text-decoration:none;color:#334155}.footer-side a:hover{text-decoration:underline}.back-top{position:fixed;right:18px;bottom:18px;width:39px;height:39px;display:grid;place-items:center;border-radius:10px;background:#fff;box-shadow:0 5px 18px #0f172a1a;border:1px solid #e5e7eb;z-index:40;text-decoration:none;opacity:0;pointer-events:none;transform:translateY(10px);transition:opacity .2s,transform .2s}.back-top.visible{opacity:1;pointer-events:auto;transform:none}
@media(max-width:900px){.section-container{grid-template-columns:190px minmax(0,1fr);gap:24px;padding:37px 30px}.header-inner{padding:0 28px}.hero-inner{padding-inline:35px}.hero-bottom{padding-inline:35px}.section-label h2{font-size:33px}.project-grid{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.header-inner{height:58px;padding:0 19px;gap:12px}.nav-links{display:none;position:absolute;top:57px;left:0;right:0;background:#fff;border-bottom:1px solid #e5e7eb;padding:14px 20px;box-shadow:0 15px 20px #1118270a;gap:12px;flex-direction:column;align-items:stretch}.nav-links.open{display:flex}.nav-links a{font-size:13px;padding:5px}.menu-toggle{display:flex;margin-left:auto}.nav-cv{font-size:10px;padding:8px 10px}.hero-inner{padding:32px 22px 18px;min-height:270px;align-items:flex-start}.hero h1{font-size:clamp(32px,7vw,48px)}.greeting{font-size:18px}.hero-role{font-size:13px}.hero-logo{width:60px;height:60px;border-radius:15px}.hero-logo img{width:43px;height:43px}.hero-bottom{padding:2px 22px 18px}.hero-meta{font-size:9px}.section-container{grid-template-columns:1fr;gap:19px;padding:32px 22px}.section-label h2{font-size:31px}.section-label i{margin-top:8px}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-card{padding:13px}.project-card h3{font-size:14px}.project-card>p{font-size:11px}.timeline{gap:12px}.experience-card{padding:15px}.footer-inner{padding:25px 22px}}
@media(max-width:520px){.hero-inner{gap:9px;padding:27px 17px 16px}.hero h1{font-size:clamp(30px,8.4vw,43px)}.name-break{display:none}.hero-role{font-size:12px}.hero-location{font-size:10px}.hero-logo{width:46px;height:46px;flex:none;border-radius:11px}.hero-logo img{width:35px;height:35px}.hero-actions{gap:7px;margin-top:17px}.hero-actions a{font-size:10px;padding:7px 8px}.hero-bottom{padding-inline:17px;gap:14px}.hero-meta{display:none}.section-container{padding:30px 17px;gap:17px}.about-paragraph{font-size:13px}.section-label h2{font-size:29px}.project-grid{grid-template-columns:1fr}.project-card{padding:15px}.project-card h3{font-size:15px}.project-card>p{font-size:11.5px}.job-title-row{display:block}.job-dates{display:block;text-align:left;margin-top:3px}.education-card{flex-direction:column;gap:6px}.footer-inner{flex-direction:column;align-items:flex-start;gap:12px}.footer-side{text-align:left}.contact-links{align-items:stretch}.contact-links a{font-size:11px}}
@media(max-width:340px){.hero h1{font-size:28px}.hero-logo{width:40px;height:40px}.hero-logo img{width:30px;height:30px}.hero-role{font-size:11px}.hero-actions a{font-size:9px}.header-inner{padding-inline:11px}.hero-inner{padding-inline:13px}.section-container{padding-inline:13px}.hero-bottom{padding-inline:13px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}


/* 2026 compact UX revision — single-line desktop name, official Margo logo,
   more useful project details dialog and the user's WhatsApp/Telegram. */
.brand{font-size:16px;letter-spacing:-.055em;white-space:nowrap;flex-shrink:0}
.brand-first{color:#172033}.brand-last{color:var(--accent)}.brand-dot{font-size:19px}
.header-inner{gap:22px}.nav-links{gap:19px}
.hero{min-height:0}.hero-inner{min-height:0;max-width:1240px;padding:30px 48px 15px;gap:24px}
.hero-content{max-width:none;min-width:0;flex:1}
.hero h1{font-size:clamp(33px,3.9vw,54px);letter-spacing:-.065em;line-height:1.2;white-space:nowrap}
.greeting{font-size:17px;margin-bottom:7px}.hero-role{margin-top:10px;font-size:clamp(13px,1.55vw,16px)}
.hero-location{margin-top:6px}.hero-actions{margin-top:15px}
.hero-logo{width:90px;height:90px;border-radius:50%;box-shadow:0 8px 20px #0f172a12;overflow:hidden;padding:0}
.hero-logo img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.hero-bottom{padding:0 48px 13px;gap:14px}
.hero-social-text{text-decoration:none;font-size:10.5px;font-weight:600;letter-spacing:0;color:#475569!important}
.hero-social-text:hover{color:var(--accent)!important}.hero-meta{font-size:10px}
.section-container{padding:30px 48px;grid-template-columns:minmax(155px,25%) minmax(0,1fr);gap:28px}
.section-label h2{font-size:clamp(25px,2.65vw,35px)}.section-label i{margin-top:8px;width:48px;height:3px}
.about-paragraph{font-size:13px;line-height:1.75;margin-bottom:9px}.skill-tags{margin-top:13px;gap:5px}.skill-tags span{padding:4px 9px;font-size:10.5px}
.section-lead{margin-bottom:12px}.project-filters{margin-bottom:12px}.project-grid{gap:10px}
.project-card{padding:15px 16px;transition:background .2s,border-color .2s,box-shadow .2s}
.project-card:hover{transform:none}.project-card-top{margin-bottom:5px}.project-card h3{font-size:15px;margin-bottom:5px}
.project-card>p{font-size:12px;line-height:1.65;margin-bottom:9px}.project-tags span{font-size:9.5px;padding:3px 6px}
.project-details{margin-top:10px;padding-top:8px}.project-details summary{list-style:none;display:inline-flex;align-items:center;gap:7px;cursor:pointer;min-height:28px;color:var(--accent);font-size:11px}
.project-details summary::-webkit-details-marker{display:none}.project-details summary span{font-size:15px;transition:transform .15s}.project-details summary:hover span{transform:translate(2px,-2px)}
.project-inline-info{margin-top:9px;padding:12px;border:1px solid var(--line);border-radius:9px;background:#fff}
.project-inline-info h4{font-size:12px;margin:6px 0 7px;color:var(--ink)}
.project-inline-info ul{margin:0;padding-left:18px;display:grid;gap:4px;line-height:1.6}
.detail-scope{font-size:11px;color:var(--accent);margin:0}
.projects-actions{margin-top:12px}.timeline{gap:9px}.experience-card{padding:14px 17px}
.job-company{margin-bottom:6px}.job-bullets{margin-top:6px}.education-card{padding:15px 18px}
.contact-links{gap:8px}.contact-links a{padding:9px 11px}.contact-links .contact-primary{display:inline-flex;align-items:center;gap:9px;background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}
.contact-primary span:nth-child(2){display:flex;flex-direction:column;line-height:1.35}
.contact-primary small{font-weight:400;font-size:10px;color:#475569;margin-top:2px}
.contact-symbol{display:inline-grid;place-items:center;font-size:16px;font-weight:700;width:24px;height:24px;border-radius:7px;background:#fff;border:1px solid #dbeafe}
.footer-inner{padding:21px 48px}
.project-dialog{position:fixed;inset:0;margin:auto;max-height:min(85dvh,780px);max-width:650px;width:calc(100% - 26px);border-radius:15px;border:1px solid #d5dfeb;background:#fff;color:var(--ink);padding:0;box-shadow:0 30px 80px #0f172a38;overflow:auto}
.project-dialog::backdrop{background:rgba(10,24,43,.62);backdrop-filter:blur(4px)}
.dialog-head{display:flex;justify-content:space-between;align-items:start;gap:16px;padding:22px 25px 16px;background:linear-gradient(130deg,#f4f8ff,#fff);border-bottom:1px solid #e5eaf2}
.dialog-eyebrow{font-size:10px;color:var(--accent);font-weight:700;letter-spacing:.1em;margin-bottom:5px}
.dialog-head h2{font-size:clamp(20px,3vw,26px);line-height:1.3;letter-spacing:-.04em;margin:0;color:#172033}
.dialog-close{font-size:27px;line-height:1;border:1px solid #dbe3ec;background:#fff;width:33px;height:33px;display:grid;place-items:center;border-radius:9px;flex-shrink:0;color:#475569}
.dialog-close:hover{background:#f1f5f9;color:#111827}.dialog-content{padding:16px 25px 8px}
.dialog-lead{font-size:13px;line-height:1.85;color:#475569;margin:0 0 13px}
.dialog-features h4{font-size:14px;margin:13px 0 8px}.dialog-features .detail-scope{display:block;font-size:12px}
.dialog-features ul{margin:7px 0 13px;padding-left:19px;display:grid;gap:6px;color:#445267;font-size:12px;line-height:1.65}
.dialog-features li::marker{color:var(--accent)}.dialog-tags{display:flex;gap:6px;flex-wrap:wrap;margin:4px 0 10px}
.dialog-tags span{background:#f1f5f9;border:1px solid #e2e8f0;padding:4px 8px;font-size:10px;border-radius:5px;color:#334155}
.dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:1px solid #e2e8f0;padding:13px 25px 18px}
.dialog-done{background:#1d4ed8;border:1px solid #1d4ed8;color:#fff;border-radius:8px;padding:8px 13px;font-size:12px;font-weight:600}
.dialog-contact{font-size:11px;color:var(--accent);font-weight:600;text-decoration:none}.dialog-contact:hover{text-decoration:underline}
@media(max-width:900px){.section-container{padding:26px 28px;grid-template-columns:180px minmax(0,1fr);gap:20px}.hero-inner{padding-inline:28px}.hero-bottom{padding-inline:28px}.footer-inner{padding-inline:28px}.nav-links{gap:13px}.header-inner{gap:14px}}
@media(max-width:740px){.hero h1{font-size:clamp(28px,5vw,37px);white-space:normal}.header-inner{gap:11px}.brand{font-size:14px}.nav-links{gap:8px}}
@media(max-width:680px){.hero-inner{min-height:0;padding:25px 19px 11px;gap:12px}.hero h1{font-size:clamp(27px,6vw,36px);letter-spacing:-.06em}.hero-logo{width:61px;height:61px}.hero-bottom{padding:1px 19px 14px}.section-container{padding:25px 19px;gap:12px;grid-template-columns:1fr}.section-label h2{font-size:27px}.project-card{padding:13px}.footer-inner{padding:20px 19px}.hero-meta{display:none}.hero-social-text{font-size:10px}.brand{font-size:13px}.project-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.hero-inner{padding:23px 16px 10px;gap:10px}.hero h1{font-size:clamp(26px,7vw,32px)}.hero-logo{width:50px;height:50px}.hero-bottom{padding-inline:16px}.project-grid{grid-template-columns:1fr}.section-container{padding:23px 16px}.section-label h2{font-size:27px}.contact-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.contact-links a{font-size:10.5px;justify-content:space-between}.contact-primary small{overflow-wrap:anywhere;font-size:9px}.dialog-head{padding:17px}.dialog-content{padding:15px 17px 8px}.dialog-footer{padding:12px 17px 15px}.brand{font-size:12px}.nav-cv{font-size:10px;padding:7px}}
@media(max-width:360px){.hero-logo{width:43px;height:43px}.hero h1{font-size:26px}.hero-actions a{font-size:9px}.hero-bottom{gap:10px}.header-inner{gap:7px;padding-inline:11px}.brand{font-size:11px}.contact-links{grid-template-columns:1fr}}

@media(max-width:520px){.project-card>p{font-size:12.5px;line-height:1.65}.project-details summary{min-height:36px}.brand{font-size:12.5px}}


/* 2026 UX improvement patch */
.header-inner{max-width:1180px;gap:24px}.brand{font-size:24px;white-space:nowrap}.nav-links{gap:21px}
.hero{min-height:410px}.hero-inner{max-width:1180px;min-height:320px;padding:44px 52px 22px;gap:34px}.hero-content{max-width:760px}.greeting{font-size:18px;margin:0 0 10px}.hero h1{font-size:clamp(44px,5vw,76px);line-height:1.08;letter-spacing:-.065em}.hero-role{font-size:clamp(18px,2vw,22px);font-weight:700;color:#1f3f85;margin-top:14px}.hero-intro{max-width:700px;font-size:15.5px;line-height:1.85;color:#475569;margin:16px 0 0}.hero-highlights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;list-style:none;padding:0;margin:18px 0 0}.hero-highlights li{background:#fff;border:1px solid #d9e3f2;border-radius:12px;padding:12px 14px;font-size:12px;line-height:1.6;color:#334155;box-shadow:0 8px 22px rgba(15,23,42,.04)}.action-ghost{background:#fff;color:#0f172a;border:1px solid #d7dfeb}.action-ghost:hover{background:#f8fafc}.hero-logo{width:170px;height:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:18px 14px;border-radius:26px;box-shadow:0 22px 48px rgba(15,23,42,.10)}.hero-logo img{width:112px;height:112px;object-fit:contain}.hero-logo-caption{margin:4px 0 0;font-weight:700;font-size:15px;color:#1f2b49;text-align:center}.hero-logo-sub{font-size:11px;line-height:1.5;color:#64748b;text-align:center}.hero-bottom{max-width:1180px;padding:0 52px 18px;gap:14px;flex-wrap:wrap}.hero-social-text{font-size:12px;padding:7px 12px;border-radius:999px;border:1px solid #dbe4f2;background:#fff;text-decoration:none}.hero-meta{margin-left:auto;font-size:11px}

.section-container{max-width:1180px;padding:42px 52px;grid-template-columns:minmax(150px,220px) minmax(0,1fr);gap:34px}.section-label h2{font-size:clamp(28px,3vw,42px)}.about-paragraph{font-size:15px;line-height:1.9;max-width:820px}.service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0 8px}.service-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:16px;box-shadow:0 6px 18px rgba(15,23,42,.04)}.service-card h3{margin:0 0 8px;font-size:15px;line-height:1.4}.service-card p{margin:0;font-size:12px;line-height:1.8;color:#526070}

.featured-projects{margin:10px 0 22px}.featured-head h3,.all-projects-head h3{margin:0 0 6px;font-size:20px;letter-spacing:-.03em;color:#111827}.featured-head p,.all-projects-head p{margin:0 0 14px;font-size:12.5px;line-height:1.7;color:#64748b}.featured-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:18px}.featured-project{background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);border:1px solid #dce6f3;border-radius:15px;padding:18px;display:flex;flex-direction:column;gap:10px;box-shadow:0 10px 28px rgba(15,23,42,.05)}.featured-project-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.featured-project h4{margin:0;font-size:18px;line-height:1.45;letter-spacing:-.03em}.featured-project p{margin:0;font-size:12.5px;line-height:1.8;color:#526070;flex:1}.featured-open{align-self:flex-start;background:#0f172a;color:#fff;border:0;border-radius:9px;padding:9px 12px;font-size:12px;font-weight:600;cursor:pointer}.featured-open:hover{background:#1d4ed8}.all-projects-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:8px 0 10px;flex-wrap:wrap}

.project-filters{margin-bottom:14px}.project-grid{gap:13px}.project-card{padding:19px;border-radius:14px}.project-card h3{font-size:17px}.project-card>p{font-size:12px;line-height:1.8}.project-tags span{font-size:10.5px;padding:4px 8px}.project-details{font-size:11.5px}.project-details summary{display:inline-flex;align-items:center;gap:8px;padding:4px 0}.projects-actions #project-count{font-size:11.5px}

.timeline{gap:12px}.experience-card{margin-left:30px;padding:18px 18px}.job-description{font-size:12.5px}.job-bullets{font-size:11.5px}.education-card{padding:18px 18px}
.contact-links{gap:10px}.contact-links a{font-size:12.5px;padding:11px 13px}.contact-primary{min-width:210px;justify-content:space-between}.site-footer .footer-inner{max-width:1180px;padding:26px 52px}

.project-dialog{border:0;border-radius:20px;padding:0;max-width:760px;width:min(92vw,760px);box-shadow:0 28px 80px rgba(15,23,42,.30)}.project-dialog::backdrop{background:rgba(15,23,42,.56)}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:22px 24px 14px;border-bottom:1px solid #e5e7eb}.dialog-eyebrow{font-size:10px;letter-spacing:.11em;color:#64748b;font-weight:700}.dialog-head h2{margin:4px 0 0;font-size:24px;line-height:1.3}.dialog-close{border:0;background:#f1f5f9;color:#0f172a;width:38px;height:38px;border-radius:10px;font-size:24px;line-height:1;cursor:pointer}.dialog-content{padding:20px 24px}.dialog-lead{margin:0 0 18px;font-size:14px;line-height:1.85;color:#475569}.dialog-features{font-size:13px;line-height:1.8;color:#334155}.dialog-features h4{margin:0 0 8px;font-size:15px}.dialog-features p{margin:0 0 8px}.dialog-features ul{margin:0;padding-left:18px}.dialog-features li+li{margin-top:5px}.dialog-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.dialog-tags span{background:#eff6ff;color:#1d4ed8;border:1px solid #dbeafe;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:600}.dialog-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 24px 22px;border-top:1px solid #e5e7eb;flex-wrap:wrap}.dialog-done,.dialog-contact{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;border-radius:10px;padding:10px 14px;font-size:12px;font-weight:600}.dialog-done{background:#0f172a;color:#fff;border:0;cursor:pointer}.dialog-contact{border:1px solid #dbe3ef;color:#1d4ed8;background:#fff}

@media(max-width:900px){.section-container{grid-template-columns:1fr;padding:36px 28px;gap:20px}.header-inner{padding:0 24px}.hero-inner{padding:40px 28px 18px;flex-direction:column;align-items:flex-start}.hero-bottom{padding:0 28px 16px}.hero-highlights{grid-template-columns:1fr}.hero-logo{align-self:flex-start;width:100%;max-width:240px}.service-grid,.featured-grid,.project-grid{grid-template-columns:1fr}.hero-meta{margin-left:0;width:100%}}
@media(max-width:680px){.brand{font-size:19px;letter-spacing:-.07em}.hero{min-height:auto}.hero h1{font-size:38px}.hero-role{font-size:17px}.hero-intro{font-size:14px}.hero-actions a{font-size:12px}.section-container{padding:32px 18px}.hero-inner{padding:32px 18px 16px}.hero-bottom{padding:0 18px 16px}.service-card,.featured-project,.project-card,.experience-card,.education-card{padding:15px}.dialog-head{padding:18px 18px 12px}.dialog-content{padding:16px 18px}.dialog-footer{padding:14px 18px 18px}.job-title-row{flex-direction:column;align-items:flex-start}.job-dates{text-align:left}}


/* HR-first information hierarchy | 2026-11-13 */
.section-container{grid-template-columns:minmax(142px,205px) minmax(0,1fr);gap:30px;padding-block:36px}
.section-label h2{font-size:clamp(26px,2.8vw,39px)}
.about-paragraph{max-width:795px;font-size:15px;line-height:1.82}
.skills-organized{margin-top:16px}
.skills-organized>h3{margin:0 0 14px;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:17px;letter-spacing:-.02em}
.skill-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.skill-group{min-width:0;padding:14px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
.skill-group h4{margin:0 0 10px;font:700 12px/1.35 Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#263a57}
.skill-group .skill-tags{margin:0;gap:6px}
.skill-group .skill-tags span{font:500 11.5px/1.3 Inter,system-ui,-apple-system,"Segoe UI",sans-serif;background:white;color:#394659;padding:5px 8px}
.experience-lead{font-size:12.5px}
.featured-projects{margin-bottom:12px}
.featured-project h4{font-size:16px;line-height:1.45}
.featured-project p{font-size:12.75px;line-height:1.7}
.featured-project .featured-focus{margin:2px 0 0;color:#1e40af;font-size:12px;font-weight:600}
.featured-project{gap:8px;box-shadow:0 3px 12px #0f172a08}
.featured-open{font-size:12px;padding:9px 13px;margin-top:3px}
.all-projects-browser{margin-top:18px;border:1px solid #d6dfed;border-radius:14px;overflow:hidden;background:#fff}
.all-projects-summary{list-style:none;position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;padding:14px 18px;font:700 13px/1.5 Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#173b73;background:#f5f9ff}
.all-projects-summary::-webkit-details-marker{display:none}
.all-projects-summary::after{content:'+';display:inline-grid;place-items:center;flex:none;width:27px;height:27px;background:#e4eefc;color:#1d4ed8;border-radius:8px;font-size:20px;line-height:1}
.all-projects-browser[open]>.all-projects-summary::after{content:'−'}
.all-projects-browser>.all-projects-head{padding:18px 18px 0;margin:0}
.all-projects-browser>.project-filters{padding:0 18px;margin-top:0}
.all-projects-browser>.project-grid{padding:0 18px 18px}
.all-projects-browser>.projects-actions{padding:0 18px 16px;margin:0}
.project-card>p{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:13px;line-height:1.65}
.project-card h3,.job-title-row h3,.education-card h3{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.project-card h3{font-size:17px;letter-spacing:-.02em}
.job-description{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:13px;line-height:1.7}
.job-bullets{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:12.5px;line-height:1.65}
.job-title-row h3{font-size:16px}
.job-dates{font-size:11.5px}
.dialog-features .detail-my-focus{font-weight:500;color:#28519d}
.hero-logo img{filter:contrast(1.07) saturate(1.12)}
@media(max-width:1100px){.skill-groups{grid-template-columns:1fr 1fr}}
@media(max-width:900px){.section-container{grid-template-columns:1fr;gap:18px;padding-block:28px}.skill-groups{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.skill-groups{grid-template-columns:1fr}.all-projects-browser>.project-grid{grid-template-columns:1fr}.hero-highlights{gap:6px}}
@media(max-width:360px){.all-projects-summary{padding:13px 12px}.all-projects-browser>.project-grid,.all-projects-browser>.project-filters{padding-inline:12px}.hero-actions a{font-size:10px}}

/* Small-screen fit and recognizable brand */
.brand{display:inline-flex;align-items:center;gap:8px;letter-spacing:-.045em}.brand-mark{width:26px;height:26px;object-fit:contain;flex:none}
@media(max-width:680px){
.nav-cv{display:none}
.brand{font-size:18px;letter-spacing:-.045em;white-space:nowrap}.brand-mark{width:25px;height:25px}
.hero-logo{display:none}
.hero-highlights{display:none}
.hero-inner{min-height:0;padding:27px 18px 12px;display:block}
.hero h1{font-size:clamp(32px,7.7vw,42px)}
.hero-intro{font-size:13.5px;line-height:1.68;margin-top:12px}
.hero-role{font-size:15.5px;margin-top:12px}
.hero-actions{gap:7px;margin-top:15px}
.hero-actions a{font-size:11px;padding:8px 10px}
.hero-bottom{padding:3px 18px 14px;gap:10px}
.hero-social-text{padding:5px 9px;font-size:10.5px}
.hero-meta{display:none}
}
@media(max-width:360px){.brand{font-size:16px}.header-inner{padding-inline:13px}.hero-inner{padding:24px 15px 11px}.hero-bottom{padding-inline:15px}.hero-actions a{font-size:10.5px}}

.brand-name{white-space:nowrap}
@media(max-width:680px){.contact-links{display:grid;grid-template-columns:minmax(0,1fr);gap:9px}.contact-links a{min-width:0;max-width:100%;width:100%;overflow-wrap:anywhere}.contact-links .contact-primary{min-width:0}.contact-links a span{min-width:0}}
/* Tablet navigation and hero should not waste the first screen */
@media(min-width:681px) and (max-width:960px){
 .nav-links{display:none;position:absolute;top:63px;left:0;right:0;background:#fff;border-bottom:1px solid #e5e7eb;padding:14px 24px;box-shadow:0 14px 24px #11182712;gap:12px;flex-direction:column;align-items:flex-start}
 .nav-links.open{display:flex}
 .nav-links a{font-size:13px;padding:5px}
 .menu-toggle{display:flex;margin-left:auto}
 .hero-inner{display:grid;grid-template-columns:minmax(0,1fr) 130px;align-items:center;gap:18px;padding:28px 28px 18px;min-height:0}
 .hero-logo{width:130px;max-width:130px;justify-self:end;padding:12px 9px}
 .hero-logo img{width:90px;height:90px}
 .hero-logo-caption{font-size:12px}
 .hero-logo-sub{font-size:9px}
 .hero-highlights{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .hero-highlights li{font-size:10.7px;padding:7px 9px}
 .hero-intro{font-size:13px;line-height:1.6}
 .hero-role{font-size:16px}
 .hero h1{font-size:clamp(37px,5.2vw,50px)}
 .hero-bottom{padding:0 28px 15px}
}

/* Readable HR-oriented body type; preserve the original developer look for headings */
body{font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:15px;line-height:1.65}
.brand,.greeting,.hero h1,.section-label h2,.project-number,.category-label,.hero-role{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace}
.hero-intro,.about-paragraph,.section-lead,.featured-project>p,.job-company,.job-description,.job-bullets,.education-card p,.contact-links a,.dialog-lead,.dialog-features{font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
.hero-intro{font-size:15px;line-height:1.65}
.about-paragraph{font-size:14.5px;line-height:1.7}
.section-lead{font-size:13px;line-height:1.6}
@media(max-width:700px){.skill-group{padding:10px 11px}.skill-group h4{margin-bottom:6px}.skill-group .skill-tags{gap:5px}.skill-group .skill-tags span{font-size:11px;padding:4px 7px}.hero-intro{font-size:13.5px;line-height:1.65}}


/* Final approved layout — compact name header, uncluttered hero and balanced contact. */
.brand,.brand:visited,.brand-name{color:#1d4ed8}
.brand:hover{color:#1e40af}
.hero{min-height:0}
.hero-inner{max-width:1180px;min-height:0;padding:32px 52px 34px;display:flex;align-items:center;gap:24px}
.hero-content{min-width:0;flex:1;max-width:none}
.hero .greeting{font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:12px;letter-spacing:.11em;font-weight:800;color:#1d4ed8;margin:0 0 10px}
.hero h1{color:#111827;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:clamp(28px,3.15vw,43px);line-height:1.22;letter-spacing:-.04em;font-weight:750;margin:0}
.hero-role{font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.6;color:#28519d;margin:9px 0 0;font-weight:700}
.hero-intro{max-width:790px;font-size:15px;line-height:1.68;margin:13px 0 0}
.hero-actions{margin-top:18px;gap:10px}
.hero-actions a{font-size:12px;padding:10px 13px}
.hero-logo{align-self:center;flex:0 0 88px;width:88px;max-width:none;height:88px;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;display:flex;align-items:center;justify-content:center}
.hero-logo img{width:84px;height:84px;object-fit:contain}
.hero-location{font:500 12px/1.6 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#64748b;margin:13px 0 0}
.hero-bottom{display:none}

/* Contact fills the content grid; primary actions above, three secondary links below. */
.contact-section .section-container{max-width:1180px;display:block;padding:35px 52px 40px}
.contact-section .section-label{margin:0 0 20px}
.contact-section .section-label h2{font:750 clamp(27px,3vw,37px)/1.2 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;letter-spacing:-.04em}
.contact-section .section-label i{margin-top:10px}
.contact-intro{font-size:14px;line-height:1.6;color:#64748b;margin:10px 0 0}
.contact-primary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}
.contact-card{display:flex;align-items:center;gap:14px;min-width:0;padding:17px 19px;border-radius:13px;border:1px solid #d8e3f3;background:#f4f8ff;color:#14253e;text-decoration:none;transition:background .15s,border-color .15s,transform .15s}
.contact-card:hover{background:#e9f1ff;border-color:#b8cbed;transform:translateY(-1px)}
.contact-card-icon{flex:none;display:grid;place-items:center;border-radius:10px;width:39px;height:39px;border:1px solid #d9e5f7;background:white;color:#1d4ed8}
.contact-card-icon svg{width:21px;height:21px}
.contact-card-copy{display:flex;flex-direction:column;min-width:0;gap:1px;line-height:1.5}
.contact-card-copy strong{font-size:15px;font-weight:700}
.contact-card-copy small{font-size:12px;color:#51647e;overflow-wrap:anywhere}
.contact-arrow{color:#1d4ed8;font-size:18px;margin-left:auto;flex:none}
.contact-secondary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.contact-secondary-grid>a{display:flex;align-items:center;gap:8px;min-width:0;padding:13px 15px;background:white;border:1px solid #e2e8f0;border-radius:10px;text-decoration:none;color:#26384f;transition:border-color .15s,background .15s}
.contact-secondary-grid>a:hover{background:#f8fbff;border-color:#c3d4ed}
.contact-secondary-title{font-size:13px;font-weight:700;white-space:nowrap}
.contact-secondary-desc{font-size:12px;color:#64748b;min-width:0;overflow-wrap:anywhere}
.contact-secondary-grid .contact-arrow{font-size:16px}
@media(max-width:900px){
 .hero-inner{padding:28px 28px 29px;display:flex;flex-direction:row;align-items:center;gap:16px}
 .hero-logo{flex-basis:70px;width:70px;height:70px;max-width:none;padding:0;align-self:center}
 .hero-logo img{width:66px;height:66px}
 .hero h1{font-size:clamp(26px,3.8vw,35px)}
 .hero-intro{font-size:14px}
 .contact-section .section-container{padding:30px 28px 34px}
 .contact-secondary-grid{grid-template-columns:1fr 1fr}
 .contact-secondary-grid>a:first-child{grid-column:1/-1}
}
@media(max-width:680px){
 .brand,.brand-name{font-size:18px}
 .hero-inner{padding:26px 18px 25px;display:block}
 .hero-logo{display:none}
 .hero .greeting{font-size:11px;margin-bottom:8px}
 .hero h1{font-size:clamp(27px,7.4vw,37px)}
 .hero-role{font-size:12.5px;margin-top:9px}
 .hero-intro{font-size:13.5px;margin-top:11px}
 .hero-actions{margin-top:16px;gap:8px}
 .hero-actions a{font-size:11px;padding:9px 10px}
 .hero-location{font-size:11px;margin-top:11px}
 .contact-section .section-container{padding:27px 18px 31px}
 .contact-section .section-label{margin-bottom:17px}
 .contact-primary-grid{grid-template-columns:1fr;gap:10px}
 .contact-secondary-grid{grid-template-columns:1fr;gap:9px}
 .contact-secondary-grid>a:first-child{grid-column:auto}
}
@media(max-width:360px){
 .brand,.brand-name{font-size:16px}
 .hero h1{font-size:27px}
 .contact-card{padding:13px}
 .contact-secondary-grid>a{padding:12px}
}
@media(prefers-reduced-motion:reduce){.contact-card,.contact-secondary-grid>a{transition:none;transform:none!important}}


/* Approved brand icons + gentle motion; SVGs bundled inline, no runtime dependency. */
:root{--brand-whatsapp:#25d366;--brand-telegram:#229ed9;--brand-linkedin:#0a66c2;--brand-github:#24292f;--utility-blue:#1d4ed8}
.brand-logo-svg,.utility-icon-svg{width:21px;height:21px;display:block;flex:none}
.brand-logo-svg{fill:currentColor}
.utility-blue,.section-heading-icon{color:var(--utility-blue)}
.brand-whatsapp{color:var(--brand-whatsapp)}
.brand-telegram{color:var(--brand-telegram)}
.brand-linkedin{color:var(--brand-linkedin)}
.brand-github{color:var(--brand-github)}
.contact-card-icon{transition:transform .18s ease-out,background .18s ease-out,border-color .18s ease-out}
.contact-card.brand-whatsapp .contact-card-icon{color:var(--brand-whatsapp);background:#ecfff2;border-color:#bfead0}
.contact-card.brand-telegram .contact-card-icon{color:var(--brand-telegram);background:#effaff;border-color:#c9e9f8}
.contact-card.brand-whatsapp:hover{border-color:#b9e4c8;background:#f2fff7}
.contact-card.brand-telegram:hover{border-color:#b7ddef;background:#f1fbff}
.contact-secondary-grid>a{transition:transform .18s ease-out,background .18s ease-out,border-color .18s ease-out,box-shadow .18s ease-out}
.contact-card,.featured-project,.featured-open,.hero-actions a,.nav-cv,.contact-secondary-grid>a{transition-duration:.18s}
.contact-card:hover,.contact-secondary-grid>a:hover,.featured-project:hover{transform:translateY(-2px)}
.contact-secondary-grid>a:hover{box-shadow:0 8px 20px rgba(15,23,42,.07)}
.contact-card-icon .brand-logo-svg,.contact-inline-icon .brand-logo-svg,.contact-inline-icon .utility-icon-svg,.action-icon .utility-icon-svg{transition:transform .18s ease-out}
.contact-card:hover .brand-logo-svg,.contact-secondary-grid>a:hover .contact-inline-icon svg,.hero-actions a:hover .action-icon svg,.nav-cv:hover .action-icon svg{transform:scale(1.085)}
.contact-arrow{display:inline-block;transition:transform .18s ease-out}
.contact-card:hover .contact-arrow,.contact-secondary-grid>a:hover .contact-arrow{transform:translate(2px,-2px)}
.contact-inline-icon{width:29px;height:29px;border-radius:9px;background:#f3f7ff;display:inline-grid;place-items:center;flex:none}
.contact-inline-icon.brand-linkedin{background:#e9f4ff}
.contact-inline-icon.brand-github{background:#eef0f3}
.contact-inline-icon svg{width:17px;height:17px}
.contact-card-icon svg{width:23px;height:23px}
.contact-secondary-grid>a{min-height:62px}
.contact-secondary-grid>a .contact-secondary-desc{font-size:11.5px}
.contact-secondary-grid>a .contact-arrow{margin-left:auto}
.section-label h2{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.section-heading-icon{width:34px;height:34px;border-radius:10px;background:#edf4ff;display:inline-grid;place-items:center;flex:none}
.section-heading-icon svg{width:19px;height:19px}
.action-icon{width:17px;height:17px;display:inline-grid;place-items:center;flex:none}
.action-icon svg{width:17px;height:17px}
.nav-cv .action-icon{color:#fff}
.hero-actions .action-primary .action-icon{color:#fff}
.hero-actions a{gap:8px}
.nav-cv{display:inline-flex;gap:8px;align-items:center;justify-content:center}
@media(max-width:900px){.contact-secondary-grid>a{min-height:56px}}
@media(max-width:680px){.section-heading-icon{width:30px;height:30px}.section-heading-icon svg{width:18px;height:18px}.contact-secondary-grid>a{min-height:54px}}
/* Scroll fade is progressive enhancement: invisible only while JS is actively observing. */
.motion-pending{opacity:0;transform:translateY(8px)}
.motion-pending.motion-visible{opacity:1;transform:translateY(0);transition:opacity .38s ease-out,transform .38s ease-out}
@media(prefers-reduced-motion:reduce){
 .contact-card,.contact-secondary-grid>a,.featured-project,.featured-open,.hero-actions a,.nav-cv,.contact-card-icon,.contact-arrow,.brand-logo-svg,.utility-icon-svg,.motion-pending,.motion-pending.motion-visible{animation:none!important;transition:none!important;transform:none!important;opacity:1!important}
}
@media print{.motion-pending,.motion-pending.motion-visible{opacity:1!important;transform:none!important}}
@media(max-width:680px){.nav-cv{display:none}}

/* At desktop widths, put section heading icons into the left gutter to keep titles compact. */
@media(min-width:901px){
 .content-section:not(.contact-section) .section-label h2{display:block;position:relative}
 .content-section:not(.contact-section) .section-heading-icon{position:absolute;left:-43px;top:3px}
}

/* Approved Margo logo scaling — visual size only; site content unchanged.
   Desktop: 156px, tablet: 128px. On small mobile screens the hero
   logo remains hidden to avoid increasing page height; the header mark remains visible. */
@media(min-width:961px){
  .hero-logo{flex:0 0 156px;width:156px;height:156px;max-width:156px}
  .hero-logo img{width:156px;height:156px}
}
@media(min-width:681px) and (max-width:960px){
  .hero-logo{flex:0 0 128px;width:128px;height:128px;max-width:128px;padding:0}
  .hero-logo img{width:128px;height:128px}
}
@media(max-width:680px){
  .hero-logo{display:none}
}

/* HR case-study readability and accessibility enhancements; preserves approved layout. */
.project-case-study{display:grid;gap:10px;margin:0 0 16px;padding:14px;border:1px solid #dce6f5;border-radius:12px;background:#f8fbff}
.case-study-row{display:grid;grid-template-columns:minmax(0,125px) minmax(0,1fr);gap:10px;align-items:start}
.case-study-row h4{margin:0;color:#1d4ed8;font-size:12px;font-weight:700;line-height:1.55}
.case-study-row p{margin:0;color:#334155;font-size:13px;line-height:1.65}
@media(max-width:600px){.case-study-row{grid-template-columns:1fr;gap:2px}.project-case-study{padding:12px}}
:where(a,button,[tabindex="0"],summary):focus-visible{outline:3px solid #1d4ed8;outline-offset:3px}
@media(prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto!important}}

/* Portfolio typography audit — reading comfort with the existing design intact.
   Section/hero headings intentionally keep their established size and font family.
   2026-11-13: Increased small text where it affects reading or touch actions. */
body{font-size:16px}
.nav-links a{font-size:14px;font-weight:600}
.nav-cv{font-size:13px}
.hero .greeting{font-size:12px}
.hero-role{font-size:15px}
.hero-intro{font-size:16px}
.hero-location{font-size:13px}
.hero-actions a{font-size:13px}
.section-lead,.contact-intro{font-size:14.5px}
.about-paragraph{font-size:15.5px}
.skill-group h4{font-size:13px}
.skill-group .skill-tags span{font-size:12px}
.job-title-row h3{font-size:17px}
.job-dates{font-size:12.5px}
.job-company{font-size:13.5px}
.job-description{font-size:14px}
.job-bullets{font-size:13.5px;line-height:1.7}
.featured-project h4{font-size:17px}
.featured-project>p{font-size:14px;line-height:1.65}
.featured-focus{font-size:13px}
.featured-open{font-size:13px}
.project-filters .filter,.project-filters button{font-size:12.5px}
.project-card h3{font-size:17.5px}
.project-card>p{font-size:14px;line-height:1.65}
.project-tags span{font-size:11.5px}
.education-card h3{font-size:17px}
.education-card p{font-size:14.5px}
.education-card>span{font-size:13px}
.contact-card-copy strong{font-size:16px}
.contact-card-copy small{font-size:13px}
.contact-secondary-title{font-size:14px}
.contact-secondary-grid>a .contact-secondary-desc{font-size:12.5px}
.dialog-lead{font-size:15px}
.case-study-row p{font-size:14px}

/* WhatsApp: calm recognisable green, readable title and restrained neutral surfaces.
   The previous #25d366 on pale background gave weak text/icon contrast. */
:root{--brand-whatsapp:#117b63}
.contact-card.brand-whatsapp{background:#f7fbf9;border-color:#dcebe5;color:#172b3d}
.contact-card.brand-whatsapp .contact-card-icon{background:#edf8f4;border-color:#d3e9e1;color:var(--brand-whatsapp)}
.contact-card.brand-whatsapp .contact-card-copy strong{color:#172b3d}
.contact-card.brand-whatsapp .contact-arrow{color:#1d4ed8}
.contact-card.brand-whatsapp:hover{background:#eff8f4;border-color:#bdded0}

/* Tablet navigation is collapsed; allow large readable links in its dropdown. */
@media(min-width:681px) and (max-width:960px){
 .nav-links a{font-size:15px}
}
/* Between tablet and full desktop, preserve navigation fit. */
@media(min-width:961px) and (max-width:1120px){
 .header-inner{gap:18px;padding-inline:22px}
 .nav-links{gap:15px}
 .nav-links a{font-size:13.5px}
}
@media(max-width:680px){
 .nav-links a{font-size:15px}
 .hero .greeting{font-size:11.5px}
 .hero-role{font-size:13.5px}
 .hero-intro{font-size:14.5px}
 .hero-location{font-size:12px}
 .hero-actions a{font-size:12px;padding:9px 10px}
 .section-lead{font-size:14px}
 .about-paragraph{font-size:15px}
 .skill-group .skill-tags span{font-size:12px}
 .job-description,.featured-project>p,.project-card>p{font-size:14px}
 .job-bullets{font-size:13.5px}
 .contact-intro{font-size:14.5px}
}
@media(max-width:360px){
 .hero-actions a{font-size:11.5px;padding:9px 9px}
}

/* Compact bilingual switch: always visible, EN default on /. */
.lang-switch{direction:ltr;display:inline-flex;align-items:center;gap:3px;flex:none;padding:4px;border:1px solid #d8e4f8;border-radius:999px;background:#f7faff;white-space:nowrap;box-shadow:0 2px 8px rgba(29,78,216,.045)}
.lang-switch-globe{font-size:13px;line-height:1;padding:0 4px;color:#1d4ed8}
.lang-option{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:30px;padding:4px 8px;font:700 12px/1.2 system-ui,Arial,sans-serif;text-decoration:none;color:#475569;border-radius:999px;transition:background-color .18s ease,color .18s ease,box-shadow .18s ease}
.lang-option[lang="fa-AF"]{font-family:Tahoma,'Noto Sans Arabic',Arial,sans-serif;font-size:12px}
.lang-option:hover{background:#e5edff;color:#1d4ed8}
.lang-option.active,.lang-option[aria-current="page"]{color:white;background:#1d4ed8;box-shadow:0 3px 7px rgba(29,78,216,.14)}
@media(max-width:1000px){.header-inner{gap:14px}.nav-links{gap:15px}}
@media(max-width:680px){.header-inner{gap:8px}.lang-switch{margin-left:auto}.lang-switch-globe{display:none}.lang-option{padding:4px 6px;min-width:29px;min-height:29px}}
@media(max-width:360px){.brand{font-size:15px}.brand-mark{width:21px;height:21px}.lang-option{padding:4px 5px}}
@media(prefers-reduced-motion:reduce){.lang-option{transition:none!important}}

/* Compact three-language selector, preserving the approved portfolio layout. */
.lang-option[lang="ps-AF"]{font-family:"Noto Sans Arabic",Tahoma,Arial,sans-serif;font-weight:700;font-size:12px}
@media(max-width:680px){
 .lang-switch{gap:2px;padding:3px}
 .lang-option{min-height:34px;min-width:32px;padding:5px 6px}
 .header-inner{gap:7px}
}
@media(max-width:360px){
 .lang-option{min-width:29px;padding-inline:4px}
 .brand-mark{width:22px;height:22px}
 .header-inner{gap:5px}
}
