@use "../abstracts" as *;

.team-details {
    padding: rem(100) 0;

    @media (max-width: 1399px) {
        padding: rem(90) 0;
    }

    @media (max-width: 1199px) {
        padding: rem(80) 0;
    }

    @media (max-width: 991px) {
        padding: rem(70) 0;
    }

    @media (max-width: 767px) {
        padding: rem(60) 0;
    }

    @media (max-width: 575px) {
        padding: rem(50) 0;
    }

    // ── LEFT: Text content ──
    &__content {
        padding-right: 60px;

        @media (max-width: 1399px) {
            padding-right: rem(30);
        }

        @media (max-width: 1199px) {
            padding-right: 0;
            margin-bottom: rem(20);
        }

        .section-top__subtitle {
            font-family: $font-family-base;
            font-size: rem(14);
            font-weight: 700;
            color: $color-primary;
            text-transform: uppercase;
            letter-spacing: rem(1.5);
            display: inline-block;
            margin-bottom: rem(15);

            @media (max-width: 1199px) {
                font-size: rem(13);
            }

            @media (max-width: 767px) {
                margin-bottom: rem(10);
            }

            &::before {
                content: ">>>";
                margin-right: rem(8);
            }
        }

        .section-top__title {
            font-size: clamp(2rem, 3vw, 2.5rem);
            font-weight: 700;
            margin-bottom: rem(25);
            line-height: $line-height-heading;
            color: $color-heading;

            @media (max-width: 1199px) {
                font-size: rem(32);
            }

            @media (max-width: 991px) {
                font-size: rem(30);
            }

            @media (max-width: 767px) {
                font-size: rem(28);
                margin-bottom: rem(20);
            }

            @media (max-width: 575px) {
                font-size: rem(24);
            }
        }
    }

    &__desc {
        font-family: $font-family-base;
        font-weight: 500;
        font-size: 16px;
        line-height: 28px;
        letter-spacing: 0%;
        color: #878C8F;
        margin-bottom: 30px;

        @media (max-width: 1199px) {
            font-size: 15px;
            line-height: 26px;
        }

        @media (max-width: 767px) {
            margin-bottom: 20px;
        }
    }

    &__list {
        margin: 0;
        padding: 0;
        list-style: none;

        li {
            position: relative;
            display: flex;
            align-items: flex-start;
            gap: rem(22);
            font-family: $font-family-base;
            font-weight: 500;
            font-size: 16px;
            line-height: 28px;
            letter-spacing: 0%;
            color: #878C8F;
            margin-bottom: 25px;

            @media (max-width: 1199px) {
                font-size: 15px;
                line-height: 26px;
                gap: rem(18);
            }

            @media (max-width: 767px) {
                gap: rem(15);
                margin-bottom: 20px;
            }

            img {
                margin-top: 8px;

                @media (max-width: 767px) {
                    margin-top: 6px;
                    width: 18px;
                }
            }

            &:last-child {
                margin-bottom: 0;
            }

            i {
                position: absolute;
                left: 0;
                top: rem(5);
                color: $color-primary;
                font-size: rem(16);
            }
        }
    }

    // ── RIGHT: Info box wrapper ──
    &__info-box {
        background-color: #EFF3FA;
        border-radius: rem(15);
        padding: 40px;

        @media (max-width: 1199px) {
            padding: 30px;
        }

        @media (max-width: 575px) {
            padding: rem(25) rem(20);
        }
    }

    // ── Contact info list ──
    &__info-list {
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: rem(16);

        li {
            font-size: rem(15);
            color: $color-heading;
            font-weight: 500;
            line-height: 1.6;

            @media (max-width: 1199px) {
                font-size: rem(14);
            }

            span {
                font-weight: 700;
                color: $color-primary;
            }
        }

        // Visual gap between first group (Phone/Email/Gender) and second (Address/Website/Nationality)
        &-divider {
            height: rem(8);
            background: transparent;
            pointer-events: none;
        }
    }

    // ── Photo card ──
    &__photo-card {
        position: relative;
        border-radius: rem(14);
        overflow: hidden;
    }

    &__photo-img {
        display: block;
        line-height: 0;

        img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
        }
    }

    // ── Dark social sidebar — absolute pill on left side ──
    &__photo-social {
        position: absolute;
        left: 0;
        bottom: 30px;
        background-color: #302F3B;
        border-radius: rem(30) rem(30) 0 0;
        padding: rem(22) rem(14);
        width: 55px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: rem(20);
        z-index: 10;

        @media (max-width: 1199px) {
            width: 50px;
            padding: rem(18) rem(12);
            gap: rem(18);
        }

        @media (max-width: 767px) {
            width: 45px;
            padding: rem(15) rem(10);
            gap: rem(15);
            bottom: 36px;
        }

        a {
            color: $color-white;
            font-size: rem(15);
            line-height: 1;
            text-decoration: none;
            transition: color 0.3s ease;

            @media (max-width: 1199px) {
                font-size: rem(14);
            }

            @media (max-width: 767px) {
                font-size: rem(13);
            }

            &:hover {
                color: $color-primary;
                text-decoration: none;
            }
        }
    }

    // ── Caption strip below image ──
    &__photo-caption {
        margin-top: -10px;
        text-align: right;

        @media (max-width: 1199px) {
            margin-top: 0;
        }
    }

    &__photo-designation {
        display: block;
        font-size: rem(11);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: rem(1.5);
        color: $color-text2;
        margin-bottom: rem(4);

        @media (max-width: 1199px) {
            font-size: rem(10);
        }
    }

    &__photo-name {
        font-size: rem(18);
        font-weight: 700;
        color: $color-heading;
        margin: 0;
        line-height: 1.2;

        @media (max-width: 1199px) {
            font-size: rem(16);
        }

        @media (max-width: 767px) {
            font-size: rem(15);
        }
    }

    // ── Decorative blue shapes (top-right + bottom-left) ──
    &__photo-shape {
        position: absolute;
        background-color: $color-primary;
        z-index: 5;

    }

    // ── WHY CHOOSE US right col wrapper ──
    &__wcu {
        // inherits section-top__subtitle / title from __content block
    }

    // ── Dark box wrapping the features grid ──
    &__features-box {
        background-color: $color-black;
        border-radius: rem(20);
        padding: rem(25) rem(20);

        @media (max-width: 575px) {
            padding: rem(18);
        }
    }

    // ── Skill box (left col) ──
    &__skill-box {
        background-color: #EFF3FA;
        border-radius: rem(15);
        padding: 67px 48px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;

        @media (max-width: 1399px) {
            padding: 50px 35px;
        }

        @media (max-width: 1199px) {
            margin-bottom: rem(40);
        }

        @media (max-width: 575px) {
            padding: rem(30);
            margin-bottom: 20px;
        }

        &-title {
            font-family: $font-family-base;
            font-weight: 700;
            font-size: 28px;
            line-height: 100%;
            letter-spacing: 0%;
            color: #191825;
            margin-bottom: rem(50);

            @media (max-width: 1199px) {
                font-size: 24px;
                margin-bottom: rem(35);
            }

            @media (max-width: 575px) {
                font-size: 22px;
                margin-bottom: rem(25);
            }
        }
    }

    &__progress-wrap {
        display: flex;
        flex-direction: column;
        gap: rem(35);
        margin-bottom: rem(60);

        @media (max-width: 1199px) {
            gap: rem(25);
            margin-bottom: rem(40);
        }
    }

    &__progress-item {
        .progress-title-wrap {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: rem(15);

            h4 {
                font-family: $font-family-base;
                font-weight: 700;
                font-size: 18px;
                line-height: 100%;
                letter-spacing: 0%;
                color: #191825;
                margin: 0;

                @media (max-width: 1199px) {
                    font-size: 17px;
                }

                @media (max-width: 767px) {
                    font-size: 16px;
                }
            }

            span {
                font-weight: 700;
                color: $color-heading;
                font-size: rem(16);

                @media (max-width: 767px) {
                    font-size: rem(14);
                }
            }
        }

        .progress {
            height: rem(8);
            background-color: $color-white;
            border-radius: rem(10);
            overflow: visible;

            .progress-bar {
                background-color: $color-primary;
                border-radius: rem(10);
                transition: width 1.2s ease;

                &--dark {
                    background-color: $color-heading;
                }
            }
        }
    }

    &__experience {
        display: flex;
        align-items: center;
        gap: rem(15);

        .number {
            font-family: $font-family-base;
            font-weight: 700;
            font-size: 60px;
            line-height: 100%;
            letter-spacing: 0%;
            color: $color-primary;

            @media (max-width: 1199px) {
                font-size: 50px;
            }

            @media (max-width: 575px) {
                font-size: 40px;
            }
        }

        .text {
            font-family: $font-family-base;
            font-weight: 600;
            font-size: 16px;
            line-height: 26px;
            letter-spacing: 0%;
            color: #302F3B;

            @media (max-width: 1199px) {
                font-size: 15px;
                line-height: 24px;
            }

            @media (max-width: 575px) {
                font-size: 14px;
                line-height: 22px;
            }
        }
    }

    &__wcu {
        padding-left: 36px;

        @media (max-width: 1399px) {
            padding-left: 0;
        }


        .section-top {
            max-width: 561px;

            @media (max-width: 1199px) {
                max-width: 100%;
            }


            &__title {
                max-width: 461px;
            }
        }

        .wcu3__features-box {
            margin-left: -36px !important;

            @media (max-width: 1399px) {
                margin-left: 0 !important;
            }
        }
    }
}