/*==================================================
  ERP SECTION
==================================================*/

.erp-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  background: radial-gradient(
      circle at top left,
      rgba(215, 25, 32, 0.08),
      transparent 38%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(215, 25, 32, 0.06),
      transparent 40%
    ),
    linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
}

/*==================================================
  BACKGROUND GRID
==================================================*/

.erp-pattern {
  position: absolute;
  inset: 0;

  background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);

  background-size: 42px 42px;

  opacity: 0.6;

  pointer-events: none;
}

/*==================================================
  BACKGROUND GLOW
==================================================*/

.erp-wave {
  position: absolute;

  width: 650px;
  height: 650px;

  right: -220px;
  top: -180px;

  border-radius: 50%;

  background: radial-gradient(circle, rgba(215, 25, 32, 0.12), transparent 70%);

  filter: blur(90px);

  pointer-events: none;
}

/*==================================================
  CONTAINER
==================================================*/

.erp-section .container {
  position: relative;

  z-index: 2;
}

/*==================================================
  SECTION TITLE
==================================================*/

.section-title {
  text-align: center;

  margin-bottom: 70px;
}

/* badge */

.section-badge {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 12px 26px;

  border-radius: 999px;

  background: #fff;

  border: 1px solid rgba(215, 25, 32, 0.15);

  color: #d71920;

  font-size: 15px;

  font-weight: 800;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* title */

.section-title h2 {
  margin-top: 24px;

  font-size: 48px;

  font-weight: 900;

  color: #222;

  line-height: 1.2;
}

/* description */

.section-title p {
  width: min(760px, 90%);

  margin: 20px auto 0;

  color: #666;

  font-size: 18px;

  line-height: 1.8;
}

/*==================================================
  GRID
==================================================*/

.erp-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 32px;
}

/*==================================================
  RESPONSIVE
==================================================*/

@media (max-width: 991px) {
  .erp-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .erp-section {
    padding: 90px 0;
  }

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

  .section-title p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .section-title h2 {
    font-size: 30px;
  }

  .section-badge {
    font-size: 13px;

    padding: 10px 20px;
  }
}

/*==================================================
  ERP CARD
==================================================*/

.erp-card {
  position: relative;

  display: grid;

  grid-template-columns: 100px 1fr 70px;

  align-items: center;

  gap: 24px;

  min-height: 250px;

  padding: 35px;

  overflow: hidden;

  border-radius: 30px;

  background: #fff;

  text-decoration: none;

  border: 1px solid rgba(0, 0, 0, 0.05);

  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);

  transition: 0.35s ease;
}

/* garis warna kiri */

.erp-card::before {
  content: "";

  position: absolute;

  left: 0;

  top: 0;

  width: 6px;

  height: 100%;

  border-radius: 20px;
}

/*==================================================
  LEFT
==================================================*/

.erp-left {
  display: contents;
}

/*==================================================
  ICON
==================================================*/

.erp-icon {
  width: 100px;

  height: 100px;

  border-radius: 26px;

  background: #fff;

  display: flex;

  align-items: center;

  justify-content: center;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(0, 0, 0, 0.05);

  z-index: 2;
}

.erp-icon img {
  width: 62px;

  max-width: 100%;

  transition: 0.35s;
}

/*==================================================
  CONTENT
==================================================*/

.erp-content {
  display: flex;

  flex-direction: column;

  justify-content: center;
}

.erp-content h3 {
  font-size: 38px;

  font-weight: 900;

  color: #222;

  margin: 0;
}

.erp-content h5 {
  margin: 8px 0 0;

  font-size: 18px;

  color: #777;

  font-weight: 700;
}

.erp-line {
  width: 72px;

  height: 5px;

  border-radius: 20px;

  margin: 18px 0;
}

.erp-content p {
  max-width: 340px;

  margin: 0;

  color: #666;

  line-height: 1.8;

  font-size: 16px;
}

/*==================================================
  ARROW
==================================================*/

.erp-arrow {
  width: 64px;

  height: 64px;

  border-radius: 50%;

  background: #fff;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 28px;

  font-weight: 700;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);

  transition: 0.35s;
}

