/* style.css */
:root{
  --bg:#F9F9F9;
  --text:#0E2A3B;
  --muted:#0E2A3B;
  --accent:#E5532D;

  --accent-rgb:229,83,45;

  --max: 96rem;
  --pad: clamp(1.1rem, 3.5vw, 2.25rem);

  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --leading: 1.55;
  --radius: 0.5rem;
  --border: rgba(249,249,249,0.14);

  --focus: rgba(229,83,45,0.9);
  --sel-bg: rgba(229,83,45,0);
  --sel-bg-soft: rgba(229,83,45,0.14);
}

*{ box-sizing: border-box; }
html,body{ height:100%; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-sans);
  line-height:var(--leading);
  letter-spacing:-0.01em;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

::selection{
  background: var(--sel-bg);
 /*color: var(--bg);*/
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: 0 0;
}

::-webkit-scrollbar-thumb {
    background-color: #bfbfbf;
    border: 3px solid #fff;
    border-radius: 20px;
}

h1, .nav-link, .text-link, .coords, .site-footer {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
}

h1 {
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 2rem;
}

a{ color:inherit; text-decoration:none; font-family: 'Space Grotesk', sans-serif;}
a.link, .nav a{
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: rgba(249,249,249,0.38);
  font-size: 1.1rem;
  font-weight: 600;
}

.nav-link, .text-link {
    font-family: 'Space Grotesk', sans-serif;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.text-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: #E5532D;
}

.nav-link {
    font-size: 1rem;
    opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
}

