/* Portfolio Projects section
   Paste into your existing stylesheet (for example, style.css).
   All selectors are scoped to the projects section to reduce conflicts. */

.projects-section {
  --projects-bg: #0b1120;
  --projects-card: #111a2d;
  --projects-text: #f5f7fb;
  --projects-muted: #a6b0c2;
  --projects-accent: #64e3d3;
  background: var(--projects-bg);
  color: var(--projects-text);
  padding: clamp(4.5rem, 9vw, 7.5rem) 1.25rem;
  overflow: hidden;
}
.projects-container { width: min(1120px, 100%); margin: 0 auto; }
.projects-heading { max-width: 720px; margin-bottom: 2rem; }
.section-eyebrow { color: var(--projects-accent); font-size: .75rem; font-weight: 800; letter-spacing: .22em; margin: 0 0 .9rem; }
.projects-heading h2 { font-size: clamp(2.1rem, 5vw, 3.7rem); line-height: 1.08; letter-spacing: -.045em; margin: 0; }
.projects-heading h2 span { color: var(--projects-accent); }
.projects-intro { color: var(--projects-muted); font-size: 1.05rem; line-height: 1.8; max-width: 600px; margin: 1rem 0 0; }
.project-filters { display: flex; flex-wrap: wrap; gap: .65rem; margin: 2rem 0 1.5rem; }
.project-filter { border: 1px solid #2a3850; border-radius: 999px; padding: .65rem 1rem; color: #d8dfeb; background: transparent; cursor: pointer; font: inherit; font-size: .9rem; transition: color .2s, background .2s, border-color .2s; }
.project-filter:hover, .project-filter.is-active { color: #07121b; background: var(--projects-accent); border-color: var(--projects-accent); }
.project-filter:focus-visible, .project-link:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.project-card { background: var(--projects-card); border: 1px solid #253149; border-radius: 1.2rem; overflow: hidden; min-width: 0; display: flex; flex-direction: column; transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.project-card:hover { transform: translateY(-7px); border-color: #4c8f95; box-shadow: 0 20px 45px #0003; }
.project-card[hidden] { display: none; }
.project-visual { min-height: 210px; padding: 1.1rem; position: relative; display: grid; place-items: center; overflow: hidden; }
.project-visual-sda { background: radial-gradient(circle at 75% 20%, #2a766f, transparent 40%), linear-gradient(135deg, #152b42, #122032); }
.project-visual-employee { background: radial-gradient(circle at 20% 20%, #594c9c, transparent 45%), linear-gradient(135deg, #1d2947, #121a2e); }
.project-visual-portfolio { background: radial-gradient(circle at 75% 25%, #3d5c9d, transparent 40%), linear-gradient(135deg, #132e42, #172039); }
.visual-chip { position: absolute; z-index: 2; left: 1rem; top: 1rem; font-size: .63rem; letter-spacing: .12em; font-weight: 800; color: #efffff; background: #ffffff18; border: 1px solid #ffffff30; border-radius: 999px; padding: .4rem .6rem; }
.visual-window, .employee-preview, .portfolio-preview { width: min(100%, 290px); height: 140px; border: 1px solid #ffffff3b; background: #0c1728dd; border-radius: .7rem; overflow: hidden; box-shadow: 0 15px 35px #0003; transform: rotate(-2deg); }
.visual-window-bar { height: 22px; display: flex; gap: 4px; align-items: center; padding: 0 9px; background: #ffffff0c; }
.visual-window-bar i { width: 5px; height: 5px; border-radius: 50%; background: #8fa5b7; }
.visual-dashboard { display: flex; height: 118px; }
.visual-sidebar { width: 25%; background: #ffffff09; border-right: 1px solid #ffffff10; }
.visual-content { flex: 1; padding: 12px; }
.visual-content b { display: inline-block; width: 25%; height: 19px; border-radius: 4px; background: #ffffff12; margin-right: 5%; }
.visual-chart { display: flex; gap: 7px; align-items: end; height: 49px; margin-top: 10px; padding: 7px; background: #ffffff08; border-radius: 5px; }
.visual-chart span { flex: 1; background: linear-gradient(#64e3d3, #368c9b); border-radius: 3px 3px 0 0; }
.visual-chart span:nth-child(1) { height: 45%; }.visual-chart span:nth-child(2) { height: 75%; }.visual-chart span:nth-child(3) { height: 55%; }.visual-chart span:nth-child(4) { height: 90%; }.visual-chart span:nth-child(5) { height: 65%; }
.employee-preview { padding: 17px; transform: rotate(2deg); }
.employee-preview-top { height: 13px; width: 48%; background: #ffffff24; border-radius: 4px; margin-bottom: 13px; }
.employee-preview-stat-row { display: flex; gap: 8px; }
.employee-preview-stat-row i { height: 35px; flex: 1; background: #8d80db32; border: 1px solid #a69bf055; border-radius: 5px; }
.employee-preview-table { margin-top: 12px; display: grid; gap: 6px; }
.employee-preview-table b { height: 5px; background: #ffffff20; border-radius: 4px; }
.employee-preview-table b:nth-child(2) { width: 85%; }.employee-preview-table b:nth-child(3) { width: 70%; }.employee-preview-table b:nth-child(4) { width: 90%; }
.portfolio-preview { position: relative; transform: rotate(-1deg); padding: 15px; }
.portfolio-preview-nav { height: 8px; width: 100%; border-bottom: 1px solid #ffffff35; }
.portfolio-preview-copy { position: relative; z-index: 1; width: 60%; padding-top: 20px; display: grid; gap: 7px; }
.portfolio-preview-copy i { height: 6px; background: #ffffff30; border-radius: 4px; }
.portfolio-preview-copy i:first-child { width: 85%; height: 12px; background: #ffffffb0; }
.portfolio-preview-copy i:nth-child(2) { width: 100%; }.portfolio-preview-copy i:nth-child(3) { width: 70%; }
.portfolio-preview-copy b { width: 55px; height: 16px; border-radius: 4px; background: var(--projects-accent); margin-top: 4px; }
.portfolio-preview-orb { position: absolute; width: 95px; height: 95px; border-radius: 50%; right: 14px; bottom: 12px; background: linear-gradient(135deg, #64e3d3, #5367ba); opacity: .85; box-shadow: 0 0 35px #64e3d355; }
.project-card-body { padding: 1.35rem; display: flex; flex-direction: column; flex: 1; }
.project-type { color: var(--projects-accent); font-size: .67rem; font-weight: 800; letter-spacing: .11em; margin: 0 0 .65rem; }
.project-card h3 { font-size: 1.22rem; line-height: 1.4; margin: 0; }
.project-description { color: var(--projects-muted); line-height: 1.75; font-size: .94rem; margin: .8rem 0 1.1rem; }
.tech-list { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: auto 0 1.15rem; }
.tech-list li { color: #d4dbea; background: #ffffff0c; border: 1px solid #ffffff12; padding: .35rem .55rem; border-radius: .4rem; font-size: .75rem; }
.project-links { border-top: 1px solid #ffffff12; padding-top: 1rem; margin-top: .15rem; }
.project-link { display: inline-flex; gap: .45rem; align-items: center; color: var(--projects-accent); text-decoration: none; font-size: .9rem; font-weight: 750; }
.project-link:hover { color: #fff; }
.project-link span { transition: transform .2s ease; }.project-link:hover span { transform: translate(3px, -3px); }
.project-link-muted { color: #9aa7ba; font-size: .8rem; font-weight: 500; }
.project-gallery { margin-top: 3.5rem; }
.project-gallery h3 { margin: 0 0 1.25rem; font-size: 1.35rem; }
.project-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.project-gallery-item { min-width: 0; overflow: hidden; border: 1px solid #253149; border-radius: .8rem; background: var(--projects-card); transition: transform .25s ease, border-color .25s ease; }
.project-gallery-item:hover { transform: translateY(-4px); border-color: #4c8f95; }
.project-gallery-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; background: #0c1422; }
.project-gallery-item figcaption { padding: .7rem .85rem; color: #d4dbea; font-size: .85rem; }
.projects-note { color: #8290a5; font-size: .8rem; line-height: 1.7; margin: 1.5rem 0 0; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 900px) { .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .project-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .projects-section { padding-inline: 1rem; } .projects-grid { grid-template-columns: 1fr; } .project-visual { min-height: 195px; } .project-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; } }
@media (prefers-reduced-motion: reduce) { .project-card, .project-gallery-item, .project-filter, .reveal, .project-link span { transition: none !important; } .project-card:hover, .project-gallery-item:hover { transform: none; } .reveal { opacity: 1; transform: none; } }
