:root {
    --dwp-primary-color: #6c63ff;
    --dwp-secondary-color: #3f3d56;
    --dwp-accent-color: #00d2ff;
    --dwp-bg-color: #f8f9fa;
}

/* Elementor Container Auto-Adjustment */
.elementor-widget-dream_website_process .dwp-container {
    padding: 0 !important;
    max-width: 100% !important;
}

.elementor-widget-dream_website_process .dwp-steps-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 20px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

.elementor-widget-dream_website_process .dwp-step-card {
    padding: 25px 20px !important;
    margin-bottom: 0 !important;
}

.elementor-widget-dream_website_process .dwp-step-number {
    font-size: 40px !important;
    top: 5px !important;
    right: 15px !important;
}

.elementor-widget-dream_website_process .dwp-icon {
    width: 70px !important;
    height: 70px !important;
    font-size: 28px !important;
    margin: 0 auto 15px !important;
}

.elementor-widget-dream_website_process .dwp-step-card h3 {
    font-size: 18px !important;
    margin-bottom: 12px !important;
}

.elementor-widget-dream_website_process .dwp-step-card p {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.dwp-container {
    margin: 0;
    padding: 50px 0;
    text-align: center;
}

.dwp-header h2 {
    font-size: 32px;
    color: var(--dwp-secondary-color);
    margin-bottom: 10px;
}

.dwp-header p {
    color: #777;
    margin-bottom: 50px;
}

.dwp-steps-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.dwp-step-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: visible;
    border-bottom: 4px solid transparent;
}

.dwp-step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-bottom: 4px solid var(--dwp-primary-color);
}

.dwp-step-number {
    font-size: 50px;
    font-weight: 800;
    color: rgba(108, 99, 255, 0.1);
    position: absolute;
    top: 10px;
    right: 20px;
}

.dwp-icon {
    width: 80px;
    height: 80px;
    border: 2px dashed var(--dwp-primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    transition: all 0.4s ease;
    background: rgba(108, 99, 255, 0.05);
}

.dwp-icon::before {
    content: attr(data-icon);
}

.dwp-step-card:hover .dwp-icon {
    background: var(--dwp-primary-color);
    color: #fff;
    border-style: solid;
    transform: rotateY(180deg);
}

.dwp-step-card:hover .dwp-icon::before {
    content: attr(data-hover);
    transform: rotateY(-180deg);
    display: inline-block;
}

.dwp-step-card h3 {
    font-size: 20px;
    color: var(--dwp-secondary-color);
    margin-bottom: 15px;
}

.dwp-step-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Arrow Styles */
.dwp-step-card:not(:last-child)::after {
    content: "➜";
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--dwp-primary-color);
    z-index: 10;
    animation: bounceRight 1.5s infinite ease-in-out;
}

@keyframes bounceRight {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(5px); }
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(50%) rotate(90deg) translateX(0); }
    50% { transform: translateX(50%) rotate(90deg) translateX(5px); }
}

@keyframes bounceDiagonal {
    0%, 100% { transform: rotate(135deg) translateX(0); }
    50% { transform: rotate(135deg) translateX(5px); }
}

/* Responsive */
@media (max-width: 768px) {
    .dwp-steps-wrapper {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Tablet: 2nd card points down to 3rd */
    .dwp-step-card:nth-child(2)::after {
        right: auto;
        left: -20px;
        top: auto;
        bottom: -35px;
        transform: rotate(135deg);
        animation: bounceDiagonal 1.5s infinite ease-in-out;
    }
}

@media (max-width: 480px) {
    .dwp-steps-wrapper {
        grid-template-columns: 1fr;
    }

    /* Mobile: All arrows point down */
    .dwp-step-card:not(:last-child)::after {
        left: auto;
        right: 50%;
        top: auto;
        bottom: -35px;
        transform: translateX(50%) rotate(90deg);
        animation: bounceDown 1.5s infinite ease-in-out;
    }
}
