.projects-col .section-title {
  position: relative;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.projects-col .section-title::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    var(--teal-500) 0%, 
    var(--purple-600) 30%, 
    var(--pink-500) 60%, 
    transparent 100%
  );
  opacity: 0.2;
  border-radius: 3px;
}

.project.container { max-width: 980px; margin: 24px auto; padding: 0 clamp(16px, 4vw, 28px) clamp(48px, 24vh, 240px); }
.project__card { border-radius: 16px; padding: clamp(16px, 3vw, 24px); display: grid; gap: 16px; }
.project__header { display: grid; gap: 6px; }
.project__title {
  margin: 0;
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 800;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.project__subtitle { margin: 0; color: var(--text-1); font-weight: 600; }
.project__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.project__media { display: grid; place-items: center; }
.project__preview { width: 100%; height: auto; max-width: 760px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); }
.project__info { display: grid; gap: 12px; }
.project__desc { margin: 0; color: var(--text-1); font-size: 14px; }
.project__actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (min-width: 900px) {
  .project__body { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}

.projects-col { min-width: 0; }

.projects-col .section-title {
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.projects__grid {
  display: grid;
  grid-gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  isolation: isolate;
}


#past-projects {
  max-height: 0;          
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 480ms cubic-bezier(0.4, 0.0, 0.2, 1),
              opacity 480ms cubic-bezier(0.4, 0.0, 0.2, 1),
              margin-top 480ms cubic-bezier(0.4, 0.0, 0.2, 1);
}
#past-projects.is-open {
  max-height: 3000px;     
  opacity: 1;
  margin-top: 10px;
}


#btn-toggle-disabled i { transition: transform 420ms cubic-bezier(0.4, 0.0, 0.2, 1); }
#btn-toggle-disabled[aria-expanded="true"] i { transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce) {
  #past-projects { transition: none; }
  #btn-toggle-disabled i { transition: none; }
}

@media (max-width: 2200px) {
  .projects__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1600px) {
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.project-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  padding: 18px;
  padding-bottom: 34px; 
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-0);
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
  
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;

  position: relative;
  overflow: hidden;
  
}
.project-card { position: relative; }
.project-card:hover { transform: none; }
.project-card:focus { outline: none; }
.project-card:focus-visible { outline: 2px solid rgba(255,255,255,0.2); outline-offset: 2px; }


.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px; 
  
  background: conic-gradient(
    from var(--border-angle, 225deg),
    var(--teal-500) 0deg,
    var(--pink-500) 180deg,
    var(--teal-500) 360deg
  );
  
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease;
  z-index: 0; 
}

.project-card:hover::before,
.project-card:focus-visible::before {
  opacity: 1;
  animation: project-card-gradient-rotate 12s linear infinite;
}


@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 225deg; 
}

@keyframes project-card-gradient-rotate {
  from { --border-angle: 225deg; }
  to   { --border-angle: 585deg; } 
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: var(--card-bg, none);
  background-repeat: no-repeat;
  background-position: center;
  
  background-size: calc(100% * var(--card-bg-zoom, 1)) calc(100% * var(--card-bg-zoom, 1));
  
  opacity: var(--card-bg-alpha, 0);
  
  filter: brightness(var(--card-bg-brightness, 1)) contrast(var(--card-bg-contrast, 1));
  pointer-events: none;
  z-index: -2; 
}


.project-card__glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(
    from var(--border-angle, 225deg),
    var(--teal-500) 0deg,
    var(--pink-500) 180deg,
    var(--teal-500) 360deg
  );
  filter: blur(10px);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
  z-index: -1; 
}

.project-card:hover .project-card__glow,
.project-card:focus-visible .project-card__glow {
  opacity: 0.22; 
  animation: project-card-gradient-rotate 12s linear infinite;
}

.project-card__icon { font-size: 26px; display: grid; place-items: center; width: 112px; height: 112px; border-radius: 10px; background: transparent; border: none; }
.project-card__thumb { width: 112px; height: 112px; border-radius: 10px; background: transparent; border: none; overflow: hidden; display: grid; place-items: center; }
.project-card__thumb { --icon-zoom: 1; }
.project-card__thumb .project-card__img { width: 100%; height: 100%; object-fit: contain; object-position: center; transform: scale(var(--icon-zoom)); transition: transform 150ms ease; }

