/* ============================================================
   MUSTAFIZUR RAHMAN — PORTFOLIO
   Design concept: "System Blueprint"
   A backend/AI engineer's practice, rendered as a living
   architecture diagram — blueprint grid, schema annotations,
   nodes and signal lines standing in for section structure.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --navy-950: #081422;
    --navy-900: #0e1f35;
    --navy-850: #122844;
    --navy-800: #16324f;
    --blueprint-line: rgba(148, 197, 255, 0.10);
    --blueprint-line-strong: rgba(148, 197, 255, 0.22);
    --ink-100: #eaf2ff;
    --ink-300: #c3d4ec;
    --ink-400: #90a9c7;
    --ink-500: #6c85a6;
    --amber-500: #f0a857;
    --amber-400: #f6c088;
    --teal-400: #5fe1c9;
    --coral-500: #ff6f59;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --max-w: 1180px;
    --radius: 4px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--navy-950);
    color: var(--ink-100);
    font-family: var(--font-body);
    line-height: 1.6;
    background-image:
        linear-gradient(var(--blueprint-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
    background-size: 44px 44px;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
}

/* -------- crosshair / registration marks -------- */
.crosshair {
    position: relative;
}

.crosshair::before,
.crosshair::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid var(--blueprint-line-strong);
}

.crosshair::before {
    top: -2px;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.crosshair::after {
    top: -2px;
    right: 0;
    border-left: none;
    border-bottom: none;
}

/* -------- section labels (blueprint tags) -------- */
.spec-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--amber-500);
    margin-bottom: 18px;
}

.spec-label::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--amber-500);
}

.section {
    padding: 110px 0;
    position: relative;
    border-bottom: 1px dashed var(--blueprint-line-strong);
}

.section:last-of-type {
    border-bottom: none;
}

.section-head {
    max-width: 640px;
    margin-bottom: 56px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink-100);
}

.section-sub {
    color: var(--ink-400);
    font-size: 16px;
    margin-top: 12px;
    max-width: 520px;
}


/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(8, 20, 34, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--blueprint-line-strong);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--ink-100);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal-400);
    box-shadow: 0 0 8px var(--teal-400);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: .04em;
    color: var(--ink-400);
    transition: color .2s ease;
    position: relative;
}

.nav-links a:not(.nav-cta):hover,
.nav-links a:not(.nav-cta):focus-visible {
    color: var(--ink-100);
}

.nav-links a:not(.nav-cta)::before {
    content: attr(data-index);
    color: var(--amber-500);
    margin-right: 6px;
}

.nav-cta {
    border: 1px solid var(--amber-500);
    color: var(--amber-500) !important;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: background .2s ease, color .2s ease;
}

.nav-cta::before {
    display: none;
}

.nav-cta:hover,
.nav-cta:focus-visible {
    background: var(--amber-500);
    color: var(--navy-950) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink-100);
    transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width:860px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--navy-900);
        border-bottom: 1px solid var(--blueprint-line-strong);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }

    .nav-links.open {
        max-height: 420px;
    }

    .nav-links a {
        width: 100%;
        padding: 16px 28px;
        border-bottom: 1px solid var(--blueprint-line);
    }

    .nav-cta {
        margin: 16px 28px;
        display: inline-block;
    }

    .nav-toggle {
        display: flex;
    }
}


/* 
NavVar CSS ENDS here
*/






/* ================= HERO OR HEADER SECTION ================= */
.hero {
    padding: 168px 0 120px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--teal-400);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-eyebrow .ping {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal-400);
    box-shadow: 0 0 0 0 rgba(95, 225, 201, .6);
    animation: ping 2s infinite;
}