/*==================================================
  DOT PATTERN
==================================================*/

.erp-dots {
  position: absolute;

  top: 20px;

  right: 22px;

  width: 110px;

  height: 80px;

  opacity: 0.15;

  background-image: radial-gradient(currentColor 1.5px, transparent 1.5px);

  background-size: 12px 12px;
}

/*==================================================
  WAVE
==================================================*/

.erp-bg-wave {
  position: absolute;

  left: -10%;

  bottom: -60px;

  width: 120%;

  height: 150px;

  border-radius: 50%;

  opacity: 0.08;
}

/*==================================================
  RESPONSIVE
==================================================*/

@media (max-width: 768px) {
  .erp-card {
    grid-template-columns: 1fr;

    gap: 20px;

    padding: 30px;

    text-align: center;
  }

  .erp-icon {
    margin: auto;
  }

  .erp-content {
    align-items: center;
  }

  .erp-content p {
    max-width: 100%;
  }

  .erp-arrow {
    margin: auto;
  }
}

/*==================================================
  ERP COLOR THEME
==================================================*/

/* =========================
   Integral
========================= */

.erp-card.integral::before {
  background: #026bb1;
}

.erp-card.integral .erp-line {
  background: #026bb1;
}

.erp-card.integral .erp-arrow {
  color: #026bb1;
}

.erp-card.integral .erp-dots {
  color: #026bb1;
}

.erp-card.integral .erp-bg-wave {
  background: radial-gradient(
    circle at center,
    rgba(2, 107, 177, 0.55),
    rgba(2, 107, 177, 0.12),
    transparent 70%
  );
}

.erp-card.integral {
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
}

/* =========================
   IONs
========================= */

.erp-card.ions::before {
  background: #c62721;
}

.erp-card.ions .erp-line {
  background: #c62721;
}

.erp-card.ions .erp-arrow {
  color: #c62721;
}

.erp-card.ions .erp-dots {
  color: #c62721;
}

.erp-card.ions .erp-bg-wave {
  background: radial-gradient(
    circle at center,
    rgba(198, 39, 33, 0.55),
    rgba(198, 39, 33, 0.12),
    transparent 70%
  );
}

.erp-card.ions {
  background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
}

/* =========================
   EPN
========================= */

.erp-card.epn::before {
  background: #fa8233;
}

.erp-card.epn .erp-line {
  background: #fa8233;
}

.erp-card.epn .erp-arrow {
  color: #fa8233;
}

.erp-card.epn .erp-dots {
  color: #fa8233;
}

.erp-card.epn .erp-bg-wave {
  background: radial-gradient(
    circle at center,
    rgba(250, 130, 51, 0.55),
    rgba(250, 130, 51, 0.12),
    transparent 70%
  );
}