.project-card * { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }

.project-card__thumb,
.project-card__body { position: relative;}

.project-card__body { padding-right: calc(var(--label-size) + 10px); }
.project-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
}


.project-card::after { opacity: var(--card-bg-alpha, 0); }

@media (prefers-reduced-motion: reduce) {
  .project-card:hover,
  .project-card:focus-visible { transform: none; }
  .project-card__thumb .project-card__img { transition: none; }
  .project-card:hover::before,
  .project-card:focus-visible::before { animation: none; }
  .project-card:hover .project-card__glow,
  .project-card:focus-visible .project-card__glow { animation: none; }
}
.project-card__subtitle { margin: 4px 0 0 0; color: var(--text-1); font-size: 13px; font-weight: 600; line-height: 1.2; }
.project-card__desc { margin: 4px 0 0 0; color: var(--text-1); font-size: 13px; }

.project-card__title,
.project-card__subtitle,
.project-card__desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card__title { -webkit-line-clamp: 2; line-clamp: 2; }
.project-card__subtitle { -webkit-line-clamp: 1; line-clamp: 1; }
.project-card__desc { -webkit-line-clamp: 3; line-clamp: 3; }


.project-card { max-height: 240px; overflow: hidden; }
.project-card--detail { max-height: none; overflow: visible; }


@media (min-width: 600px) {
  .project-card__desc { -webkit-line-clamp: 4; line-clamp: 4; }
}

.project-card.is-disabled { opacity: 0.48; pointer-events: none; filter: grayscale(0.3) saturate(0.6); }
.project-card.is-disabled::before { display: none; }
.project-card.is-disabled:hover { transform: none; }
.project-card.is-disabled:hover .project-card__glow { opacity: 0 !important; }

.project-card--detail {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  gap: 10px;
  padding: clamp(20px, 4vw, 36px);
  max-height: none;
  overflow: visible;
}
.project-card__logo {
  width: clamp(140px, 24vw, 220px);
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
  z-index: 1;
}
.project-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; justify-content: center; }
.project-card__actions .btn.socials__link { padding: 8px 12px; height: auto; width: auto; }


.project-title {
  margin: 12px auto 6px auto;
  text-align: center;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 800;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  width: fit-content;
}
.project-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: min(420px, 70vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent 0%, var(--teal-500) 25%, var(--pink-500) 75%, transparent 100%);
  opacity: 0.5;
}


.project-card__tech {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: inline-flex;
  gap: 8px;
  align-items: center; 
  pointer-events: auto;
}
.project-card__tech img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.25));
  opacity: 0.9;
  
  pointer-events: auto;
  cursor: default;
}


.project-card__note {
  position: absolute;
  left: 20px;
  bottom: 10px;
  pointer-events: none;
  color: var(--text-1);
  font-size: 11px; 
  font-style: italic; 
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 140px); 
}


.project-card__label {
  position: absolute;
  top: 8px;
  right: 8px;
  width: var(--label-size);
  height: var(--label-size);
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  
  border: none;
  background: transparent;
  box-shadow: none;
  pointer-events: none; 
}
.project-card__label { --label-zoom: 1; }
.project-card__label img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  transform: scale(var(--label-zoom));
}


@media (max-width: 420px) {
  .project-card { --label-size: 32px; }
  .project-card__body { padding-right: calc(var(--label-size) + 8px); }
}

.projects__error {
  color: var(--text-1);
  font-size: 13px;
  opacity: 0.9;
}