@keyframes ping {
    0% {
        box-shadow: 0 0 0 0 rgba(95, 225, 201, .5);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(95, 225, 201, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(95, 225, 201, 0);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(38px, 5.6vw, 64px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink-100);
}

.hero-title .accent {
    color: var(--amber-500);
}

.hero-desig {
    font-family: var(--font-mono);
    font-size: clamp(15px, 1.8vw, 19px);
    color: var(--ink-300);
    margin-top: 20px;
    border-left: 2px solid var(--amber-500);
    padding-left: 14px;
}

.hero-text {
    margin-top: 24px;
    color: var(--ink-400);
    max-width: 520px;
    font-size: 16px;
}

.hero-actions {
    margin-top: 38px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: .04em;
    padding: 14px 24px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.btn-primary {
    background: var(--amber-500);
    color: var(--navy-950);
    border: 1px solid var(--amber-500);
}

.btn-primary:hover {
    background: var(--amber-400);
    transform: translateY(-2px);
}

.btn-ghost {
    border: 1px solid var(--blueprint-line-strong);
    color: var(--ink-100);
}

.btn-ghost:hover {
    border-color: var(--teal-400);
    color: var(--teal-400);
    transform: translateY(-2px);
}

.hero-socials {
    margin-top: 44px;
    display: flex;
    gap: 14px;
}

.social-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--blueprint-line-strong);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-400);
    transition: all .2s ease;
}

.social-btn:hover {
    color: var(--navy-950);
    background: var(--teal-400);
    border-color: var(--teal-400);
    transform: translateY(-3px);
}

.social-btn svg {
    width: 18px;
    height: 18px;
}

/* ---- hero diagram (signature element) ---- */
/* .diagram-wrap {
    position: relative;
    aspect-ratio: 1/1;
    max-width: 480px;
    margin: 0 auto;
}

.diagram-wrap svg {
    width: 100%;
    height: 100%;
} */




/* 
Updated Hero diagram for size

*/

/* ---------- Hero Architecture Diagram ---------- */

.diagram-wrap {
    position: relative;

    width: 100%;
    max-width: 640px;
    /* was 480px */

    aspect-ratio: 1/1;

    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: center;
}

.diagram-wrap svg {
    width: 100%;
    height: 100%;
    display: block;
}


/*
Ended here  
 */

/* .node-label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .06em;
    fill: var(--ink-300);
    text-transform: uppercase;
}

.node-center-label {
    font-family: var(--font-mono);
    font-size: 11px;
    fill: var(--navy-950);
    font-weight: 600;
} */



/* 
Text readable css 
*/
.node-label {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    fill: var(--ink-300);
}

/* .node-center-label {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    fill: var(--navy-950);
} */


.node-center-label {
    font-family: var(--font-mono);
    fill: var(--navy-950);
    text-anchor: middle;
    dominant-baseline: middle;
}

.node-center-label tspan:first-child {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .05em;
}

.node-center-label tspan:not(:first-child) {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
}

/* 
Text readable css Ended here
*/

/* .signal-line {
    stroke: var(--blueprint-line-strong);
    stroke-width: 1;
    fill: none;
    stroke-dasharray: 4 4;
} */


.signal-line {
    stroke: var(--blueprint-line-strong);
    stroke-width: 2.5;
    stroke-dasharray: 8 5;
}


.signal-pulse {
    fill: var(--amber-500);
}

@media (prefers-reduced-motion:no-preference) {
    .pulse-anim {
        animation: travel 3.2s linear infinite;
    }
}

@keyframes travel {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* @media (max-width:900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .diagram-wrap {
        margin-top: 20px;
        max-width: 360px;
    }
} */



@media (max-width:900px) {

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .diagram-wrap {
        max-width: 500px;
        width: 100%;
        margin: auto;
    }

}

@media (max-width:600px) {

    .diagram-wrap {
        max-width: 360px;
    }

    .node-label {
        font-size: 11px;
    }

    .node-center-label {
        font-size: 13px;
    }

}


/* 
HERO OR HEADER SECTION CSS ENDS HERE
*/



/* ================= ABOUT ================= */
.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 56px;
    align-items: start;
}

.about-photo-frame {
    position: relative;
    border: 1px solid var(--blueprint-line-strong);
    padding: 14px;
    border-radius: var(--radius);
    background: var(--navy-900);
}

.about-photo-frame img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    filter: grayscale(15%) contrast(1.02);
    border-radius: 2px;
}

.about-photo-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-500);
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
}

.about-body p {
    color: var(--ink-300);
    margin-bottom: 18px;
    font-size: 16px;
}

.about-body strong {
    color: var(--ink-100);
    font-weight: 600;
}

.pull-quote {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--amber-400);
    border-left: 2px solid var(--amber-500);
    padding-left: 18px;
    margin: 28px 0;
    font-weight: 500;
}

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.interest-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--teal-400);
    border: 1px solid rgba(95, 225, 201, 0.3);
    padding: 7px 12px;
    border-radius: var(--radius);
}

