:root {
  --bg: #07111f;
  --bg-soft: #0d1a2b;
  --surface: #102238;
  --surface-light: #f3f6f9;
  --text: #f5f7fa;
  --text-muted: #b4c0cf;
  --text-dark: #142033;
  --text-dark-muted: #5d6877;
  --accent: #59d0c6;
  --accent-dark: #218f89;
  --accent-warm: #f0a14a;
  --border: rgba(255, 255, 255, 0.12);
  --border-dark: rgba(20, 32, 51, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 8px;
  background: white;
  color: black;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
}

.section-alt {
  background: var(--surface-light);
  color: var(--text-dark);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(7, 17, 31, 0.78);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.scrolled {
  border-color: var(--border);
  background: rgba(7, 17, 31, 0.94);
}

.nav-wrapper {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 12px;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent), #a7fff5);
  box-shadow: 0 10px 25px rgba(89, 208, 198, 0.2);
  font-size: 1.45rem;
  line-height: 1;
}

.brand-text {
  font-size: 1.04rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 650;
  transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
}

.main-nav .nav-cta {
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  padding-top: calc(var(--header-height) + 72px);
  display: grid;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  top: -180px;
  right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89, 208, 198, 0.24), transparent 68%);
  filter: blur(4px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.13;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 70px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.cta-card h2,
.dialog-project h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
}

.hero h1 span {
  color: var(--accent);
}

.hero-text {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--bg);
  background: var(--accent);
  box-shadow: 0 16px 36px rgba(89, 208, 198, 0.2);
}

.button-secondary {
  color: inherit;
  border-color: currentColor;
  background: transparent;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
}

.hero-highlights li,
.tag,
.project-meta span {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.035);
}

.hero-highlights li {
  padding: 8px 12px;
  font-size: 0.87rem;
}

.hero-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.025));
  box-shadow: var(--shadow);
}

.profile-visual {
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgba(255,255,255,0.5);
  font-weight: 750;
  background:
    linear-gradient(135deg, rgba(89, 208, 198, 0.18), rgba(240, 161, 74, 0.18)),
    radial-gradient(circle at 25% 20%, rgba(255,255,255,0.12), transparent 36%),
  #11243a;
}

.profile-visual img {
  width: 100%;
  height: 300px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-card-content {
  padding: 28px;
}

.availability {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6ef0a3;
  box-shadow: 0 0 0 6px rgba(110, 240, 163, 0.1);
}

.hero-card h2 {
  margin: 0;
  font-size: 1.75rem;
}

.hero-card p {
  color: var(--text-muted);
}

.quick-info {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
}

.quick-info div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.quick-info dt {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.quick-info dd {
  margin: 0;
  font-weight: 700;
}

.stats-strip {
  position: relative;
  z-index: 2;
  padding: 24px 0;
  border-block: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats-grid article {
  padding: 12px 24px;
  border-right: 1px solid var(--border);
}

.stats-grid article:last-child {
  border-right: 0;
}

.stats-grid strong,
.stats-grid span {
  display: block;
}

.stats-grid strong {
  color: var(--accent);
  font-size: 1.45rem;
}

.stats-grid span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 90px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 52px;
}

.section-heading h2,
.cta-card h2 {
  font-size: clamp(2.35rem, 5vw, 4.6rem);
}

.section-heading > p:not(.eyebrow) {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--text-muted);
}

.section-alt .section-heading > p:not(.eyebrow),
.section-alt .timeline-content > p,
.section-alt .skill-card li {
  color: var(--text-dark-muted);
}

.section-content .lead {
  margin-top: 0;
  font-size: 1.32rem;
  color: var(--text);
}

.section-content > p {
  color: var(--text-muted);
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.about-cards article {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.035);
}

.about-cards h3 {
  margin-top: 0;
}

.about-cards p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.timeline {
  display: grid;
  gap: 24px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 26px;
}

.timeline-date {
  padding-top: 22px;
  color: var(--accent-dark);
  font-weight: 850;
}

.timeline-content {
  padding: 28px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  background: white;
  box-shadow: 0 16px 45px rgba(20, 32, 51, 0.055);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.timeline-header h3,
.project-body h3,
.skill-card h3 {
  margin: 4px 0 0;
  line-height: 1.2;
}

.company {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: var(--text-dark-muted);
  border-color: var(--border-dark);
  background: #f7f9fb;
  font-size: 0.78rem;
  font-weight: 750;
}

.check-list,
.compact-list,
.skill-card ul {
  list-style: none;
  padding: 0;
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
}

.check-list li {
  position: relative;
  padding-left: 25px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 900;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.035);
  box-shadow: var(--shadow);
}

.project-card-featured {
  grid-column: span 2;
}







.project-body {
  padding: 30px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.project-meta span {
  padding: 6px 9px;
  font-size: 0.74rem;
}

.project-body h3 {
  font-size: 1.72rem;
}

.project-body > p,
.project-facts dd,
.compact-list {
  color: var(--text-muted);
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.project-facts div {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.project-facts dt {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.project-facts dd {
  margin: 6px 0 0;
  font-size: 0.9rem;
}

.compact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 20px 0;
}

.compact-list li::before {
  content: "•";
  margin-right: 8px;
  color: var(--accent);
}

.text-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

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

.skill-card {
  padding: 26px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  background: white;
}

.skill-icon {
  display: grid;
  place-items: center;
  width: 46px;
  aspect-ratio: 1;
  border-radius: 13px;
  color: white;
  background: var(--text-dark);
  font-size: 0.83rem;
  font-weight: 900;
}

.skill-card ul {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
}

.skill-card li {
  position: relative;
  padding-left: 18px;
}

.skill-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-dark);
}

.cta-section {
  padding-top: 80px;
}

.cta-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
  padding: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(89, 208, 198, 0.17), transparent 38%),
    rgba(255,255,255,0.04);
}

