/* V10.1 — visual QA patch. Fix contrast regressions in Light Mode without changing content or Dark Mode. */
html:not(.dark){color-scheme:light}
html:not(.dark) body{background:#f6fafe!important;color:#17293b!important}
/* Preserve the approved seated portrait in BOTH modes. Previous light overrides swapped it for an unrelated control room. */
html:not(.dark) #overview{
  background-color:#071a27!important;
  background-image:
    linear-gradient(90deg,rgba(3,13,24,.96) 0%,rgba(3,13,24,.92) 19%,rgba(3,13,24,.80) 37%,rgba(3,13,24,.44) 58%,rgba(3,13,24,.07) 78%,rgba(3,13,24,.05) 100%),
    linear-gradient(180deg,rgba(3,13,24,.22) 0%,transparent 24%,rgba(3,13,24,.03) 62%,#061422 100%),
    url('images/server-room-portrait.webp')!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
  background-position:center center!important;
  color:#f6fcff!important;
}
html:not(.dark) #overview h1,
html:not(.dark) #overview h2,
html:not(.dark) #overview #hero-subtitle,
html:not(.dark) #overview #hero-summary{color:#f8fcff!important}
html:not(.dark) #overview #hero-subtitle{color:#96eaff!important}
html:not(.dark) #overview .impact-grid span{color:#d0e3eb!important}
/* Pale light-mode sections need genuinely dark text. */
html:not(.dark) #leadership,
html:not(.dark) #experience{background:#f6fafe!important;color:#14283a!important}
html:not(.dark) #leadership>.flex h2,
html:not(.dark) #experience h2{color:#112c42!important}
html:not(.dark) #leadership>.flex p,
html:not(.dark) #experience>.mb-12 p{color:#466277!important}
/* Leadership cards remain premium dark-on-light for visual hierarchy. */
html:not(.dark) #leadership .card-hover{background:linear-gradient(155deg,#0d263b,#0a1c2e)!important;color:#effbff!important}
html:not(.dark) #leadership .card-hover h3{color:#f2fbff!important}
html:not(.dark) #leadership .card-hover p{color:#bdd3df!important}
/* Case studies are intentionally a dark cinematic section even when light mode is selected.
   Previous rule forced pale blue background with white headings. */
html:not(.dark) #projects{
 background:linear-gradient(103deg,rgba(3,15,28,.94),rgba(5,25,41,.86)),url('images/server-room-portrait.webp') center center/cover fixed!important;
 color:#effbff!important;border-color:rgba(92,183,202,.22)!important;
}
html:not(.dark) #projects .project-heading-copy h2{color:#f7fbff!important}
html:not(.dark) #projects .project-heading-copy p{color:#c3d7e4!important}
html:not(.dark) #projects .case-study h3{color:#f7fbff!important}
html:not(.dark) #projects .case-block p{color:#c5dce7!important}
html:not(.dark) #projects .all-projects-details>summary b{color:#f6fbff!important}
html:not(.dark) #projects .all-projects-details>summary small{color:#bbd5e2!important}
/* Give Tech Stack clear light-theme section hierarchy while retaining dark strategic capability tiles. */
html:not(.dark) #tech-stack{
 background:#eef6fb!important;
 color:#142d40!important;
 border-color:#d6e6ef!important;
}
html:not(.dark) #tech-stack>.max-w-7xl>.mb-10 h2{color:#102b41!important}
html:not(.dark) #tech-stack .strategic-tech-grid>div{background:linear-gradient(145deg,#0c2b40,#081d30)!important;border-color:#28556b!important}
html:not(.dark) #tech-stack .strategic-tech-grid b{color:#f0fbff!important}
html:not(.dark) #tech-stack .strategic-tech-grid small{color:#bed7e3!important}
html:not(.dark) #tech-stack .strategic-tech-grid span{color:#5fdbef!important}
html:not(.dark) #tech-stack .technology-details{background:#0d293b!important}
html:not(.dark) #tech-stack .technology-details>summary b{color:#f7fbff!important}
html:not(.dark) #tech-stack .technology-details>summary small{color:#b4d2df!important}
html:not(.dark) #tech-stack .technology-details .rounded-2xl{background:#112d42!important;border-color:#31546d!important}
html:not(.dark) #tech-stack .technology-details .rounded-2xl h3{color:#f4fcff!important}
html:not(.dark) #tech-stack .technology-details .rounded-2xl span.bg-slate-100{background:#18374d!important;color:#e0eff8!important}
/* Credentials: pale surface and genuine navy text (not white-on-white). */
html:not(.dark) #education{
 background:#fff!important;
 border-color:#cbdde9!important;
 box-shadow:0 18px 48px rgba(11,58,86,.075)!important;
}
html:not(.dark) #education h3,
html:not(.dark) #education .text-slate-900{color:#172f43!important}
html:not(.dark) #education .text-slate-500,
html:not(.dark) #education .text-slate-600{color:#526d7f!important}
html:not(.dark) #education .bg-slate-50{background:#f1f7fb!important;border-color:#d6e5ef!important}
html:not(.dark) #education .text-sky-600{color:#056b9b!important}
/* The original walking-photo contact backdrop remains dark and portrait-readable in both themes. */
html:not(.dark) #contact,
html:not(.dark) #contact h2{color:#f7fcff!important}
html:not(.dark) #contact .contact-content>p{color:#d2e2ed!important}
html:not(.dark) #contact .contact-content>.grid a{background:rgba(7,29,46,.84)!important}
/* Focused-navigation label was also illegible over light backgrounds. */
html:not(.dark) .section-view-label{color:#567182!important}
html:not(.dark) .section-view-label strong{color:#153d55!important}
/* Respect print output: do not force cinematic white text onto printed white paper. */
@media print{
 html:not(.dark) #overview,html:not(.dark) #projects,html:not(.dark) #tech-stack,html:not(.dark) #contact{background:#fff!important;color:#17283b!important}
 html:not(.dark) #overview h1,html:not(.dark) #overview #hero-summary,html:not(.dark) #overview #hero-subtitle,html:not(.dark) #projects h2,html:not(.dark) #tech-stack h2,html:not(.dark) #contact h2{color:#17283b!important}
}
@media(max-width:767px){
 html:not(.dark) #overview{background:#061422!important;padding-top:clamp(345px,95vw,480px)!important}
 html:not(.dark) #overview::before{background-image:linear-gradient(180deg,rgba(3,14,25,.07) 0%,rgba(3,14,25,.04) 47%,rgba(3,14,25,.48) 76%,#061422 100%),url('images/server-room-portrait.webp')!important;background-size:cover!important;background-position:74% 40%!important}
 html:not(.dark) #projects{background-attachment:scroll!important}
}
/* Final visual QA: qualification tiles previously remained dark due to older !important styles. */
html:not(.dark) #education .lg\:col-span-8.grid>.rounded-xl:not(.credential-training-grid){
 background:#eef6fb!important;
 border:1px solid #d3e3ed!important;
}
html:not(.dark) #education .lg\:col-span-8.grid>.rounded-xl:not(.credential-training-grid) .text-slate-900{
 color:#162f42!important;
}
html:not(.dark) #education .credential-training-grid>span{
 background:#eef6fb!important;color:#294b61!important;
 border-color:#d3e3ed!important;
}
html:not(.dark) #education .credential-training-grid>span strong{color:#153950!important}
html:not(.dark) #overview .hero-copy>.inline-flex,
html:not(.dark) #overview #hero-badge-text{color:#9aeaff!important}
html:not(.dark) #overview .hero-copy>.inline-flex{background:rgba(5,45,64,.75)!important;border-color:rgba(83,217,237,.33)!important}
html:not(.dark) .glass-nav .portfolio-all-link{color:#06658c!important;border-color:#a4d3e7!important;background:#eaf8fd!important}
html:not(.dark) .glass-nav .portfolio-all-link.nav-active{color:#063a58!important}
