/**
 * BrightAster Website
 *
 * @file how-we-work-section.css
 * @description Styles for the "How We Work" section with enhanced design.
 * @version 2.1 (Final Polish)
 */

.how-we-work-section {
    padding: 100px 20px;
}
.hww-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start; /* Important for sticky positioning */
}
.hww-left-col {
    text-align: left;
}
.hww-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid var(--dark-divider-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 30px;
}
.hww-badge .badge-icon {
    width: 16px;
    height: 16px;
}
.hww-heading {
    font-size: 44px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 0 40px 0;
    line-height: 1.3;
}
.hww-heading .gradient-text {
    background: linear-gradient(to right, var(--accent-color) 0%, var(--accent-secondary-color) 50%, var(--accent-color) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.5s ease-in-out;
}
.hww-heading:hover .gradient-text {
    background-position: 100% 0%;
}
.hww-steps-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.hww-step-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--divider-color);
    border-radius: 15px;
    background-color: var(--secondary-color);
}
.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-right: 20px;
}
.step-indicator::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent-color), var(--accent-secondary-color));
}
.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--divider-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: var(--accent-color);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: background-color 0.4s ease;
}
.step-icon::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom right, var(--accent-color), var(--accent-secondary-color));
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s ease;
    z-index: 1;
}
.step-icon i {
    transition: color 0.4s ease;
    position: relative;
    z-index: 2;
}
.hww-step-card:hover .step-icon::before {
    transform: scale(1);
}
.hww-step-card:hover .step-icon i {
    color: var(--primary-color);
}
.step-label {
    font-size: 14px;
    color: var(--text-color);
}
.step-content h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}
.step-content p {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}
.hww-right-col {
    text-align: center;
    position: sticky;
    top: 150px; /* Increased top value for a smoother sticky effect */
}
.hww-video-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    height: 700px;
}
.hww-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hww-cta-text {
    font-size: 16px;
    color: var(--text-color);
    margin: 30px auto 20px auto;
    max-width: 80%; /* Increased width */
}
.hww-cta-button {
    display: flex;
    justify-content: center;
}
.hww-cta-button .btn-primary a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Staggering animation delays */
.hww-badge.is-visible { transition-delay: 0.1s; }
.hww-heading.is-visible { transition-delay: 0.2s; }
.hww-steps-grid .hww-step-card:nth-child(1).is-visible { transition-delay: 0.3s; }
.hww-steps-grid .hww-step-card:nth-child(2).is-visible { transition-delay: 0.4s; }
.hww-steps-grid .hww-step-card:nth-child(3).is-visible { transition-delay: 0.5s; }
.hww-steps-grid .hww-step-card:nth-child(4).is-visible { transition-delay: 0.6s; }
.hww-video-wrapper.is-visible { transition-delay: 0.4s; }
.hww-cta-text.is-visible { transition-delay: 0.5s; }
.hww-cta-button.is-visible { transition-delay: 0.6s; }

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .hww-container {
        grid-template-columns: 1fr;
    }
    .hww-right-col {
        position: static; /* Remove sticky behavior on smaller screens */
    }
    .hww-left-col {
        text-align: left; /* Keep left alignment for badge and heading */
    }
    .hww-steps-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .hww-step-card {
        text-align: left;
    }
}
@media (max-width: 768px) {
    .hww-heading { font-size: 32px; }
    .hww-steps-grid {
        grid-template-columns: 1fr;
    }
    .hww-video-wrapper {
    height: 500px;
    }

}
