@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Variables */
.dbc-process-wrapper {
  --bg-light: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-dark: #030712;
  --primary: #0055FF;
  --accent: #00D478;
  --accent-dark: #00B862;
  --accent-light: #34EFA0;
  --white: #FFFFFF;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-800: #1F2937;
}

/* Reset & Base */
.dbc-process-wrapper {
  font-family: 'Space Grotesk', sans-serif;
  background: #F8FAFC;
  color: var(--bg-dark);
  padding: 120px 24px 140px;
  position: relative;
  overflow: hidden;
}

/* Diagonal Transition to next section */
.dbc-process-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom right, transparent 49.5%, #0055FF 50%);
  z-index: 10;
}

.dbc-process-wrapper * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Subtle Background Pattern */
.dbc-process-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 0%, rgba(0, 212, 120, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(0, 85, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Container */
.dbc-process-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.dbc-process-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 100px;
}

.dbc-process-overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 24px;
  padding: 10px 24px;
  background: rgba(0, 212, 120, 0.1);
  border-radius: 50px;
  opacity: 0;
  transform: translateY(20px);
}

.dbc-process-overline.dbc-visible {
  animation: dbc-fadeUp 0.6s ease forwards;
}

.dbc-process-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--bg-dark);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
}

.dbc-process-title.dbc-visible {
  animation: dbc-fadeUp 0.6s ease 0.1s forwards;
}

.dbc-process-title span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dbc-process-description {
  font-size: 18px;
  line-height: 1.7;
  color: var(--gray-500);
  opacity: 0;
  transform: translateY(20px);
}

.dbc-process-description.dbc-visible {
  animation: dbc-fadeUp 0.6s ease 0.2s forwards;
}

/* Timeline Horizontal */
.dbc-process-timeline {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  padding: 0 40px;
}

/* Horizontal Line */
.dbc-process-line {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 4px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}

.dbc-process-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dbc-process-line.dbc-visible::after {
  width: 100%;
}

/* Step */
.dbc-process-step {
  flex: 1;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(40px);
}

.dbc-process-step.dbc-visible {
  animation: dbc-fadeUp 0.7s ease forwards;
}

.dbc-process-step:nth-child(2).dbc-visible { animation-delay: 0.2s; }
.dbc-process-step:nth-child(3).dbc-visible { animation-delay: 0.4s; }
.dbc-process-step:nth-child(4).dbc-visible { animation-delay: 0.6s; }

/* 3D Icon Container */
.dbc-process-icon {
  width: 160px;
  height: 160px;
  position: relative;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
}

/* Icon Background Glow */
.dbc-process-icon::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 212, 120, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  animation: dbc-glow-pulse 3s ease-in-out infinite;
}

/* Icon 3D Shape */
.dbc-process-icon-shape {
  width: 100px;
  height: 100px;
  background: linear-gradient(145deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-dark) 100%);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform: rotateX(10deg) rotateY(-10deg);
  transform-style: preserve-3d;
  box-shadow: 
    0 20px 40px rgba(0, 212, 120, 0.3),
    0 10px 20px rgba(0, 0, 0, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: dbc-float 4s ease-in-out infinite;
}

.dbc-process-step:nth-child(3) .dbc-process-icon-shape {
  animation-delay: 0.5s;
}

.dbc-process-step:nth-child(4) .dbc-process-icon-shape {
  animation-delay: 1s;
}

.dbc-process-step:hover .dbc-process-icon-shape {
  transform: rotateX(0deg) rotateY(0deg) scale(1.1);
  box-shadow: 
    0 30px 60px rgba(0, 212, 120, 0.4),
    0 15px 30px rgba(0, 0, 0, 0.15),
    inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

/* Icon Specular Shine */
.dbc-process-icon-shape::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  animation: dbc-shine 3s ease-in-out infinite;
  border-radius: 28px;
}

.dbc-process-icon-shape svg {
  width: 48px;
  height: 48px;
  color: var(--white);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  position: relative;
  z-index: 1;
}

/* Step Number Badge */
.dbc-process-number {
  position: absolute;
  top: 10px;
  right: calc(50% - 80px);
  width: 32px;
  height: 32px;
  background: var(--bg-dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* Step Content */
.dbc-process-content {
  padding-top: 10px;
}

.dbc-process-step-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.dbc-process-step-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-500);
  max-width: 280px;
  margin: 0 auto;
}

/* Step Badge */
.dbc-process-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 8px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
}

.dbc-process-badge svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* Phone Mockup for Step 2 */
.dbc-process-phone {
  width: 80px;
  height: 140px;
  background: linear-gradient(145deg, #1a1a2e 0%, #0a0a15 100%);
  border-radius: 16px;
  position: relative;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: rotateX(10deg) rotateY(10deg);
  transform-style: preserve-3d;
  animation: dbc-float 4s ease-in-out infinite 0.5s;
}

.dbc-process-step:hover .dbc-process-phone {
  transform: rotateX(0deg) rotateY(0deg) scale(1.1);
}

.dbc-process-phone::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 4px;
  background: #2a2a40;
  border-radius: 2px;
}

