/* =========================================
   SenInteractive - Service Cards
   Professional Interactive Component
   ========================================= */

/* ========== MAIN SECTION ========== */
.sen-interactive {
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #ffffff;
  padding: 80px 0 120px;
  overflow: hidden;
}

/* ========== SECTION HEADER ========== */
.si-header {
  max-width: 1680px;
  margin: 0 auto 60px;
  padding: 0 60px;
  text-align: left;
}

.si-section-title {
  font-family: "Playfair Display", serif;
  font-size: 48px;
  font-weight: 700;
  font-style: italic;
  margin: 0 0 12px 0;
  color: #fff;
  line-height: 1.1;
}

.si-section-desc {
  font-size: 16px;
  color: #999;
  margin: 0;
  max-width: 600px;
  line-height: 1.6;
}

/* ========== CONTAINER ========== */
.si-container {
  position: relative;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  gap: 20px;
  align-items: stretch;
  height: 560px;
}

/* ========== CARD BASE ========== */
.si-card {
  position: relative;
  flex: 1;
  overflow: hidden;
  cursor: pointer;
  background: #0f0f0f;
  transition: all 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* FIRST CARD - ACTIVE BY DEFAULT */
.si-card:first-of-type {
  flex: 2.8;
}

/* ACTIVE STATE */
.si-card.active {
  flex: 2.8;
  z-index: 20;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.15);
}

/* DIMMED STATE */
.si-card.dimmed {
  flex: 0.75;
  opacity: 0.5;
  filter: brightness(0.7) blur(0.5px);
}

/* ========== MEDIA LAYER ========== */
.si-media {
  position: absolute;
  inset: 0;
  background: #000;
}

.si-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* Show image on all cards now */
.si-card .si-image {
  opacity: 0.3;
}

.si-card.active .si-image {
  opacity: 1;
}

.si-card.dimmed .si-image {
  opacity: 0.15;
}

.si-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.si-card.active .si-video {
  opacity: 1;
}

/* ========== OVERLAY GRADIENT ========== */
.si-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 2;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.si-card.active .si-media::after {
  opacity: 1;
}

/* ========== CONTENT LAYER ========== */
.si-content {
  position: absolute;
  inset: 0;
  z-index: 12;
  padding: 40px 36px 50px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.si-card.active .si-content {
  opacity: 1;
}

/* Show title on all cards, but with less opacity when not active */
.si-title {
  font-family: "Playfair Display", serif;
  font-size: 38px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.15;
  margin: 0 0 14px 0;
  color: #fff;
  opacity: 0 !important;
  transform: none !important;
  transition: opacity 0.6s ease;
  position: relative;
  z-index: 11;
  display: none;
}

.si-card.active .si-title {
  opacity: 1 !important;
  transform: translateY(0) !important;
  display: block;
}

.si-card.dimmed .si-title {
  opacity: 0 !important;
  display: none;
}

.si-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #ddd;
  margin-bottom: 24px;
  opacity: 0.75;
  transform: none;
  transition: all 0.6s ease;
  max-width: 100%;
  position: relative;
  z-index: 12;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  font-weight: 400;
}

.si-card.active .si-desc {
  opacity: 0.9;
  transform: translateY(0);
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  max-width: 550px;
}

.si-card.dimmed .si-desc {
  opacity: 0.35;
}

/* ========== CTA BUTTON ========== */
.si-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 6px 0;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  background: none;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.26s;
  width: fit-content;
}

.si-card.active .si-cta {
  opacity: 1;
  transform: translateY(0);
}