.project-detail { margin-top: 12px; display: grid; gap: 16px; }
.project-detail__section { padding: 14px; border-radius: 12px; background: var(--surface-0); border: 1px solid rgba(255,255,255,0.08); }
.project-detail__heading { margin: 0 0 8px 0; font-size: 16px; font-weight: 700; color: var(--text-0); }
.features-list { margin: 0; padding-left: 18px; color: var(--text-1); font-size: 14px; }
.shots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 560px) {
  .shots-grid { grid-template-columns: 1fr; }
}
.shot { margin: 0; }
.shot img { width: 100%; height: auto; display: block; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); }
.install-steps { margin: 0; padding-left: 18px; color: var(--text-1); font-size: 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); color: var(--text-1); font-size: 12px; }
.badge--version { background: rgba(0,0,0,0.3); color: var(--text-0); border-color: rgba(255,255,255,0.18); }
.changelog { margin: 0; padding-left: 18px; color: var(--text-1); font-size: 14px; }
.changelog-notes { margin-top: 6px; }


.project-detail__summary { padding: 0; border-radius: 0; background: transparent; border: 0; }
.project-detail__features,
.project-detail__shots,
.project-detail__changelog { padding: 0; border: none; background: transparent; }

.section-heading {
  margin: 4px 0 10px 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
  background: linear-gradient(90deg, var(--teal-500), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.section-heading::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 6px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
}

.project-detail__shots .shots-grid { margin-top: 8px; }
.project-detail__features .features-list { margin-top: 4px; }
.project-detail__features .project-desc { margin: 6px 0 6px 0; color: var(--text-1); font-size: 14px; }
.project-card__actions { justify-content: center; }


.project-card__actions .btn {
  position: relative;
  z-index: 0;
}
.project-card__actions .btn::before {
  content: "";
  position: absolute;
  inset: -1px; 
  border-radius: 10px;
  padding: 1px;
  background: conic-gradient(
    from var(--border-angle, 225deg),
    var(--teal-500) 0deg,
    var(--pink-500) 180deg,
    var(--teal-500) 360deg
  );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0; 
  transition: opacity 200ms ease;
  pointer-events: none;
  z-index: -1;
}
.project-card__actions .btn:hover::before,
.project-card__actions .btn:focus-visible::before {
  opacity: 1;
  animation: project-card-gradient-rotate 12s linear infinite;
}


.project-card__actions .btn i {
  margin-right: 6px;
}


.project-card__actions .btn:active::before {
  opacity: 1;
  background: conic-gradient(
    from var(--border-angle, 225deg),
    #32d74b 0deg,
    #4fd431 180deg,
    #32d74b 360deg
  );
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .project-card__actions .btn:hover::before,
  .project-card__actions .btn:focus-visible::before { animation: none; }
}


.project-detail__summary .project-detail__heading { margin-top: 8px; }
.project-detail__summary .project-desc { margin: 0; color: var(--text-1); font-size: 14px; }
.project-detail__summary .features-list { margin-top: 6px; }




.timers-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  padding: 0 clamp(16px, 4vw, 32px);
  margin-bottom: 40px;
}

.timer-widgets {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timer-widget {
  background: var(--surface-0);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.timer-widget-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-0);
  margin-bottom: 8px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.timer-widget-time {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-0);
  font-family: monospace;
}

.events-table-container {
  background: var(--surface-0);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
}


.dataTables_wrapper {
  color: var(--text-1);
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  color: var(--text-1);
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  background: var(--surface-0);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-1);
  border-radius: 4px;
  padding: 4px 8px;
}

table.dataTable {
  background: transparent;
  color: var(--text-1);
}

table.dataTable thead th {
  background: var(--surface-1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-0);
  font-weight: 600;
}

table.dataTable tbody td {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

table.dataTable tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}


.status-active {
  color: #10b981;
  font-weight: 600;
}

.status-registration {
  color: #f59e0b;
  font-weight: 600;
}

.status-upcoming {
  color: var(--text-1);
}

.introduction-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.introduction-modal-content {
  background: var(--surface-0);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 24px;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.introduction-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-1);
}

.introduction-close:hover {
  color: var(--text-0);
}

@media (max-width: 1200px) {
  .timers-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .timer-widgets {
    flex-direction: row;
    overflow-x: auto;
  }
  
  .timer-widget {
    min-width: 180px;
  }
}

@media (max-width: 768px) {
  .sailor-logo {
    max-width: 150px;
  }
  
  .timers-content {
    padding: 0 16px;
  }
  
  .timer-widgets {
    flex-direction: column;
  }
}