.cta-card p:not(.eyebrow) {
  max-width: 760px;
  color: var(--text-muted);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.contact-actions .text-link {
  text-align: center;
  padding-top: 8px;
}

.linkedin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: #0a66c2;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(10, 102, 194, 0.28);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.linkedin-button svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  fill: currentColor;
}

.linkedin-button:hover {
  transform: translateY(-2px);
  background: #004182;
  box-shadow: 0 16px 34px rgba(10, 102, 194, 0.36);
}

.linkedin-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-content a {
  color: var(--text);
  text-decoration: none;
}

.project-dialog {
  width: min(780px, calc(100% - 30px));
  max-height: 85vh;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}

.project-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.dialog-project {
  padding: 42px;
}

.dialog-project h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.dialog-project h3 {
  margin: 30px 0 8px;
}

.dialog-project p {
  color: var(--text-muted);
}

.dialog-close {
  position: sticky;
  top: 14px;
  z-index: 1;
  float: right;
  width: 42px;
  height: 42px;
  margin: 14px 14px 0 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  font-size: 1.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button {
    transition: none;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-soft);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .hero-grid,
  .section-grid,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-card {
    max-width: 650px;
  }

  .section-grid {
    gap: 24px;
  }

  .project-card-featured {
    grid-template-columns: 1fr;
  }

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

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

  .stats-grid article:nth-child(2) {
    border-right: 0;
  }

  .stats-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 68px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 82px 0;
  }

  .hero {
    padding-top: calc(var(--header-height) + 56px);
  }

  .hero-grid {
    gap: 44px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 14vw, 4.4rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-highlights {
    gap: 8px;
  }

  .profile-visual {
    min-height: 240px;
  }

  .profile-visual img {
    height: 240px;
  }

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

  .stats-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .stats-grid article:last-child {
    border-bottom: 0;
  }

  .about-cards,
  .project-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .project-card-featured {
    grid-column: auto;
  }

  .project-facts {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-date {
    padding-top: 0;
  }

  .timeline-header {
    flex-direction: column;
  }

  .cta-card {
    padding: 32px 24px;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .dialog-project {
    padding: 32px 24px 38px;
  }
}


.project-gallery-link {
  display: inline-flex;
  margin-top: 18px;
}






.page-hero {
  padding-top: calc(var(--header-height) + 74px);
  padding-bottom: 48px;
  background:
    radial-gradient(circle at top right, rgba(89, 208, 198, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--text-muted);
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.breadcrumb:hover,
.breadcrumb:focus-visible {
  color: var(--text);
}

.gallery-section + .gallery-section {
  padding-top: 0;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 28px;
}

.gallery-header p {
  margin-bottom: 0;
  color: var(--text-muted);
  max-width: 760px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-item {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border-dark);
  border-radius: 18px;
  background: white;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(20, 32, 51, 0.06);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #edf3f7;
}

.gallery-item img.gallery-image-contain {
  padding: 12px;
  object-fit: contain;
}

.gallery-item-content {
  padding: 16px;
}

.gallery-item-content strong,
.gallery-card h3 {
  display: block;
  color: var(--text-dark);
}

.gallery-item-content span {
  display: block;
  margin-top: 6px;
  color: var(--text-dark-muted);
  font-size: 0.9rem;
}

.gallery-carousel-hint {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.gallery-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  padding: 24px;
  border: 1px solid var(--border-dark);
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 26px rgba(20, 32, 51, 0.06);
}

.gallery-card p {
  color: var(--text-dark-muted);
}

.gallery-note {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: #f6fbfa;
  color: var(--text-dark-muted);
}

.lightbox-dialog {
  width: min(1000px, calc(100% - 24px));
  max-height: 88vh;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #081320;
  color: var(--text);
  box-shadow: var(--shadow);
}

.lightbox-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  padding: 24px 24px 28px;
}

.lightbox-media {
  position: relative;
  display: grid;
  place-items: center;
}

.lightbox-content img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 14px;
  background: #edf3f7;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 19, 32, 0.82);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  font-size: 1.6rem;
  transform: translateY(-50%);
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  border-color: var(--accent);
  background: var(--accent-dark);
}

.lightbox-nav--previous {
  left: 14px;
}

.lightbox-nav--next {
  right: 14px;
}

.lightbox-details {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  color: var(--text-muted);
}

.lightbox-counter {
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 980px) {
  .gallery-grid,
  .gallery-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .gallery-grid,
  .gallery-card-grid {
    grid-template-columns: 1fr;
  }

  .gallery-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .lightbox-content {
    padding: 16px 12px 20px;
  }

  .lightbox-nav {
    width: 42px;
    height: 42px;
  }

  .lightbox-nav--previous {
    left: 8px;
  }

  .lightbox-nav--next {
    right: 8px;
  }

  .lightbox-details {
    align-items: flex-start;
  }
}


/* Logos d'entreprises */
.experience-title {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.experience-logo {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 104px;
  width: 104px;
  height: 72px;
  overflow: hidden;
  padding: 9px;
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  background: #fff;
}

.experience-logo-wide {
  flex-basis: 142px;
  width: 142px;
}

.experience-logo img {
  position: absolute;
  inset: 9px;
  display: block;
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  max-width: none;
  max-height: none;
  object-fit: contain;
}

/* Logos des logiciels */
.skill-card-tools {
  grid-column: 1 / -1;
}

.skill-card-tools-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.skill-card-tools-heading h3 {
  margin: 0;
}

.skill-card-tools-heading p {
  margin: 7px 0 0;
  color: var(--text-dark-muted);
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.software-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  min-height: 138px;
  padding: 18px 14px 15px;
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  background: #f8fafc;
  text-align: center;
}

.software-logo {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
}

.software-logo-wide {
  width: 118px;
}

.software-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.software-item span {
  color: var(--text-dark);
  font-weight: 800;
}

.additional-tool {
  margin: 18px 0 0;
  color: var(--text-dark-muted);
  font-size: 0.94rem;
}

@media (max-width: 980px) {
  .software-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .experience-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .experience-logo,
  .experience-logo-wide {
    width: 130px;
    flex-basis: 74px;
  }

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

  .skill-card-tools-heading {
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  .software-grid {
    grid-template-columns: 1fr;
  }

  .software-item {
    min-height: 120px;
  }
}