.si-cta:hover {
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

.si-arrow {
  display: inline-block;
  font-size: 16px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.si-card.active .si-cta:hover .si-arrow {
  transform: translateX(6px);
}

/* ========== LINK OVERLAY ========== */
.si-link {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: block;
  text-decoration: none;
}

/* ========== EMPTY CARD ========== */
.si-card.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
}

.si-card.empty .si-content {
  opacity: 1;
  background: none;
  text-align: center;
}

.si-card.empty .si-title {
  opacity: 1;
  transform: none;
}

.si-card.empty .si-desc {
  opacity: 0.7;
  transform: none;
}

/* ========== NUMBER LABEL ========== */
.si-num {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 72px;
  font-weight: 700;
  font-style: italic;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.13s;
}

.si-card.active .si-num {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .si-header {
    padding: 0 40px;
  }

  .si-section-title {
    font-size: 40px;
  }

  .si-container {
    padding: 0 40px;
    height: 480px;
  }

  .si-card:first-of-type {
    flex: 2.5;
  }

  .si-card.active {
    flex: 2.5;
  }

  .si-title {
    font-size: 32px;
  }

  .si-desc {
    font-size: 14px;
  }

  .si-num {
    font-size: 64px;
  }
}

@media (max-width: 992px) {
  .sen-interactive {
    padding: 60px 0 100px;
  }

  .si-header {
    padding: 0 35px;
    margin-bottom: 45px;
  }

  .si-section-title {
    font-size: 36px;
  }

  .si-section-desc {
    font-size: 15px;
  }

  .si-container {
    padding: 0 35px;
    height: 420px;
    gap: 16px;
  }

  .si-card {
    min-height: 350px;
  }

  .si-card:first-of-type {
    flex: 2.2;
  }

  .si-card.active {
    flex: 2.2;
  }

  .si-title {
    font-size: 28px;
  }

  .si-desc {
    font-size: 13px;
  }

  .si-num {
    font-size: 56px;
    margin-bottom: 16px;
  }
}

@media (max-width: 768px) {
  .sen-interactive {
    padding: 50px 0 80px;
  }

  .si-header {
    padding: 0 20px;
    margin-bottom: 35px;
  }

  .si-section-title {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .si-section-desc {
    font-size: 13px;
  }

  /* Stack cards vertically on tablet */
  .si-container {
    flex-direction: column;
    padding: 0 20px;
    gap: 14px;
    height: auto;
  }

  .si-card {
    flex: 1 !important;
    height: 320px;
    min-height: 320px;
  }

  .si-card:first-of-type {
    flex: 1 !important;
    height: 320px;
  }

  .si-card.active {
    flex: 1 !important;
    height: 320px;
  }

  .si-card.dimmed {
    flex: 1 !important;
    height: 320px;
    opacity: 0.8;
    filter: none;
  }

  .si-card.dimmed .si-image {
    opacity: 0.5;
  }

  .si-content {
    padding: 20px 20px 28px;
  }

  .si-title {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .si-title {
    display: block !important;
    opacity: 1 !important;
  }

  .si-desc {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 12px;
    -webkit-line-clamp: 2;
  }

  .si-card.active .si-desc,
  .si-desc {
    display: block !important;
  }

  .si-cta {
    font-size: 11px;
    opacity: 1;
    transform: none;
    padding: 0;
  }

  .si-card.active .si-cta {
    opacity: 1;
    transform: none;
  }

  .si-num {
    font-size: 42px;
    margin-bottom: 12px;
    opacity: 0.6;
  }

  .si-card.active .si-num {
    opacity: 0.8;
  }
}

@media (max-width: 600px) {
  .sen-interactive {
    padding: 40px 0 60px;
  }

  .si-header {
    padding: 0 16px;
    margin-bottom: 30px;
  }

  .si-section-title {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .si-section-desc {
    font-size: 12px;
  }

  .si-container {
    padding: 0 16px;
    gap: 12px;
  }

  .si-card {
    height: 300px !important;
    min-height: 300px !important;
  }

  .si-content {
    padding: 18px 16px 24px;
  }

  .si-title {
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .si-desc {
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 10px;
    -webkit-line-clamp: 2;
  }

  .si-cta {
    font-size: 10px;
    gap: 8px;
  }

  .si-arrow {
    font-size: 14px;
  }

  .si-num {
    font-size: 36px;
    margin-bottom: 10px;
  }
}

@media (max-width: 420px) {
  .sen-interactive {
    padding: 35px 0 55px;
  }

  .si-header {
    padding: 0 12px;
    margin-bottom: 25px;
  }

  .si-section-title {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .si-section-desc {
    font-size: 11px;
  }

  .si-container {
    padding: 0 12px;
    gap: 10px;
  }

  .si-card {
    height: 280px !important;
    min-height: 280px !important;
  }

  .si-content {
    padding: 16px 14px 20px;
  }

  .si-title {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .si-desc {
    font-size: 10px;
    line-height: 1.3;
    margin-bottom: 8px;
    -webkit-line-clamp: 2;
  }

  .si-cta {
    font-size: 9px;
    gap: 6px;
  }

  .si-arrow {
    font-size: 12px;
  }

  .si-num {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
  }

  .si-card.active .si-num {
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .si-card,
  .si-title,
  .si-desc,
  .si-cta,
  .si-num,
  .si-media,
  .si-image,
  .si-video {
    transition: none !important;
  }
}