/* ===== SUCCESS SECTION ===== */

.success-section {
  width: 100%;
  background: linear-gradient(180deg, transparent, rgba(180, 75, 255, 0.02), transparent);
  padding: 0;
  margin: 0;
}

.success-header {
  text-align: center;
  padding: 60px 5% 50px 5%;
}

.success-header .section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  margin: 0 auto 12px;
  color: #FFFFFF;
}

.success-header .section-description {
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  margin: 0 auto;
  max-width: 85%;
  color: rgba(255, 255, 255, 0.75);
}

/* ===== GRID CONTAINER ===== */

.success-grid-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 30px;
  padding: 0 5%;
  margin-bottom: 60px;
}

/* ===== SUCCESS CARD ===== */

.success-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(30px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  transition: all 0.4s ease;
}

.success-card:hover {
  border-color: rgba(180, 75, 255, 0.6);
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(180, 75, 255, 0.4);
}

/* ===== CARD LEFT ===== */

.card-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.client-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.client-logo {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(180, 75, 255, 0.2);
}

.client-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.client-industry {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #B44BFF;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.3px;
}

.card-description {
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* ===== METRICS ===== */

.card-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.metric-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(180, 75, 255, 0.2);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}

.metric-value {
  font-size: 0.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #B44BFF, #FF69B4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.metric-label {
  font-size: 0.55rem;
  text-transform: uppercase;
  color: rgba(229, 229, 229, 0.6);
  margin: 0;
  font-weight: 600;
}

/* ===== CARD RIGHT - PDF PREVIEW ===== */

.card-right {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.pdf-preview {
  position: relative;
  width: 120px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(180, 75, 255, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-preview:hover {
  border-color: rgba(180, 75, 255, 0.6);
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(180, 75, 255, 0.3);
}

.pdf-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdf-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pdf-preview:hover .pdf-overlay {
  opacity: 1;
}

.pdf-icon {
  font-size: 28px;
}

.pdf-text {
  font-size: 0.65rem;
  color: #FFFFFF;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ===== PDF MODAL ===== */

.pdf-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  overflow: hidden;
}

.pdf-modal.active {
  display: block;
}

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.97);
  cursor: pointer;
  z-index: 9999;
}

.modal-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  width: calc(100% - 40px);
  max-width: calc(100% - 40px);
  height: calc(100% - 80px);
  max-height: calc(100% - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  z-index: 10000;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(180, 75, 255, 0.4);
  border-radius: 4px;
}

.pdf-modal-img {
  width: 100%;
  height: auto;
  display: block;
}

.device-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 50px;
  height: 50px;
  background: rgba(180, 75, 255, 0.25);
  border: 2px solid rgba(180, 75, 255, 0.6);
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 10005;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.device-close-btn:hover {
  background: rgba(180, 75, 255, 0.4);
  transform: rotate(90deg) scale(1.15);
  border-color: rgba(180, 75, 255, 0.9);
}

/* ===== RESPONSIVE - DESKTOP ===== */

@media (min-width: 1025px) {
  .success-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== RESPONSIVE - TABLET ===== */

@media (max-width: 1024px) {
  .success-grid-container {
    grid-template-columns: 1fr;
  }

  .success-card {
    grid-template-columns: 1fr;
  }

  .card-right {
    justify-content: center;
    gap: 20px;
  }

  .pdf-preview {
    width: 140px;
    height: 180px;
  }
}

/* ===== RESPONSIVE - SMALL TABLET ===== */

@media (max-width: 768px) {
  .success-header {
    padding: 40px 4% 30px 4%;
  }

  .success-grid-container {
    grid-template-columns: 1fr;
    padding: 0 4%;
  }

  .success-card {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }

  .client-header {
    gap: 10px;
  }

  .client-logo {
    width: 50px;
    height: 50px;
  }

  .client-info h3 {
    font-size: 1rem;
  }

  .card-description {
    font-size: 0.7rem;
  }

  .pdf-preview {
    width: 130px;
    height: 170px;
  }

  .pdf-icon {
    font-size: 24px;
  }

  .device-close-btn {
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    font-size: 24px;
  }
}

/* ===== RESPONSIVE - MOBILE ===== */

@media (max-width: 480px) {
  .success-header {
    padding: 30px 4% 20px 4%;
  }

  .success-header .section-title {
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  }

  .success-header .section-description {
    font-size: 0.8rem;
  }

  .success-grid-container {
    grid-template-columns: 1fr;
    padding: 0 3%;
    margin-bottom: 40px;
  }

  .success-card {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }

  .client-header {
    gap: 8px;
  }

  .client-logo {
    width: 45px;
    height: 45px;
  }

  .client-info h3 {
    font-size: 0.95rem;
  }

  .client-industry {
    font-size: 0.6rem;
  }

  .card-description {
    font-size: 0.7rem;
  }

  .card-metrics {
    gap: 6px;
  }

  .metric-item {
    padding: 6px;
  }

  .metric-value {
    font-size: 0.7rem;
  }

  .metric-label {
    font-size: 0.5rem;
  }

  .pdf-preview {
    width: 110px;
    height: 150px;
  }

  .pdf-icon {
    font-size: 20px;
  }

  .pdf-text {
    font-size: 0.6rem;
  }

  .card-right {
    justify-content: center;
  }

  .device-close-btn {
    top: 6px;
    right: 6px;
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}

/* ===== RESPONSIVE - EXTRA SMALL MOBILE ===== */

@media (max-width: 360px) {
  .success-header .section-title {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
  }

  .success-grid-container {
    padding: 0 2%;
  }

  .success-card {
    padding: 12px;
    gap: 12px;
  }

  .client-logo {
    width: 40px;
    height: 40px;
  }

  .pdf-preview {
    width: 100px;
    height: 140px;
  }

  .device-close-btn {
    top: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

/* ===== RESPONSIVE - CARDS ===== */

@media (max-width: 650px) {
  .success-grid-container {
    grid-template-columns: 1fr;
  }

  .success-card {
    grid-template-columns: 1fr;
  }

  .card-right {
    justify-content: center;
    gap: 20px;
  }
}
