.grid-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
  grid-auto-rows: minmax(100px, auto);
}
.grid-one {
  grid-column: 1 / 1;
  grid-row: 1;
}
.grid-two {
  grid-column: 2 / 4;
  grid-row: 1;
  margin: auto;
}
.colonne {
  display:table-cell;
  width:33%;
  padding:25px;
  float: left;
}
.disptable {
  display:table
}
blink, .blink {
  -webkit-animation: blink 1s step-end infinite;
  -moz-animation: blink 1s step-end infinite;
  -o-animation: blink 1s step-end infinite;
  animation: blink 1s step-end infinite;
}
@-webkit-keyframes blink {
  67% { opacity: 0 }
}
@-moz-keyframes blink {
  67% { opacity: 0 }
}
@-o-keyframes blink {
  67% { opacity: 0 }
}
@keyframes blink {
  67% { opacity: 0 }
}

/* Portfolio cards */
.portfolio-legend {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0 0 40px;
  flex-wrap: wrap;
}
.portfolio-legend [data-filter] {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  user-select: none;
}
.portfolio-legend [data-filter]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}
.portfolio-legend [data-filter].portfolio-filter-active {
  outline: 3px solid #fed136;
  outline-offset: 3px;
}
.portfolio-legend [data-filter].portfolio-filter-dimmed {
  opacity: 0.4;
}
.portfolio-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
}
.portfolio-card.portfolio-card-hidden {
  display: none;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.portfolio-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}
.portfolio-card__media {
  position: relative;
  height: 170px;
  margin: 12px 12px 0;
  border-radius: 10px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.portfolio-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}
.portfolio-card__media img.portfolio-card__media-cover {
  object-fit: cover;
  padding: 0;
}
.portfolio-card__media--placeholder {
  background: linear-gradient(135deg, var(--accent, #fed136) 0%, rgba(20, 20, 20, 0.55) 100%);
}
.portfolio-card__initials {
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 60px;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  line-height: 1;
}
.portfolio-card__media .portfolio-badge {
  position: absolute;
  top: 12px;
}
#portfolio .portfolio-card__media .portfolio-badge {
  z-index: 4;
}
#portfolio .portfolio-card__media img {
  z-index: 1;
}
.portfolio-card__media .portfolio-badge--job,
.portfolio-card__media .portfolio-badge--personal,
.portfolio-card__media .portfolio-badge--degree {
  left: 12px;
}
.portfolio-card__media .portfolio-badge--duration {
  right: 12px;
}
.portfolio-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: rgba(255, 255, 255, 0.96);
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
  line-height: 1;
}
.portfolio-badge--job {
  background: #2c5aa0;
  color: #fff;
}
.portfolio-badge--personal {
  background: #2e7d32;
  color: #fff;
}
.portfolio-badge--degree {
  background: #4a235a;
  color: #fff;
}
.portfolio-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.portfolio-card__title {
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  margin: 0 0 4px;
  font-size: 20px;
  color: #222;
  text-transform: none;
}
.portfolio-card__role {
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: #b8a000;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
}
.portfolio-card__desc {
  font-family: "Droid Serif", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #555;
  margin: 0 0 16px;
  flex: 1 1 auto;
}
.portfolio-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.portfolio-tag {
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11px;
  padding: 3px 9px;
  background: #f3f3f3;
  color: #555;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.portfolio-card__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.portfolio-card__links a {
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #c9a30a;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.portfolio-card__links a:hover,
.portfolio-card__links a:focus {
  color: #fed136;
  border-bottom-color: #fed136;
  text-decoration: none;
}
/* Featured cards */
.portfolio-card--featured {
  grid-column: span 3;
  flex-direction: row;
}
.portfolio-card--featured .portfolio-card__media {
  width: 240px;
  min-width: 240px;
  flex-shrink: 0;
  height: auto;
  margin: 12px 0 12px 12px;
  align-self: stretch;
}
.portfolio-card--featured .portfolio-card__body {
  padding: 24px 26px 24px;
}
.portfolio-card--featured .portfolio-card__title {
  font-size: 22px;
}
.portfolio-card--featured .portfolio-card__desc {
  font-size: 15px;
}
.portfolio-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 14px;
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: #888;
}
.portfolio-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
@media (max-width: 700px) {
  .portfolio-card--featured {
    grid-column: span 1;
    flex-direction: column;
  }
  .portfolio-card--featured .portfolio-card__media {
    width: auto;
    min-width: auto;
    height: 170px;
    margin: 12px 12px 0;
    align-self: auto;
  }
}
@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive iframe wrapper (16:9) */
.bc-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}
.bc-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Botcrypto "See more" button */
.portfolio-link-btn {
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border: 2px solid #fed136;
  background: #fed136;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.portfolio-link-btn:hover,
.portfolio-link-btn:focus {
  background: #f0c400;
  border-color: #f0c400;
  outline: none;
}

/* Botcrypto detail modal */
.bc-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 9999;
  overflow-y: auto;
  padding: 40px 20px;
}
.bc-modal-overlay.is-open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.bc-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 820px;
  width: 100%;
  padding: 44px 44px 40px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}
.bc-modal__close {
  position: absolute;
  top: 14px;
  right: 20px;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #aaa;
  line-height: 1;
  transition: color 0.15s;
}
.bc-modal__close:hover { color: #222; }
.bc-modal__title {
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 21px;
  margin: 0 0 28px;
  color: #222;
  padding-right: 24px;
}
.bc-modal__label {
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #b8a000;
  margin: 22px 0 6px;
}
.bc-modal__text {
  font-family: "Droid Serif", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin: 0;
}
.bc-modal__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.bc-modal__stat {
  background: #fdf9ec;
  border-left: 3px solid #fed136;
  padding: 10px 16px;
  border-radius: 0 6px 6px 0;
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  flex: 1 1 180px;
}
.bc-modal__gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}
.bc-modal__gallery img {
  width: 100%;
  border-radius: 8px;
  cursor: zoom-in;
  object-fit: contain;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}
.bc-modal__gallery img:hover {
  border-color: #fed136;
  transform: scale(1.01);
}
@media (max-width: 580px) {
  .bc-modal { padding: 28px 20px; }
}

/* Lightbox */
.bc-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.bc-lightbox.is-open { display: flex; }
.bc-lightbox__img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.bc-lightbox__close {
  position: absolute;
  top: 18px;
  right: 26px;
  background: none;
  border: none;
  font-size: 38px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.bc-lightbox__close:hover { opacity: 1; }
