/* styles.css */
/*  use of 'rem' instead of 'px' maintain better scaling, 1rem=16px*/
/* for responsive site (avoid overflow of frames) treat boxes as border -box*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    }
:root {
    --header-background: #fff;
    --page-background: #474f66; /* #474f66 is bit dark easy on eye shae*/
    --page-background-alt: #3d4358;
    --site-color: hsl(39, 50%, 54%);
    --site-color-strong: hsl(39, 60%, 48%);
    --text-color: #fff;
    --text-muted: rgba(255, 255, 255, 0.75);
    --header-height: 3.8rem;
    /* Inter as the modern sans of choice; system-ui stack as a privacy- and
       perf-friendly fallback (no Google Fonts CDN per CLAUDE.md). Courier
       retained as a deliberate mono accent for stat numbers, eyebrows, and
       tool/standard names. */
    --font-sans: 'Inter', 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
}

/* prevent the fixed header from overlapping section content
   when users follow #anchor links */
html {
    scroll-padding-top: var(--header-height);
}

/* keep images inside their box on every viewport */
img {
    max-width: 100%;
    height: auto;
}

/*  use font size as % eqv. to 10px to ease the use of rem, i.e., 16px = 1.6rem*/
html {
    font-size: 62.5%;
}

body {
    min-height: 100vh;
    font-family: var(--font-sans);
    background-color: var(--page-background);
    /* fixed header is var(--header-height) tall; nudge content below it */
    padding-top: var(--header-height);
}

/*  font styles*/

h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    color: #000;
    font-family: var(--font-sans);
    font-weight: bolder;
    text-transform: none;
}

h2 {
    font-size: 2.4rem;
    line-height: 2;
    color: var(--text-color);
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: none;
}


h3 {
    font-size: 1.8rem;
    line-height: 1.8;
    color:var(--text-color);
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: none;
}

p {
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    font-family: var(--font-sans);
    text-align: justify;
}

a {
    cursor: pointer;
    
}

    
.header-main{
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background-color:var(--header-background);
    display:flex;
    /* justify-content: center;*/
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.15);
}

.header-main-logo{
    width: 25rem;
    height: 2.5rem;
    padding-left: 1rem;
    align-self: center;
}

.header-main-logo img{
    height: 100%;
    align-self: center;
    /*display: none;*/
}


/* nav style*/ 
nav{
    background-color: var(--header-background);    
    height: 3.8rem;
    width: 100%;
    /*position: fixed;*/
    /*margin-top: 3.8rem;*/
}

nav ul{
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
 
nav li{
    height: 3.8rem;
    
 }
 nav ul li a{
    font-size: 1.6rem;
    font-weight:bold;
    text-transform: uppercase;
 }

 nav a{
    height: 100%;
    padding: 0 3rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: black;
    font-size: 2rem;
 }
  nav a:hover{
    background-color: #5a5a5a;
    color: #fff;
  }

/* hamburger only appears on small screens — the mobile media query
   below switches it back to display: block at <=800px */
.menu-botton {
    display: none;
}

/* visible focus ring for keyboard users */
a:focus-visible,
button:focus-visible {
    outline: 0.2rem solid var(--site-color);
    outline-offset: 0.2rem;
}

/* skip-to-content link (visually hidden until focused) */
.skip-link {
    position: absolute;
    top: -10rem;
    left: 1rem;
    z-index: 2000;
    padding: 0.6rem 1.2rem;
    background: var(--site-color);
    color: #000;
    font-family: var(--font-sans);
    font-size: 1.4rem;
    text-decoration: none;
    border-radius: 0.3rem;
}
.skip-link:focus {
    top: 1rem;
}

.sidebar{
    position: fixed;
    top:0;
    right: 0;
    height: 100vh;
    width: 25rem;
    z-index: 1000;
    background-color: var(--header-background);
    backdrop-filter: blur(1rem);
    box-shadow: -1rem 0 1rem rgb(0,0,0,0.1rem);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}
.sidebar li{
    width: 100%;
}
.sidebar a{
    width: 100%;
}

/* ---------- HERO ---------- */
.hero {
    width: 100%;
    max-width: 110rem;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.hero-portrait {
    flex: 0 0 22rem;
    display: flex;
    justify-content: center;
}

.hero-portrait img {
    width: 22rem;
    height: 22rem;
    object-fit: cover;
    border-radius: 50%;
    border: 0.4rem solid var(--site-color);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.35);
}

.hero-content {
    flex: 1 1 50rem;
    min-width: 28rem;
}

.hero-name {
    font-size: 4.2rem;
    line-height: 1.1;
    color: var(--text-color);
    font-family: var(--font-sans);
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.hero-tagline {
    font-size: 1.8rem;
    line-height: 1.4;
    color: var(--site-color);
    font-family: var(--font-sans);
    font-weight: 600;
    margin-bottom: 1.6rem;
    text-align: left;
}

.hero-pitch {
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    font-family: var(--font-sans);
    text-align: left;
    margin-bottom: 2.4rem;
    max-width: 60rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.8rem;
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0.4rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    cursor: pointer;
}
.btn-primary {
    background-color: var(--site-color);
    color: #1a1a1a;
}
.btn-primary:hover {
    background-color: var(--site-color-strong);
    transform: translateY(-0.2rem);
    box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.3);
}
.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 0.15rem solid var(--text-color);
}
.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--page-background);
    transform: translateY(-0.2rem);
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-sans);
    font-size: 1.3rem;
    color: var(--text-muted);
}
.hero-status::before {
    content: '';
    width: 0.9rem;
    height: 0.9rem;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 0 0.3rem rgba(74, 222, 128, 0.25);
}

