/* =============================================================
   INDEX.CSS — Arguumedia strona główna
   Zawiera: hero, bricks, cards, sections, referenzen,
            testimonials, logo-slider
   ============================================================= */

/* ── hero.css ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-base {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f23 100%);
  z-index: 1;
}

.hero-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 3;
}

.hero-layer.clouds {
  z-index: 8;
  will-change: transform;
  position: absolute;
  top: auto;
  bottom: 0;
  height: 60%;
  background-position: center bottom;
  background-size: 100% 100%;
}

.hero-layer.clouds::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(3px 3px at 20% 50%, rgba(255, 200, 100, 0.8), transparent),
    radial-gradient(2px 2px at 50% 30%, rgba(255, 150, 50, 0.8), transparent),
    radial-gradient(4px 4px at 80% 60%, rgba(255, 200, 100, 0.8), transparent),
    radial-gradient(2px 2px at 30% 70%, rgba(255, 150, 50, 0.8), transparent),
    radial-gradient(3px 3px at 70% 40%, rgba(255, 200, 100, 0.8), transparent);
  background-size: 100% 100%;
  background-position: 0 0;
  animation: popEffect 2s ease-in-out infinite;
  pointer-events: none;
}

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

.hero-background::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image:
    radial-gradient(2px 2px at 20% 30%, white, rgba(255, 255, 255, 0)),
    radial-gradient(2px 2px at 80% 10%, white, rgba(255, 255, 255, 0)),
    radial-gradient(1px 1px at 50% 50%, white, rgba(255, 255, 255, 0)),
    radial-gradient(1px 1px at 10% 90%, white, rgba(255, 255, 255, 0)),
    radial-gradient(2px 2px at 90% 60%, white, rgba(255, 255, 255, 0)),
    radial-gradient(1px 1px at 30% 80%, white, rgba(255, 255, 255, 0)),
    radial-gradient(1px 1px at 60% 20%, white, rgba(255, 255, 255, 0)),
    radial-gradient(2px 2px at 70% 70%, white, rgba(255, 255, 255, 0));
  background-size: 200% 200%;
  background-position: 0% 0%;
  animation: twinkleStars 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes twinkleStars {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}


.hero-layer.mountain-back {
  z-index: 4;
  will-change: transform;
}
.hero-layer.mountain-mid {
  z-index: 4;
  will-change: transform;
  opacity: 0.75;
}
.hero-layer.mountain-front {
  z-index: 5;
}

/* NOTE: url() relative to this CSS file location (public/assets/css/pages/) */
.intro-clouds {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../../images/Clouds-1.png") center bottom / 200% auto
    no-repeat;
  pointer-events: none;
  will-change: transform;
  z-index: 8;
  transform: rotate(180deg);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--color-white);
  max-width: 1200px;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.scroll-arrow {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  animation: bounceArrow 2s ease-in-out infinite;
}

.scroll-indicator p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes bounceArrow {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(8px);
    opacity: 0.5;
  }
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.hero-text {
  font-family: var(--font-accent);
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.3;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.wechselwort {
  display: inline-block;
  white-space: nowrap;
  position: relative;
  padding-right: 0.15em;
  color: var(--color-white);
  transition: color var(--transition-normal);
}

.wechselwort.highlight {
  color: var(--wechselwort-accent);
}

.wechselwort::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 1em;
  border-right: 2px solid var(--color-white);
  transform: translateY(0.15em);
  animation: blink 1s steps(1, end) infinite;
  position: absolute;
  right: -0.1em;
}

.wechselwort.highlight::after {
  display: none;
}

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

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
  }
  .hero-text {
    font-size: clamp(1.75rem, 5vw, 3rem);
  }
  .wechselwort::after {
    height: 0.9em;
  }
  .hero-layer.clouds {
    height: 40%;
    background-size: cover;
    background-position: center bottom;
  }
  .intro-clouds {
    height: 50%;
    background-size: 120% auto;
    background-position: center bottom;
  }
  .scroll-indicator {
    bottom: 20px;
  }
  .scroll-arrow {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  .scroll-indicator p {
    font-size: 0.8rem;
  }
}

