/* ===================================================================
   STYLE.CSS — Gabriele Paganelli Personal Site
=================================================================== */

/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../assets/fonts/inter-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('../assets/fonts/inter-v20-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('../assets/fonts/inter-v20-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../assets/fonts/inter-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* === VARIABLES === */
:root {
  --bg:           #070d1b;
  --bg-secondary: #0b1525;
  --bg-card:      #0e1827;
  --bg-card-hover:#111f32;
  --accent:       #4a90e2;
  --accent-hover: #6aaef5;
  --accent-dim:   rgba(74, 144, 226, 0.10);
  --text:         #dde6f5;
  --text-muted:   #6b82a0;
  --text-faint:   #2e4060;
  --border:       rgba(74, 144, 226, 0.14);
  --border-hover: rgba(74, 144, 226, 0.38);
  --nav-height:   64px;
  --radius:       12px;
  --radius-sm:    6px;
  --max-width:    840px;
  --transition:   0.25s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }

/* === LAYOUT === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 96px 0; }

/* === NAVBAR === */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(7, 13, 27, 0.70);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background var(--transition), border-color var(--transition);
}

nav.scrolled {
  background: rgba(7, 13, 27, 0.95);
  border-color: rgba(74, 144, 226, 0.22);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(7, 13, 27, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 24px 32px 32px;
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}

.nav-mobile.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--text); }

/* === HERO === */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(-45deg, #070d1b, #0a1628, #06101e, #091422);
  background-size: 400% 400%;
  animation: gradientShift 22s ease infinite;
  padding: calc(var(--nav-height) + 40px) 0 80px;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-content {
  max-width: 640px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero-avatar {
  margin: 0 auto 36px;
  display: block;
}

.hero-name {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 10px;
}

.hero-role {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.hero-tagline {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 44px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 28px rgba(74, 144, 226, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border: 1px solid var(--border-hover);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-dim);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-faint);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: scrollBounce 2.5s ease infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* === SECTION LABELS === */
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.section-header { margin-bottom: 52px; }

/* === ABOUT === */
#about {
  background: var(--bg-secondary);
}

.about-text {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 680px;
  margin-bottom: 8px;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 32px;
}

.badge {
  padding: 5px 13px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.80rem;
  color: var(--accent-hover);
  font-weight: 500;
}

/* === PROJECTS === */
#projects { background: var(--bg); }

.project-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  border-color: rgba(74, 144, 226, 0.28);
  box-shadow: 0 2px 20px rgba(74, 144, 226, 0.05);
}

.project-card.open {
  border-color: rgba(74, 144, 226, 0.35);
  box-shadow: 0 4px 28px rgba(74, 144, 226, 0.08);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  gap: 16px;
  transition: background var(--transition);
}

.project-header:hover { background: rgba(255,255,255,0.01); }

.project-header-left {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex: 1;
  min-width: 0;
}

.project-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
  width: 22px;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
  transition: color var(--transition);
  line-height: 1.3;
}

.project-header:hover .project-title,
.project-card.open .project-title { color: var(--accent-hover); }

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  padding: 2px 9px;
  background: rgba(74, 144, 226, 0.07);
  border: 1px solid rgba(74, 144, 226, 0.16);
  border-radius: 100px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.project-arrow {
  color: var(--text-faint);
  font-size: 0.9rem;
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  line-height: 1;
  margin-top: 2px;
}

.project-card.open .project-arrow {
  transform: rotate(90deg);
  color: var(--accent);
}

.project-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}

.project-card.open .project-body { max-height: 1500px; }

.project-body-inner {
  padding: 0 26px 26px;
  padding-left: 66px;
}

.project-abstract {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-style: italic;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  font-size: 0.80rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
}

.link-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.view-project {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap var(--transition), color var(--transition);
}

.view-project:hover {
  color: var(--accent-hover);
  gap: 10px;
}

/* === SIGNALS === */
#signals { background: var(--bg-secondary); }

.signals-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 540px;
  margin-top: 4px;
  margin-bottom: 52px;
}

.signals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.signals-col-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.signals-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.signals-list li {
  border-bottom: 1px solid var(--border);
}

.signals-list li a {
  display: block;
  padding: 13px 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
  line-height: 1.4;
}

.signals-list li a:hover { color: var(--text); }

.signals-desc {
  display: block;
  margin-top: 3px;
  color: var(--text-faint);
  font-size: 0.82rem;
  transition: color var(--transition);
}

.signals-list li a:hover .signals-desc { color: var(--text-muted); }

.signals-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-faint);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color var(--transition);
  margin-top: 4px;
}
.signals-ext-link:hover { color: var(--accent); }

/* === CONTACT === */
#contact { background: var(--bg); }

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
  font-size: 0.93rem;
}

.contact-item:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.contact-item svg { color: var(--accent); flex-shrink: 0; }
.contact-label { font-size: 0.72rem; color: var(--text-faint); margin-bottom: 2px; letter-spacing: 0.05em; }

