/* ===== 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);
}

.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 {
  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 {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.client-header {
  display: flex;
  gap: 12px;
}

.client-logo {
  width: 150px;
  height: auto;
  border-radius: 8px;
}

.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;
}

.card-description {
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.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;
}

.card-right {
  display: flex;
  gap: 16px;
}

.device-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  align-items: center;
  transition: transform 0.3s ease;
}

.device-preview:hover {
  transform: scale(1.08);
}

.device-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
}

/* ===== PREVIEW FRAMES ===== */

.mobile-frame-preview {
  width: 85px;
  height: 170px;
  background: linear-gradient(180deg, #1a1a1a, #0a0a0a);
  border-radius: 20px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 2px #2a2a2a, 0 0 0 4px #1a1a1a, 0 10px 30px rgba(0, 0, 0, 0.9);
  position: relative;
}

.notch-preview {
  width: 30px;
  height: 6px;
  background: #000;
  border-radius: 0 0 10px 10px;
  margin: 6px auto 0;
}

.desktop-frame-preview {
  width: 150px;
  height: 100px;
  background: linear-gradient(180deg, #2a2a2a, #1a1a1a);
  border-radius: 8px 8px 2px 2px;
  border: 2px solid #0a0a0a;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 1px #3a3a3a, 0 10px 30px rgba(0, 0, 0, 0.9);
}

.browser-bar-preview {
  height: 14px;
  background: linear-gradient(180deg, #2a2a2a, #1f1f1f);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 4px;
  padding: 0 4px;
  align-items: center;
}

.dots-preview {
  display: flex;
  gap: 3px;
}

.dots-preview::before,
.dots-preview::after {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ff5f56;
}

.url-preview {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  height: 6px;
}

.screen-preview {
  flex: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 4px;
}

/* ===== MODAL STYLES ===== */

.portfolio-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  overflow: hidden;
}

.portfolio-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;
}

.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);
}

/* ===== ZOOM CONTROLS ===== */