/* ---------- STAT TILES ---------- */
.stats {
    width: 100%;
    max-width: 110rem;
    margin: 0 auto;
    padding: 0 2rem 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}
.stat {
    background: var(--page-background-alt);
    border-left: 0.3rem solid var(--site-color);
    padding: 1.6rem 2rem;
    border-radius: 0.4rem;
}
.stat-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--site-color);
    line-height: 1;
    margin-bottom: 0.6rem;
}
.stat-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 1.3rem;
    color: var(--text-color);
    line-height: 1.4;
}

/* ---------- LOGO STRIP ---------- */
/* logos are shown in their original colours on a uniform white tile so
   each brand reads identically regardless of its native colour palette */
.logo-strip {
    width: 100%;
    max-width: 110rem;
    margin: 0 auto;
    padding: 2.4rem 2rem 3.2rem;
    text-align: center;
}
/* Second strip sits flush under the first — collapse the gap */
.logo-strip-secondary {
    padding-top: 0;
}
.logo-strip-label {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.6rem;
}
.logo-strip ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
}
.logo-strip li {
    display: flex;
    align-items: center;
    justify-content: center;
    /* uniform tile: every brand gets the same canvas */
    width: 18rem;
    height: 7rem;
    padding: 1rem 1.6rem;
    background: #fff;
    border-radius: 0.6rem;
    box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.logo-strip li:hover {
    transform: translateY(-0.2rem);
    box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.28);
}
.logo-strip img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ---------- ENDORSEMENT ---------- */
.endorsement {
    width: 100%;
    max-width: 90rem;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}
.endorsement blockquote {
    position: relative;
    background: var(--page-background-alt);
    border-left: 0.4rem solid var(--site-color);
    padding: 2.4rem 2.4rem 2.4rem 5rem;
    border-radius: 0.4rem;
}
.endorsement blockquote::before {
    content: '\201C';
    position: absolute;
    top: 0.4rem;
    left: 1.4rem;
    font-family: Georgia, serif;
    font-size: 6rem;
    color: var(--site-color);
    line-height: 1;
}
.endorsement p {
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    font-family: var(--font-sans);
    text-align: left;
}
.endorsement cite {
    display: block;
    margin-top: 1.2rem;
    font-size: 1.3rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-style: normal;
}
.endorsement cite a {
    color: var(--site-color);
    text-decoration: underline;
}
.endorsement cite a:hover {
    color: var(--site-color-strong);
}

/* ---------- ABOUT (text-only, portrait now lives in hero) ---------- */
.about {
    width: 100%;
    max-width: 110rem;
    margin: 0 auto;
    padding: 2rem;
}
.about h2 {
    margin-bottom: 1.2rem;
}
.about p {
    margin-bottom: 1.2rem;
    color: var(--text-color);
}
.about-skill {
    margin-top: 2rem;
    text-align: center;
}
.about-skill img {
    max-width: 100%;
    height: auto;
}
.about-skill figcaption {
    margin: 1rem auto 0;
    max-width: 56rem;
    font-size: 1.3rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-style: italic;
}

