/* Portfolio adaptation — retains original design tokens */
.hero-reworked{min-height:76vh;display:flex;align-items:center;padding:9rem 0 5rem;position:relative;background:radial-gradient(ellipse at 20% 20%,rgba(0,229,255,.11),transparent 55%)}
.hero-copy{max-width:760px}.hero-copy h1{font-size:clamp(2.6rem,6vw,5rem);line-height:1.22;margin:1rem 0 1.5rem}.hero-copy .lead{max-width:720px}.hero-btns{display:flex;gap:1rem;flex-wrap:wrap}
.intro-label{font-size:.84rem;letter-spacing:1px;font-weight:800;color:#39d8e8;margin-bottom:.85rem}
.subhero{padding:9rem 0 4rem;background:radial-gradient(circle at 75% 10%,rgba(0,230,255,.1),transparent 60%)}.subhero h1{font-size:clamp(2.5rem,5vw,4rem);margin:.4rem 0 1rem}.subhero .lead{max-width:780px}
.section-heading{margin-bottom:2rem}.section-heading p{color:#aabbd1;max-width:760px}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.4rem}
.project-card{overflow:hidden;border-radius:20px;border:1px solid rgba(120,170,200,.19);background:#111e33;box-shadow:0 20px 40px rgba(0,0,0,.12);display:flex;flex-direction:column}.project-visual{height:265px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;text-align:center;padding:1rem;background:#123047}.project-visual strong{display:block;font-size:clamp(2rem,3vw,3.2rem);font-weight:900;letter-spacing:1px;color:white;line-height:1.1}.project-visual strong span{display:block;color:#68efc2}.project-visual small{margin-top:.6rem;color:#d0eee9}.nkf-visual{background:linear-gradient(135deg,#084235,#0b7761 55%,#092f39)}.mabrouk-visual{background:linear-gradient(135deg,#16365a,#294e86 55%,#151d42)}.phone-visual{background:linear-gradient(140deg,#12203c,#353452)}.visual-tag{position:absolute;top:1rem;right:1rem;font-size:.7rem;color:#e7efff;background:#ffffff24;border-radius:20px;padding:.35rem .7rem}.visual-note{position:absolute;bottom:.8rem;color:#e9f5ff;font-size:.76rem;opacity:.8}.phone-pair{height:95%;display:flex;align-items:center;justify-content:center;gap:12px;direction:ltr}.phone-pair img{height:95%;max-width:44%;object-fit:cover;object-position:top;border:3px solid #7d8daa;border-radius:13px;box-shadow:0 8px 20px #0006}
.project-body{padding:1.35rem;display:flex;flex-direction:column;flex:1}.project-kicker{font-size:.78rem;color:#5bdeea;font-weight:700}.project-body h3{font-size:1.18rem;margin:.55rem 0}.project-body p:not(.project-kicker){color:#c6d4e5;font-size:.92rem;line-height:1.85}.project-links{display:flex;flex-wrap:wrap;gap:1rem;margin-top:auto;padding-top:1.25rem}.project-links a,.skill-tile a{color:#69e3f4;font-weight:700;text-decoration:none}.project-links a:hover,.skill-tile a:hover{text-decoration:underline}
.skills-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2rem}.skill-tile{padding:1.7rem;border-radius:16px;background:#10223b;border:1px solid rgba(100,180,210,.19)}.skill-tile h3{margin:0 0 .8rem}.skill-tile p{color:#c0d1e0;line-height:1.9}.dark-section{background:#081528}.next-section,.readable{max-width:900px}.readable h2{margin-top:1.4rem}.readable p{line-height:2;color:#b8c9d9}.small-note{margin-top:1.4rem;color:#9cb2c9}
@media(max-width:950px){.project-grid,.skills-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){.project-grid,.skills-grid{grid-template-columns:1fr}.hero-reworked{min-height:70vh;padding:7rem 0 4rem}.subhero{padding:7rem 0 3rem}.project-visual{height:235px}.hero-copy h1{font-size:2.6rem}}

/* Visitor-facing project navigation and project detail pages */
.project-detail-link{display:flex;flex-direction:column;gap:9px;border-radius:18px;padding:24px;background:#10243b;border:1px solid rgba(126,188,220,.25);text-decoration:none;transition:transform .2s,border-color .2s}
.project-detail-link:hover{transform:translateY(-4px);border-color:#5bd9ed}
.project-detail-link strong{color:#f5fbff;font-size:1.12rem}
.project-detail-link span{color:#bcd4df;line-height:1.7}
.detail-intro{padding:8rem 0 2.5rem;background:radial-gradient(ellipse at 20% 10%,rgba(0,229,255,.11),transparent 60%)}
.detail-intro h1{font-size:clamp(2rem,5vw,3.6rem);line-height:1.3;margin:0 0 1.2rem;color:#fff}
.detail-intro p{color:#c8d9e7;max-width:760px;line-height:2}
.detail-actions{display:flex;gap:13px;flex-wrap:wrap;margin-top:20px}
.detail-action{display:inline-flex;padding:12px 21px;border:1px solid #63dfea;border-radius:12px;color:#a1f4fd;text-decoration:none;font-weight:700}
.detail-action:hover{background:#17455b}
.detail-layout{padding:3rem 0 5rem;background:#081528}
.detail-layout h2{color:#fff;margin:0 0 1.1rem}
.detail-layout p,.detail-layout li{color:#cbd8e5;line-height:2}
.detail-shots{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:20px;margin:25px 0 40px}
.detail-shots img{display:block;width:100%;max-height:580px;object-fit:contain;border-radius:18px;background:#111c2c;border:1px solid #314c61}
.detail-back{display:inline-block;margin:24px 0;color:#77dfeb}