/* ── bricks.css ───────────────────────────────────────────── */
.bricks-section {
  background: var(--color-darker);
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.bricks-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.emr-brick {
  --perspective: 1500px;
  --bg: #f5f5f5;
  --ink: #131313;
  --bdc: rgba(19, 19, 19, 0.25);
  --bdw: 1px;
  --pad: clamp(16px, 3vw, 32px);
  width: 90%;
  position: relative;
  overflow: visible;
  transform: perspective(var(--perspective)) rotateX(0deg);
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  transition: transform var(--transition-slow);
  height: auto;
}

.emr-brick.is-tilted {
  transform: perspective(var(--perspective)) rotateX(-45deg);
}

@media (hover: hover) and (pointer: fine) {
  .emr-brick:hover {
    transform: perspective(var(--perspective)) rotateX(-45deg);
  }
}

.emr-brick__lid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: clamp(120px, 18vw, 220px);
  border: var(--bdw) solid var(--bdc);
  transform: rotateX(90deg);
  transform-origin: 0% 100%;
  transform-style: preserve-3d;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.emr-brick__lid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.emr-brick__front {
  background: var(--bg);
  border: var(--bdw) solid var(--bdc);
  padding: var(--pad);
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: clamp(12px, 2vw, 24px);
  align-items: start;
  min-height: 168px;
  position: relative;
  z-index: 1;
}

.emr-brick__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.emr-brick__title {
  font-weight: 800;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1;
  color: var(--ink);
  margin: 0;
}

.emr-brick__description {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.emr-brick__icon {
  width: clamp(80px, 12vw, 120px);
  height: clamp(80px, 12vw, 120px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emr-brick__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .emr-brick__front {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .emr-brick__lid {
    height: clamp(100px, 25vw, 160px);
  }
  .emr-brick__icon {
    width: clamp(60px, 15vw, 100px);
    height: clamp(60px, 15vw, 100px);
  }
}

/* ── cards.css ────────────────────────────────────────────── */
.cards-section {
  background: var(--color-darker);
  padding: clamp(4rem, 8vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}

.cursor-lightning {
  position: absolute;
  width: 150px;
  height: 150px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.6), transparent);
  filter: blur(40px);
  z-index: 1;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: clamp(1rem, 2vw, 2rem);
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, auto);
    padding: 0 1rem;
    gap: 1rem;
  }
}

.card {
  --blob-size: 250px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0.75rem;
  gap: 0.5rem;
  background: linear-gradient(
    135deg,
    rgba(20, 20, 30, 0.5),
    rgba(50, 50, 80, 0.3)
  );
  border: 1px solid rgba(255, 0, 0, 0.3);
  transition: all 0.3s ease-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.card::before {
  display: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--color-primary);
  border-radius: 16px;
  pointer-events: none;
  z-index: 10;
  clip-path: inset(100% 0 0 0 round 16px);
  transition: clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card.border-active::after {
  clip-path: inset(0 0 0 0 round 16px);
}

.card .inner {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(80px);
  -webkit-backdrop-filter: blur(80px);
  z-index: 1;
}

.card .blob {
  --blob-size: 250px;
  width: var(--blob-size);
  height: 80%;
  left: calc(50% - var(--blob-size) / 2);
  filter: blur(40px);
  z-index: 0;
  opacity: 0;
  transition: opacity 300ms 300ms linear;
  position: absolute;
  background: linear-gradient(135deg, var(--color-primary), #ff6b6b);
  border-radius: 50%;
  will-change: transform;
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  z-index: 1;
  border-radius: 10px;
  flex-shrink: 0;
}

.card-content {
  position: relative;
  z-index: 3;
  padding: 0.75rem 1rem;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-title {
  font-weight: 500;
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  line-height: 1.2;
  margin: 0;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.8),
    0 1px 3px rgba(0, 0, 0, 0.6);
  animation: fadeInUp 0.6s ease forwards;
}

.card-link {
  align-self: flex-start;
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.7rem;
  order: -1;
  margin-top: 0;
  margin-bottom: auto;
  transition: color var(--transition-fast);
}

.card-link:hover {
  color: var(--wechselwort-accent);
}

.card:hover .blob {
  opacity: 1;
}

@media (max-width: 768px) {
  .card .blob {
    --blob-size: 150px;
    height: 60%;
  }
}

/* ── sections.css ─────────────────────────────────────────── */
.intro-section {
  background: linear-gradient(to bottom, #0a0a0a 0%, #080808 100%);
  padding: clamp(4rem, 8vw, 8rem) 0;
  text-align: center;
}

.intro-section h2 {
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
}
.intro-section p {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
}

.about-section {
  background: var(--color-dark);
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  align-items: start;
}

.about-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.about-column h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}
.about-column p {
  line-height: 1.8;
  color: var(--color-text);
  margin: 0;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-column {
    gap: 1rem;
  }
}

.cta-section {
  background: linear-gradient(
    135deg,
    rgba(255, 0, 21, 0.15),
    rgba(255, 255, 255, 0.1)
  );
  padding: clamp(4rem, 8vw, 8rem) 0;
  text-align: center;
  border-top: 1px solid rgba(229, 57, 53, 0.2);
  border-bottom: 1px solid rgba(229, 57, 53, 0.2);
}

.cta-section h3 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.cta-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--color-text);
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.cta-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.cta-social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.cta-social-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

.or-text {
  margin: 2rem 0;
  color: var(--color-text);
  font-size: 0.95rem;
}

/* ── referenzen.css ───────────────────────────────────────── */
.referenzen-section {
  background: var(--color-darker);
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.referenzen-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.referenzen-title {
  text-align: center;
  margin-bottom: 3rem;
}
.referenzen-title h2 {
  margin-bottom: 1rem;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--color-text);
  border-radius: 100px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.05);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: clamp(1rem, 2vw, 2rem);
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.project-card.hidden {
  display: none;
}

.project-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(179, 10, 24, 0.2);
}

.project-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.project-name {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
  padding: 0.75rem 0.75rem 0;
}
.project-description {
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.6;
  padding: 0 0.75rem;
}

.project-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 0.75rem;
}

