/* How Fixa Work Section Styles */
.how-fixa-work {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.how-fixa-work::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e0e0e0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.how-fixa-work .container {
    position: relative;
    z-index: 2;
}

/* Header Styles */
.how-fixa-work-header {
    text-align: center;
    margin-bottom: 4rem;
}

.how-fixa-work-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.title-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    margin: 0 auto;
    border-radius: 2px;
    animation: slideInWidth 1s ease-out 0.3s both;
}

/* Content Layout */
.how-fixa-work-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Steps Container */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(86, 130, 177, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInLeft 0.8s ease-out;
}

.step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.step-item:hover {
    transform: translateX(10px);
    box-shadow: 0 20px 40px rgba(86, 130, 177, 0.2);
}

.step-item:hover::before {
    width: 8px;
}

.step-item:nth-child(1) {
    animation-delay: 0.1s;
}

.step-item:nth-child(2) {
    animation-delay: 0.2s;
}

.step-item:nth-child(3) {
    animation-delay: 0.3s;
}

/* Step Number */
.step-number {
    position: relative;
    flex-shrink: 0;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(86, 130, 177, 0.3);
    transition: all 0.3s ease;
}

.step-icon {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.step-icon i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.step-item:hover .step-num {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(86, 130, 177, 0.4);
}

.step-item:hover .step-icon {
    transform: scale(1.2) rotate(10deg);
}

/* Step Content */
.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.step-description {
    color: var(--dark-gray);
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

.step-item:hover .step-title {
    color: var(--primary-color);
}

.step-item:hover .step-description {
    color: var(--text-color);
}

/* Step Arrow */
.step-arrow {
    flex-shrink: 0;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.step-arrow i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.step-item:hover .step-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* Illustration Container */
.illustration-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.illustration-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    animation: fadeInRight 0.8s ease-out 0.4s both;
}

.main-illustration {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(86, 130, 177, 0.2);
    transition: all 0.3s ease;
}

.main-illustration:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(86, 130, 177, 0.3);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(86, 130, 177, 0.2);
    animation: float 3s ease-in-out infinite;
}

.floating-icon i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.icon-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.icon-2 {
    top: 20%;
    right: 15%;
    animation-delay: 0.5s;
}

.icon-3 {
    bottom: 30%;
    left: 5%;
    animation-delay: 1s;
}

.icon-4 {
    bottom: 15%;
    right: 10%;
    animation-delay: 1.5s;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInWidth {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .how-fixa-work-content {
        gap: 3rem;
    }
    
    .step-item {
        padding: 1.5rem;
    }
    
    .step-num {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .step-icon {
        width: 25px;
        height: 25px;
    }
    
    .step-icon i {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .how-fixa-work {
        padding: 60px 0;
    }
    
    .how-fixa-work-header .section-title {
        font-size: 2rem;
    }
    
    .how-fixa-work-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .steps-container {
        order: 2;
    }
    
    .illustration-container {
        order: 1;
    }
    
    .step-item {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .step-num {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .step-title {
        font-size: 1.1rem;
    }
    
    .step-description {
        font-size: 0.9rem;
    }
    
    .step-arrow {
        display: none;
    }
    
    .floating-icon {
        width: 40px;
        height: 40px;
    }
    
    .floating-icon i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .how-fixa-work {
        padding: 40px 0;
    }
    
    .how-fixa-work-header {
        margin-bottom: 2rem;
    }
    
    .how-fixa-work-header .section-title {
        font-size: 1.8rem;
    }
    
    .how-fixa-work-content {
        gap: 2rem;
    }
    
    .step-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .step-number {
        order: 1;
    }
    
    .step-content {
        order: 2;
    }
    
    .step-num {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .step-icon {
        width: 20px;
        height: 20px;
        top: -3px;
        right: -3px;
    }
    
    .step-icon i {
        font-size: 0.7rem;
    }
    
    .step-title {
        font-size: 1rem;
    }
    
    .step-description {
        font-size: 0.85rem;
    }
    
    .illustration-wrapper {
        max-width: 100%;
    }
    
    .floating-icon {
        width: 35px;
        height: 35px;
    }
    
    .floating-icon i {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .how-fixa-work-header .section-title {
        font-size: 1.6rem;
    }
    
    .step-item {
        padding: 0.8rem;
    }
    
    .step-num {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .step-icon {
        width: 18px;
        height: 18px;
        top: -2px;
        right: -2px;
    }
    
    .step-icon i {
        font-size: 0.6rem;
    }
    
    .step-title {
        font-size: 0.95rem;
    }
    
    .step-description {
        font-size: 0.8rem;
    }
}

