.services {
    padding: var(--space-2xl) var(--space-xl);
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.services .section-title {
    margin-bottom: 15px;
}

.services .content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 10px;
}

.services .services-tabs {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.services .tab {
    padding: 12px 20px;
    margin: 0 5px;
    color: #aaaaaa;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    background: none;
    border: none;
    outline: none;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    min-width: 120px;
    text-align: center;
}

.services .tab::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary, #4bbe9e);
    transition: width 0.3s ease;
}

.services .tab:hover {
    color: #444444;
}

.services .tab:hover::after {
    width: 100%;
}

.services .tab.active {
    color: #333333;
}

.services .tab.active::after {
    width: 100%;
}

.services .text-content {
    padding: 15px 20px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.services .text-content h3 {
    margin-top: 30px;
}

.services .text-content h3:first-child {
    margin-top: 0;
}

@media (max-width: 768px) {
    .services .content-wrapper {
        gap: 20px;
        padding: 10px;
    }

    .services .services-tabs {
        flex-wrap: wrap;
    }

    .services .tab {
        padding: 10px 15px;
        font-size: 14px;
        flex-grow: 1;
        text-align: center;
    }

    .services .text-content {
        padding: 10px;
    }
}

.services-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 100px);
    margin-top: 100px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.services-floating-element {
    position: absolute;
    background: var(--primary);
    opacity: 0.05;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.services-floating-element:nth-child(1) {
    width: 100px;
    height: 87px;
    top: 30%;
    left: 8%;
    animation: float 22s infinite;
}

.services-floating-element:nth-child(2) {
    width: 70px;
    height: 61px;
    top: 40%;
    right: 12%;
    animation: float 18s infinite;
    animation-delay: -7s;
}

.services-floating-element:nth-child(3) {
    width: 120px;
    height: 104px;
    bottom: 20%;
    left: 10%;
    animation: float 25s infinite;
    animation-delay: -12s;
}

.services-floating-element:nth-child(4) {
    width: 60px;
    height: 52px;
    bottom: 35%;
    right: 15%;
    animation: float 20s infinite;
    animation-delay: -5s;
}