.project-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(179, 10, 24, 0.2);
  border: 1px solid rgba(179, 10, 24, 0.4);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--color-primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, auto);
    gap: 0.75rem;
  }
  .filters {
    gap: 0.75rem;
  }
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  .project-image {
    height: 200px;
  }
  .project-name {
    font-size: 1.05rem;
    padding: 0.5rem 0.6rem 0;
  }
  .project-description {
    font-size: 0.82rem;
    margin-bottom: 0.65rem;
    padding: 0 0.6rem;
  }
  .project-categories {
    padding: 0 0.6rem 0.6rem;
  }
}

/* ── testimonials.css (awork-style 3-card carousel) ─────────── */
.testimonials-section {
  background: transparent;
  padding: clamp(4rem, 8vw, 8rem) 0 0;
  overflow: hidden;
}

.testimonials-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
}
.testimonials-header h2 {
  margin-bottom: 1rem;
}

.testimonials-description {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.8;
}

/* Neon title */
.neon-highlight {
  color: var(--color-primary);
  text-shadow:
    0 0 8px rgba(179, 10, 24, 0.9),
    0 0 20px rgba(179, 10, 24, 0.6),
    0 0 40px rgba(179, 10, 24, 0.3);
}

/* ── Carousel wrapper ─────────────────────────────────────── */
.testi-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 2rem 0 3.5rem;
}

/* Navigation arrows */
.testi-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.testi-nav--prev { left: clamp(10px, 2.5vw, 40px); }
.testi-nav--next { right: clamp(10px, 2.5vw, 40px); }

.testi-nav:hover {
  background: rgba(179, 10, 24, 0.55);
  border-color: rgba(179, 10, 24, 0.85);
  box-shadow: 0 0 18px rgba(179, 10, 24, 0.45);
}

/* ── Track ─────────────────────────────────────────────────── */
.testi-track {
  position: relative;
  width: 100%;
  height: clamp(380px, 40vw, 500px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Card item (default: hidden) ───────────────────────────── */
.testi-item {
  position: absolute;
  left: 50%;
  width: clamp(200px, 22vw, 270px);
  aspect-ratio: 9 / 16;
  height: auto;
  border-radius: 26px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(0.7);
  transition:
    transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.55s ease,
    box-shadow 0.55s ease;
}

/* Active (center) card */
.testi-item.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
  transform: translateX(-50%) scale(1);
  box-shadow:
    0 0 0 2px #b30a18,
    0 0 28px rgba(179, 10, 24, 0.6),
    0 0 60px rgba(179, 10, 24, 0.25);
}

/* Previous (left) card */
.testi-item.is-prev {
  opacity: 0.55;
  pointer-events: auto;
  cursor: pointer;
  z-index: 2;
  transform: translateX(calc(-50% - 310px)) scale(0.87);
}

/* Next (right) card */
.testi-item.is-next {
  opacity: 0.55;
  pointer-events: auto;
  cursor: pointer;
  z-index: 2;
  transform: translateX(calc(-50% + 310px)) scale(0.87);
}

/* ── Card inner ─────────────────────────────────────────────── */
.testi-card {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  background: #0d0d0d;
}

/* Video fills card */
.testi-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Overlay (bottom gradient + content) ───────────────────── */
.testi-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4rem 1.25rem 1.5rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.65) 45%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.testi-person {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.testi-avatar {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b30a18, #6b0610);
  border: 2px solid rgba(179, 10, 24, 0.75);
  box-shadow: 0 0 10px rgba(179, 10, 24, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 0.82rem;
}

.testi-person-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.testi-stars {
  display: flex;
  gap: 1px;
  margin-bottom: 1px;
}

.testi-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.testi-role {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Quote — only fully visible on active card */
.testi-quote {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.5;
  margin: 0;
  transition: opacity 0.4s ease;
}

/* Button (inside overlay) */
.testi-btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.93);
  border: none;
  border-radius: 30px;
  color: #111;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: opacity 0.4s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.testi-btn:hover {
  background: #fff;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

/* Side card overlay: minimal bottom strip only */
.testi-item.is-prev .testi-overlay,
.testi-item.is-next .testi-overlay {
  padding: 3rem 1rem 0.9rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.25) 45%,
    transparent 70%
  );
  gap: 0;
}