/* ---------- CLOSING CTA ---------- */
.closing-cta {
    width: 100%;
    max-width: 80rem;
    margin: 4rem auto 2rem;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--page-background-alt);
    border-radius: 0.6rem;
    box-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.18);
}
.closing-cta h2 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 3rem;
    text-align: center;
}
.closing-cta p {
    margin: 0 auto 2.4rem;
    max-width: 56rem;
    color: var(--text-color);
    text-align: center;
}
.closing-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.closing-cta-email {
    margin-top: 1.6rem;
    font-size: 1.3rem;
    color: var(--text-muted);
    text-align: center;
}
.closing-cta-email a {
    color: var(--site-color);
    text-decoration: underline;
}
.closing-cta-email a:hover {
    color: var(--site-color-strong);
}

/* ---------- WORK DEMO ---------- */
.work-demo {
    width: 100%;
    max-width: 110rem;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}
.work-demo-eyebrow {
    font-family: var(--font-mono);
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: var(--site-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.work-demo h2 {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 1.2rem;
    text-align: center;
}
.work-demo-lead {
    max-width: 64rem;
    margin: 0 auto 2.4rem;
    color: var(--text-color);
    line-height: 1.6;
}
.work-demo-cards {
    list-style: none;
    padding: 0;
    margin: 0 0 2.4rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
    text-align: left;
}
.work-demo-card {
    background: var(--page-background-alt);
    border-left: 0.3rem solid var(--site-color);
    border-radius: 0.4rem;
    padding: 1.8rem 2rem;
}
.work-demo-card h3 {
    font-size: 1.8rem;
    color: var(--site-color);
    margin-bottom: 0.4rem;
}
.work-demo-card-tag {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}
.work-demo-card p:not(.work-demo-card-tag) {
    color: var(--text-color);
    line-height: 1.5;
    font-size: 1.4rem;
}
.work-demo-card-link {
    display: inline-block;
    margin-top: 0.6rem;
    color: var(--site-color);
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
}
.work-demo-card-link:hover,
.work-demo-card-link:focus-visible {
    text-decoration: underline;
}
.work-demo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ---------- BEYOND ENGINEERING ---------- */
.beyond-engineering {
    width: 100%;
    max-width: 110rem;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}
.beyond-eyebrow {
    font-family: var(--font-mono);
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: var(--site-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.beyond-engineering h2 {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 1.2rem;
    text-align: center;
}
.beyond-lead {
    max-width: 60rem;
    margin: 0 auto 2.4rem;
    color: var(--text-color);
    line-height: 1.6;
}
.beyond-cards {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.4rem;
    text-align: left;
}
.beyond-card {
    flex: 1 1 22rem;
    max-width: 25rem;
    background: var(--page-background-alt);
    border-radius: 0.4rem;
    padding: 1.6rem 1.8rem;
}
.beyond-card h3 {
    font-size: 1.5rem;
    color: var(--site-color);
    margin-bottom: 0.6rem;
}
.beyond-card p {
    color: var(--text-color);
    line-height: 1.5;
    font-size: 1.3rem;
}
.beyond-card-link {
    display: inline-block;
    margin-top: 0.4rem;
    color: var(--site-color);
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
}
.beyond-card-link:hover,
.beyond-card-link:focus-visible {
    text-decoration: underline;
}

/* ---------- 404 / NOT FOUND ---------- */
.not-found {
    width: 100%;
    max-width: 60rem;
    margin: 4rem auto;
    padding: 4rem 2rem;
    text-align: center;
}
.not-found-code {
    font-family: var(--font-mono);
    font-size: 10rem;
    font-weight: 700;
    line-height: 1;
    color: var(--site-color);
    margin-bottom: 1rem;
}
.not-found h1 {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 1.6rem;
}
.not-found-lead {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0 auto 2.4rem;
    max-width: 50rem;
}
.not-found-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ---------- SOFT SKILLS / PRAICE ---------- */
.soft-skills {
    width: 100%;
    max-width: 110rem;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}
.soft-eyebrow {
    font-family: var(--font-mono);
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: var(--site-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.soft-skills h2 {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 1.2rem;
    text-align: center;
}
.soft-lead {
    max-width: 64rem;
    margin: 0 auto 2.4rem;
    color: var(--text-color);
    line-height: 1.6;
}
.soft-lead a {
    color: var(--site-color);
    text-decoration: underline;
}
.soft-lead a:hover {
    color: var(--site-color-strong);
}
.soft-cards {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    text-align: left;
}
.soft-card {
    background: var(--page-background-alt);
    border-top: 0.3rem solid var(--site-color);
    border-radius: 0.4rem;
    padding: 1.6rem 1.8rem;
}
.soft-card-focused    { border-top-color: #9b6dd4; }
.soft-card-evaluating { border-top-color: #4d8fd6; }
.soft-card-organised  { border-top-color: #58a85e; }
.soft-card-pct {
    font-family: var(--font-mono);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--site-color);
    line-height: 1;
    margin-bottom: 0.4rem;
}
.soft-card h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    margin-bottom: 0.8rem;
}
.soft-card p {
    color: var(--text-color);
    line-height: 1.5;
    font-size: 1.3rem;
}
.soft-takeaway {
    max-width: 64rem;
    margin: 0 auto;
    color: var(--text-color);
    line-height: 1.6;
}
.soft-takeaway strong {
    color: var(--site-color);
    font-weight: 700;
}

/* legacy classes kept for any future re-use (not used by the rewritten hero) */
.main-intro{
    width: fit-content;
    margin-top: 3.2rem;
    display: flex;
}

.main-title {
    color:var(--text-color);
    font-family: var(--font-sans);
    font-weight: bolder;
    margin-top: 1.5rem;
    text-align: justify;
    padding: 1rem;
}

.index-about{
    width: 100%;
    padding: 2rem;
    background-color: none;
    display: flex;
    align-items: center;
    column-gap: 1.0rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.index-about-img img {
    width: 20rem;
    border-radius: 50%;
}

.index-about-text {
 flex-basis: 50%;
}

.index-about-text p {
    color:var(--text-color);
   
   }

.index-about-text h2 {
    
    color: var(--text-color);
}

.index-about-text a {
    margin-top: 1rem;
    font-size: 1.6rem;
    display: block;
    line-height: 1.25;
    background-color: #fff;
    padding: 0 1rem;
    width: fit-content;
}

.index-about-skill {
    flex-basis: 36rem;
    margin-left: 1.6rem;
    
}

.index-about-skill-pic {
    width: fit-content;

}
/* style for resume section */
.resume-data {
    width: 100%;
    max-width: 110rem;
    margin: 2rem auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    column-gap: 4.5rem;
    row-gap: 2rem;
}

.resume-data h2{
    
    color: var(--text-color);    
}

.resume-data p{
    color: var(--text-color);
    
}

/* Experience: dated role blocks */
.resume-role {
    margin-top: 1.6rem;
}
.resume-role:first-of-type {
    margin-top: 1rem;
}
.resume-role-title {
    margin-bottom: 0.6rem;
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: 600;
}
.resume-role-dates {
    font-family: var(--font-mono);
    color: var(--site-color);
    margin-right: 0.6rem;
}
.resume-role-meta {
    margin-top: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.5;
}

/* Bulleted lists (Training / Skills / Languages / Affiliations and
   nested bullets inside Experience roles) */
.resume-role-bullets,
.resume-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}
.resume-role-bullets li,
.resume-list > li {
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 1.5rem;
    line-height: 1.5;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.4rem;
}
.resume-role-bullets li::before,
.resume-list > li::before {
    content: '\2013';
    position: absolute;
    left: 0;
    color: var(--site-color);
}

/* Career timeline: vertical rail + dots overlaying the existing role
   articles, interspersed with .timeline-milestone markers. */
.experience-timeline {
    position: relative;
    padding-left: 2.6rem;
    margin-top: 1.2rem;
}
.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0.7rem;
    top: 0.4rem;
    bottom: 0.4rem;
    width: 2px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 1px;
}
.experience-timeline > .resume-role,
.experience-timeline > .timeline-milestone {
    position: relative;
}
.experience-timeline > .resume-role::before,
.experience-timeline > .timeline-milestone::before {
    content: '';
    position: absolute;
    top: 0.9rem;
    left: -2.15rem;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: var(--site-color);
    box-shadow: 0 0 0 3px var(--page-background);
}
.experience-timeline > .timeline-milestone::before {
    width: 0.9rem;
    height: 0.9rem;
    top: 1.15rem;
    left: -2rem;
    background: var(--page-background);
    border: 2px solid var(--site-color);
    box-shadow: none;
}
.timeline-milestone {
    margin-top: 1.6rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 1.4rem;
    line-height: 1.55;
}
.timeline-milestone .resume-role-dates {
    font-family: var(--font-mono);
    color: var(--site-color);
    margin-right: 0.6rem;
}
.timeline-milestone strong {
    color: var(--text-color);
    font-weight: 600;
}
.timeline-milestone a {
    color: var(--site-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.timeline-milestone a:hover,
.timeline-milestone a:focus-visible {
    color: var(--site-color-strong);
}

/* Education + Publications: term/definition pattern */
.education-list,
.publication-list {
    margin-top: 1rem;
}
.education-list dt {
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 1.2rem;
}
.education-list dt:first-of-type {
    margin-top: 0;
}
.education-list dd {
    margin-top: 0.2rem;
    padding-left: 1.5rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 1.4rem;
    line-height: 1.5;
}
.publication-list dt {
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 1.5rem;
    line-height: 1.5;
    margin-top: 1.2rem;
}
.publication-list dt:first-of-type {
    margin-top: 0;
}
.pub-year {
    display: inline-block;
    font-family: var(--font-mono);
    color: var(--site-color);
    font-weight: 700;
    margin-right: 0.6rem;
}
.publication-list dd {
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 1.3rem;
    line-height: 1.5;
    padding-left: 2rem;
    margin-top: 0.3rem;
}
.education-list a,
.publication-list a {
    color: var(--site-color);
    text-decoration: underline;
}
.education-list a:hover,
.publication-list a:hover {
    color: var(--site-color-strong);
}

.resume-data-box {
    border-left: 0.2rem dotted var(--site-color);
    padding-left: 2rem;
}

/* small action links at the foot of a resume-data-box */
.resume-cta {
    margin-top: 1.6rem;
    font-family: var(--font-sans);
    font-size: 1.4rem;
}
.resume-cta-link {
    color: var(--site-color);
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.resume-cta-link:hover {
    color: var(--site-color-strong);
}


/* ---------- SKILLS PAGE ---------- */
.skills-hero {
    width: 100%;
    max-width: 110rem;
    margin: 0 auto;
    padding: 4rem 2rem 2.4rem;
    text-align: left;
}
.skills-eyebrow {
    font-family: var(--font-mono);
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: var(--site-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.skills-title {
    font-family: var(--font-sans);
    font-size: 3.6rem;
    line-height: 1.15;
    color: var(--text-color);
    margin: 0 0 1.2rem;
}
.skills-lead {
    font-family: var(--font-sans);
    font-size: 1.6rem;
    line-height: 1.55;
    color: var(--text-color);
    max-width: 80rem;
}

.skill-cards {
    width: 100%;
    max-width: 110rem;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    display: grid;
    /* 35rem min => exactly two columns at the 110rem container, so the four
       uniform (image-free) cards read as a symmetric 2x2 instead of 3 + 1;
       collapses to a single column on narrow screens. */
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
    gap: 2rem;
}
.skill-card {
    background: var(--page-background-alt);
    border-left: 0.3rem solid var(--site-color);
    border-radius: 0.6rem;
    padding: 2rem 2.2rem;
    box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.18);
}
.skill-card-title {
    font-family: var(--font-sans);
    font-size: 2rem;
    color: var(--site-color);
    margin: 0 0 0.8rem;
}
.skill-card-lead {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0 0 1.4rem;
}
.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.skill-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.8rem;
    font-family: var(--font-sans);
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--text-color);
}
.skill-list li::before {
    content: '\2013';
    position: absolute;
    left: 0;
    color: var(--site-color);
}
.skill-name {
    color: var(--site-color);
    font-weight: 700;
}
.skill-figure {
    margin: 1.6rem 0 0;
}
.skill-figure img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0.4rem;
    background: #fff;
}
.skill-figure figcaption {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
    font-style: italic;
}

/* ---------- SKILLS PAGE — Selected Work gallery ---------- */
.skill-work-gallery {
    width: 100%;
    max-width: 110rem;
    margin: 1rem auto 4rem;
    padding: 2rem 2rem 0;
}
.skill-work-gallery-title {
    font-family: var(--font-mono);
    font-size: 2.4rem;
    color: var(--site-color);
    line-height: 1.2;
    margin: 0 0 0.6rem;
}
.skill-work-gallery-lead {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0 0 2rem;
    max-width: 80rem;
}
.skill-work-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: 2rem;
}
.skill-work-list > li {
    background: var(--page-background-alt);
    border-radius: 0.6rem;
    overflow: hidden;
    box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.skill-work-list > li:hover {
    transform: translateY(-0.2rem);
    box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.28);
}
.skill-work-list figure {
    margin: 0;
}
.skill-work-list img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #fff;
}
.skill-work-list figcaption {
    font-family: var(--font-sans);
    font-size: 1.3rem;
    color: var(--text-color);
    padding: 1rem 1.4rem 1.2rem;
    line-height: 1.4;
}

/* ---------- SKILLS PAGE — Lightbox (click to enlarge) ---------- */
.skill-figure img,
.skill-work-list img {
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.skill-figure img:hover,
.skill-figure img:focus-visible,
.skill-work-list img:hover,
.skill-work-list img:focus-visible {
    transform: scale(1.01);
    box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.32);
    outline: 0.2rem solid var(--site-color);
    outline-offset: 0.2rem;
}
.lightbox {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    border: none;
    padding: 0;
    background: transparent;
    max-width: 95vw;
    max-height: 95vh;
    color: #fff;
}
.lightbox::backdrop {
    background: rgba(15, 20, 35, 0.88);
}
.lightbox-close {
    position: fixed;
    top: 1.4rem;
    right: 1.6rem;
    width: 4.4rem;
    height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--site-color);
    color: var(--page-background);
    font-family: var(--font-sans);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    z-index: 1;
    box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.4);
}
.lightbox-close:hover,
.lightbox-close:focus-visible {
    background: var(--site-color-strong);
    outline: none;
}
.lightbox-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.lightbox-img {
    display: block;
    max-width: 95vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    border-radius: 0.6rem;
    background: #fff;
    box-shadow: 0 0.6rem 2.4rem rgba(0, 0, 0, 0.4);
    cursor: default;
}
.lightbox-caption {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    color: #fff;
    text-align: center;
    max-width: 80rem;
    padding: 0 1rem;
}

/* style for footer, error etc.*/
.footer{
    position: relative;
    bottom: 0;
    border-radius: 1rem;
    padding: 0.5rem;
    margin: 0 0 0.1rem 0;
    clear: both;
    text-align: justify;
}

.footer p{
    font-size: 1rem;
}

.error-message {
    color: red;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.highlight {
    background-color: yellow;
    font-weight: bold;
}
.message {
    margin-top: 1rem;
    text-align: center;
}

.success {
    color: green;
    font-weight: bold;
}
/* Mobile/tablet-friendly */
/* Adjust font size for tablets and smaller screens */
@media(max-width: 800px) {
    .hideOnMobile{
        display: none;
    }
    .menu-botton{
        display: block;
    }
    .main-title {
        font-size: 2rem;
    }
    .index-about-text {
        flex-basis: auto;
    }
    .index-about-text h2 {
        font-size: 1.5rem;
    }
    .index-about-text p {
        font-size: 1.5rem;
    }
    .index-about-text a {
        font-size: 1rem;
    }
    /* hero stacks: portrait above, text below */
    .hero {
        padding: 2.4rem 1.6rem 2rem;
        gap: 2.4rem;
    }
    .hero-portrait {
        flex: 0 0 100%;
        justify-content: center;
    }
    .hero-portrait img {
        width: 16rem;
        height: 16rem;
    }
    .hero-name {
        font-size: 3rem;
        text-align: center;
    }
    .hero-tagline {
        font-size: 1.5rem;
        text-align: center;
    }
    .hero-pitch {
        font-size: 1.4rem;
        text-align: left;
    }
    .hero-cta {
        justify-content: center;
    }
    .hero-status {
        justify-content: center;
        width: 100%;
    }
    /* stats become 1 column */
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1.6rem 2rem;
    }
    .stat-num {
        font-size: 2.6rem;
    }
    /* logo strip tighter — keep tiles uniform but smaller */
    .logo-strip ul {
        gap: 1.4rem;
    }
    .logo-strip li {
        width: 15rem;
        height: 6rem;
        padding: 0.8rem 1.2rem;
    }
    .closing-cta {
        padding: 3rem 1.6rem;
        margin: 3rem auto 1.6rem;
    }
    .closing-cta h2 {
        font-size: 2.4rem;
    }
    .work-demo,
    .beyond-engineering,
    .soft-skills {
        margin: 3rem auto;
        padding: 0 1.6rem;
    }
    .work-demo h2,
    .beyond-engineering h2,
    .soft-skills h2 {
        font-size: 2.2rem;
    }
    .work-demo-eyebrow,
    .beyond-eyebrow,
    .soft-eyebrow {
        font-size: 2rem;
        letter-spacing: 0.18rem;
    }
    .work-demo-lead,
    .beyond-lead,
    .soft-lead,
    .soft-takeaway {
        font-size: 1.4rem;
    }
    .work-demo-cards {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .beyond-cards {
        gap: 1.2rem;
    }
    .soft-cards {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .work-demo-card h3 {
        font-size: 1.6rem;
    }
    .beyond-card h3 {
        font-size: 1.4rem;
    }
    .soft-card-pct {
        font-size: 2.2rem;
    }
    .not-found {
        padding: 3rem 1.6rem;
        margin: 2rem auto;
    }
    .not-found-code {
        font-size: 7rem;
    }
    .not-found h1 {
        font-size: 2.4rem;
    }
    /* skills page — tighter padding and headings */
    .skills-hero {
        padding: 3rem 1.6rem 2rem;
    }
    .skills-title {
        font-size: 2.8rem;
    }
    .skills-lead {
        font-size: 1.4rem;
    }
    .skill-cards {
        padding: 0 1.6rem;
    }
    .skill-card {
        padding: 1.6rem 1.8rem;
    }
    .skill-card-title {
        font-size: 1.8rem;
    }
    .skill-work-gallery {
        padding: 1.6rem 1.6rem 0;
        margin-bottom: 3rem;
    }
    .skill-work-gallery-title,
    .skills-eyebrow {
        font-size: 2rem;
    }
    .skill-work-gallery-lead {
        font-size: 1.3rem;
    }
}

@media(max-width: 400px) {
    .sidebar{
        width: 50%;
    }
    .main-title {
        font-size: 1.5rem; 
    }
    .main-title h1 {
        font-weight: bold;
    }
    .index-about-text {
        flex-basis: auto;
    }
     .index-about-text h2 {
        font-size: 1rem;
    }
    .index-about-text p {
        font-size: 1rem;
    }
    .index-about-text a {
        font-size: 1rem;
    }
    .index-about-img img {
        width:10rem ;
    }
    .index-about-skill-pic img {
        max-width: 100%;
        width: auto;
        height: auto;
    }
    .resume-data-box h2 {
        font-size: 2rem;
    }
    .resume-data-box h3 {
        font-size: 1.5rem;
    }
    .resume-list > li,
    .resume-role-bullets li,
    .publication-list dt,
    .publication-list dd,
    .education-list dt,
    .education-list dd,
    .resume-role-meta {
        font-size: 1.2rem;
    }
    .resume-role-title {
        font-size: 1.5rem;
    }
    .experience-timeline {
        padding-left: 2rem;
    }
    .experience-timeline::before {
        left: 0.4rem;
    }
    .experience-timeline > .resume-role::before,
    .experience-timeline > .timeline-milestone::before {
        left: -1.7rem;
        width: 0.9rem;
        height: 0.9rem;
        top: 0.7rem;
    }
    .experience-timeline > .timeline-milestone::before {
        width: 0.7rem;
        height: 0.7rem;
        top: 0.9rem;
        left: -1.6rem;
    }
    .timeline-milestone {
        font-size: 1.2rem;
    }
    /* very-small-phone tweaks for the new hero */
    .hero-portrait img {
        width: 14rem;
        height: 14rem;
    }
    .hero-name {
        font-size: 2.4rem;
    }
    .hero-tagline {
        font-size: 1.3rem;
    }
    .hero-pitch {
        font-size: 1.3rem;
    }
    .btn {
        font-size: 1.3rem;
        padding: 0.8rem 1.4rem;
    }
    .endorsement blockquote {
        padding: 2rem 1.6rem 2rem 4rem;
    }
    .endorsement p {
        font-size: 1.3rem;
    }
    .beyond-card {
        max-width: none;
    }
    .work-demo-card {
        padding: 1.4rem 1.6rem;
    }
    /* very-small-phone skills page */
    .skills-title {
        font-size: 2.2rem;
    }
    .skills-lead,
    .skill-card-lead,
    .skill-list li {
        font-size: 1.3rem;
    }
    .skill-card-title {
        font-size: 1.6rem;
    }
    .skill-work-gallery-title,
    .skills-eyebrow {
        font-size: 1.8rem;
    }
    .skill-work-list figcaption {
        font-size: 1.2rem;
    }
}