/* Globals */

::selection {
  color: #fff;
  background-color: var(--bs-danger);
}

.nav-logo {
  width: 175px;
}

@media (max-width: 576px) {
  .nav-logo {
    width: 124px;
  }
}

#mainNav {
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* Hero */

.bg-hero {
  background: url("../../assets/img/SVG/img-bg-hero.svg") top right / 45% no-repeat;
}

@media (max-width: 576px) {
  .bg-hero {
    background: none;
  }
}

/* Custom Links */

.link-to-project {
  font-family: 'IBM Plex Mono';
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: letter-spacing 0.3s ease;
}

@media (max-width: 768px) {
  .link-to-project {
    font-size: 0.8em;
  }
}

.link-to-project:hover {
  letter-spacing: 2px;
}

.border-deco-1 {
  border: .5px solid #414448;
}

.pattern-line {
  background: url("../../assets/img/SVG/pattern-line-45.svg");
  background-size: 10px;
}

.dot-grid-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgb(0,0,0) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 1;
  pointer-events: none;
  z-index: -2;
}

.dot-grid {
  position: relative;
  isolation: isolate;
}

.dot-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,1) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: -1;
}

.decor {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #EA4644;
  flex-shrink: 0;
}

.heading-deco::before {
  content: "_";
  color: #EA4644;
  font-weight: 900;
  margin-right: 8px;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.arrow-block {
  width: 16px;
}

/* Eyebrow */

.eyebrow-text {
  font-family: 'IBM Plex Mono';
  color: var(--bs-gray-500);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.eyebrow-small {
  color: var(--bs-gray-500);
  font-family: 'IBM Plex Mono';
  font-size: smaller;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.eyebrow-small-color {
  color: var(--bs-danger);
  font-family: 'IBM Plex Mono';
  font-size: smaller;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Custom button */

.btn-cta {
  font-family: 'IBM Plex Mono';
  font-weight: 400;
  font-size: larger;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 4px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), letter-spacing 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-cta-text:hover {
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .btn-cta {
    font-size: small;
    font-weight: 600;
  }
}

/* Proof Stats */

.stats-container {
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  .stats-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
}

.stats-value {
  font-size: 3em;
  font-weight: 800;
  color: var(--bs-danger);
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
}

.stats-label-container {
  display: flex;
  flex-direction: column;
}

.stats-label-1 {
  font-family: 'IBM Plex Mono';
  font-size: 1em;
  line-height: 1.33em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hr-topic-list {
  width: 75%;
  margin: 1.5rem 0;
  color: var(--bs-gray-600);
}

/* Hero Glass Message */

.glass-box {
  position: absolute;
  left: -10px;
  top: 30%;
  transform: translateY(-30%);
  width: 230px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: glassIn 0.6s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

@keyframes glassIn {
  from {
    opacity: 0;
    transform: translateY(-30%) translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(-30%) translateX(0);
  }
}

/* lg (992px) */

@media (max-width: 1199px) {
  .glass-box {
    left: 10px;
    top: 55%;
    transform: translateY(-55%);
  }
}

/* md (768px) */

@media (max-width: 991px) {
  .glass-box {
    left: 10px;
    top: 60%;
    transform: translateY(-60%);
  }
}

/* sm (576px) */

@media (max-width: 767px) {
  .glass-box {
    left: 10px;
    top: 65%;
    transform: translateY(-65%);
  }
}

.glass-quote {
  font-family: 'IBM Plex Mono';
  font-size: 0.9em;
  font-style: italic;
}

.glass-divider {
  height: 1px;
  background: rgba(234,70,68,0.3);
}

.glass-link {
  display: flex;
  gap: 12px;
}

/* Akcent w rogu boxa */

.glass-box::before {
  content: '●';
  position: absolute;
  top: 0px;
  right: 4px;
  font-family: monospace;
  font-size: 18px;
  color: rgba(220, 28, 25, 0.8);
  letter-spacing: .1em;
}

/* Cards Trainings */

.card-trainings-container {
  background: url("../../assets/img/SVG/folder-symbol.svg") no-repeat;
  background-size: 240px;
  padding-top: 20px;
  height: 100%;
}

.card-trainings {
  background: var(--bs-body-bg);
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  border-bottom-left-radius: 12px;
  height: 100%;
  padding-left: 1.5rem;
  padding-bottom: 1.5rem;
  padding-right: 1.5rem;
}

/* Custom Topic list */

.topic-list {
  list-style: none;
  padding: 0;
  font-family: 'IBM Plex Mono';
  font-size: 0.83em;
  color: var(--bs-gray-500);
}

.topic-list li {
  padding-left: 16px;
  position: relative;
}

.topic-list li:before {
  content: '▪';
  color: var(--bs-danger);
  position: absolute;
  left: 0;
  top: -1px;
}

.link-zapytaj-o-temat {
  display: flex;
  justify-content: end;
  font-family: 'IBM Plex Mono';
  font-size: 0.83em;
}

.link-zapytaj-o-temat a {
  padding: 2px 12px;
  border-radius: 6px;
  background-color: var(--bs-secondary-bg);
}

.link-zapytaj-o-temat a:hover {
  background-color: var(--bs-danger);
  color: #fff;
}

/* YT Videos */

.yt-container {
  padding: 0.66em;
  background-color: var(--bs-tertiary-bg);
  border-radius: 12px;
  transition: background-color 0.3s ease;
}

.yt-container:hover {
  background-color: var(--bs-body-bg);
}

.yt-item {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
}

/* Opinions */

.opinions-bg {
  background: none;
}

@media (min-width: 576px) {
  .opinions-bg {
    background: url("../../assets/img/SVG/decor-1-set-training.svg") no-repeat, url("../../assets/img/SVG/decor-4-square-cross.svg") top right / 160px no-repeat, url("../../assets/img/SVG/decor-3-dot-row.svg") bottom left / 240px no-repeat, url("../../assets/img/SVG/decor-2-securitum.svg") bottom right / 360px no-repeat;
    background-size: 240px, 160px, 240px, 360px;
  }
}

.opinions-container {
  max-width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

@media (hover: hover) {
  .opinions-container:hover .opinion-track {
    animation-play-state: paused;
  }
}

.opinion-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: marquee-scroll-opinion 38s linear infinite;
  will-change: transform;
}

.opinion-card {
  position: relative;
  width: 360px;
  min-height: 200px;
  flex-shrink: 0;
  background: var(--bs-secondary-bg);
  border: 1px solid #2f3336;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

.opinion-date {
  display: flex;
  justify-content: end;
  padding: 6px 12px;
  border-bottom: 1px solid var(--bs-gray-800);
}

.opinion-date span {
  font-family: 'IBM Plex Mono';
  font-weight: 200;
  color: var(--bs-gray-300);
}

.opinion-body {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 2rem 1.3rem;
  gap: 24px;
}

.opinion-title {
  text-align: center;
}

.opinion-title span {
  font-family: 'IBM Plex Mono';
  text-transform: uppercase;
  color: var(--bs-danger) !important;
  font-size: 1.1em;
  line-height: 1.2em;
}

.opinion-comment {
  padding-top: 48px;
  background: url("../../assets/img/SVG/quote.svg") top center/ 32px no-repeat;
  text-align: center;
}

.opinion-comment span {
  font-style: italic;
  color: var(--bs-gray-500);
}

.opinion-subject {
  text-align: center;
}

.opinion-subject span {
  color: var(--bs-gray-500);
}

.opinion-stats-container {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding: 2em;
  border-top: 1px solid var(--bs-gray-800);
}

.opinion-stats-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.opinion-stats-label {
  font-size: 0.9em;
  color: var(--bs-gray-400);
}

.opinion-stats-value {
  background-color: var(--bs-tertiary-bg);
  border: 1.6px solid var(--bs-body-bg);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'IBM Plex Mono';
  color: var(--bs-danger);
  letter-spacing: 1px;
}

@keyframes marquee-scroll-opinion {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Protocol coop */

.protocol-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (min-width: 992px) {
  .protocol-list {
    gap: 32px;
  }
}

.protocol-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

@media (min-width: 992px) {
  .protocol-item {
    gap: 32px;
  }
}

.protocol-item::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 30px;
  width: 1px;
  height: calc(100% + 6px);
  background: rgba(255,255,255,.08);
}

.protocol-item:last-child::before {
  display: none;
}

.protocol-index {
  position: relative;
  padding-top: 4px;
  padding-bottom: 12px;
  z-index: 2;
  min-width: 40px;
  color: #ea4544;
  background-color: var(--bs-tertiary-bg);
  font-family: 'IBM Plex Mono';
  font-size: 14px;
  letter-spacing: .18em;
  text-align: center;
  opacity: .9;
  transition: text-shadow .3s ease, opacity .3s ease;
}

.protocol-item:hover .protocol-index {
  opacity: 1;
  text-shadow: 0 0 12px rgba(234,70,68,.95);
}

.protocol-content h3 {
  margin-bottom: 12px;
}

.protocol-content p {
  max-width: 620px;
  color: var(--bs-gray-500);
  opacity: .75;
}

/* Footer - link */

footer li a {
  display: inline-block;
  font-family: 'IBM Plex Mono';
  font-size: small;
  color: var(--bs-gray-500);
  letter-spacing: 0.5px;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 180ms ease;
}

footer li a:hover {
  color: var(--bs-gray-200);
  background: #ea4644;
  transform: translateY(-1px);
}

/* Footer BTN */

.footer-btn {
  font-family: 'IBM Plex Mono';
  color: #d1d5db;
  padding: 6px 10px;
  margin-right: 4px;
  border: 1px solid #2f3336;
  border-radius: 4px;
  background-color: var(--bs-tertiary-bg);
  display: inline-block;
  transition: background-color 300ms ease;
}

.footer-btn:hover {
  background: var(--bs-secondary-bg);
}

.footer-btn::after {
  content: '_';
  margin-left: 2px;
  opacity: 0.7;
  animation: blink-cursor 1s steps(2) infinite;
}

@keyframes blink-cursor {
  50% {
    opacity: 0;
  }
}

/* Fooer Social */

.footer-social-row {
  padding: 12px 6px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: url("../../assets/img/SVG/double-circle.svg") top right / 16px no-repeat;
}

/* Footer Links and Logo */

.footer-links-row {
  padding: 24px 6px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

@media (max-width: 380px) {
  .footer-links-row img {
    width: 126px;
    display: none;
  }
}

/* Footer Copy and Law */

.footer-copy-row {
  padding: 12px 6px;
}

.footer-copy-row p {
  font-family: 'IBM Plex Mono';
  font-size: small;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 2px 4px;
}

@media (max-width: 380px) {
  .footer-copy-row p {
    padding: 8px 2px 18px 2px;
  }
}