/* Collapse quote & button on side cards entirely */
.testi-item.is-prev .testi-quote,
.testi-item.is-next .testi-quote,
.testi-item.is-prev .testi-btn,
.testi-item.is-next .testi-btn {
  display: none;
}

/* ── Active card: slide-up entrance animation ─────────────── */
@keyframes overlaySlideUp {
  from {
    transform: translateY(80px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.testi-item.is-entering .testi-overlay {
  animation: overlaySlideUp 1.4s linear forwards;
}

/* Stars */
.star { font-size: 0.85rem; line-height: 1; }
.star--gold { color: #f5a623; }
.star--grey { color: rgba(255, 255, 255, 0.25); }

/* ── Dot navigation ────────────────────────────────────────── */
.testi-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testi-dot.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow:
    0 0 8px rgba(179, 10, 24, 0.9),
    0 0 18px rgba(179, 10, 24, 0.4);
  transform: scale(1.35);
}

/* ── Video modal ───────────────────────────────────────────── */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.video-modal.active {
  display: flex;
}

.video-modal-inner {
  width: 80vw;
  height: 80vh;
  flex-shrink: 0;
}

.video-modal-inner video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
  display: block;
}

.video-modal .modal-close {
  position: static;
  top: auto;
  right: auto;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast);
}

.video-modal .modal-close:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

@media (max-width: 1200px) {
  .testi-item.is-prev {
    transform: translateX(calc(-50% - 260px)) scale(0.87);
  }
  .testi-item.is-next {
    transform: translateX(calc(-50% + 260px)) scale(0.87);
  }
}

@media (max-width: 900px) {
  .testi-item.is-prev,
  .testi-item.is-next {
    opacity: 0.35;
  }
  .testi-item.is-prev {
    transform: translateX(calc(-50% - 210px)) scale(0.87);
  }
  .testi-item.is-next {
    transform: translateX(calc(-50% + 210px)) scale(0.87);
  }
}

@media (max-width: 600px) {
  .testi-track {
    /* height matches 65vw card width × 16/9 ratio, capped for very small screens */
    height: clamp(380px, 116vw, 490px);
  }
  .testi-item {
    width: clamp(200px, 65vw, 270px);
  }
  .testi-item.is-prev {
    /* side cards mostly off-screen, just peeking at the edge */
    transform: translateX(calc(-50% - 72vw)) scale(0.82);
  }
  .testi-item.is-next {
    transform: translateX(calc(-50% + 72vw)) scale(0.82);
  }
  .testi-nav {
    width: 40px;
    height: 40px;
  }
  .video-modal-inner {
    width: 95vw;
    height: auto;
  }
  .video-modal-inner video {
    height: 60vh;
  }
}

/* ── logo-slider.css ──────────────────────────────────────── */
.logo-slider-section {
  overflow: hidden;
  background: var(--color-darker);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo-slider-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: logoScroll 48s linear infinite;
  will-change: transform;
}

.logo-slider-section:hover .logo-slider-track {
  animation-play-state: paused;
}

.logo-slide {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-slide img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition:
    opacity 0.3s ease,
    filter 0.3s ease;
}

.logo-slide img:hover {
  opacity: 1;
  filter: brightness(0) invert(1);
}

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