.erp-card.epn {
  background: linear-gradient(135deg, #ffffff 0%, #fffaf6 100%);
}

/* =========================
   Neutron
========================= */

.erp-card.neutron::before {
  background: #e42016;
}

.erp-card.neutron .erp-line {
  background: #e42016;
}

.erp-card.neutron .erp-arrow {
  color: #e42016;
}

.erp-card.neutron .erp-dots {
  color: #e42016;
}

.erp-card.neutron .erp-bg-wave {
  background: radial-gradient(
    circle at center,
    rgba(228, 32, 22, 0.55),
    rgba(228, 32, 22, 0.12),
    transparent 70%
  );
}

.erp-card.neutron {
  background: linear-gradient(135deg, #ffffff 0%, #fff7f7 100%);
}

/*==================================================
  HOVER EFFECT
==================================================*/

.erp-card {
  cursor: pointer;

  transform: translateY(0);
}

.erp-card:hover {
  transform: translateY(-12px);
}

/*==================================================
  ICON
==================================================*/

.erp-icon {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.erp-card:hover .erp-icon {
  transform: scale(1.08) rotate(-4deg);
}

.erp-icon img {
  transition: transform 0.35s ease;
}

.erp-card:hover .erp-icon img {
  transform: scale(1.08);
}

/*==================================================
  CONTENT
==================================================*/

.erp-content h3,
.erp-content h5,
.erp-content p {
  transition: 0.35s ease;
}

.erp-card:hover h3 {
  transform: translateX(4px);
}

.erp-card:hover h5 {
  transform: translateX(4px);
}

.erp-card:hover p {
  transform: translateX(4px);
}

/*==================================================
  ARROW
==================================================*/

.erp-arrow {
  transition: transform 0.35s, color 0.35s, background 0.35s, box-shadow 0.35s;
}

.erp-card:hover .erp-arrow {
  transform: translateX(6px);
}

/*==================================================
  SHINE EFFECT
==================================================*/

.erp-card::after {
  content: "";

  position: absolute;

  top: -120%;

  left: -45%;

  width: 45%;

  height: 320%;

  transform: rotate(25deg);

  background: linear-gradient(
    to right,

    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );

  transition: 1s;
}

.erp-card:hover::after {
  left: 135%;
}

/*==================================================
  PREMIUM SHADOW
==================================================*/

.erp-card.integral:hover {
  box-shadow: 0 30px 60px rgba(2, 107, 177, 0.2);
}

.erp-card.integral:hover .erp-icon {
  box-shadow: 0 20px 45px rgba(2, 107, 177, 0.18);
}

.erp-card.integral:hover .erp-arrow {
  background: #026bb1;

  color: #fff;
}

/*=============================*/

.erp-card.ions:hover {
  box-shadow: 0 30px 60px rgba(198, 39, 33, 0.22);
}

.erp-card.ions:hover .erp-icon {
  box-shadow: 0 20px 45px rgba(198, 39, 33, 0.18);
}

.erp-card.ions:hover .erp-arrow {
  background: #c62721;

  color: #fff;
}

/*=============================*/

.erp-card.epn:hover {
  box-shadow: 0 30px 60px rgba(250, 130, 51, 0.22);
}

.erp-card.epn:hover .erp-icon {
  box-shadow: 0 20px 45px rgba(250, 130, 51, 0.18);
}

.erp-card.epn:hover .erp-arrow {
  background: #fa8233;

  color: #fff;
}

/*=============================*/

.erp-card.neutron:hover {
  box-shadow: 0 30px 60px rgba(228, 32, 22, 0.22);
}

.erp-card.neutron:hover .erp-icon {
  box-shadow: 0 20px 45px rgba(228, 32, 22, 0.18);
}

.erp-card.neutron:hover .erp-arrow {
  background: #e42016;

  color: #fff;
}

/*==================================================
  FLOATING WAVE
==================================================*/

.erp-bg-wave {
  animation: waveMove 8s ease-in-out infinite;
}

@keyframes waveMove {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-12px);
  }

  100% {
    transform: translateX(0);
  }
}

/*==================================================
  FLOATING ICON
==================================================*/

.erp-icon {
  animation: floatIcon 5s ease-in-out infinite;
}

.erp-card:nth-child(2) .erp-icon {
  animation-delay: 0.5s;
}

.erp-card:nth-child(3) .erp-icon {
  animation-delay: 1s;
}

.erp-card:nth-child(4) .erp-icon {
  animation-delay: 1.5s;
}

@keyframes floatIcon {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }

  100% {
    transform: translateY(0);
  }
}

/*==================================================
  DOTS
==================================================*/

.erp-dots {
  transition: 0.35s;
}

.erp-card:hover .erp-dots {
  opacity: 0.35;

  transform: scale(1.1);
}

/*==================================================
  ACCESSIBILITY
==================================================*/

.erp-card:focus {
  outline: none;
}

.erp-card:focus-visible {
  outline: 3px solid rgba(215, 25, 32, 0.3);

  outline-offset: 6px;
}

/*==================================================
  REDUCE MOTION
==================================================*/

@media (prefers-reduced-motion: reduce) {
  .erp-card,
  .erp-icon,
  .erp-bg-wave {
    animation: none !important;

    transition: none !important;
  }
}