.zoom-controls {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10001;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.zoom-btn {
  width: 40px;
  height: 40px;
  background: rgba(180, 75, 255, 0.15);
  border: 1px solid rgba(180, 75, 255, 0.4);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.zoom-btn:hover {
  background: rgba(180, 75, 255, 0.25);
  border-color: rgba(180, 75, 255, 0.7);
  transform: scale(1.1);
}

.zoom-level {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 600;
  min-width: 45px;
  text-align: center;
}

/* ===== DEVICE FRAMES ===== */

.device-frame {
  transform-origin: center;
  transition: transform 0.3s ease;
  position: relative;
}

.mobile-device {
  width: 100%;
  max-width: 430px;
  height: 100%;
  max-height: 932px;
  position: relative;
}

.phone-bezel {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1f1f2e 0%, #0a0a14 100%);
  border-radius: 55px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 8px #2a2a3a,
    0 0 0 12px #1a1a2a,
    inset 0 0 30px rgba(0, 0, 0, 0.6),
    0 60px 140px rgba(0, 0, 0, 0.95);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 32px;
  background: linear-gradient(180deg, #1a1a1a, #000);
  border-radius: 0 0 18px 18px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
}

.phone-notch::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 20%;
  width: 5px;
  height: 5px;
  background: radial-gradient(circle, #0a0a0a, #000);
  border-radius: 50%;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

.phone-screen {
  flex: 1;
  border-radius: 44px;
  background: #000;
  overflow-y: scroll;
  overflow-x: hidden;
  position: relative;
  margin-top: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  scroll-behavior: smooth;
}

.phone-screen::-webkit-scrollbar {
  width: 0;
  display: none;
}

.phone-screen {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.long-screenshot {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-select: none;
}

.phone-home {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  z-index: 10;
}

.desktop-device {
  width: 100%;
  max-width: 1280px;
  height: 100%;
  max-height: 800px;
  position: relative;
}

.desktop-bezel {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #2a2a2a, #1a1a1a);
  border-radius: 12px 12px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow:
    0 0 0 2px #3a3a3a,
    0 60px 140px rgba(0, 0, 0, 0.95);
  position: relative;
}

.browser-chrome {
  height: 42px;
  background: linear-gradient(180deg, #2a2a2a, #1f1f1f);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 12px;
  flex-shrink: 0;
}

.chrome-buttons {
  display: flex;
  gap: 8px;
}

.btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.btn.red { background: #ff5f56; }

.btn.yellow { background: #ffbd2e; }

.btn.green { background: #27c93f; }

.chrome-address {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
}

.lock {
  color: #4ade80;
}

.url {
  color: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.desktop-screen {
  flex: 1;
  overflow-y: scroll;
  overflow-x: hidden;
  background: #fff;
  position: relative;
  scroll-behavior: smooth;
}

.desktop-screen::-webkit-scrollbar {
  width: 0;
  display: none;
}

.desktop-screen {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* ===== RESPONSIVE - DESKTOP ===== */

@media (min-width: 1025px) {
  .device-close-btn {
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    font-size: 28px;
  }

  .mobile-device {
    max-width: 430px;
    max-height: 932px;
  }

  .desktop-device {
    max-width: 1280px;
    max-height: 800px;
  }

  .zoom-controls {
    bottom: 30px;
  }
}

/* ===== RESPONSIVE - TABLET ===== */

@media (max-width: 1024px) {
  .device-close-btn {
    top: 8px;
    right: 8px;
    width: 46px;
    height: 46px;
    font-size: 26px;
  }

  .mobile-device {
    max-width: 90%;
    max-height: 85vh;
  }

  .desktop-device {
    max-width: 90%;
    max-height: 85vh;
  }

  .zoom-controls {
    bottom: 25px;
  }

  .zoom-btn {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .zoom-level {
    font-size: 11px;
  }
}

/* ===== RESPONSIVE - SMALL TABLET ===== */

@media (max-width: 768px) {
  .device-close-btn {
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    font-size: 24px;
  }

  .mobile-device {
    max-width: 80%;
    max-height: 75vh;
  }

  .desktop-device {
    max-width: 85%;
    max-height: 75vh;
  }

  .phone-bezel {
    border-radius: 45px;
    padding: 10px;
  }

  .zoom-controls {
    bottom: 20px;
    gap: 8px;
    padding: 10px 16px;
  }

  .zoom-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .zoom-level {
    font-size: 10px;
  }
}

/* ===== RESPONSIVE - MOBILE ===== */

@media (max-width: 480px) {
  .success-card {
    grid-template-columns: 1fr;
  }

  .card-right {
    justify-content: center;
  }

  .device-close-btn {
    top: 6px;
    right: 6px;
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .mobile-device {
    max-width: 70%;
    max-height: 70vh;
  }

  .desktop-device {
    max-width: 75%;
    max-height: 70vh;
  }

  .phone-bezel {
    border-radius: 40px;
    padding: 8px;
  }

  .phone-notch {
    width: 110px;
    height: 28px;
  }

  .browser-chrome {
    height: 38px;
    padding: 0 10px;
  }

  .chrome-address {
    padding: 5px 8px;
    font-size: 11px;
  }

  .zoom-controls {
    bottom: 15px;
    gap: 6px;
    padding: 8px 14px;
  }

  .zoom-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .zoom-level {
    font-size: 9px;
    min-width: 40px;
  }
}

/* ===== RESPONSIVE - EXTRA SMALL MOBILE ===== */

@media (max-width: 360px) {
  .device-close-btn {
    top: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .mobile-device {
    max-width: 75%;
    max-height: 65vh;
  }

  .desktop-device {
    max-width: 80%;
    max-height: 65vh;
  }

  .phone-bezel {
    border-radius: 35px;
    padding: 6px;
  }

  .phone-notch {
    width: 100px;
    height: 26px;
  }

  .zoom-controls {
    bottom: 12px;
    gap: 4px;
    padding: 6px 12px;
  }

  .zoom-btn {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .zoom-level {
    font-size: 8px;
    min-width: 35px;
  }
}

/* ===== 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;
  }
}