/* === FOOTER === */
footer {
  padding: 28px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

footer p {
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* ===================================================================
   PROJECT PAGES
=================================================================== */

.project-page-hero {
  padding: calc(var(--nav-height) + 56px) 0 52px;
  background: linear-gradient(-45deg, #070d1b, #0a1628, #060f1e, #091220);
  background-size: 400% 400%;
  animation: gradientShift 22s ease infinite;
  border-bottom: 1px solid var(--border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color var(--transition), gap var(--transition);
}
.back-link:hover { color: var(--accent); gap: 11px; }

.project-page-title {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}

.project-page-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.project-page-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-lg {
  padding: 4px 13px;
  background: var(--accent-dim);
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  font-size: 0.80rem;
  color: var(--accent);
  font-weight: 500;
}

/* Project page sections */
.proj-section {
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
}

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

.proj-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.proj-section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.proj-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 680px;
}

/* Visuals grid */
.visuals-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.visual-cell {
  width: 100%;
  max-width: 510px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.32);
}

.visual-pdf {
  display: block;
  width: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.visual-pdf[data-rendered] {
  opacity: 1;
}

.visual-img {
  display: block;
  width: 100%;
  height: auto;
}

.visual-video {
  display: block;
  width: 100%;
  height: auto;
}

/* Project page links */
.proj-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.proj-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
}

.proj-link-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* === ACTIVITIES === */
#activities { background: var(--bg-secondary); }

.activity-list {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: var(--bg-card-hover); }

.activity-year {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  width: 30px;
}

.activity-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.activity-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

a.activity-name:hover { color: var(--accent-hover); }

.activity-org {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.activity-status {
  flex-shrink: 0;
  font-size: 0.70rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid;
  white-space: nowrap;
}

.status-upcoming {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: var(--border-hover);
}

.status-ongoing {
  color: #5dbf8a;
  background: rgba(93, 191, 138, 0.10);
  border-color: rgba(93, 191, 138, 0.28);
}

.status-award {
  color: #d4a017;
  background: rgba(212, 160, 23, 0.10);
  border-color: rgba(212, 160, 23, 0.28);
}

.status-speaker {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.10);
  border-color: rgba(167, 139, 250, 0.28);
}

@media (max-width: 480px) {
  .activity-item { flex-wrap: wrap; align-items: flex-start; gap: 6px 12px; padding: 13px 16px; }
  .activity-body { flex: 1 1 calc(100% - 42px); }
  .activity-status { margin-left: 42px; }
}

/* === AWARD === */
.award-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: rgba(212, 160, 23, 0.10);
  border: 1px solid rgba(212, 160, 23, 0.28);
  border-radius: 100px;
  font-size: 0.70rem;
  font-weight: 600;
  color: #d4a017;
  margin-top: 6px;
  white-space: nowrap;
  width: fit-content;
}

.award-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(212, 160, 23, 0.08);
  border: 1px solid rgba(212, 160, 23, 0.22);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: #d4a017;
  margin-top: 22px;
}

.project-award-line {
  font-size: 0.80rem;
  color: #b8861a;
  margin-bottom: 16px;
}

/* ===================================================================
   ANIMATIONS
=================================================================== */
.fade-in {
  transition: opacity 0.65s ease, transform 0.65s ease;
}

/* Only hide pre-animation when JS is available, so the site stays
   fully visible if the script fails to load. */
.js .fade-in {
  opacity: 0;
  transform: translateY(22px);
}

.js .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ===================================================================
   RESPONSIVE
=================================================================== */
@media (max-width: 768px) {
  :root { --nav-height: 58px; }

  section { padding: 72px 0; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero-cta { flex-direction: column; align-items: center; }

  .signals-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .project-body-inner { padding-left: 26px; }

  .proj-links { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .project-header { padding: 18px 20px; }
  .project-body-inner { padding: 0 20px 22px; }
  .project-header-left { gap: 12px; }
}

/* === CV LINKS === */
.cv-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* === CURRENTLY === */
.about-current {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 26px;
  max-width: 620px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.current-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: #5dbf8a;
  box-shadow: 0 0 0 0 rgba(93, 191, 138, 0.5);
  animation: currentPulse 2.4s ease infinite;
}

@keyframes currentPulse {
  0%   { box-shadow: 0 0 0 0 rgba(93, 191, 138, 0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(93, 191, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(93, 191, 138, 0); }
}


/* === WORK IN PROGRESS (progetti in corso) === */
.wip-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  background: rgba(93, 191, 138, 0.10);
  border: 1px solid rgba(93, 191, 138, 0.28);
  border-radius: 100px;
  font-size: 0.70rem;
  font-weight: 600;
  color: #5dbf8a;
  margin-top: 6px;
  white-space: nowrap;
  width: fit-content;
}

.wip-badge .current-dot {
  width: 7px;
  height: 7px;
  margin-top: 0;
}

.link-btn-soon,
.link-btn-soon:hover {
  border-style: dashed;
  border-color: var(--border-hover);
  color: var(--text-muted);
  background: none;
  opacity: 0.55;
  cursor: not-allowed;
}


/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .fade-in { opacity: 1; transform: none; }
}