.dbc-process-phone-screen {
  position: absolute;
  top: 18px;
  left: 6px;
  right: 6px;
  bottom: 18px;
  background: linear-gradient(180deg, #1e3a5f 0%, #0f2540 100%);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dbc-process-phone-notification {
  width: 56px;
  background: rgba(0, 212, 120, 0.2);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: dbc-notification-pop 2s ease-in-out infinite;
}

.dbc-process-phone-notification svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.dbc-process-phone-notification span {
  font-size: 6px;
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
}

/* Card Icon for Step 3 */
.dbc-process-card-icon {
  width: 110px;
  height: 70px;
  background: linear-gradient(145deg, #0a1628 0%, #1a365d 50%, #0f3460 100%);
  border-radius: 12px;
  position: relative;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(0, 212, 120, 0.3);
  transform: rotateX(15deg) rotateY(-15deg);
  transform-style: preserve-3d;
  animation: dbc-float 4s ease-in-out infinite 1s;
  overflow: hidden;
}

.dbc-process-step:hover .dbc-process-card-icon {
  transform: rotateX(0deg) rotateY(0deg) scale(1.1);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(0, 212, 120, 0.5);
}

/* Card shine effect */
.dbc-process-card-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 60%,
    transparent 100%
  );
  animation: dbc-card-shine 2.5s ease-in-out infinite;
}

.dbc-process-card-icon::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 18px;
  background: linear-gradient(145deg, #D4AF37 0%, #F0D875 50%, #D4AF37 100%);
  border-radius: 4px;
}

.dbc-process-card-icon svg {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.6);
}

/* Card glow ring */
.dbc-process-card-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 100px;
  border: 2px solid var(--accent);
  border-radius: 20px;
  opacity: 0;
  animation: dbc-glow-ring 2s ease-in-out infinite;
}

/* Complete Button */
.dbc-process-complete {
  display: flex;
  justify-content: center;
  margin-top: 80px;
  opacity: 0;
  transform: translateY(20px);
}

.dbc-process-complete.dbc-visible {
  animation: dbc-fadeUp 0.6s ease 0.8s forwards;
}

.dbc-process-complete-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-dark);
  color: var(--white);
  padding: 20px 40px;
  border-radius: 60px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(3, 7, 18, 0.3);
  position: relative;
  overflow: hidden;
}

.dbc-process-complete-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.dbc-process-complete-btn:hover::before {
  left: 100%;
}

.dbc-process-complete-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(3, 7, 18, 0.4);
}

.dbc-process-complete-btn svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

/* Animations */
@keyframes dbc-fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dbc-float {
  0%, 100% {
    transform: rotateX(10deg) rotateY(-10deg) translateY(0);
  }
  50% {
    transform: rotateX(10deg) rotateY(-10deg) translateY(-10px);
  }
}

@keyframes dbc-glow-pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

@keyframes dbc-shine {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 150%;
  }
}

@keyframes dbc-card-shine {
  0% {
    left: -150%;
  }
  50%, 100% {
    left: 150%;
  }
}

@keyframes dbc-notification-pop {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  10% {
    transform: scale(1.1);
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes dbc-glow-ring {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
  }
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .dbc-process-wrapper {
    padding: 100px 24px 120px;
  }
  
  .dbc-process-wrapper::after {
    height: 60px;
  }

  .dbc-process-timeline {
    flex-direction: column;
    align-items: center;
    gap: 60px;
    padding: 0;
  }

  .dbc-process-line {
    display: none;
  }

  .dbc-process-step {
    max-width: 400px;
  }

  .dbc-process-icon {
    width: 140px;
    height: 140px;
  }

  .dbc-process-icon-shape {
    width: 90px;
    height: 90px;
  }

  .dbc-process-number {
    right: calc(50% - 70px);
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .dbc-process-wrapper {
    padding: 80px 20px 100px;
  }
  
  .dbc-process-wrapper::after {
    height: 50px;
  }

  .dbc-process-header {
    margin-bottom: 60px;
  }

  .dbc-process-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .dbc-process-description {
    font-size: 16px;
  }

  .dbc-process-timeline {
    gap: 50px;
  }

  .dbc-process-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
  }

  .dbc-process-icon-shape {
    width: 80px;
    height: 80px;
    border-radius: 22px;
  }

  .dbc-process-icon-shape svg {
    width: 40px;
    height: 40px;
  }

  .dbc-process-phone {
    width: 70px;
    height: 120px;
  }

  .dbc-process-card-icon {
    width: 95px;
    height: 60px;
  }

  .dbc-process-number {
    width: 28px;
    height: 28px;
    font-size: 12px;
    right: calc(50% - 60px);
  }

  .dbc-process-step-title {
    font-size: 20px;
  }

  .dbc-process-step-text {
    font-size: 14px;
  }

  .dbc-process-complete {
    margin-top: 60px;
  }

  .dbc-process-complete-btn {
    padding: 16px 32px;
    font-size: 15px;
  }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
  .dbc-process-wrapper {
    padding: 60px 16px 80px;
  }
  
  .dbc-process-wrapper::after {
    height: 40px;
  }

  .dbc-process-overline {
    font-size: 11px;
    padding: 8px 16px;
  }

  .dbc-process-icon {
    width: 110px;
    height: 110px;
  }

  .dbc-process-icon-shape {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .dbc-process-icon-shape svg {
    width: 36px;
    height: 36px;
  }

  .dbc-process-phone {
    width: 60px;
    height: 100px;
    border-radius: 12px;
  }

  .dbc-process-card-icon {
    width: 85px;
    height: 54px;
    border-radius: 10px;
  }

  .dbc-process-step-text {
    max-width: 260px;
  }

  .dbc-process-badge {
    padding: 6px 12px;
    font-size: 12px;
  }

  .dbc-process-complete-btn {
    width: 100%;
    justify-content: center;
  }
}
