﻿/* ==========================================================================
   Platforms & Technologies Section Styling - MyDesign360 (Slider Version)
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

.platforms-tech-section {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #f7f8fe 0%, #edf1fc 60%, #e7edfb 100%);
  padding: 70px 0 120px 0;
  font-family:
    "Poppins",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  overflow: hidden;
  box-sizing: border-box;
}

/* Background Waves & Accents */
.platforms-tech-section .pt-bg-waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.platforms-tech-section .pt-wave-left {
  position: absolute;
  top: -50px;
  left: -70px;
  width: 400px;
  height: 380px;
  background: radial-gradient(
    circle at 20% 30%,
    rgba(215, 219, 252, 0.65) 0%,
    rgba(240, 243, 255, 0) 70%
  );
  border-radius: 50%;
  filter: blur(25px);
}

.platforms-tech-section .pt-wave-right {
  position: absolute;
  top: -30px;
  right: -90px;
  width: 460px;
  height: 420px;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(210, 215, 250, 0.6) 0%,
    rgba(240, 243, 255, 0) 70%
  );
  border-radius: 50%;
  filter: blur(30px);
}

/* Bottom Layered Wave Banner */
.platforms-tech-section .pt-bottom-wave-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 2;
  pointer-events: none;
}

.platforms-tech-section .pt-bottom-wave-wrap svg {
  display: block;
  width: 100%;
  height: 155px;
}

/* Decorative Dot Patterns */
.platforms-tech-section .pt-dots {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(5, 7px);
  grid-gap: 13px;
  pointer-events: none;
  z-index: 2;
}

.platforms-tech-section .pt-dots span {
  width: 5px;
  height: 5px;
  background-color: #abb3dd;
  border-radius: 50%;
  opacity: 0.55;
}

.platforms-tech-section .pt-dots-left {
  left: 28px;
  top: 40%;
  transform: translateY(-50%);
}

.platforms-tech-section .pt-dots-right {
  right: 28px;
  top: 40%;
  transform: translateY(-50%);
}

/* Container */
.platforms-tech-section .pt-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 3;
}

/* Kicker Badge */
.platforms-tech-section .pt-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.platforms-tech-section .pt-kicker-line {
  display: inline-block;
  width: 32px;
  height: 2px;
  background-color: #3b3582;
  border-radius: 2px;
}

.platforms-tech-section .pt-kicker-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: #3b3582;
}

/* Main Heading */
.platforms-tech-section .pt-heading {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  color: #191e3b;
  text-align: center;
  margin: 0 0 16px 0;
  letter-spacing: -0.5px;
}

.platforms-tech-section .pt-highlight {
  color: #4d2d78;
}

/* Description */
.platforms-tech-section .pt-description {
  max-width: 740px;
  margin: 0 auto 42px auto;
  text-align: center;
  font-size: 15px;
  line-height: 1.68;
  color: #5d637b;
  font-weight: 400;
  padding: 0 20px;
}

/* ============================================================
   SLIDER LAYOUT
   ============================================================ */

.pt-slider-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0 0 10px 0;
  z-index: 3;
}

/* Edge fade masks */
.pt-slider-section::before,
.pt-slider-section::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 10;
  pointer-events: none;
}

.pt-slider-section::before {
  left: 0;
  background: linear-gradient(to right, #edf1fc 0%, transparent 100%);
}

.pt-slider-section::after {
  right: 0;
  background: linear-gradient(to left, #edf1fc 0%, transparent 100%);
}

/* Each slider row */
.pt-slider-row {
  display: flex;
  width: max-content;
  gap: 16px;
  margin-bottom: 16px;
}

/* Row 1: scroll left */
.pt-slider-row.row-left {
  animation: ptScrollLeft 50s linear infinite;
}

/* Row 2: scroll right */
.pt-slider-row.row-right {
  animation: ptScrollRight 55s linear infinite;
}

/* Pause on hover */
.pt-slider-section:hover .pt-slider-row {
  animation-play-state: paused;
}

@keyframes ptScrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes ptScrollRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Platform Card */
.platforms-tech-section .pt-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(225, 230, 246, 0.85);
  box-shadow: 0 4px 18px rgba(35, 30, 85, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 16px 14px 16px;
  min-width: 116px;
  min-height: 102px;
  box-sizing: border-box;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.4, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  flex-shrink: 0;
}

.platforms-tech-section .pt-card:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 10px 28px rgba(35, 30, 85, 0.14);
  border-color: rgba(77, 45, 120, 0.3);
}

.platforms-tech-section .pt-icon {
  width: 38px;
  height: 38px;
  max-width: 38px;
  max-height: 38px;
  object-fit: contain;
  display: block;
  margin-bottom: 9px;
  transition: transform 0.25s ease;
}

.platforms-tech-section .pt-card:hover .pt-icon {
  transform: scale(1.12);
}

.platforms-tech-section .pt-title {
  font-size: 12px;
  font-weight: 600;
  color: #1e2238;
  margin: 0;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  .platforms-tech-section .pt-dots {
    display: none;
  }
  .platforms-tech-section .pt-heading {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .platforms-tech-section {
    padding: 50px 0 90px 0;
  }
  .platforms-tech-section .pt-heading {
    font-size: 26px;
  }
  .platforms-tech-section .pt-description {
    font-size: 14px;
    margin-bottom: 28px;
  }
  .platforms-tech-section .pt-card {
    min-width: 96px;
    min-height: 88px;
    padding: 14px 10px 10px 10px;
  }
  .platforms-tech-section .pt-icon {
    width: 30px;
    height: 30px;
  }
  .platforms-tech-section .pt-title {
    font-size: 11px;
  }
  .pt-slider-row {
    gap: 12px;
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .platforms-tech-section .pt-heading {
    font-size: 22px;
  }
  .pt-slider-section::before,
  .pt-slider-section::after {
    width: 50px;
  }
}