.nav-link::after, .text-link::after{
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(229,83,45,0.9);;
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-link:hover::after,
.nav-link.active::after,
.text-link:hover::after {
    width: 100%;
}

.muted{ color:var(--muted); }

.container{
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  padding: 0 var(--pad);
}

.pattern-bg-project {
    background-color: #fff;
    background-image: radial-gradient(#0000002e .8px, #fff 0);
    background-size: 16px 16px;
    animation: animate-bg 1s linear infinite;
}

@keyframes animate-bg {
    0% {
        background-position: 0 0
    }

    to {
        background-position: 0 -16px
    }
}

.skip-link{
  position:absolute;
  left:-999px;
  top:0.75rem;
  background:rgba(0,0,0,0.35);
  border:1px solid var(--border);
  padding:0.55rem 0.75rem;
  border-radius:10px;
  color:var(--text);
  z-index: 9999;
}
.skip-link:focus{
  left: var(--pad);
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.site-header{
  padding: clamp(1.1rem, 3vw, 2rem) 0;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
}

.nav__brand{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border:1px solid rgba(249,249,249,0.18);
  text-decoration:none !important;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.nav__brand:focus-visible{
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.nav__links{
  display:flex;
  gap: clamp(0.9rem, 3vw, 1.6rem);
  align-items:center;
}
.nav__links a{
  color: var(--muted);
  font-size: 0.98rem;
}
.nav__links a[aria-current="page"]{
  color: var(--text);
  text-decoration-color: rgba(229,83,45,0.9);
}
.nav__links a:focus-visible{
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: 10px;
}

main{
  padding: clamp(0.5rem, 2vw, 1rem) 0 clamp(2rem, 6vw, 3.5rem);
}

.hero{
  padding-top: clamp(0.5rem, 1.5vw, 1rem);
  max-width: 43rem;
}
.hero__title{
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 2rem;
}
.hero__lede{
  color: var(--muted);
  font-size: 1rem;
  max-width: 50rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.hero__links{
  display:flex;
  gap: 1.2rem;
  align-items:center;
  flex-wrap: wrap;
}

.page-head{
  max-width: 56rem;
  padding-top: 0.25rem;
  margin-bottom: clamp(1.25rem, 4vw, 2.4rem);
}
.page-head__title{
  margin:0 0 0.6rem;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  letter-spacing:-0.02em;
}
.page-head__lede{
  margin:0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.6vw, 1.15rem);
  max-width: 52rem;
}

.block{
  margin-top: clamp(1.75rem, 5vw, 2.6rem);
  max-width: 56rem;
}
.block__title{
  margin:0 0 0.8rem;
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}

.scope{
  display:flex;
  gap: clamp(1.1rem, 4vw, 2.4rem);
  flex-wrap:wrap;
  margin: 0 0 0.75rem;
  padding: 0;
}
.scope__item{
  border: 1px solid rgba(249,249,249,0.12);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  min-width: 10rem;
}
.scope dt{
  color: var(--muted);
  font-size: 0.95rem;
  margin:0 0 0.15rem;
}
.scope dd{
  margin:0;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.timeline{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap: 1.15rem;
}
.timeline__item{
  padding-top: 0.2rem;
}
.timeline__meta{
  display:flex;
  flex-wrap:wrap;
  gap: 0.35rem;
  align-items:baseline;
}
.timeline__role{
  font-weight: 650;
}
.timeline__org{
  color: var(--text);
}
.timeline__desc{
  margin: 0.45rem 0 0;
  color: var(--muted);
  max-width: 54rem;
}

.principles{
  margin:0;
  padding-left: 1.1rem;
  color: var(--muted);
  display:flex;
  flex-direction:column;
  gap: 0.55rem;
}
.principles strong{ color: var(--text); font-weight: 600; }

.inline-links{
  display:flex;
  gap: 1.2rem;
  flex-wrap:wrap;
}

.projects{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap: clamp(1.25rem, 4vw, 2rem);
}
.projects__title{
  margin:0 0 0.45rem;
  font-size: clamp(1.15rem, 3.2vw, 1.35rem);
  letter-spacing:-0.015em;
}
.projects__desc{
  margin:0;
  color: var(--muted);
  max-width: 56rem;
}

.tags{
  margin: 0.7rem 0 0;
  display:flex;
  gap: 0.45rem;
  flex-wrap:wrap;
}
.tag{
  display:inline-flex;
  align-items:center;
  gap:0.4rem;
  border: 1px solid rgba(249,249,249,0.16);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.prompt__container {
  margin-top: clamp(2.1rem, 8vw, 3.4rem);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  max-width: 37rem;
  background: rgb(14 41 59);
  border: 1px solid rgba(249,249,249,0.14);
}
.prompt{
  padding: 0.75rem 0.95rem;
  color: rgba(249,249,249,0.82);
  font-size: 0.875rem;
}
.prompt__header{
  background: #71717b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius) var(--radius) 0 0;
}
.prompt__dots{
  display: flex;
  gap: 0.4rem;
}
.prompt__dot{
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.prompt__dot--red{ background: #ff5f57; }
.prompt__dot--yellow{ background: #febc2e; }
.prompt__dot--green{ background: #28c840; }
.prompt__title{
  font-size: 0.875rem;
  font-weight: 500;
}
.prompt__icon{
  display: flex;
  align-items: center;
  opacity: 0.8;
}
.prompt--inline{
  margin-top: 1.2rem;
}
.prompt__path{ color: #05df72; }
.prompt__path2{ color: rgba(249,249,249,0.75); }
.prompt__sig{ color: rgba(229,83,45,0.95); }
.prompt__user{ color: #fdc700; }
.prompt__text{ color: rgba(249,249,249,0.78); }
.prompt__botpath{ color: #51a2ff; }

.lastlogin{ color: #999999; }

.site-footer{
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max);
  padding: 0 var(--pad);
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  color: var(--text-secondary);
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 1s 1s forwards;
}

/* Footer for about and projects pages */
[data-page="about"] .site-footer,
[data-page="projects"] .site-footer {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  margin-top: 4rem;
  padding: 2rem var(--pad);
  opacity: 1;
  animation: none;
}

.footer__inner{
  display:flex;
  justify-content:space-between;
  gap: 1rem;
  flex-wrap:wrap;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.status{
  margin: 0.9rem 0 0;
  min-height: 1.2em;
  color: rgba(249,249,249,0.78);
}

/* Modal overlay */
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.modal-overlay[hidden]{ display: none; }

.modal{
  background: #fff;
  border-radius: 1rem 1rem 0 0;
  padding: 1.5rem 1.75rem 2rem;
  max-width: 420px;
  width: 100%;
  color: #1a1a1a;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp{
  from{ transform: translateY(100%); opacity: 0; }
  to{ transform: translateY(0); opacity: 1; }
}
.modal__handle{
  width: 40px;
  height: 5px;
  background: #d1d5db;
  border-radius: 3px;
  margin: 0 auto 1.25rem;
  cursor: grab;
  touch-action: none;
}
.modal__handle:active{
  cursor: grabbing;
}
.modal__title{
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.modal__desc{
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.5;
}
.modal__actions{
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.modal__btn{
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s ease;
}
.modal__btn:hover{ opacity: 0.85; }
.modal__btn--primary{
  background: #1a1a1a;
  color: #fff;
}
.modal__btn--secondary{
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #d1d5db;
}
.modal__note{
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.4;
}

/* Toast notification */
.toast{
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #dcfce7;
  color: #166534;
  padding: 0.85rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1100;
  animation: toastIn 0.3s ease-out;
}
.toast[hidden]{ display: none; }
.toast__icon{
  color: #22c55e;
  flex-shrink: 0;
}
@keyframes toastIn{
  from{ transform: translateY(20px); opacity: 0; }
  to{ transform: translateY(0); opacity: 1; }
}

.btn{
  appearance:none;
  border:1px solid rgba(249,249,249,0.16);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.98rem;
  cursor: pointer;
}
.btn--ghost{
  color: var(--muted);
}
.btn:hover{
  border-color: rgba(229,83,45,0.55);
  color: var(--text);
}
.btn:focus-visible{
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.drag-overlay{
  position: fixed;
  inset: 0;
  pointer-events:none;
  z-index: 9997;
  display:none;
}
.drag-overlay.is-active::before{
  content:"";
  position:absolute;
  left: var(--x, 0px);
  top: var(--y, 0px);
  width: var(--w, 0px);
  height: var(--h, 0px);
  background: var(--sel-bg-soft);
  border: 1px solid rgba(229,83,45,0.55);
  border-radius: 10px;
  backdrop-filter: blur(0.5px);
}

body.has-custom-cursor{
  cursor: none;
}
body.has-custom-cursor a,
body.has-custom-cursor button{
  cursor: none;
}

.cursor{
  position: fixed;
  inset: 0;
  pointer-events:none;
  z-index: 9998;
  display:none;
}
body.has-custom-cursor .cursor{ display:block; }

.cursor__dot,
.cursor__ring{
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  will-change: transform, width, height, opacity;
}

.cursor__dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.95;
}

.cursor__ring{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgb(0, 0, 0);
  opacity: 0.9;
}

body.cursor-hover .cursor__ring{
  border-color: rgba(229,83,45,0.65);
  width: 44px;
  height: 44px;
}
body.cursor-hover .cursor__dot{
  width: 7px;
  height: 7px;
}

body.cursor-selecting .cursor__ring,
body.cursor-dragging .cursor__ring{
  border-color: rgba(229,83,45,0.85);
  width: 56px;
  height: 56px;
  opacity: 0.95;
}

body.cursor-hidden .cursor__ring,
body.cursor-hidden .cursor__dot{
  opacity: 0;
}

/* Reduced motion: keep the feel but avoid follower smoothing/extra effects */
@media (prefers-reduced-motion: reduce){
  .drag-overlay.is-active::before{ backdrop-filter: none; }
}

/* Nascondi il cursore di typed2 finché non inizia a scrivere */
#typed2 + .typed-cursor {
  display: none;
}

/* ============================
   ABOUT PAGE STYLES
   ============================ */
.about-layout {
  padding-top: 1rem;
  max-width: 900px;
}

/* Hero Section */
.about-hero {
  margin-bottom: 3.5rem;
  text-align: center;
}

.about-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

.about-hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.about-hero__role {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.accent-dot {
  color: var(--accent);
  margin: 0 0.1rem;
}

.about-hero__intro {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  min-width: 100px;
}

.hero-stat__value {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text);
  line-height: 1;
}

.hero-stat__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* About Content */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-section {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-icon {
  font-size: 1.25rem;
}

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

/* Job Cards */
.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.job-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.job-card:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.job-card--past {
  opacity: 0.7;
}

.job-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.job-card__title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.job-card__title {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

.job-card__badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.25);
  font-weight: 600;
}

.job-card__date {
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.job-card__company {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 1rem;
  transition: opacity 0.2s;
}

a.job-card__company:hover {
  opacity: 0.8;
}

.job-card__summary {
  font-size: 0.95rem;
  color: rgb(14 41 59);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.job-card__highlights {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgb(14 41 59);
}

.highlight-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.job-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  font-size: 0.7rem;
  padding: 0.4rem 0.8rem;
  background: rgb(229 83 45);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: rgb(255 255 255);
  font-family: var(--font-mono);
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.skill-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.25s ease;
}

.skill-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.skill-card__icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.75rem;
}

.skill-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.skill-card__desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

/* Keywords Cloud */
.keywords-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.keyword {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  background: rgb(2 181 111 / 10%);
  border: 1px solid rgb(57 229 45 / 25%);
  border-radius: 8px;
  color: #099909;
  transition: all 0.2s ease;
}

.keyword:hover {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
}

.keyword--primary {
  background: rgba(229,83,45,0.1);
  border-color: rgba(229,83,45,0.25);
  color: var(--accent);
}

.keyword--accent {
  background: rgba(81, 162, 255, 0.1);
  border-color: rgba(81, 162, 255, 0.25);
  color: #51a2ff;
}

/* CTA Section */
.about-cta {
  margin-top: 1rem;
}

.cta-card {
  background: linear-gradient(135deg, rgba(229,83,45,0.08) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(229,83,45,0.2);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.cta-card__desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

.cta-card__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.cta-btn--primary {
  background: var(--accent);
  color: #fff;
  border: none;
}

.cta-btn--primary:hover {
  background: #d4582a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229,83,45,0.3);
}

.cta-btn--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.2);
}

.cta-btn--secondary:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
}

/* Responsive About */
@media (max-width: 800px) {
  .site-footer {
    position: relative;
    bottom: auto;
    padding: 40px 0;
    margin-top: 40px;
    left: auto;
    transform: none;
  }

  .hero-stats {
    gap: 1rem;
  }

  .hero-stat {
    padding: 0.75rem 1rem;
    min-width: 80px;
  }

  .hero-stat__value {
    font-size: 1.4rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-card {
    flex-direction: column;
    text-align: center;
  }

  .cta-card__actions {
    justify-content: center;
  }

  .job-card__header {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 500px) {
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .cta-card__actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-btn {
    justify-content: center;
  }
}

/* ============================
   PROJECTS PAGE STYLES
   ============================ */
.projects-hero {
  margin-bottom: 3rem;
}

.projects-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.projects-hero__lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0;
  max-width: 500px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow:
    0 4px 24px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Glow effect behind card */
.project-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(229,83,45,0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Accent line on top */
.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(229,83,45,0.3) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.25),
    0 0 60px rgba(229,83,45,0.08),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover::after {
  opacity: 1;
}

.project-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.project-card__icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.project-card__status {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  background: rgba(39, 201, 63, 0.12);
  color: #4ade80;
  border: 1px solid rgba(39, 201, 63, 0.2);
}

.project-card__title {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.project-card__subtitle {
  font-size: 0.9rem;
  color: var(--accent);
  margin: 0 0 1rem;
  font-weight: 500;
  opacity: 0.9;
}

.project-card__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.project-card__metrics {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.15) 100%);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
}

.metric {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.metric__value {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.metric__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.25rem;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-card__tags .tag {
  font-size: 0.7rem;
  padding: 0.4rem 0.75rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s ease;
}

.project-card:hover .tag {
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.05) 100%);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
}

/* Small screens: keep whitespace but compact */
@media (max-width: 700px){
  .nav__links a{ font-size: 0.95rem; }
  .scope__item{ min-width: 9.5rem; }
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
