/* For Whom Section Redesign */
.for-whom {
    position: relative;
    padding-top: 220px;
    overflow-x: clip;
    /* Prevent horizontal scroll but allow sticky */
}

/* Wave Animation */
.for-whom__wave-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 0;
    pointer-events: none;
}

.for-whom__wave-line {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
}

.for-whom__icons {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.floating-icon {
    position: absolute;
    /* font-size: 2rem; Removed */
    background: #fff;
    width: 40px;
    /* Slightly smaller */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    animation: float 6s ease-in-out infinite;
    color: var(--text-secondary);
    /* Icon color */
}

.floating-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

/* Random Positions for 20 Icons */
.icon-1 {
    top: 15%;
    left: 2%;
    animation-delay: 0s;
}

.icon-2 {
    top: 65%;
    left: 12%;
    animation-delay: 1.2s;
}

.icon-3 {
    top: 25%;
    left: 22%;
    animation-delay: 2.5s;
}

.icon-4 {
    top: 75%;
    left: 32%;
    animation-delay: 0.5s;
}

.icon-5 {
    top: 10%;
    left: 42%;
    animation-delay: 3.1s;
}

.icon-6 {
    top: 60%;
    left: 52%;
    animation-delay: 1.8s;
}

.icon-7 {
    top: 20%;
    left: 62%;
    animation-delay: 4.2s;
}

.icon-8 {
    top: 70%;
    left: 72%;
    animation-delay: 0.9s;
}

.icon-9 {
    top: 30%;
    left: 82%;
    animation-delay: 2.2s;
}

.icon-10 {
    top: 55%;
    left: 92%;
    animation-delay: 3.5s;
}

.icon-11 {
    top: 55%;
    left: 20%;
    animation-delay: 1.5s;
}

.icon-12 {
    top: 80%;
    left: 30%;
    animation-delay: 4.8s;
}

.icon-13 {
    top: 65%;
    left: 50%;
    animation-delay: 0.2s;
}

.icon-14 {
    top: 90%;
    left: 55%;
    animation-delay: 2.9s;
}

.icon-15 {
    top: 75%;
    left: 70%;
    animation-delay: 1.1s;
}

.icon-16 {
    top: 92%;
    left: 85%;
    animation-delay: 3.8s;
}

.icon-17 {
    top: 85%;
    left: 10%;
    animation-delay: 0.7s;
}

.icon-18 {
    top: 45%;
    left: 40%;
    animation-delay: 2.0s;
}

.icon-19 {
    top: 95%;
    left: 40%;
    animation-delay: 4.5s;
}

.icon-20 {
    top: 15%;
    left: 95%;
    animation-delay: 1.3s;
}

@keyframes float {

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

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

/* Content Layout */
.for-whom__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-top: 60px;
    z-index: 2;
    /* Ensure content is above wave */
}

.for-whom__list {
    width: 45%;
    padding-top: 140px;
    /* Align first item with visual center */
    padding-bottom: 140px;
    /* Allow last item to be scrolled higher */
}

.for-whom__item {
    margin-bottom: 60vh;
    /* Large spacing to force scroll */
    opacity: 0.3;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.for-whom__item:last-child {
    margin-bottom: 0;
}

.for-whom__item.active {
    opacity: 1;
}

.for-whom__item-title {
    font-size: 2rem;
    margin-bottom: 16px;
    font-weight: 500;
}

.for-whom__item-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

.for-whom__item.active .for-whom__item-desc {
    max-height: 200px;
    /* Approximate max height */
    opacity: 1;
}

/* Sticky Visuals */
.for-whom__visuals {
    width: 45%;
    position: sticky;
    top: calc(50vh - 200px);
    /* Center 400px element: 50vh - half height */
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.for-whom__visual-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.for-whom__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.for-whom__image.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Visual Card Styling */
.visual-card {
    background: #fff;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.visual-card__icon {
    font-size: 4rem;
    margin-bottom: 24px;
    background: var(--bg-surface);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.visual-card__content h4 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.visual-bar {
    height: 12px;
    background: var(--bg-surface);
    border-radius: 6px;
    margin-bottom: 8px;
    width: 200px;
}

.visual-bar.short {
    width: 140px;
}

/* Default state: Hide mobile visuals on desktop */
.for-whom__mobile-visual {
    display: none;
}

@media (max-width: 768px) {
    .for-whom__content {
        flex-direction: column;
        margin-top: 20px;
    }

    .for-whom__list {
        width: 100%;
        padding-top: 0;
        padding-bottom: 0;
    }

    /* Hide the desktop visuals container completely on mobile */
    .for-whom__visuals {
        display: none !important;
    }

    /* Show the mobile visuals inside items */
    .for-whom__mobile-visual {
        display: block;
        width: 100%;
        order: 3;
        /* Place after title (1) and desc (2) */
        margin-top: 24px;
        /* Space above visual */
        margin-bottom: 0;
    }

    /* Ensure visual card looks good in this context */
    .for-whom__mobile-visual .visual-card {
        height: auto;
        min-height: auto;
        /* Remove fixed min-height if needed */
        padding: 24px;
    }

    .for-whom__item {
        margin-bottom: 40px;
        opacity: 1;
        /* Always visible on mobile */
        display: flex;
        flex-direction: column;
    }

    .for-whom__item-title {
        order: 1;
        margin-bottom: 12px;
        /* Reduce space between title and desc */
    }

    .for-whom__item-desc {
        max-height: none;
        opacity: 1;
        order: 2;
        margin-bottom: 0;
        /* Visual margin-top handles spacing */
    }
}