:root {
  --nyx-black: #000;
  --nyx-white: #fff;
  --nyx-neon-blue: #178389;
}

.nyx-carousel-section {
  background: var(--nyx-black);
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.nyx-carousel-section::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #046363, #178389, #049491, #149aaa, transparent);
  animation: shimmer 3s ease-in-out infinite;
  z-index: 2;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.nyx-carousel-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  width: 64px;
  height: 64px;
  color: var(--nyx-neon-blue);
  animation: icon-bounce 2s ease-in-out infinite;
}

.nyx-carousel-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.nyx-carousel-heading {
  text-align: center;
  margin-bottom: 30px;
  color: var(--nyx-white);
  z-index: 3;
}

.nyx-carousel-heading h2 {
  font-size: 2.2rem;
  color: var(--nyx-white);
  margin-bottom: 10px;
}

.nyx-carousel-heading p {
  font-size: 1rem;
  color: #ccc;
}

/* WIDER CAROUSEL CONTAINER */
.nyx-carousel-wrapper {
  position: relative;
  width: 95%;
  max-width: 1300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  gap: 20px;
}

.nyx-carousel-container {
  overflow-x: scroll;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  flex-grow: 1;
  width: 100%;

  /* default thin scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--nyx-neon-blue) transparent;
}

.nyx-carousel-container::-webkit-scrollbar {
  height: 4px;
}

.nyx-carousel-container::-webkit-scrollbar-track {
  background: transparent;
}

.nyx-carousel-container::-webkit-scrollbar-thumb {
  background: var(--nyx-neon-blue);
  border-radius: 2px;
}

.nyx-carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  padding-top: 40px;
}

.nyx-card {
  position: relative;
  flex: 0 0 280px;
  height: 480px;
  margin: 0 10px;
  background: #111;
  border: 2px solid var(--nyx-neon-blue);
  border-radius: 16px;
  padding: 60px 20px 20px;
  box-shadow: 0 0 12px var(--nyx-neon-blue);
  text-align: center;
  color: var(--nyx-white);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.nyx-card:hover {
  transform: translateY(-5px);
}

.nyx-card h3 {
  color: var(--nyx-neon-blue);
  margin-bottom: 10px;
}

.nyx-card-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--nyx-neon-blue);
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  z-index: 10;
}

/* LARGER IMAGE CONTAINER */
.nyx-card-image-container {
  width: 100%;
  height: 120px;
  margin: 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(23, 131, 137, 0.1);
  border: 1px solid rgba(23, 131, 137, 0.3);
}

.nyx-card-company-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.nyx-card-company-image:hover {
  transform: scale(1.05);
}

.nyx-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(23, 131, 137, 0.5);
  font-size: 2rem;
}

.nyx-card-placeholder i {
  opacity: 0.7;
}

.nyx-card p:last-of-type {
  margin-top: auto;
}

.nyx-card-footer {
  margin-top: auto !important;
}

.nyx-card p a {
  color: var(--nyx-neon-blue);
  text-decoration: underline;
  font-size: 0.9rem;
}

.nyx-card p a:hover {
  color: var(--nyx-white);
}

.nyx-btn-edge {
  background: var(--nyx-neon-blue);
  border: none;
  color: var(--nyx-black);
  font-weight: bold;
  padding: 12px 16px;
  cursor: pointer;
  box-shadow: 0 0 10px var(--nyx-neon-blue);
  transition: background 0.3s;
  z-index: 5;
  border-radius: 8px;
}

.nyx-btn-edge:hover {
  background: var(--nyx-white);
  color: var(--nyx-black);
}

@media (max-width: 768px) {
  .nyx-carousel-section {
    flex-direction: column;
    align-items: center;
  }

  .nyx-carousel-heading {
    width: 90%;
    text-align: center;
    margin-bottom: 20px;
  }

  .nyx-carousel-icon {
    margin: 0 auto 10px;
  }

  .nyx-btn-edge {
    display: none;
  }

  .nyx-carousel-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* hide scrollbar on phones */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .nyx-carousel-container::-webkit-scrollbar {
    display: none;
  }

  .nyx-carousel-track {
    gap: 20px;
    width: max-content;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
  }

  .nyx-card {
    flex: 0 0 90vw;
    max-width: 90vw;
    height: 560px;
    margin: 0;
    scroll-snap-align: center;
  }

  .nyx-card:first-child {
    margin-left: 5vw;
  }
  
  .nyx-card-image-container {
    height: 200px;
  }
}

@media (min-width: 769px) {
  .nyx-carousel-section {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .nyx-carousel-heading {
    flex: 0 0 auto;
    max-width: 200px;
    text-align: left;
    margin-right: 20px;
    margin-left: 15px;
    margin-bottom: 0;
  }

  /* CENTER CARDS ON DESKTOP - Cards start from center and expand outward */
  .nyx-carousel-track {
    justify-content: center;
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .nyx-card {
    height: 580px;
  }
  
  .nyx-card-image-container {
    height: 220px;
  }
}