/* ABOUT SECTION CSS ENDS HERE */





/* ================= SKILLS ================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.skill-card {
    background: var(--navy-900);
    border: 1px solid var(--blueprint-line-strong);
    border-radius: var(--radius);
    padding: 28px 24px;
}

.skill-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.skill-card-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
}

.skill-index {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-500);
}

.skill-bar-row {
    margin-bottom: 14px;
}

.skill-bar-row:last-child {
    margin-bottom: 0;
}

.skill-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--ink-300);
    margin-bottom: 6px;
    font-family: var(--font-mono);
}

.skill-bar-track {
    height: 5px;
    background: var(--navy-850);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal-400), var(--amber-500));
    border-radius: 3px;
    width: var(--w, 70%);
}

@media (max-width:900px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}



/* 
Skills CSS ENDS HERE
*/

/* ================= EDUCATION / EXPERIENCE (timeline) ================= */
.timeline{
  position:relative;
  padding-left:32px;
  border-left:1px dashed var(--blueprint-line-strong);
}
.timeline-item{
  position:relative;
  padding-bottom:44px;
}
.timeline-item:last-child{padding-bottom:0;}
.timeline-item::before{
  content:"";
  position:absolute;
  left:-38px; top:4px;
  width:11px; height:11px;
  border-radius:50%;
  background:var(--navy-950);
  border:2px solid var(--amber-500);
}
.timeline-period{
  font-family:var(--font-mono);
  font-size:12px;
  color:var(--amber-500);
  letter-spacing:.05em;
  margin-bottom:6px;
}
.timeline-title{
  font-family:var(--font-display);
  font-size:19px;
  font-weight:600;
  color:var(--ink-100);
}
.timeline-org{
  color:var(--teal-400);
  font-size:14px;
  margin-top:2px;
  font-family:var(--font-mono);
}
.timeline-desc{
  color:var(--ink-400);
  margin-top:10px;
  font-size:15px;
  max-width:600px;
}

.two-col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
}
@media (max-width:860px){
  .two-col{grid-template-columns:1fr; gap:60px;}
}

/* 
Education And Experience CSS ENDS Here
*/



/* Achievement CSS Starts */

/* Achievement CSS ENds */



/* ================= PROJECTS ================= */
.projects-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:28px;
}
.project-card{
  background:var(--navy-900);
  border:1px solid var(--blueprint-line-strong);
  border-radius:var(--radius);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .25s ease, border-color .25s ease;
}
.project-card:hover{
  transform:translateY(-6px);
  border-color:var(--amber-500);
}
.project-thumb{
  aspect-ratio:16/10;
  overflow:hidden;
  position:relative;
  border-bottom:1px solid var(--blueprint-line-strong);
}
.project-thumb img{
  width:100%; height:100%; object-fit:cover;
  transition:transform .4s ease;
}
.project-card:hover .project-thumb img{transform:scale(1.06);}
.project-index{
  position:absolute; top:12px; left:12px;
  font-family:var(--font-mono);
  font-size:11px;
  background:rgba(8,20,34,0.8);
  color:var(--amber-500);
  padding:4px 8px;
  border-radius:2px;
}
.project-body{
  padding:22px 22px 26px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.project-name{
  font-family:var(--font-display);
  font-size:19px;
  font-weight:600;
  margin-bottom:10px;
}
.project-desc{
  color:var(--ink-400);
  font-size:14.5px;
  flex:1;
  margin-bottom:20px;
}
.project-stack{
  display:flex; flex-wrap:wrap; gap:8px;
  margin-bottom:20px;
}
.stack-chip{
  font-family:var(--font-mono);
  font-size:11px;
  color:var(--ink-300);
  border:1px solid var(--blueprint-line-strong);
  padding:4px 9px;
  border-radius:2px;
}
.project-more{
  font-family:var(--font-mono);
  font-size:13px;
  color:var(--amber-500);
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition:gap .2s ease;
}
.project-card:hover .project-more{gap:12px;}

@media (max-width:980px){
  .projects-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:640px){
  .projects-grid{grid-template-columns:1fr;}
}

/* Project CSS ENDS Here*/




/* ================= CONTACT ================= */
.contact-panel {
    background: var(--navy-900);
    border: 1px solid var(--blueprint-line-strong);
    border-radius: var(--radius);
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--blueprint-line-strong);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-400);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 18px;
    height: 18px;
}

.contact-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-500);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.contact-value {
    color: var(--ink-100);
    font-size: 15px;
    margin-top: 2px;
}

.contact-value a:hover {
    color: var(--amber-500);
}



.contact-cta-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-inline-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.contact-inline-form input,
.contact-inline-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    /* background: var(--surface-color); */
    /* color: var(--text-color); */
    font-size: 1rem;
    font-family: inherit;
    transition: .3s;
}

.contact-inline-form input:focus,
.contact-inline-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(247, 212, 58, 0.15);
}

.contact-inline-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-inline-form .btn {
    align-self: flex-start;
}


/* Ended here */


/* 
for responsive form css added
*/
@media (max-width:768px) {

    .contact-inline-form .btn {
        width: 100%;
        justify-content: center;
    }

}


/* 
responsive css ended for form
*/


.contact-cta-side p {
    color: var(--ink-400);
    margin-bottom: 22px;
    font-size: 15px;
}

@media (max-width:780px) {
    .contact-panel {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }

    .contact-cta-side {
        border-left: none;
        border-top: 1px dashed var(--blueprint-line-strong);
        padding-left: 0;
        padding-top: 28px;
    }
}


/* Contact Section CSS ENDS HERE */




/* ================= FOOTER CSS ================= */
.footer {
    padding: 40px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-500);
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-400);
}

.footer-socials a:hover {
    color: var(--amber-500);
}

/* 
FOOTER SECTION CSS ENDS HERE
*/






/* ---- reveal-on-scroll ---- */
/* .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion:reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .pulse-anim {
        animation: none;
    }

    .ping {
        animation: none;
    }
} */

/* Reveal on Scroll ENDS HERE */




/* ================= PROJECT DETAIL PAGE ================= */
.detail-hero{
  padding:150px 0 60px;
}
.back-link{
  font-family:var(--font-mono);
  font-size:13px;
  color:var(--teal-400);
  display:inline-flex; align-items:center; gap:8px;
  margin-bottom:32px;
}
.back-link:hover{color:var(--amber-500);}
.detail-title{
  font-family:var(--font-display);
  font-size:clamp(30px, 5vw, 48px);
  font-weight:700;
  max-width:760px;
}
.detail-tagline{
  color:var(--ink-400);
  margin-top:16px;
  max-width:600px;
  font-size:16px;
}
.detail-links{
  display:flex; gap:16px; margin-top:32px; flex-wrap:wrap;
}
.detail-image{
  border:1px solid var(--blueprint-line-strong);
  border-radius:var(--radius);
  overflow:hidden;
  margin:50px 0;
}
.detail-image img{width:100%; display:block;}
.detail-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:56px;
}
.detail-block{margin-bottom:44px;}
.detail-block:last-child{margin-bottom:0;}
.detail-block h3{
  font-family:var(--font-display);
  font-size:20px;
  margin-bottom:14px;
  color:var(--ink-100);
}
.detail-block p{color:var(--ink-300); font-size:15.5px;}
.detail-side{
  background:var(--navy-900);
  border:1px solid var(--blueprint-line-strong);
  border-radius:var(--radius);
  padding:28px;
  height:fit-content;
  position:sticky;
  top:100px;
}
.detail-side h4{
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--ink-500);
  margin-bottom:14px;
}
.detail-side .stack-chip{margin-bottom:8px;}
.detail-side .project-stack{margin-bottom:26px;}
@media (max-width:900px){
  .detail-grid{grid-template-columns:1fr;}
  .detail-side{position:static;}
}





/* ---- reveal-on-scroll ---- */
.reveal
{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .6s ease, transform .6s ease;

}
.reveal.in{opacity:1; transform:translateY(0);}

@media (prefers-reduced-motion:reduce)
{
  .reveal{opacity:1; transform:none; transition:none;}
  .pulse-anim{animation:none;}
  .ping{animation:none;}
}

/* focus visibility */
a:focus-visible, button:focus-visible
{
  outline:2px solid var(--teal-400);
  outline-offset:2px;
}

/* Reveal on Scroll ENDS HERE */
